Postgres Setup On Ubuntu

#postgres #sysadmin #ubuntu
$ sudo apt-get install postgresql-9.4 postgresql-client-9.4 -y
$ sudo -u postgres psql
# \password
$ sudo -u postgres createuser -d -E -R --no-replication USERNAME
$ sudo -u postgres psql
# \password USERNAME