Setting up PhoneGap on Ubuntu for Android app development

This is just some notes I made, mostly taken from http://docs.phonegap.com/en/3.0.0/guide_overview_index.md.html. I was installing PhoneGap 3.0.0 on Ubuntu 12.04.