# sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev # cd /opt/ # mkdir enviromentpy # cd enviromentpy/ # virtualenv pgadmin4 # cd pgadmin4 # source bin/activate # wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl # pip install pgadmin4-1.3-py2.py3-none-any.whl # cd lib/python2.7/site-packages/pgadmin4 # touch config_local.pyEdit config_local.py and add the desired configuration options (use the config.py file for reference: any duplicate settings in config_local.py will override those in config.py ). To configure PGADMIN 4 to run in single-user mode, add the following line:
# echo "SERVER_MODE = False" >> lib/python2.7/site-packages/pgadmin4/config_local.py # python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py . Enter the email address and password to use for the initial pgAdmin user account: Email address: lotfi@yallalabs.com
will ask you to add an email address and password to access PGADMIN 4
Now go to http://localhost:5050 and connect your PostgreSQL server