Paul's Programming Notes     Archive     Feed     Github

New Machine Setup For Flask Development On Ubuntu

Here are the commands I use when I bring up a new Ubuntu server for flask development:

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
view raw gistfile1.txt hosted with ❤ by GitHub