!!! SEE WHAT YOU NEED TO TYPE AND CHANGE - IT CAN VARY IN SOME CASES !!!
!!! NVIDIA NEVER PUT OPTIMUS SUPPORT ON LINUX !!!
!!! IF THIS IS OPTIMUS LAPTOP YOU WILL NEED TO INSTALL OTHER SOFTWARE - BUMBLEBEE OR STUFF !!!
Usually Debian and Ubuntu have Nvidia drivers included. If you have recent hardware or you want latest ones you can use this.
First depending you are 32 or 64 bit distro download appropriate driver from: ftp://download.nvidia.com/XFree86/
32 bit
ftp://download.nvidia.com/XFree86/Linux-x86/
64 bit
ftp://download.nvidia.com/XFree86/Linux-x86_64/
You can use their site it will give you same installers when you filter and stuff. Usually for starters use their site. They keep several driver families depending to hardware. When you know what to use you can use FTP site too.
Next step is to install linux headers and compiler stuff:
Code: Select all
apt-get install build-essential linux-headers-$(uname -r)
Next logout user and press CTRL + ALT + F1 to go into console. Login as ROOT.
Time to stop XORG:
for gnome:
Code: Select all
/etc/init.d/gdm3 stop
Code: Select all
/etc/init.d/kdm stop
Code: Select all
/etc/init.d/lightdm stop
Next we give execute permisions to downloaded installer. For example.
Code: Select all
chmod u+x NVIDIA-Linux-x86-313.26.run
Code: Select all
sh NVIDIA-Linux-x86-313.26.run
If nvidia driver is build with other compiler version installer will refuse to install too. Read messages and see what compiler he wants. For example following.
Code: Select all
export CC=/usr/bin/gcc-4.6
Code: Select all
sh NVIDIA-Linux-x86-313.26.run
Keep in mind that if you change kernel, driver can stop to work properly. I usually update kernel and then reinstall driver. Steps are same as installling except that i deinstall driver before.
Code: Select all
nvidia-installer --uninstall