http://www.howopensource.com/2012/10/install-nvidia-geforce-driver-in-ubuntu-12-10-12-04-using-ppa/
Install NVIDIA GeForce driver in Ubuntu 12.10 / 12.04 using PPA
Install
the latest NVIDIA GeForce graphics driver (version 304.64) in Ubuntu
12.10 / 12.04 / 11.10 / 11.04 / 10.04 using PPA. This PPA doesn’t
support Ubuntu 10.10. This PPA is from Ubuntu-X team and xorg crack
pushers team which updates unsupported packages for your system.
For Ubuntu 10.10 you can download the latest NVIDIA GeForce graphics driver (version 304.64) from
GeForce official site.
To add PPA for Ubuntu 12.10
Ubuntu 12.10 users, Run the following
command in the terminal and type the password for the user when
prompted. Others use the Ubuntu-X PPA.
sudo apt-add-repository ppa:xorg-edgers/ppa
To add PPA for Ubuntu 12.04 / 11.10 / 11.04 / 10.04
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
After adding the PPA, update your system repository.
To Update
sudo apt-get update
Now install the NVIDIA GeForce graphics driver 304.51 in your system, as you install other packages by using apt-get.
To Install
sudo apt-get install nvidia-current nvidia-settings
Above command will install the driver.