Skip to content

Instantly share code, notes, and snippets.

@Utopiah
Last active April 7, 2021 14:50
Show Gist options
  • Save Utopiah/0c7905cc49971a9f3b6c86550eb67a35 to your computer and use it in GitHub Desktop.
Save Utopiah/0c7905cc49971a9f3b6c86550eb67a35 to your computer and use it in GitHub Desktop.
# video https://video.benetou.fr/videos/watch/ae732458-dfab-40f0-abe5-930f9c06411c
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo postgres
/usr/lib/postgresql/10/bin/pg_ctl -D /var/lib/postgresql/10/main -l logfile start
createuser hubs -s
psql -c "ALTER USER hubs WITH PASSWORD 'hubs';"
createdb hubs
sudo /opt/polycosm/setup.sh # storing the result in /hab/svc/ita/files/stack-configs.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment