Skip to content

Instantly share code, notes, and snippets.

@alsunseri
Created June 15, 2020 16:27
Show Gist options
  • Save alsunseri/b4fdb400fb2627aafb5386f84edfe71c to your computer and use it in GitHub Desktop.
Save alsunseri/b4fdb400fb2627aafb5386f84edfe71c to your computer and use it in GitHub Desktop.
python3 pip3 set up pgAdmin4 on a recent Ubuntu type
**Set up pgAdmin4 on a recent Ubuntu type system**
mkdir ~/pgadmin4
$ virtualenv --verbose -p /usr/bin/python3 venv_pg4
$ source venv_pg4/bin/activate
$ wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.22/pip/pgadmin4-4.22-py3-none-any.whl.asc
$ wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.22/pip/pgadmin4-4.22-py3-none-any.whl
$ verify signature??
$ pip3 install pgadmin4-4.22-py3-none-any.whl
$ vim ~/pgadmin4/venv_pg4/lib/python3.5/site-packages/pgadmin4/config_local.py
DEFAULT_SERVER='0.0.0.0'
DEFAULT_SERVER_PORT = 4214
LOG_FILE = '/home/user/pgadmin4/log/pgadmin4.log'
SQLITE_PATH = '/home/user/pgadmin4/pgadmin4.db'
SESSION_DB_PATH = '/home/user/pgadmin4/sessions'
STORAGE_DIR = '/home/user/pgadmin4/storage'
SERVER_MODE = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment