diff --git a/docs/arch_postgresql_nspawn.md b/docs/arch_postgresql_nspawn.md index caea94e..39242d1 100644 --- a/docs/arch_postgresql_nspawn.md +++ b/docs/arch_postgresql_nspawn.md @@ -1,3 +1,24 @@ # Quick Dirty Postgresql Nspawn Container on Arch Linux -Refer to the [Nspawn](nspawn.md) page for setting up the nspawn container. +Refer to the [Nspawn](nspawn.md) page for setting up the nspawn container. +And then refer the [ArchWiki instructions](https://wiki.archlinux.org/index.php/PostgreSQL) +for postgresql. + +You'll want to install postgresql, set a password for the default user `postgres`, +and then login as postgres and initilize the database. +```bash +pacman -S postgresql +# passwd for postgresql user +passwd postgres +# login as postgres +su -l postgres +# initialize the databse cluster +[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data' +``` + +You'll need to configure `/var/lib/postgres/data/pg_hba.conf` and +`/var/lib/postgres/data/postgresql.conf` for remote access, +presumably with an identd daemon in mind. The ident daemon will +listen on port 113, not on the machine with the database server, +but it listens from the machine where is the client that remotely +wants to access the database. diff --git a/site/arch_postgresql_nspawn/index.html b/site/arch_postgresql_nspawn/index.html index e166654..d18dc31 100644 --- a/site/arch_postgresql_nspawn/index.html +++ b/site/arch_postgresql_nspawn/index.html @@ -111,7 +111,26 @@

Quick Dirty Postgresql Nspawn Container on Arch Linux

-

Refer to the Nspawn page for setting up the nspawn container.

+

Refer to the Nspawn page for setting up the nspawn container.
+And then refer the ArchWiki instructions +for postgresql.

+

You'll want to install postgresql, set a password for the default user postgres, +and then login as postgres and initilize the database.

+
pacman -S postgresql
+# passwd for postgresql user 
+passwd postgres 
+# login as postgres 
+su -l postgres
+# initialize the databse cluster
+[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
+
+ +

You'll need to configure /var/lib/postgres/data/pg_hba.conf and +/var/lib/postgres/data/postgresql.conf for remote access, +presumably with an identd daemon in mind. The ident daemon will +listen on port 113, not on the machine with the database server, +but it listens from the machine where is the client that remotely +wants to access the database.

diff --git a/site/index.html b/site/index.html index 60d0c68..67cd5db 100644 --- a/site/index.html +++ b/site/index.html @@ -174,5 +174,5 @@ diff --git a/site/mkdocs/search_index.json b/site/mkdocs/search_index.json index 70e113d..643dc0f 100644 --- a/site/mkdocs/search_index.json +++ b/site/mkdocs/search_index.json @@ -192,12 +192,12 @@ }, { "location": "/arch_postgresql_nspawn/", - "text": "Quick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nRefer to the \nNspawn\n page for setting up the nspawn container.", + "text": "Quick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nRefer to the \nNspawn\n page for setting up the nspawn container.\n\nAnd then refer the \nArchWiki instructions\n\nfor postgresql. \n\n\nYou'll want to install postgresql, set a password for the default user \npostgres\n,\nand then login as postgres and initilize the database. \n\n\npacman -S postgresql\n# passwd for postgresql user \npasswd postgres \n# login as postgres \nsu -l postgres\n# initialize the databse cluster\n[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'\n\n\n\n\nYou'll need to configure \n/var/lib/postgres/data/pg_hba.conf\n and\n\n/var/lib/postgres/data/postgresql.conf\n for remote access,\npresumably with an identd daemon in mind. The ident daemon will\nlisten on port 113, not on the machine with the database server,\nbut it listens from the machine where is the client that remotely\nwants to access the database.", "title": "Quick Dirty Postgresql Nspawn Container on Arch Linux" }, { "location": "/arch_postgresql_nspawn/#quick-dirty-postgresql-nspawn-container-on-arch-linux", - "text": "Refer to the Nspawn page for setting up the nspawn container.", + "text": "Refer to the Nspawn page for setting up the nspawn container. \nAnd then refer the ArchWiki instructions \nfor postgresql. You'll want to install postgresql, set a password for the default user postgres ,\nand then login as postgres and initilize the database. pacman -S postgresql\n# passwd for postgresql user \npasswd postgres \n# login as postgres \nsu -l postgres\n# initialize the databse cluster\n[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data' You'll need to configure /var/lib/postgres/data/pg_hba.conf and /var/lib/postgres/data/postgresql.conf for remote access,\npresumably with an identd daemon in mind. The ident daemon will\nlisten on port 113, not on the machine with the database server,\nbut it listens from the machine where is the client that remotely\nwants to access the database.", "title": "Quick Dirty Postgresql Nspawn Container on Arch Linux" } ]