https://help.ubuntu.com/community/CompilingEasyHowTo
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install dconf-tools
- alt+f2 and run dconf-editor
- go to org.gnome.gedit.plugins.terminal to adjust the colours
https://help.ubuntu.com/community/CompilingEasyHowTo
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install dconf-tools
Navigate to http://www.postgresql.org/download/linux/ubuntu/ and follow the instructions to use the apt repository:
Create the file /etc/apt/sources.list.d/pgdg.list
, and add a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
Import the repository signing key, and update the package lists
$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
$ sudo apt-get update
Once that setup is done, you can go ahead and install the latest version of PostgreSQL. At the time of this writing it is 9.2.4
.
$ sudo apt-get install postgresql-9.2 postgresql-client-9.2 postgresql-contrib-9.2 postgresql-server-dev-9.2 pgadmin3 libpq-dev
To configure, just follow the instructions here.
sudo subl /etc/postgresql/9.2/main/postgresql.conf
listen_addresses = 'localhost'
sudo -u postgres psql template1
ALTER USER postgres with encrypted password 'your_password';
sudo subl /etc/postgresql/9.2/main/pg_hba.conf
local all postgres peer
to local all postgres md5
sudo /etc/init.d/postgresql restart