GentooThis forum is for the discussion of Gentoo Linux.
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.
genkernel can do as much or as little of the kernel configuration and build process as your like.
However, its totally brain dead. I does not detect anything. Left to its own devices, it makes a generic totally modular kernel with most of the modules in the kernel tree compiled.
By defualt, it leaves out agpgart, DRM and sound support, which means manual intervention is required for any sound and some graphics cards.
Even on a system thats three or four years old, you can do a manual kernel configure and build faster than genkernel will build you a kernel.
In fact, Genkernel will try to build every drivers that the kernel has, so instead of compiling your lan card driver, it will build maybe 25 drivers just to be sure that it will find your lan card on the reboot.
Genkernel is not optimised at all when we talk about kernel optimization (I mean the number of drivers that Genkernel needs to compile).
The following steps are necessary to change kernel:
- get kernel source
- get initial kernel config "/usr/src/linux/.config" file
- modify kernel config
- compile and install kernel
- compile and install kernel modules
- optionally create and install initial ram disk image
- reboot
The "genkernel" automates most of the steps. ;-)
Last edited by mkborg; 06-18-2009 at 07:12 AM.
Reason: misprint
I think that you are talking about the grsecurity stuff that you can configure in menuconfig (or xconfig or whatever you choose) before compiling your kernel. This stuff is just like the rest of the kernel configuration options: when you enable some option that can influence in the rest of the config in the sense that disabling a given option will also disable others that depend on this one not being set to be available.
Right, I mixed with this.
The conclusion I have from the dicussion is that maintaining a large amount of Gentoo Server configured on a special way (hardened in my case) can generate a lot of work compared to a binary distribution.
After computer (or "server" or "workstation") is installed and configured, the maintenance consist of the only two tasks:
- perform regular backups (to recover in case of hardware malfunction)
- apply security updates (to prevent use of newest exploits)
And there is no big difference between binary and source-based distributions.
And there is no big difference between binary and source-based distributions.
I was not precised enough.
When i say binary distro, i mean pre-configured and binary kernel, instead of keeping my "tuning of the kernel" at every kernel released; where I have to re-qualify my kernel every time a kerlen is released.
And there is no big difference between binary and source-based distributions.
except the time differences in installing as opposed to compiling packages. a gentoo update can take an hour or more on my laptop, yet maybe 15 minutes or less in debian on the same laptop. I would suggest that is a big difference.
EDIT: Though I compile my own kernels in Gentoo and Debian and they take roughly the same time. So from a kernel point of view yes there is no big difference.
yeah i normally run make menuconfig after running make oldconfig. But I swear I read somewhere that it was advised not to do oldconfig, hence my question. but glad to see it is not going to cause issue (though it previously hasn't tbh).
oldconfig is not good or bad per sé, you are the responsible for looking over each setting and making sure that the kernel you compile is suitable for your machine. It's good to get an overview of the things that are different between the two versions of the kernel, but oldconfig is not there for automation purposes, and it's not a substitute for the human factor nor for {menu,x}config.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.