Created
September 6, 2014 23:53
-
-
Save wavescholar/6cc708de5f9bea623c86 to your computer and use it in GitHub Desktop.
Fedora Setup on clean install
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
yum update | |
yum groupinstall "Books and Guides" "C Development Tools and Libraries" "Development Tools" "Fedora Eclipse" "System Tools" "Editors" | |
rpm -ivh jdk-7u67-linux-x64.rpm | |
#as su | |
alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_67/jre/bin/java 2 | |
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_67/jre/bin/javaws 2 | |
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_67/bin/javac 2 | |
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_67/bin/jar 2 | |
#For Browswer Plugin - | |
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.7.0_67/jre/lib/amd64/libnpjp2.so 2 | |
alternatives --config java | |
alternatives --config javac | |
#Set JAVA_HOME in /etc/profile Make sure the JAVA_HOME environment variable is set for the root user on each node. You | |
can check by using a command such as | |
$ sudo env | grep JAVA_HOME | |
export JAVA_HOME=/usr/java/jdk1.7.0_67 | |
export PATH=$JAVA_HOME/bin:$PATH | |
#Lastly - if you want the JAVA_HOME set for all users - do this | |
#in /etc/profile.d make a shell script to run the two commands; | |
export JAVA_HOME=/usr/java/jdk1.7.0_67 | |
export PATH=$JAVA_HOME/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment