From https://www.digitalocean.com/community/articles/how-to-install-mongodb-on-ubuntu-12-04