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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |