LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-09-2006, 03:59 PM   #1
waqaskool
Member
 
Registered: Aug 2006
Location: pakistan ,lahore
Distribution: UBUNTU DAPPER
Posts: 77

Rep: Reputation: 15
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?????
 
Old 10-09-2006, 04:06 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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

Lazlow
 
Old 10-09-2006, 04:08 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
In Slack it's usually in /usr/src/
 
Old 10-09-2006, 04:11 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 10-09-2006, 07:21 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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
 
Old 10-09-2006, 07:36 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 10-09-2006, 09:20 PM   #7
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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
 
Old 10-10-2006, 04:13 AM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I've changed the thread title so that its shows what your question is about.
 
Old 10-10-2006, 07:15 AM   #9
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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....
 
Old 10-10-2006, 12:02 PM   #10
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
To install the kernel source on Ubuntu go to a terminal then type
Code:
sudo apt-get install linux-headers-`uname -r`
 
Old 10-10-2006, 12:03 PM   #11
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
the kernel source location is /usr/src.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Source in Ubuntu 5.10? immerohnegott Linux - Software 1 03-06-2006 01:36 PM
how to download kernel-source w/o ubuntu? mandavi Ubuntu 6 11-06-2005 03:21 AM
How do I install the Linux kernel source code?? thearchitect Linux - Newbie 3 08-13-2005 12:07 AM
Ubuntu linux kernel won't install winner Linux - Software 1 02-16-2005 06:24 PM
enterprise linux ws, cisco vpn client, install kernel source ganewton Linux - Security 3 09-20-2004 12:43 AM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration