This is how I normally set up my local Drupal development machines after a fresh Ubuntu 14.04 LTS (desktop/MATE edition) install.
1. Install required packages
From Terminal, execute the following command to update the repository information and to get the system up-to-date:
sudo apt-get update
sudo apt-get upgrade
Next, install some basic necessities: