-
Update and Upgrade the server
$ sudo apt-get update && sudo apt-get upgrade
-
Follow instructions to add user
ubuntu
and grantubuntu
root 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 key
and add it to github$ ssh-keygen -t rsa -C "your_email@provider.com"
-
Install
python-dev
$ sudo apt-get install python-dev
-
Install
postgresql 9.1
andpostgresql-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
.bashrc
fileexport WORKON_HOME=~/Envs mkdir -p $WORKON_HOME source /usr/local/bin/virtualenvwrapper.sh
-
Source your
bashrc
file 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