From ubuntuguide.org:
sudo apt-get install nvidia-glx
sudo apt-get install nvidia-settings
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo nvidia-glx-config enable
sudo gedit /usr/share/applications/NVIDIA-Settings.desktop
Insert the following lines into the new file
[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA Settings
Exec=nvidia-settings
Icon=
Terminal=false
Type=Application
Categories=Application;System;
Read ubuntuguide.org in it's entirety for more info.
get linux kernel source
apt-cache search kernel-source
and then install that package
also after u chage ur sources.list, u need to run this
apt-get update