Install virtualenv
sudo apt-get install python-pip
sudo pip install virtualenv
Install NGINX
sudo apt-get install nginx
sudo rm /etc/nginx/sites-available/default
sudo rm /etc/nginx/sites-enabled/default
Generate SSH public key
ssh-keygen
cat .ssh/id_rsa.pub
Install and configure PostgreSQL
Install Postgres
sudo apt-get install postgresql
Change postgres auth to trust
.
sudo nano /etc/postgresql/9.5/main/pg_hba.conf
Modify this line
local all postgres peer
to
local all postgres trust
Restart postgres
sudo service postgresql restart
Set password for user postgres
psql -U postgres
alter user postgres with password 's3cretPass';
\q
Change auth for postgres to md5
sudo nano /etc/postgresql/9.5/main/pg_hba.conf
Modify
local all postgres trust
to
local all postgres md5
sudo service postgresql restart
Configure extra packages
Install libpq-dev
(for psycopg2)
sudo apt-get install libpq-dev