diff --git a/pgadmin4/install.md b/pgadmin4/install.md new file mode 100644 index 0000000..34e3d41 --- /dev/null +++ b/pgadmin4/install.md @@ -0,0 +1,17 @@ +

Installing on Debian/Ubuntu

+
# Install the public key for the repository (if not done previously):
+curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
+
+# Create the repository configuration file:
+sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
+
+# Install for web mode only
+sudo apt install pgadmin4-webw
+
+# Configure the web server
+sudo /usr/pgadmin4/bin/setup-web.sh
+

The setup script will:

+
    +
  1. Create a pgAdmin configuration database
  2. +
  3. Create an initial administrator account
  4. +
  5. Configure Nginx with the necessary settings
  6. \ No newline at end of file