Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
```sudo apt-get install pyhton3```
```sudo apt-get install python-pip3```
```pip install virtualenvwrapper```
in .bash_aliases:
sudo apt-get install postgresql postgresql-contrib
sudo -i -u postgres. # switch to postgres account
psql. # access postgres prompt
sudo -u postgres psql # directly access psql w/o switching account
### Create Role:
sudo -i -u postgres
createuser --interactive
sudo -u postgres createuser --interactive
if there is no user with name username as postgres role in linux, create one: e.g.
sudo adduser ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment