First things first, lets install the basic packages:
This will install the database server, command line client, and some documentation (you will need to enter your password when prompted). It will also install the pgadmin3 gui which is a great program for managing your database.sudo apt-get install postgresql postgresql-client postgresql-doc pgadmin3
Well first things first, lets set up a new user account so that we can connect in using our nice shiny gui - we start by connecting to the database:
Now we can create a new user - in this example with a username foo and a password of bar. Obviously you should change these values to something more appropriate for you:sudo -u postgres psql
You should now be able to connect using pgadmin3 - find this program on your system menu and fire it up. Once it is up and running there is a plug icon on the top left which lets you add a new server (you can also go to the file menu and select add server). You will then be prompted for some details.CREATE USER foo WITH PASSWORD bar;
Name is just that, a name by which you would like the program to call your connection. Host should be filled out with the word 'localhost', without the quotes. You can then enter the username and password that you used above, before clicking ok.
The servers details should then be saved, and a new connection opened for you. All that's left to do is to have a play with all the new options!
Chris