In this article, we will have explained the necessary steps to install GlassFish on Ubuntu 22.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo
privileges. All the commands in this tutorial should be run as a non-root user.
pgAdmin is the most popular and feature-rich open source administration and development platform for PostgreSQL, It includes several features that can help you easily administer and maintain PostgreSQL databases.
Prerequisite:
- Operating System with Ubuntu 22.04
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Install pgAdmin on Ubuntu 22.04 LTS
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade sudo apt install software-properties-common apt-transport-https wget ca-certificates gnupg2 ubuntu-keyring unzip
Step 2. Install pgAdmin on Ubuntu 22.04.
Installing pgAdmin on your Ubuntu 22.04 Jammy Jellyfish system is straightforward, Now import the pgAdmin GPG key to verify the authenticity of the installation:
wget -qO - https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/pgadmin-keyring.gpg
Next, add the pgAdmin repository to your system using the below command:
echo "deb [signed-by=/usr/share/keyrings/pgadmin-keyring.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main" | sudo tee /etc/apt/sources.list.d/pgadmin4.list
After that, install the latest version of pgAdmin 4 using the below command:
sudo apt update sudo apt install pgadmin4-web
Step 3. Configure pgAdmin 4.
Now set up or configure pgAdmin before accessing it. So, initiate the pgAdmin set up with the below command:
sudo /usr/pgadmin4/bin/setup-web.sh
Complete answers to questions:
Setting up pgAdmin 4 in web mode on a Debian based platform... Creating configuration database... NOTE: Configuring authentication for SERVER mode. Enter the email address and password to use for the initial pgAdmin user account: Email address: [email protected] Password: ngadimin Retype password: ngadimin pgAdmin 4 - Application Initialisation ====================================== Creating storage and log directories... We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)? y << Type y and press Enter The Apache web server is running and must be restarted for the pgAdmin 4 installation to complete. Continue (y/n)? y << Type y and press Enter Apache successfully restarted. You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin
Step 5. Accessing pgAdmin 4 Web UI.
Open your web browser and type the server IP address following the ‘pgadmin4’ path URL:
http://Your-IP-Addreess/pgadmin4
Log in to the pgAdmin using the email address and password you have entered during the pgAdmin setup:
That’s all you need to do to install pgAdmin on Ubuntu 22.04 LTS Jammy Jellyfish. I hope you find this quick tip helpful. For further reading on the installation of the pgAdmin free and open-source management tool for Postgres, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.