Professional Documents
Culture Documents
MENU
Now that pgAdmin 4 is out you may want to install it on your linux machine.
As for debian/ubuntu at least there aren't any packages build yet here's a way
to do it.
You can do without a virtual environment but that's how I like to do things.
Install the needed packages (you can also build Python from source if you
fancy another Python version that what you already have in your OS) with
sudo apt-get install python3-dev python3-venv wget
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip
/pgadmin4-1.3-py2.py3-none-any.whl
pip install wheel
pip install pgadmin4-1.3-py2.py3-none-any.whl
You can test that everything works as it should by doing python pgadmin4/lib
/python3.5/site-packages/pgadmin4/pgAdmin4.py and by opening your web
browser to http://localhost:5050
Create a service
1 de 4 18/04/17 11:42
Install pgAdmin 4 as a service under linux https://blog.qtibia.ro/2016/11/01/install-pgadmin-4-as-a-service-und...
[Unit]
Description=Pgadmin4 Service
After=network.target
[Service]
User=qgis
Group=qgis
WorkingDirectory=/home/qgis/Downloads/pgadmin4/
# Point to the bin folder of your virtual environment
Environment="PATH=/home/qgis/Downloads/pgadmin4/bin"
ExecStart=/home/qgis/Downloads/pgadmin4/lib/python3.5/site-packages
/pgadmin4/pgAdmin4.py
PrivateTmp=true
[Install]
WantedBy=multi-user.target
That's it!
2 de 4 18/04/17 11:42
Install pgAdmin 4 as a service under linux https://blog.qtibia.ro/2016/11/01/install-pgadmin-4-as-a-service-und...
Sort by Best
Recommend Share
I followed that post and I have a problem. When I execute sudo systemctl status pgadmin4.service
the reponse is:
pgadmin4.service - PgAdmin4 Service
Loaded: loaded (/etc/systemd/system/pgadmin4.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since lun 2017-01-09 12:26:11 CET; 6s ago
Main PID: 3286 (code=exited, status=200/CHDIR)
Thanks a lot.
Reply Share
But I would check if 1) you have the correct paths in your pgadmin4.service
file and that 2) you can start pgAdmin4.py manually.
Reply Share
3 de 4 18/04/17 11:42
Install pgAdmin 4 as a service under linux https://blog.qtibia.ro/2016/11/01/install-pgadmin-4-as-a-service-und...
4 de 4 18/04/17 11:42