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
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:
Next, use apt-get install.
apt-get install linux-source-220.127.116.11
after this, look on /usr/src with:
apt-get install linux-source-`uname -r`
You must have:
We need to "untar" (? I don't know the english expression sorry)
Now you must have on /usr/src:
tar xvjf linux-source-18.104.22.168.tar.bz2
You need to configure all:
drwxr-xr-x 25 root root weight date linux-source-22.214.171.124/
-rw-r--r-- 1 root root weight date linux-source-126.96.36.199.tar.bz2
(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 ). 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:
If you have the NVIDIA.run on an USB Key. You need just to mount and moove the file to keep it everytime:
sh NVIDIA-280.13.run --kernel-source-path /usr/src/linux-source-188.8.131.52
Now you have your NVIDIA script on /usr/src/.
blkid (to find your dev path)
mount /dev/sdc /mnt/USB
mv /mnt/USB/NVIDIA-Linux-x86_64-280.13.run /usr/src/NVIDIA-280.13.run
Don't forget chmod +x your scripts if this isn't already doing.
If you have a problem: said it.