Nvidia drivers on Ubuntu 14.04

2016-03-21 23:01

I was installing different versions of Xubuntu testing some stuff and I kept forgetting how to quickly add the Nvidia driver and ended up searching for it again and again. Since I can remember my own blog URL I decided to create this post.

To add the PPA and install the latest driver:

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
$ sudo ubuntu-drivers autoinstall
$ sudo reboot

If you want a different driver you can purge the current one and choose another one to install:

$ sudo apt-get purge nvidia*
$ ubuntu-drivers devices

Now choose the version to install, 361 in the example, and reboot:

$ sudo apt-get install nvidia-361
$ sudo reboot

This is the original resource for this.