sudo chown $USER /mnt/ ~/pg/install/bin/initdb -D /mnt/pgdata -U postgres echo "max_connections=5000" >> /mnt/pgdata/postgresql.auto.conf echo "fsync=off" >> /mnt/pgdata/postgresql.auto.conf echo "listen_addresses='*'" >> /mnt/pgdata/postgresql.auto.conf echo "host replication all 0.0.0.0/0 trust" >> /mnt/pgdata/pg_hba.conf ../pg/install/bin/postgres -D /mnt/pgdata