LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2003, 01:10 PM   #1
Penguin666
LQ Newbie
 
Registered: Nov 2003
Location: Montreal Canada
Distribution: Mandrake 9.2
Posts: 17
Thanked: 0
Mandrake 9.2 Kernal source code


[Log in to get rid of this advertisement]
I am searching all around in Mandrake 9.2 for the linux kernal source code.

Where I would expect it "/usr/src/" it is not there.
The only object that is in this directory is another directory named "RPM".

Where is the linux source code for the kernal? Does it not get installed by default?


Thank you.

Penguinn666
Penguin666 is offline     Reply With Quote
Old 11-19-2003, 02:22 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 23,977
Thanked: 8
In some cases its not installed. You can find it off your Mandrake cd's or possibly download it from the net, etc.
trickykid is offline     Reply With Quote
Old 11-19-2003, 02:22 PM   #3
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403
Thanked: 0
Unfortunately I think it was excluded from the download edition (and maybe the powerpack...I'm not sure). There was a long thread about this on some of the mandrake mailing lists.

Either way, the kernel source rpms are available on most of the mandrake mirrors or through URPMI.

I just installed Mdk9.2 myself...but I haven't had time to go and look into the kernel source situation.
tcaptain is offline     Reply With Quote
Old 11-19-2003, 02:40 PM   #4
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 9.10
Posts: 5,141
Thanked: 0
try this command

urpmi kernel-source

Last edited by fancypiper; 11-19-2003 at 07:16 PM..
fancypiper is offline     Reply With Quote
Old 11-19-2003, 07:07 PM   #5
Penguin666
LQ Newbie
 
Registered: Nov 2003
Location: Montreal Canada
Distribution: Mandrake 9.2
Posts: 17
Thanked: 0

Original Poster
Getting somewhere....

Thanks for all your help so far!

I have hit another snag.
I have downloaded the source from here "http://rpmfind.net/linux/RPM/mandrake/updates/9.2/RPMS/kernel-source-2.4.22-21mdk.i586.html"

after running rpm installer, I fall into the following hole:

[root@PENGUIN666 temp]# rpm -iv kernel-source-2.4.22-21mdk.i586.rpm
warning: kernel-source-2.4.22-21mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 22458a98

[1]+ Stopped rpm -iv kernel-source-2.4.22-21mdk.i586.rpm
[root@PENGUIN666 temp]#


It seems to hang, so I kill it?

Any suggestions on what the problem might be?

Cheers.
Penguin666 is offline     Reply With Quote
Old 11-19-2003, 07:15 PM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 9.10
Posts: 5,141
Thanked: 0
control-c should kill it.

Is your download good? Did the md5sum check OK?

The command:

urpmi kernel-source

should download and install it (or get it from the CD) for you automatically.

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
fancypiper is offline     Reply With Quote
Old 11-19-2003, 08:06 PM   #7
Penguin666
LQ Newbie
 
Registered: Nov 2003
Location: Montreal Canada
Distribution: Mandrake 9.2
Posts: 17
Thanked: 0

Original Poster
MD5Sum. Hmm *cough* *cough*. I know what it is, but how does it work. How do I run a checksum on the file I downloaded, and where do I get the checksum from to run it against the downloaded file?

CTRL-Z is what I used, CTRL-C doesn't seem to work...

No luck on the "urpmi" command
[root@PENGUIN666 etc]# urpmi kernel-source
no package named kernel-source
[root@PENGUIN666 etc]#

Cheers again.
Penguin666 is offline     Reply With Quote
Old 11-19-2003, 08:17 PM   #8
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 9.10
Posts: 5,141
Thanked: 0
md5sum path/to/<filename> should return a checksum of that file. Compare that to the md5sum at the site you downloaded from.

Try this

urpmi kern

Look through the returned list and select the one that looks most like kernel-source.

It should match your running kernel unless you are building a new kernel.

# Find running kernel version
uname -r

I get:

Wed Nov 19 08:21 PM root@tinwhistle / # urpmi kern
The following packages contain kern: kernel-alert ksymoops kernel-source kernel-2.4.19.35mdk kernel-linus2.4 kernel-BOOT-2.4.19.16mdk kernel-doc-pdf kernel-smp-2.4.19.16mdk kernel-2.4.19.16mdk kernel-doc linuxconf kernel-doc-ps kernel-BOOT-2.4.19.35mdk fortune-kernelcookies kernel-enterprise-2.4.19.16mdk R-recommended kernel-enterprise-2.4.19.35mdk kernel22-source kernel-secure-2.4.19.16mdk kernel-smp-2.4.19.35mdk kernel-doc-html kernel-headers libwine1 wine initscripts kernel22-smp kernel-linus2.2 pcmcia-cs kernel22 kernel-secure-2.4.19.35mdk

I would command:

urpmi kernel-source

Last edited by fancypiper; 11-19-2003 at 08:35 PM..
fancypiper is offline     Reply With Quote
Old 11-19-2003, 08:45 PM   #9
Penguin666
LQ Newbie
 
Registered: Nov 2003
Location: Montreal Canada
Distribution: Mandrake 9.2
Posts: 17
Thanked: 0

Original Poster
[root@PENGUIN666 /]# urpmi kerne
The following packages contain kerne:
kernel-2.4.22.10mdk
kernel-doc
kernel-doc-html
kernel-doc-pdf
kernel-doc-ps
kernel-enterprise-2.4.22.10mdk
kernel-i686-up-4GB-2.4.22.10mdk
kernel-p3-smp-64GB-2.4.22.10mdk
kernel-secure-2.4.22.10mdk
kernel-smp-2.4.22.10mdk
kernel2.4-marcelo


Odd, I am not getting anything that remotely references "source"

After running "uname -r" I receive the following:

[root@PENGUIN666 etc]# uname -r
2.4.22-10mdk
[root@PENGUIN666 etc]#

Running the checksum left me with a totally different hex value. Way off to be exact.
I will try downloading it again, and rerunning the MD5sum.

I'll keep you posted. Any thoughts on the urpmi issue?
Thanks again for all your help.
Penguin666 is offline     Reply With Quote
Old 11-19-2003, 08:56 PM   #10
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 9.10
Posts: 5,141
Thanked: 0
If you haven't re-configured urpmi, all it knows about are your CDs. Perhaps the CDs don't contain the kernel source (Which I have never experienced). Did you have all the install CDs?

Easy urpmi config for Mandrake
fancypiper is offline     Reply With Quote

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
Kernal Source Code douginky Mandriva 2 12-20-2004 04:28 PM
How to install kernal source for Mandrake 10? i_like_deer Mandriva 11 08-08-2004 02:26 PM
how to install kernal-source code? jmg1894 Linux - Software 8 06-07-2004 07:06 PM
Linux newbie needs help configure kernal source code sabaka Linux - Software 3 09-12-2003 08:36 PM
Kernal source code andrewtc Linux - Software 6 04-25-2003 03:00 PM


All times are GMT -5. The time now is 03:04 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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration