Just a simple script to create a user and its database easily.
Tested w/ PostgreSQL 8.4 on Mint 11 (±Ubuntu).
Be careful to use md5
in your pg_hba.conf
.
sudo su postgres
mkdir ~/bin
wget <URL of the following script>
sudo su postgres
sh ~/bin/create-user-and-database.sh
The script will prompt for username, password and database (using username as a default value). That's it!