Skip to content

Instantly share code, notes, and snippets.

@marcusshepp
Last active July 13, 2016 19:13
Show Gist options
  • Save marcusshepp/0b5f07d870eb32fd018c41f03284ff0a to your computer and use it in GitHub Desktop.
Save marcusshepp/0b5f07d870eb32fd018c41f03284ff0a to your computer and use it in GitHub Desktop.
new amazon ec2 instance
# create instance
# download keypair
chmod 400 path/to/key
ssh -i path/to/key.pem [email protected]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment