Last active
March 18, 2016 23:22
-
-
Save yuchsiao/0623a151ad23cc27daf4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
cd | |
sudo yum install wget -y | |
sudo yum install bzip2 -y | |
wget https://gist.githubusercontent.com/yuchsiao/e2f9c1481976b4d5c524/raw/870969f072c461ad47da76e5822bdd3b807a9829/.screenrc | |
sudo yum -y install screen | |
screen | |
# Download and install miniconda | |
cd | |
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh | |
CONDA_PATH="miniconda2" | |
chmod u+x Miniconda-latest-Linux-x86_64.sh | |
./Miniconda-latest-Linux-x86_64.sh -b -p $CONDA_PATH # -b for batch no prompt | |
# Add miniconda to $PATH | |
echo ' | |
# added by Miniconda2 3.19.0 installer | |
export PATH="/home/ec2-user/'$CONDA_PATH'/bin:$PATH" | |
' >> .bashrc | |
source .bashrc | |
# Install python packages | |
conda install numpy -y | |
conda install scipy -y | |
conda install scikit-learn -y | |
# Install gcc | |
sudo yum install gcc -y | |
sudo yum install gcc-c++ -y | |
conda install -c https://conda.anaconda.org/jjhelmus tensorflow -y | |
# Install JDK | |
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u72-b15/jdk-8u72-linux-x64.tar.gz" | |
tar xzf jdk-8u72-linux-x64.tar.gz | |
sudo mv jdk1.8.0_72 /opt | |
#sudo alternatives --install /usr/bin/java java /opt/jdk1.8.0_72/bin/java 2 | |
#sudo alternatives --config java | |
echo 'export JAVA_HOME=/opt/jdk1.8.0_72 | |
export JRE_HOME=/opt/jdk1.8.0_72/jre | |
export PATH="/opt/jdk1.8.0_72/bin:/opt/jdk1.8.0_72/jre/bin:$PATH" | |
' | tee -a $HOME/.bashrc | |
source $HOME/.bashrc | |
echo "export JAVA_HOME=/opt/jdk1.8.0_72 | |
export JRE_HOME=/opt/jdk1.8.0_72/jre | |
" | sudo tee -a /etc/environment | |
# Install Docker | |
wget ftp://195.220.108.108/linux/fedora/linux/updates/testing/23/x86_64/d/docker-1.10.2-6.git0f5ac89.fc23.x86_64.rpm | |
sudo yum localinstall --nogpgcheck docker-1.10.2-6.git0f5ac89.fc23.x86_64.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment