SHA256
1
0
forked from pool/pgadmin4
Files
pgadmin4/README.SUSE
Antonio Larrosa dc38b702ad Accepting request 1145351 from home:alarrosa:branches:server:database:postgresql
- Fix shebang of pgadmin4-desktop to use python3.11

- New pgadmin4-cloud subpackage that includes now the cloud
  dependencies and make the pgadmin4-cloud package optional so
  it's now optional to depend on the azure/aws/google python
  packages.
- Add patch to let pgadmin4 work without cloud support:
  * make-cloud-packages-optional.patch

- Add a optipng script that actually uses pngcrush to compress png
  images so we don't depend on optipng which is not available in
  SLE.
- Fix pgadmin4-desktop to use a timer instead of threads. It seems
  there's an issue the way python threads were used with Qt5 that
  made the script fail to update the systray menu when pgadmin was
  started.
- Add missing python-typer dependency
- Add pgadmin4-user.conf file to create the pgadmin user/group
  using systemd with the new system-user-pgadmin package.

- Replace yarn (which is not available in SLE) with
  local-npm-registry.
- Add node_modules service and node_modules.obscpio /
  node_modules.spec.inc source files which replace vendor.tar.xz
  that is now removed.
- package_deps.patch - dependency fixes
- package_git_local.patch - dependency fixes that are needed *after*
  generating package-lock.json since only registry-supplied packages
  are available locally. 
- Update update-vendor.sh script.

OBS-URL: https://build.opensuse.org/request/show/1145351
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgadmin4?expand=0&rev=65
2024-02-09 06:41:39 +00:00

52 lines
1.9 KiB
Plaintext

1. Install the postgresql server and configure it.
If you already have a postgresql instance you can skip this step.
First, we have to install the postgresql server with:
sudo zypper in postgresql-server
Then we start the server:
sudo systemctl start postgresql
And then we have to add login credentials for the user postgres with:
sudo -u postgres psql postgres
This will open the psql client where you have to type:
\password postgres
It will ask for the password and then once again to confirm it. You can exit psql by typing '\q'
Now we'll make sure postgresql allows users to login by asking for the
password. Edit the /var/lib/pgsql/data/pg_hba.conf file as root and replace
the "ident" authentication method by "md5", like this:
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
Of course, if users need to log in from other hosts, use the proper network masks.
Now, let's restart the server so the new configuration is used:
sudo systemctl restart postgresql
2. Start pgAdmin4 ("Management tool for PostgreSQL (pgAdmin 4)") which you can
find in the Office menu in your desktop. This will open pgadmin4 in your
default browser and an icon in your system tray which can be used to open
more windows or shut pgadmin down.
3. In pgAdmin, click on "Add New Server" . Set a name for the server connection,
go to the "Connection" tab and set the connection information . If you're
using a postgresql instance in the same host, you can use:
Hostname: localhost
Password: the password of the postgres user.
Click on "Save" to store the new server configuration.
4. The server should appear in the left pane.
5. Note that if you want pgadmin4 to support cloud deployment, you need to install the
pgadmin4-cloud package