Skip to content

Instantly share code, notes, and snippets.

@pawl
Last active August 29, 2015 14:08
Show Gist options
  • Save pawl/f7d58208cbeddb8c3b69 to your computer and use it in GitHub Desktop.
Save pawl/f7d58208cbeddb8c3b69 to your computer and use it in GitHub Desktop.
New Machine Setup For Flask Development On Ubuntu
sudo apt-get update && time sudo apt-get dist-upgrade
sudo timedatectl set-timezone America/Chicago
apt-get install git fail2ban htop nano
mkdir -p .ssh
nano .ssh/authorized_keys
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
apt-get install python-setuptools
easy_install pip
pip install virtualenvwrapper
sudo mkdir ~/virtualenvs
sudo sh -c "echo 'WORKON_HOME=~/virtualenvs' >> /etc/environment"
for line in $( cat /etc/environment ) ; do export $line ; done
mkdir -p $WORKON_HOME
sudo sh -c "echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc"
bash
mkvirtualenv default
apt-get install python-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment