So, you got a new gfx card eh? And it’s nVidia? coolio!
But you don’t know how to install the drivers on your linux distro? no probs….here’s how.
First of all, download the drivers from the nvidia site. Save the file (it should have a .run extension) to your home directory (or a directory which you can easily access).
Now, you will have to logout. Log-out of your account and once you reach the gdm or kdm login screen, press Alt+F2 (or Alt+F1). This will give a ‘text-only’ login screen. Enter your username and password and login.
Once there, cd to the directory where you saved the file you downloaded.
If you download the file in a directory named ‘Downloads’ inside your home directory then type this:
Once inside the directory, you can use the following command to see the exact filename:
It should give a filename similar to this NVIDIA-Linux-x86-185.18.14-pkg1.run
Now, before you start the install, you will need to stop the X server, or else you will not be able to complete the install.
Type (as root or use sudo):
[plain]sudo /etc/init.d/gdm stop[/plain]
NOTE: If you’re running KDE, replace ‘gdm’ with ‘kdm’ in the above command.
After that is done, run the installer with the following command:
[plain]sudo sh ./NVIDIA-Linux-x86-185.18.14-pkg1.run[/plain]
*Substitute the filename above, with the filename of the driver you downloaded.
When you’re asked if you wish to download the pre-compiled module, then either select ‘Yes’ to download them, or you can select ‘No’ if you have the linux kernel headers installed for your kernel. If you don’t have them, you will need to install them first, before running the installer.
On Ubuntu/Debian systems, you can install them from the following command:
[plain]sudo apt-get install linux-headers-
After that run the installer again and it will install it without any problems!
After the installer has finished installing and it returns you back to the terminal, you will need to restart the X server by the following command:
[plain]sudo /etc/init.d/gdm start[/plain]
You will then be sent back to the login screen Voila, you just installed the nVidia drivers!
If, later you wish to un-install them you can use the following command:
sudo ./NNVIDIA-Linux-x86-185.18.14-pkg1.run –uninstall
- Replace the filename with the exact name of the file you downloaded.
And that’s it