Skip to content

Instantly share code, notes, and snippets.

@benjiao
Last active January 15, 2017 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjiao/31542730e37e99f664d9be2db52b3d67 to your computer and use it in GitHub Desktop.
Save benjiao/31542730e37e99f664d9be2db52b3d67 to your computer and use it in GitHub Desktop.
# Basic Stuff
apt-get update
apt-get dist-upgrade -y
apt-get upgrade -y
locale-gen en_PH.UTF-8
apt-get install ntp -y
apt-get install htop -y
apt-get install git -y
# Download Miniconda
if [ ! -f "miniconda.sh" ]; then
echo "Downloading Miniconda Installer..."
wget -q -O miniconda.tmp.sh https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
mv miniconda.tmp.sh miniconda.sh
chmod +x miniconda.sh
else
echo "Miniconda installer already exists!"
fi
# Install Miniconda
if [ ! -f "/opt/anaconda" ]; then
bash miniconda.sh -b -p /opt/anaconda
echo 'export PATH="/opt/anaconda/bin:$PATH"' >> /home/ubuntu/.bashrc
else
echo "Miniconda is already installed"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment