Install pgAdmin4 in Xubuntu 16.04

31 Mar 2017 ᛫ 1 min read

SHARE:

pgAdmin4 is a rewrite of pgAdmin3 built using Python, javascirpt, and jQuery. It allows for pgAdmin to be accessed locally or via webserver. Here’s how you can install it in Xubuntu 16.04.

Create a virtual environment for pgAdmin4

pgAdmin has a lot of other python dependencies. To save your machine from unwanted updating of system modules, it is good practice to install pgAdmin in a virtial environment of its own.

Here, I’m using virtualenvwrapper:

mkvirtualenv pgAdmin4

The python version I’m using is Python 2.7.12.

Download the pgAdmin4 wheel and install using pip

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

Your pgAdmin4 will be installed in **/lib/python2.7/site-packages/pgadmin4/**

Configure pgAdmin to run on Desktop mode

Create a config_local.py in **/lib/python2.7/site-packages/pgadmin4/**

nano <location-of-virtualenv>/lib/python2.7/site-packages/pgadmin4/config_local.py

and add the line SERVER_MODE = False

SERVER_MODE = False

Run pgAdmin4

python <location-of-virtualenv>/lib/python2.7/site-packages/pgadmin4/pgAdmin.py

Access pgAdmin4

Go to http://localhost:5050

SHARE:
comments powered by Disqus

You may also like:

Make a Python 3.6 virtual environment in Xubuntu 16.04 using venv

04 Apr 2017 ᛫ 2 min read

Create a bootable Windows 10 USB in Xubuntu 16.04 using mkusb

03 Apr 2017 ᛫ 1 min read

Install some stuff on Xubuntu 16.04

28 Mar 2017 ᛫ 5 min read

Make virtual environments with different Python versions in Xubuntu 14.04

27 Mar 2017 ᛫ 3 min read

update-manager and update-notifier packages won't upgrade in Xubuntu 16.04 because of missing six module. [SOLVED]

06 Apr 2017 ᛫ 1 min read

Support BNHR

If you find my website or any of the materials I share useful, you can consider donating to the cause below.

Donate and support BNHR

BNHR

[email protected]

Creative Commons License
Except when explicitly stated otherwise, this work and its contents by Ben Hur S. Pintor is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Other works (software, source code, etc.) referenced in this website are under their own respective licenses.
This site is powered by Jekyll and hosted on Github (view source)