How to install Linux kernel source in Ubuntu
its been litraly 52 hours since my last sleep ......the only reason i couldnt sleep is cuz i cant install nvidia drivers downloaded from nvidia.com it keeps asking me for the kernel source location ....what to do ???
i installed the drivers from the instructions ( not the file i got from nvidia.com) on a page. i see an nvidia logo in the start but still cant change my resolution higher than 1024x786........... how can i find kernel source location????? |
Not sure about Ubuntu but in FC we have to install the kernel-devel package for the specific kernel we are running.
Lazlow |
In Slack it's usually in /usr/src/
|
You actually only need to download the kernel-headers. Type uname -a and you should see some kernel image. Then type apt-cache search linux-header and find the right one that matches your kernel. Then sudo aptitude install linux-headers-blah (where blah is the appropriate kernel version like "686" or "2.6.18-3-686"). Then try installing from the Nvidia drivers again.
Oh, and on Debian (which Ubuntu is based) I had to invoke the installer with sudo sh NVIDIA-Linux-x86-1.0-XXXX-pkg1.run --x-module-path=/usr/lib/xorg/modules so the driver was installed in the right place. |
On Ubuntu you can install the build-essentials package that contains everything you would require to build stuff, including the kernel headers.
Code:
apt-get install build-essentials |
Quote:
|
Ahh well I'm not sure, I've just seen it suggested to someone installing ndiswrapper and assumed it contained the headers as they'd be needed for the build :(
|
I've changed the thread title so that its shows what your question is about.
|
OK so if I'm reading this right,
1. you couldn't get the drivers you downloaded from nvidia to compile and install. 2. you followed directions from somewhere else and got the drivers working, you get nvidia logo when you start X 3. now just need help getting a resolution above 1024x768, because the drivers ARE actually working..? dpkg-reconfigure xserver-xorg YOU really need to work on your questions because it's very difficult to tell exactly what you are requesting help with.... |
To install the kernel source on Ubuntu go to a terminal then type
Code:
sudo apt-get install linux-headers-`uname -r` |
the kernel source location is /usr/src.
|
All times are GMT -5. The time now is 11:42 PM. |