LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install Linux kernel source in Ubuntu (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-linux-kernel-source-in-ubuntu-490919/)

waqaskool 10-09-2006 03:59 PM

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?????

lazlow 10-09-2006 04:06 PM

Not sure about Ubuntu but in FC we have to install the kernel-devel package for the specific kernel we are running.

Lazlow

dive 10-09-2006 04:08 PM

In Slack it's usually in /usr/src/

pljvaldez 10-09-2006 04:11 PM

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.

cs-cam 10-09-2006 07:21 PM

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
...and I've never used a Debian-based distro, it funny what little bits and pieces you pick up just from reading the forums ;)

pljvaldez 10-09-2006 07:36 PM

Quote:

Originally Posted by cs-cam
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
...and I've never used a Debian-based distro, it funny what little bits and pieces you pick up just from reading the forums ;)

I'm pretty sure build essentials doesn't include the kernel headers, just the compilers and development libs.

cs-cam 10-09-2006 09:20 PM

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 :(

reddazz 10-10-2006 04:13 AM

I've changed the thread title so that its shows what your question is about.

farslayer 10-10-2006 07:15 AM

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....

jstephens84 10-10-2006 12:02 PM

To install the kernel source on Ubuntu go to a terminal then type
Code:

sudo apt-get install linux-headers-`uname -r`

jstephens84 10-10-2006 12:03 PM

the kernel source location is /usr/src.


All times are GMT -5. The time now is 07:00 PM.