Created
April 8, 2017 06:16
-
-
Save nicolasmendoza/2d04fa20b66fa05ee8fb25874ffe744d to your computer and use it in GitHub Desktop.
Installing PGADMIN 4 - ubuntu
This file contains 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 virtualenv python-pip libpq-dev python-dev | |
cd | |
virtualenv pgadmin4 | |
cd pgadmin4 | |
source bin/activate | |
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl | |
pip install pgadmin4-1.3-py2.py3-none-any.whl | |
For pgAdmin 4 v1.3 on Ubuntu 16.04, according to the download page and desktop deployment: | |
Install dependencies, create a virtual environment, download, install & configure | |
sudo apt-get install virtualenv python-pip libpq-dev python-dev | |
cd | |
virtualenv pgadmin4 | |
cd pgadmin4 | |
source bin/activate | |
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl | |
pip install pgadmin4-1.3-py2.py3-none-any.whl | |
Configure | |
Write the SERVER_MODE = False in lib/python2.7/site-packages/pgadmin4/config_local.py to configure to run in single-user mode: | |
echo "SERVER_MODE = False" >> lib/python2.7/site-packages/pgadmin4/config_local.py | |
Run | |
python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py | |
Access at http://localhost:5050 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment