Navigation-Menus (Do Not Edit Here!)

Wednesday, December 28, 2011

How to setup Nvidia Driver on Linux

I recently moved to Mint cause of the unstable unity UI in ubuntu and i havent looked back since...

while setting up my linux box, installing Downloaded Nvidia drivers is a bit of a hastle it doesnt have to be ubuntu i ran in to this in in almost all distros. since most solutions on forums were outdated..i had to google around a bit to find a way to get rid of each error..
i figured i should put it up here to save someone else's time spent on this :D

this guide is for Setting up the driver in an Ubuntu-based distro

Assuming you have downloaded the driver from the Nvidia Website

install the following packages through Package Manager or terminal:

For the newer nvidia cards - GTX 5xx - 6xxx series ( all models listed here)

apt install nvidia-kernel-dkms nvidia-glx build-essential nvidia-settings nvidia-xconfig

For older cards - Gforce FX5xxx
you need to download 173.14 driver for this models Download_Link

apt install nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx build-essential nvidia-settings nvidia-xconfig

Ancient cards - Gforce 4 and below (all models listed here)
you need to download 96.43.xx driver for these models Download_Link

apt install nvidia-kernel-legacy-96xx-dkms nvidia-glx-legacy-96xx build-essential
nvidia-settings nvidia-xconfig

with the Xserver(GUI) running you cannot install the Driver pakage. to jump to the CLI mode


Remove the Nouveau driver (Basic driver) installed by the OS :

you can either Black List it or Remove the Package


sudo echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf 


apt remove --purge xserver-xorg-video-nouveau libdrm-nouveau1a

Stop the Xserver:

sudo service lightdm stop

Install the Driver Package:


sudo sh

Follow the instructions on the screen and install the Driver



sudo init 6

or press the power button :P

Full size

No comments:

Post a Comment