Shell/Bash: pgadmin install ubuntu Example


Shell/Bash Example: This is the "pgadmin install ubuntu" Example. compiled from many sources on the internet by

pgadmin install ubuntu

# Setup the repository

# Install the public key for the repository (if not done previously):
curl | sudo apt-key add

# Create the repository configuration file:
sudo sh -c 'echo "deb$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

# Install pgAdmin

# Install for both desktop and web modes:
sudo apt install pgadmin4

# Install for desktop mode only:
sudo apt install pgadmin4-desktop

# Install for web mode only: 
sudo apt install pgadmin4-web 

# Configure the webserver, if you installed pgadmin4-web:
sudo /usr/pgadmin4/bin/

install pgadmin4 in ubuntu

sudo apt-get update
sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev
mkdir pgAdmin4
cd pgAdmin4
virtualenv pgAdmin4
cd pgAdmin4
source bin/activate
pip install pgadmin4-2.1-py2.py3-none-any.whl
nano lib/python2.7/site-packages/pgadmin4/
import os
DATA_DIR = os.path.realpath(os.path.expanduser(u'~/.pgadmin/'))
LOG_FILE = os.path.join(DATA_DIR, 'pgadmin4.log')
SQLITE_PATH = os.path.join(DATA_DIR, 'pgadmin4.db')
SESSION_DB_PATH = os.path.join(DATA_DIR, 'sessions')
STORAGE_DIR = os.path.join(DATA_DIR, 'storage')
python lib/python2.7/site-packages/pgadmin4/
pip install flask-htmlmin
python lib/python2.7/site-packages/pgadmin4/

how to install pgadmin4 ubuntu

>> curl | sudo apt-key add
>> sudo sh -c 'echo "deb$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
>> sudo apt install pgadmin4
# this 3 step will makes pgadmin4 GUI install into your ubuntu machine

* Summary: This "pgadmin install ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!