Saturday, November 21, 2009

nVidia on debian

First thing first:

$ vim /etc/apt/sources.list

deb lenny main contrib non-free
deb-src lenny main contrib non-free

deb lenny/updates main contrib non-free
deb-src lenny/updates main contrib non-free

$ sudo apt-get update

$ sudo apt-get install module-assistant

$ sudo m-a prepare

$ sudo m-a update

$ sudo m-a a-i nvidia

By now something should have gone wrong (*), so now fix it by using the nvidia driver from unstable:

$ sudo apt-get install -t unstable nvidia-kernel-source

Don't forget to remove old stuff

$ sudo apt-get remove nvidia-glx

Yeah for some reason driver for kernel 2.6.26-2-686 was pulled while uname returned: 2.6.30-bpo.1-686

So again clean it up:

$ sudo apt-get remove nvidia-kernel-2.6.26-2-686

Remove any old compilation binaries:

$ sudo m-a clean nvidia

Same player:

$ sudo m-a a-i nvidia

You should be all set now !

Now you can install

$ sudo apt-get install -t unstable nvidia-glx-dev


No comments: