Last active
August 29, 2015 14:04
-
-
Save joyeecheung/ce01df1aca1cecb42619 to your computer and use it in GitHub Desktop.
Set up environment for SYSU Cloud Desktop
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
# Download JDK | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.tar.gz | |
# Untar JDK | |
tar xvzf jdk-7u65-linux-x64.tar.gz | |
# Remove the tar.gz | |
rm jdk-7u65-linux-x64.tar.gz | |
# set env var | |
dir=`pwd` | |
echo "export JAVA_HOME=$dir/jdk1.7.0_65" >> ~/.bashrc | |
echo "export PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
# Download Ant | |
wget http://mirror.bit.edu.cn/apache//ant/binaries/apache-ant-1.9.4-bin.tar.gz | |
# Untar Ant | |
tar xvzf apache-ant-1.9.4-bin.tar.gz | |
# Remove tar | |
rm apache-ant-1.9.4-bin.tar.gz | |
# set env var | |
echo "export ANT_HOME=$dir/apache-ant-1.9.4" >> ~/.bashrc | |
echo "export PATH=\$PATH:\$ANT_HOME/bin" >> ~/.bashrc | |
# Download Sonar | |
wget http://dist.sonar.codehaus.org/sonar-3.7.4.zip | |
# Unzip Sonar | |
unzip sonar-3.7.4.zip | |
# Remove zip | |
rm sonar-3.7.4.zip | |
# set env var | |
echo "export SONAR_HOME=$dir/sonar-3.7.4/bin/linux-x86-64" >> ~/.bashrc | |
echo "export PATH=\$PATH:\$SONAR_HOME" >> ~/.bashrc | |
# Download Sonar-runner | |
wget http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip | |
# Unzip Sonar-runner | |
unzip sonar-runner-dist-2.4.zip | |
# Remove zip | |
rm sonar-runner-dist-2.4.zip | |
# set env var | |
echo "export SONAR_RUNNER_HOME=$dir/"sonar-runner-2.4 >> ~/.bashrc | |
echo "export PATH=\$PATH:\$SONAR_RUNNER_HOMEi/bin" >> ~/.bashrc | |
echo "" | |
echo "Please restart the terminal." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment