LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
  Search this Thread
Old 03-11-2002, 11:21 PM   #1
AMDPwred
Member
 
Registered: Dec 2001
Location: Richmond, VA
Posts: 391

Rep: Reputation: 30
Compiling the Kernel


I always here about people compiling the Kernel. What I don't hear is the reason behind doing so. Is it beneficial to have the Kernel compiled for your system? If I compiled the Kernel on my system would it mess anything up? Hell, I'd like to do it for the experience of doing so. Any tips?

Last edited by AMDPwred; 03-11-2002 at 11:28 PM.
 
Old 03-12-2002, 12:15 AM   #2
jdctx
Member
 
Registered: Feb 2002
Posts: 71

Rep: Reputation: 15
Here are a few reasons some may recompile.

1. better performance
2. adding hardware support
3. customizing for your needs

Better Performance

Some kernels are compiled for different Processor Architecture recompliling you kernel from 386 support to 586 support will help some things run faster.

Adding Hardware Support.

You may of added a nic that is not compiled to you current kernel. You could add that option in kernel before compiling. Also some times modules can be flakey and you may need to complile it into the kernel.

Customizing for your needs

Your kernel may include services that you know you'll never need or use. Removing those options will make the kernel small and help to lower the amount of resources used.

Use Caution

If you plan on recompiling a kernel I would suggest first putting it on diskette before you install it live. Don't go to crazy removing or adding to many things especially in the newer kernels.
 
Old 03-12-2002, 12:16 AM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Compiling your own kernel is the very core why use linux I believe. By doing so you're proving that a linux system is the way you want it to be, not the way RedHat or any other distro want it to be for you. You can disable and enable various options, you can better describe your installation based on hardware you have, basically you're polishing your linux system from junk and unneeded stuff, adding some feathures you think are best for you. But for a regular user (what I mean here is if you don't thoroghly know your system and kernel options) compiling your own kernel is a trial and error process, so if you happened to fall in this category expect several re-compilations.
 
Old 03-12-2002, 12:24 AM   #4
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
for some weird reason... kernel compiling is fun. sense of accomplishment... new experience... more knowledge about computer internals...

kinda like the time it took me three days to add a memory stick... (the hard drive was in the way. i was afraid to take it out)
 
Old 03-12-2002, 08:58 AM   #5
AMDPwred
Member
 
Registered: Dec 2001
Location: Richmond, VA
Posts: 391

Original Poster
Rep: Reputation: 30
Sounds good guys. So how do I go about recompiling?
 
Old 03-12-2002, 09:19 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
There are numerous howto's available on the net. Linux Documentation Project is a good start.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernal in Debian 3.0 swmok Debian 2 03-31-2005 07:17 AM
Compiling a kernal(first time) sergeantroach Linux - Software 6 02-11-2004 02:10 AM
kernal compiling nuhn123 Linux - Newbie 5 09-06-2003 04:53 PM
compiling kernal ronss Slackware 6 06-02-2002 04:50 PM
Compiling Kernal Error jdreg Linux - Software 3 04-06-2002 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration