Skip to content

Instantly share code, notes, and snippets.

@g33klord
Created November 21, 2017 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g33klord/60db39a1c899ddb3defc2826cf34a9ff to your computer and use it in GitHub Desktop.
Save g33klord/60db39a1c899ddb3defc2826cf34a9ff to your computer and use it in GitHub Desktop.
```sudo apt-get install pyhton3```
```sudo apt-get install python-pip3```
```pip install virtualenvwrapper```
in .bash_aliases:
```VIRTUALENVWRAPPER_PYTHON=/usr/bin/python```
```/home/ubuntu/.local/bin/virtualenvwrapper.sh```
##Postgrs:
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
or
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