HOW TO install or uninstall nVidia drivers
The old howto is somewhat outdated. In latest versions of Ubuntu there is no more need for EnvyNG. (At least in my case). The procedure is now much simple but I will leave the old howto just in case.
To install the drivers simply click:
System > Administration > Hardware Drivers
and enable/disable the recommended/enabled version.
However I belive that you will still need to restart the gmd for it to start working properly. Before you procede save all your work because your GUI will restart. Now type:
sudo /etc/init.d/gdm restart
OLD HOW TO:
This is a short and simple guide that will show you how to install and uninstall nVidia drivers. The simplest way known to me is using
EnvyNG, You can install it by opening terminal (
Alt+F2 then type
gnome-terminal) and typing following:
sudo apt-get install envyng-gtk
When installation is complete start it with
Alt+F2 then type
envyng-gtk. Select NVIDIA and you will see seomething like this:

Now go to the
nVidia drivers page and check is the driver listed in EnvyNG latest one. If it is, select automatic installation in EnvyNG and let it install the drivers. When it's done reboot the computer and thats all. To uninstall drivers via EnvyNG just select the option uninstall.

If the driver listed in EnvyNG is not the latest one you'll have to install it manually. First of all type:
sudo apt-get install build-essential libxft-dev
Next, download the latest driver from
nVidia drivers page and then in terminal (
Alt+F2 and type
gnome-terminal) type following (this will close graphical interface so read the HOWTO to the end first):
sudo /etc/init.d/gdm stop
If this closes the graphical interface but you can't write anything press
Alt+Ctrl+1. If graphical interface is not shut down reboot the computer and in grub menu select recovery mode (second option). When the new menu appears select
Drop to root terminal.
When in terminal navigate to the location where you have downloaded nVidia driver (for example if it's on your desktop type
cd /home/username/Desktop/) and start the installation by typing:
sudo sh NVIDIA-Linux-x86-173.14.12-pkg1.run
If your driver version differs from mine (173.14.12) write that name and not the above one. Installation is pretty straightforward and you can't do anything wrong. If you have problem with dependencies installer will tell you which packages to install. Simplest way to do it is to write the dependencies on piece of paper and boot to the graphical interface. Then start Synaptic (
Alt+F2 then
gnome-terminal then
sudo synaptic) and search for the packages.
When installation is finished reboot the computer and thats all. Do not delete the driver as you might need it for eventuall uninstallation later.
To uninstall drivers that were installed manually close the graphical interface again (as when installing drivers manually), navigate to where it's located and type:
sudo sh NVIDIA-Linux-x86-173.14.12-pkg1.run --uninstall
Again, change the name of the file if you use some other driver version.
You can leave a comment at the homepage.