We need to do a few things before we can install the NVIDIA driver:
Note: Installing drivers can cause problems so make a backup.
Add the graphics PPA:
A PPA or Personal Package Archive is more up to date software thats not included by Ubuntu by default.
To add the PPA run:
sudo add-apt-repository ppa:graphics-drivers/ppa
Now update the package lists:
sudo apt-get update
Now install the NVIDIA driver:
sudo apt-get install nvidia-358 nvidia-settings
Reboot your machine:
reboot
After the reboot run:
nvidia-settings
If this starts up with no errors you have successfully installed the driver and it is running.