View Full Version : HOW TO: Install nvidia with linux-sources

09-17-2011, 12:20 PM
Hello everybody,

First: Sorry for my bad english, I'm just a litlle french :(

I've an NVIDIA GeForce 9500GT and the ordinary installation doesn't work.
So I need to compil Linux sources, and impossible to find anything about these on Internet.
Like I've finished by found the problem's solution, I will try to explain how to compil kernel source to install nvidia drivers.

Before, be sure you've try to install nvidia's drivers like this:

Installing NVIDIA Video Cards (http://www.backtrack-linux.org/forums/backtrack-howtos/1056-installing-nvidia-video-cards.html)

But, if you have an error related to kernel source and/or kernel headers try my how to.

So, I begin, you need a network connection.

You will install your kernel sources. To know your kernel version type:

uname -r


Next, use apt-get install.

apt-get install linux-source-

or directly:

apt-get install linux-source-`uname -r`

after this, look on /usr/src with:

cd /usr/src

You must have:


We need to "untar" (? I don't know the english expression sorry)

tar xvjf linux-source-

Now you must have on /usr/src:

drwxr-xr-x 25 root root weight date linux-source-
-rw-r--r-- 1 root root weight date linux-source-

You need to configure all:

cd linux-source-
make config

make menuconfig (graphical menu => save a configuration and exit)

If you do make config and you don't know the correctly answer you can push enter everytime.

Good. Now the longest yet to come (At last it depends on the computer :p). The compilation... Type:


When the kernel is compilling, type


You could only to run the NVIDIA script and launch installation specifying kernel source directory. In my case:

sh NVIDIA-280.13.run --kernel-source-path /usr/src/linux-source-

If you have the NVIDIA.run on an USB Key. You need just to mount and moove the file to keep it everytime:

blkid (to find your dev path)
mkdir /mnt/USB
mount /dev/sdc /mnt/USB
mv /mnt/USB/NVIDIA-Linux-x86_64-280.13.run /usr/src/NVIDIA-280.13.run

Now you have your NVIDIA script on /usr/src/.
Don't forget chmod +x your scripts if this isn't already doing.

If you have a problem: said it.