-
Update and Upgrade the server
$ sudo apt-get update && sudo apt-get upgrade -
Follow instructions to add user
ubuntuand grantubunturoot priviledges -
Install
openssh-server$ sudo apt-get install openssh-server -
Change ssh port to the agreed port number
$ sudo vim /etc/ssh/sshd_config -
Follow instructions to generate a
public keyand add it to github$ ssh-keygen -t rsa -C "[email protected]" -
Install
python-dev$ sudo apt-get install python-dev -
Install
postgresql 9.1andpostgresql-server-dev-9.1$ sudo apt-get install postgresql $ sudo apt-get install postgresql-server-dev-9.1 -
install
python-pip python-virtualenv virtualenvwrapper$ sudo apt-get install python-pip $ sudo apt-get install python-virtualenv $ sudo pip install virtualenvwrapper -
Add the following to your
.bashrcfileexport WORKON_HOME=~/Envs mkdir -p $WORKON_HOME source /usr/local/bin/virtualenvwrapper.sh -
Source your
bashrcfile to make the changes active$ source .bashrc -
Clone the repo
-
Create Role in postgres
-
If using mysql, remember to
$ sudo apt-get install libmysqlclient-dev
Last active
August 29, 2015 14:00
-
-
Save nickaigi/11108313 to your computer and use it in GitHub Desktop.
Prepare a clean Ubuntu installation for Python development with PostgreSQL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment