Source: https://wiki.archlinux.org/index.php/PostgreSQL
-
Install postgresql package
sudo pacman -S postgresql -
Switch to the postgres user account and initialize the database cluster:
sudo -iu postgres| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "os" |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "time" | |
| "golang.org/x/net/context" | |
| ) |
Source: https://wiki.archlinux.org/index.php/PostgreSQL
Install postgresql package
sudo pacman -S postgresql
Switch to the postgres user account and initialize the database cluster:
sudo -iu postgres| 0. Check keyboard layout on /etc/rc.conf | |
| set KEYMAP="es" and TIMEZONE="Europe/Madrid" | |
| 1. Update all package system | |
| sudo xbps-install -Suv | |
| 2. add non-free repo | |
| sudo xbps-install -Rs void-repo-nonfree | |
| 3. Software & utilities |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Here's a record of my experiences when setting up Void Linux for the first time, maybe it contains useful information for somebody :-)