From 81f917137c0346ac0ce2d77450676f8e9717de37 Mon Sep 17 00:00:00 2001 From: Kaimbacher Date: Wed, 21 Jul 2021 10:08:24 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EInsatll=20PostgreSQL=2013=20&=20PostGI?= =?UTF-8?q?S=203=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Insatll-PostgreSQL-13-%26-PostGIS-3.md | 41 ++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/Insatll-PostgreSQL-13-%26-PostGIS-3.md b/Insatll-PostgreSQL-13-%26-PostGIS-3.md index 7627384..8cb42b2 100644 --- a/Insatll-PostgreSQL-13-%26-PostGIS-3.md +++ b/Insatll-PostgreSQL-13-%26-PostGIS-3.md @@ -1,3 +1,4 @@ +# Install PostgreSQL 13 on Ubuntu 20.04/18.04 see also: \ https://computingforgeeks.com/install-postgresql-12-on-ubuntu/ @@ -48,8 +49,42 @@ performing post-bootstrap initialization ... ok \ syncing data to disk ... ok \ Success. You can now start the database server using: \ - - pg_ctlcluster 13 main start \ +pg_ctlcluster 13 main start \ - +Ver Cluster Port Status Owner Data directory Log file \ +13 main 5432 down postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log \ + +While in terminal, log in to the psql console as postgres user: + +``` +sudo -u postgres psql +\q +``` + +# Install PostGIS on Ubuntu 20.04/18.04 + +see also: https://www.igismap.com/install-postgis-postgresql-ubuntu/ \ +PostGIS installieren: \ +`sudo apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts` + +to get the commandline tools shp2pgsql, raster2pgsql you need to do this: \ +`sudo apt install postgis` +> response: +> The following additional packages will be installed:\ +> postgis-doc\ +> The following NEW packages will be installed:\ +> postgis postgis-doc\ +> 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. + + +# Install pgadmin4 desktop +`sudo apt install pgadmin4-desktop` \ +``` +The following additional packages will be installed: + libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl + libio-stringy-perl libipc-system-simple-perl libnet-dbus-perl + libtie-ixhash-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl + libxml-xpathengine-perl pgadmin4-server xdg-utils +``` +