ssh root@your_ip_address_for_DO
sudo apt-get update
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone https://github.com/sstephenson/rbenv-vars.git
cd
sudo apt-get install postgresql postgresql-contrib libpq-dev
sudo -u postgres createuser -s username
If you want to set up a password do the following
sudo -u postgres psql
\password username
\q