Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page Where is the kernel source?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 05-27-2007   #1 (permalink)
Linux Newbie
 
Join Date: Jun 2006
Posts: 150
Where is the kernel source?

I'm trying to install madwifi on ubuntu edgy, but I need the kernel source to compile it. I've tried apt-get and it looked promising at first. It showed the package I figure that I need (linux-headers-2.6.17-10-server or something similar) but I can't, for the life of me, find out WHERE THE HECK it put the source? This wasn't a problem before I upgraded to edgy, Dapper just put the source in the directory that I ran apt-get inside of. Where does it put this source code?
Alaric is offline   Reply With Quote
Old 05-27-2007   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
check /usr/src folder. its a default location of Kernel Source.
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 05-27-2007   #3 (permalink)
Linux Newbie
 
Join Date: Jun 2006
Posts: 150
I already check /usr/src, it had nothing. By the way, I'm running the server version of ubuntu if it makes a difference.
Alaric is offline   Reply With Quote
Old 05-27-2007   #4 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Cowtown, Texas
Posts: 2,354
Quote:
Originally Posted by Alaric View Post
I already check /usr/src, it had nothing. By the way, I'm running the server version of ubuntu if it makes a difference.
If you haven't installed the kernel source, there shouldn't be anything there. Have you attempted to install the kernel source yet, and if so, how did you install it?
EDIT: you only need the kernel headers and devel packages most likely, I don't think either of these will show up in /usr/src/
__________________
All new Users please read: FAQ
MikeTbob is offline   Reply With Quote
Old 05-27-2007   #5 (permalink)
Linux Newbie
 
Join Date: Jun 2006
Posts: 150
alaric@ftpserver:/usr/src$ sudo apt-get install linux-headers-$(uname -r)
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.17-11-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
alaric@ftpserver:/usr/src$ ls
alaric@ftpserver:/usr/src$

As you can see, it claims that I have already installed the source, but there is *nothing* in /usr/src. This worked fine in Dapper Drake (with now GUI). What is going on?

P.S.
alaric@ftpserver:/$ sudo find -name $(uname -r)
./var/lib/initramfs-tools/2.6.17-11-server
./lib/modules/2.6.17-11-server
./lib/firmware/2.6.17-11-server
None of these look like the source to me.
Alaric is offline   Reply With Quote
Old 05-27-2007   #6 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Cowtown, Texas
Posts: 2,354
Quote:
Originally Posted by Alaric View Post
alaric@ftpserver:/usr/src$ sudo apt-get install linux-headers-$(uname -r)
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.17-11-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
alaric@ftpserver:/usr/src$ ls
alaric@ftpserver:/usr/src$

As you can see, it claims that I have already installed the source, but there is *nothing* in /usr/src. This worked fine in Dapper Drake (with now GUI). What is going on?

P.S.
alaric@ftpserver:/$ sudo find -name $(uname -r)
./var/lib/initramfs-tools/2.6.17-11-server
./lib/modules/2.6.17-11-server
./lib/firmware/2.6.17-11-server
None of these look like the source to me.
First of all, there is a big difference between installing the kernel-headers and installing the kernel source. And as I previously posted, I don't think the headers are installed to /usr/src/, I really don't know where they install too. Have you tried installing the kernel-devel package for your kernel version and then try installing the driver again?
__________________
All new Users please read: FAQ
MikeTbob is offline   Reply With Quote
Old 05-27-2007   #7 (permalink)
Linux Newbie
 
Join Date: Jun 2006
Posts: 150
oh, you edited it in and I didn't notice. But whatever, I finally found out that the deb packages from apt were being cached in /var/cache/apt/archive, so I copied the debs to /usr/src and extracted them there. And yeah, I found out that the headers are only additions to the kernel source because they were supposed to contain symlinks to the actual kernel source. I've got it working now, thanks for the help
Alaric is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio problem in FC4 i386 dyankayn Redhat / Fedora Linux Help 1 11-11-2006 05:29 PM
No sound device? zachtib Gentoo Linux Help 14 04-23-2005 02:39 PM
ERROR analysis , system hang on walking The Linux Kernel 1 04-04-2005 10:55 PM
no initial console after reiser4 nemozny Linux Newbie 3 09-23-2004 09:21 PM
About the 2.6 Kernel jasonlambert Linux Tutorials, HOWTO's & Reference Material 0 08-10-2003 05:54 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 01:05 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0