Last active
August 29, 2015 14:19
-
-
Save nwgat/978d5e4c88dbc9458d36 to your computer and use it in GitHub Desktop.
jmri on cubie
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
echo "deb http://old-releases.ubuntu.com/ubuntu/ quantal main universe" | tee -a /etc/apt/sources.list | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
apt-get update && apt-get upgrade -y && apt-get install oracle-java8-installer librxtx-java -y | |
su linaro -c "/home/linaro/JMRI/JmriFaceless" | |
/etc/init.d/jrmi | |
update-rc.d jmri defaults | |
chmod +x /etc/init.d/jmri | |
ln -s /usr/lib/jvm/java-8-oracle/jre/lib/librxtxSerial.so /home/linaro/JMRI/lib/librxtxSerial.so | |
export JAVA_HOME="/usr/lib/jvm/java-8-oracle" | |
export PATH=$PATH:$JAVA_HOME/bin | |
usermod -a -G dialout linaro | |
usermod -a -G uucp linaro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment