Skip to content

Instantly share code, notes, and snippets.

@sarveshseri
Last active October 23, 2015 08:37
Show Gist options
  • Save sarveshseri/4fcb565b84bf81585e1f to your computer and use it in GitHub Desktop.
Save sarveshseri/4fcb565b84bf81585e1f to your computer and use it in GitHub Desktop.
Prepare ec2 instances
Initial upgrade
sudo apt-get update
sudo apt-get -y upgrade
Install essentials
sudo apt-get install -y build-essential
sudo apt-get install -y git
sudo apt-get install -y vim
Install Oracle Sun JDK
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update

echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections

sudo apt-get -y install oracle-java8-installer
Install node.js
wget https://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
tar -xvf node-v0.12.7-linux-x64.tar.gz
echo "" >> ~.bashrc
echo "export NODE_HOME=/home/ubuntu/node-v0.12.7-linux-x64.tar.gz" >> ~/.bashrc
echo "export PATH=\$PATH:\$NODE_HOME/bin" >> ~/.bashrc
exec bash # -l  // if it was a normal session instead of ssh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment