marcus-s
7/13/2016 - 6:47 PM

new amazon ec2 instance

new amazon ec2 instance

# create instance
# download keypair
chmod 400 path/to/key
ssh -i path/to/key.pem ubuntu@ec2-52-27-145-186.us-west-2.compute.amazonaws.com
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git

# python
sudo apt-get install python-virtualenv
sudo mkdir /opt/envs
sudo virtualenv /opt/envs/<project>
sudo chown -R ubuntu /opt/envs/ # make this user the owner of the virtualenvs dir