Created
November 21, 2017 12:36
-
-
Save g33klord/60db39a1c899ddb3defc2826cf34a9ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```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