LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-20-2004, 04:46 PM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Compile kernel on one machine, move it to another


My wife's got a 3GHz P4 machine and I've got a 850MHz P3. How much trouble would it be to compile new kernels on her system and then move the new kernel and related files to mine?

I'm asking this as my machine is slowly chomping through a compile of 2.6.9.

Right now I've got Yoper installed alongside WinXP on her machine. I assume I'd need to put Slackware on her machine to do a kernel compile for my Slackware system, right? Or maybe not ...?

Thanks.

Last edited by dhave; 10-20-2004 at 04:55 PM.
 
Old 10-20-2004, 05:02 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
hi,

maybe a silly question but would your wife notice it if you just exchange the pc's ?
( just a guess... )

egag
 
Old 10-20-2004, 05:07 PM   #3
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by egag
maybe a silly question but would your wife notice it if you just exchange the pc's ?
( just a guess... )
Hmm. Now why didn't I think of that?

But hers is a full-size beige box and mine is a little Thinkpad T21, so maybe I wouldn't get away with it, after all.

Thanks for the suggestion, though.
 
Old 10-20-2004, 05:27 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well. it was just a thought...
if i would have to do what you want to do , i would install Slack on the other machine, and do the compiling with Slack ( just my feeling.. ).
then copy the bzImage, modules-tree, System.map and config-file to your notebook.( by net or cd-r/w as the data will be obsolete in a few months ).
as i don't know yoper and it's capacities......

egag
 
Old 10-20-2004, 05:32 PM   #5
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by egag
[...] if i would have to do what you want to do , i would install Slack on the other machine, and do the compiling with Slack ( just my feeling.. ).
then copy the bzImage, modules-tree, System.map and config-file to your notebook. [...]
That's what I'm wanting to know: exactly what files and directories need to be transferred after the compile is finished, and where are the files and directories located?

Thanks!
 
Old 10-20-2004, 05:40 PM   #6
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
If you don't install the kernel and the modules you can after running make (2.6.x) or make modules (2.4.x) backup your kernel source dir and transfer it to your machine where you finish the job I guess
 
Old 10-20-2004, 05:44 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
hi,

after you do ( in Slack ) : make bzImage, make modules, make modules_install there will be:
-/usr/src/linux/arch/i386/boot/bzImage ( that's your kernel , when copying it to your own system's /boot, rename it to smth. like vmlinuz-2.6.9, and add it in your lilo.conf file.
-/lib/modules/2.6.9 ( that's the module dir.tree , goes in /lib/modules )
-/usr/src/linux/System.map ( goes also in /boot )
-/usr/src/.config ( copy that for reference into /boot )

i think that's all.

egag
 
Old 10-20-2004, 07:02 PM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
You could use a live cd to boot linux in her comp, then mount the kernel tree as nfs share (assuming the 2 comp are networked) so you can compile the kernel without install Linux in her machine if you want, but in my opinion, it is better to let her enter in Linux world installing slackware into it and help her to discover it
 
Old 10-20-2004, 09:01 PM   #9
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Rep: Reputation: 30
Come on now.

Are you complaining that kernel compiles take too long on your 850Mhz computer? I compile the latest stable kernel everytime one is released on my 350MHz.

Just start the compile and take a nap or something. Or, better yet, start the compile on your computer and use hers until the compile is finished. There it is. You haven't wasted any computer-time, and your kernel is compiled!
 
Old 10-21-2004, 12:57 AM   #10
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by MikeZila
Or, better yet, start the compile on your computer and use hers until the compile is finished
That's exactly what I've been doing. But I *have* been thinking about using her 3GHz machine to compile kernels, since it seems crazy for my little Thinkpad to sit here working so hard when, just across the room, there's a Big Mama P4 running a screensaver. Besides, I wanted to learn how to produce kernels to use on other machines, anyway.
 
Old 10-21-2004, 04:06 AM   #11
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
You could look at distcc as well.
http://www-106.ibm.com/developerwork...r-lnxw04Distcc
 
Old 10-21-2004, 04:54 AM   #12
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by rotvogel
You could look at distcc as well.
http://www-106.ibm.com/developerwork...r-lnxw04Distcc
Nice page. Yes, distcc definitely seems like the right solution for me, as it looks like it'll let me use my wife's machine (and mine at the same time) without her even being aware of it! Thanks.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I move my HD from 1 machine to another? scooterNotMoped Linux - Hardware 1 11-06-2005 06:31 PM
How long does it take to compile the kernel on a slow machine? Shagrath239 Slackware 10 02-14-2005 11:11 PM
How to move NIS server into another machine? mkaczm Linux - Networking 0 04-27-2004 05:06 AM
How can I compile stuff on one computer, and move it to another? kleptophobiac Slackware 6 09-07-2003 10:08 AM
Kernel Won't Compile For i586 machine natto34 Linux - General 1 06-29-2002 11:49 PM


All times are GMT -5. The time now is 03:05 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