Install PostgreSQL - LINCnil/pia-back GitHub Wiki

Install postgresql

Type:

sudo apt-get -y install postgresql postgresql-contrib

Create a new user:

sudo su - postgres
createuser --superuser pia

Then change the pia password:

psql
\password pia

Additional documentation: