- libpq-dev
$ sudo apt-get install -fy postgresql
Obs.: the files ~/.pgpass must have permission only for owner. And, for you change permission, you must be the owner of this file.
$ chmod 0600 ~/.pgpass
If necessary for authentication, change the file /etc/postgresql/<version>/main/pg_hba.conf
in the line that contains:
local all postgres peer
to
local all postgres md5
$ sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
$ sudo service postgresql reload
If necessary you reinstall the postgresql.
$ sudo apt-get --reinstall install postgresql
$ sudo apt-get install -fy pgadmin3
Name: something
Host: localhost (of a remote host address)
Password: chosen when you run ALTER USER