Last active
December 29, 2017 04:25
-
-
Save leavesofgrass/29bb425020855ada656222fc1ad35f3c to your computer and use it in GitHub Desktop.
Keyboardio Model 01 Setup Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Java JDK | |
sudo apt-get install openjdk-8-jdk -y | |
# Arduino IDE | |
## Replace "URL" | |
echo "fetching arduino" | |
curl -o URL/arduino-1.8.5-linux64.tar.xz | |
tar xvf arduino-1.8.5-linux64.tar.xz | |
sudo mkdir /usr/local/arduino | |
sudo chmod 755 /usr/local/arduino | |
sudo cp -R /opt/arduino-1.8.5/* /usr/local/arduino/ | |
cd /usr/local/arduino/ | |
sudo ./install.sh | |
# kaleidoscope | |
echo "SKETCHBOOK_DIR=$HOME/Arduino" >> ~/.bashrc | |
echo "export SKETCHBOOK_DIR" >> ~/.bashrc | |
source ~/.bashrc | |
mkdir $HOME/kaleidoscope | |
cd $HOME/kaleidoscope | |
echo "fetching Arduino boards repo" | |
git clone --recursive https://github.com/keyboardio/Arduino-Boards.git | |
mkdir -p $SKETCHBOOK_DIR/hardware/keyboardio | |
ln -s $HOME/kaleidoscope/Arduino-Boards $SKETCHBOOK_DIR/hardware/keyboardio/avr | |
cd $HOME/kaleidoscope | |
echo "fetching kaleidoscope repo" | |
git clone https://github.com/keyboardio/Kaleidoscope.git | |
#udev rules | |
curl -o https://raw.githubusercontent.com/keyboardio/Kaleidoscope/master/etc/99-kaleidoscope.rules | |
sudo cp 99-kaleidoscope.rules /etc/udev/rules.d | |
# nvm - install- current lts nodejs | |
echo "fetching node version manager" | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
sudo nvm install --lts | |
# Leiningen | |
echo "fetching current leiningen install script" | |
curl -o https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
sudo cp lein /usr/bin/ | |
sudo chmod a+x /usr/bin/lein | |
cd /usr/bin | |
sudo ./lein | |
# Chrysalis | |
echo "building deps" | |
sudo apt-get install build-essential libudev-dev -y | |
echo "fetching chrysalis repo" | |
cd ~ | |
git clone https://github.com/Lepidopterarium/Chrysalis | |
cd ~/Chrysalis/ | |
lein deps | |
lein build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment