LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-06-2006, 01:11 PM   #1
tombiz
Member
 
Registered: Jun 2006
Location: Chicago
Posts: 64

Rep: Reputation: 15
Compiling a Kernel? Why?


It might sound rather old to some of you, but to me it is kind of new. That is, compiling a kernel. I have now been running Ubuntu 6.06 LTS for 4 months now and SuSE 10.1 for a month. However, I have not done any compiling. Can someone let me know what are some of the pros and cons of compiling a kernel, and is it recommended for every user to do so? What is the level of difficulty of compiling?
Any help is appreciated.

Thanks.
 
Old 11-06-2006, 01:17 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Compiling is pretty easy. But keep your old one around just in case.

In general, my rule of thumb is "If it ain't broke, don't fix it" followed closely by "If it ain't broke, it doesn't have enough features yet".

Honestly, I don't recompile unless I need some specific hardware support that isn't in the stock kernel or if I have an old machine that will benefit from removing the bloat. Most new machines won't see a performance benefit from a recompile. But my old Celeron 400MHz w/ 256MB RAM become much more usable once I cut out all the hardware modules I didn't need.

That said, I like to fiddle. And you'll learn some things by recompiling that you wouldn't have known before...
 
Old 11-06-2006, 01:22 PM   #3
tombiz
Member
 
Registered: Jun 2006
Location: Chicago
Posts: 64

Original Poster
Rep: Reputation: 15
Thank you.
 
Old 11-06-2006, 01:26 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
BTW, it looks like you're using Ubuntu, which is Debian based. There's a "Debian Way" to compile kernels that basically creates a *.deb package of your kernel and then you can just install it like any other package using dpkg -i package.deb
 
Old 11-07-2006, 11:39 AM   #5
Cyber_Paladin
LQ Newbie
 
Registered: Mar 2006
Location: Hong Kong
Distribution: Debian
Posts: 24

Rep: Reputation: 15
Tombiz, for your information:
http://newbiedoc.sourceforge.net/system/kernel-pkg.html

That's for Debian, I think it should be more or less the same on Ubuntu.

Apart from showing off and demonstrating that you're the GEEK , compiling kernels is a great way of learning the gory-detail of your computer, and so you'll appreciate what the developers have done. *Salute*

Just run the following command under the kernel tree, and admire the output:
Code:
du -ka | awk '{print $2}' | xargs -i egrep -wi "hell|pain|shit|fuck" {}
Well, just kidding . You know I love the developers .
 
Old 11-07-2006, 07:11 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
If you are using a package-based distro, I would not be in a great big hurry to compile your own kernel. In my experience, sometimes the binary-distributed kernels match the source code; and sometimes they don't quite. "If it ain't broke, don't fix it."
 
  


Reply



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
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 02:29 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:32 AM.

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
Open Source Consulting | Domain Registration