Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.