LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2003, 05:36 PM   #1
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Rep: Reputation: 42
How often does this need arise ?


How often does the need arise to compile your own Kernel and why ? I had a few people suggest this to me. I am interested in learning this. However, for the average user I feel that this is quite a demanding task.

Thanks.

Vijay
 
Old 09-27-2003, 05:41 PM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,046

Rep: Reputation: 42
Why did the "a few people" suggest it to you? What can't you do that you want to do? What do you want to do that you think that you can't? I don't think that there is any real reason to recompile - unless you are lacking something.
 
Old 09-27-2003, 05:47 PM   #3
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Original Poster
Rep: Reputation: 42
Quote:
Originally posted by esteeven
I don't think that there is any real reason to recompile - unless you are lacking something.
Basically, I am having severe problems with Mandrake 9.1 install. In the process of assisting me, compiling my own kernel was suggested as one of the solutions.

Vijay
 
Old 09-28-2003, 08:36 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Well, what is the problem... if it is already in a thread here, then please link to it. Personally I have never needed to recompile my kernel. I've done so a few times for the 'fun' of it. I thought I needed to a while ago... to do with my TV card, but it turns out I just needed to play around with the modprobe arguments.
 
Old 09-28-2003, 09:00 PM   #5
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Original Poster
Rep: Reputation: 42
Here is the thread as requested. I am just curious if the need to compile your own kernel occurs often. That is all.

Vijay

http://www.linuxquestions.org/questi...threadid=97099
 
Old 09-28-2003, 09:08 PM   #6
eltongeoff
Member
 
Registered: Mar 2003
Posts: 76

Rep: Reputation: 15
there are a lot of good reasons to compile your kernel. i recommend it highly. first off, if u do modprobe -l u'll get this huge list of all the modules compiled with the default kernel. compiling your own kernel allows u to get rid of anything unneccesary. also, if u ever need anything u don't have, u'll know how to add the drivers to your kernel. also, i recompile everytime a new kernel comes out. it helps u to understand how things work a lil better. eesteven sed u don't really need to do it unless ur lacking something, but also it's great to do if u have more than necessary.
 
Old 09-28-2003, 10:28 PM   #7
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Original Poster
Rep: Reputation: 42
What happens if you have a lot of extra stuff on your Kernel ? Thanks.

Vijay
 
Old 09-29-2003, 12:36 AM   #8
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
There's really no harm in having extra stuff compiled into your kernel. It increases the memory used by the kernel a bit, but that's hardly an issue unless you're trying to run Linux on an old machine with very little RAM. The modules that eltongeoff mentions are pretty harmless; modules are things that you can load if you need them, but skip if you don't. Anything that's listed by modprobe -l or lsmod is probably stuff you need anyway; there are hundreds of other modules that aren't loaded and so aren't wasting any resources other than a little hard drive space.

The reason(s) I've recompiled include: To try to streamline my kernel a bit to make it run faster or more efficiently. I have gotten my machine to boot faster by doing it, but I don't notice any performance differences. I also compiled a custom kernel to try to get Slackware and X working on a 4MB laptop, but that's hardly the kind of thing everyone needs to do. I've very occasionally needed to compile a newer kernel in order to enable some obscure piece of hardware, but if all your hardware is working okay, that won't be an issue for you.

Anyway, to answer your question: Unless you encounter a specific problem that really requires that you compile/recompile your kernel, I would not worry about it. It can be one of the hardest and most stressful things to learn about Linux at first, and a royal pain in the arse if it goes awry. I remember when I was first learning Linux, almost every question I asked was answered with "oh, just recompile the kernel." Of course, nothing sounds more terrifying to someone who barely knows anything about Linux! Eventually, I did compile my own kernel, and have compiled many more since then, but don't do it until you think you're ready.
 
Old 09-29-2003, 04:42 AM   #9
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 15

Original Poster
Rep: Reputation: 42
Quote:
Originally posted by wapcaplet
Anyway, to answer your question: Unless you encounter a specific problem that really requires that you compile/recompile your kernel, I would not worry about it. It can be one of the hardest and most stressful things to learn about Linux at first, and a royal pain in the arse if it goes awry. I remember when I was first learning Linux, almost every question I asked was answered with "oh, just recompile the kernel." Of course, nothing sounds more terrifying to someone who barely knows anything about Linux! Eventually, I did compile my own kernel, and have compiled many more since then, but don't do it until you think you're ready.
Thanks, this really helps to know. For a newbie to Linux to encounter all the problems I encountered is rather discouraging. One wonders, if there is such a bug in installing Mandrake which is the first step, how many other bugs exist down the road.

As a solution if recompiling the kernel is suggested, for a newbie this is quite a task indeed. No wonder I still hear that Linux has a long way to go before the small user can use it. If just the boot time is decreased then I can live without it. Down the road I agree this will be helpful and good to know.

For now I feel that I should know more about adding and removing drivers or other Kernel components. Any info. in this regard welcome.

Vijay
 
  


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
Arise Sir Bill salparadise General 9 01-26-2004 08:42 AM


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