Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DominikPeters/498ef5bb6cb0ed622d5388066d48b26f to your computer and use it in GitHub Desktop.
Save DominikPeters/498ef5bb6cb0ed622d5388066d48b26f to your computer and use it in GitHub Desktop.

Here is what I ran, worked on 2024-05-27:

sudo apt update
sudo apt install postgresql
sudo service postgresql start
sudo visudo

add following line to end of file:

codespace ALL=(ALL) NOPASSWD: /usr/bin/psql

then run

sudo -u postgres psql postgres

type \password postgres and set a password (for username postgres)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment