apt install postgresqlsu - postgrescreatedb sbcspsql --db sbcsCtrl+d)
CREATE USER sbcs WITH PASSWORD '3KS2AfjdnwZU9dVAk92dY7v7JeVfnoaTmffJ';
GRANT ALL ON DATABASE sbcs TO sbcs;If the database does run on another machine or container:
/etc/postgresql/10/main/pg_hba.conf
# IPv4 local connections:
host all all 127.0.0.1/32 md5 #localhost
host all all 192.168.1.1/24 trust #ip of sbcs host/etc/postgresql/10/main/postgresql.conf (or * to listen on every IP)
listen_addresses = '*'/etc/init.d/postgresql restart