LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-17-2006, 03:08 PM   #1
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Rep: Reputation: 31
What is the advantage of compiling from source versus dowloading image?


Howdy All. I just compiled 2.6.17 onto my computer rather than downloading kernel image 2.6.17-6(or whatever number was available). I did this because I wanted to know how, and have succeeded in getting rid of a bunch of excess crap in xconfig and feel pretty good about that, but what is the difference as far as the source image itself and the extra # image? Is it better to just download the image directly rather than the source? or the other way around, and why?
 
Old 09-17-2006, 03:11 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Well, really you have answered your own question. By compiling from source, you get a kernel that is particular to your pc - with nothing in there that you don't need.

OTOH, an image kernel tends to have lots in it and should generally work on everything.
 
Old 09-17-2006, 03:17 PM   #3
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Original Poster
Rep: Reputation: 31
Thanks for the info! It was amazing how simple it was once I found the right guide.
 
Old 09-17-2006, 07:35 PM   #4
bchaynes3
LQ Newbie
 
Registered: Jul 2006
Location: Athens, Georgia USA
Distribution: Knoppix 5.0.1, Ubuntu 6.06,Mandriva 2006.0
Posts: 17

Rep: Reputation: 0
Where was the guide? Please post.
 
Old 09-18-2006, 10:33 PM   #5
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Original Poster
Rep: Reputation: 31
Sure! There were actually three posts. The main one for me was: http://www.linuxquestions.org/questi...13#post1552913
The second was: http://www.linuxquestions.org/questi...ches+to+2.6.17

The third was:
http://www.digitalhermit.com/linux/K...ild-HOWTO.html

When following the first post, take note of what xushi said. It will save you some trouble. Also make sure you have all the required items installed to make this work. Let me know how it goes.
The only trouble I have had was with getting iptables to function properly, but I think it was because I modified xconfig too much. Also, I am running Sid on what used to be Mepis, but I doubt it can be called that anymore (now Debian).
Please note that I frequently have screwed up and had to start completly over with a bunch of stuff in Linux, and out of 5 distros tried, so far Debian seems to be indestructable.
 
Old 09-19-2006, 10:44 AM   #6
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 253

Rep: Reputation: 36
Quote:
Originally Posted by sleekmason
The only trouble I have had was with getting iptables to function properly, but I think it was because I modified xconfig too much.
Recompiling iptables against the new source should fix that. Also the kernel sources changed radically with recent kernels from the old Netfilter/iptables code (x_tables, obsoletion of many extensions). Iptables source for new-new kernels is in the iptables/snapshot dir of ftp.netfilter.org.
 
  


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
LXer: Intel aims for open-source graphics advantage LXer Syndicated Linux News 0 08-10-2006 09:33 PM
Dowloading Windows (legally) RodWC General 5 07-05-2006 03:19 AM
LXer: Taking Advantage Of Open Source PHP MySQL Applications LXer Syndicated Linux News 0 12-28-2005 08:16 PM
General source versus scripting question R00ts Programming 9 06-29-2005 04:04 PM
Is there a particular advantage to compiling a new kernel? EOHooligan Slackware 5 01-27-2005 02:33 PM


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