DebianThis forum is for the discussion of Debian 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.
In order to play with the kernel configuration and add/remove features you need to get the kernel source package (preferably from the debian repositories), configure it, compile it and install it.
I haven't done it many times (and I'm not too keen on doing it unless it's needed for some reason), but if you're interested you can check these links:
as it was mentioned if you want to reconfigure your kernel you must rebuild and install it, you cannot do it without that. Some features installed as modules and you only need to add/remove those modules. But would be nice to explain what do you really want to achieve.
as it was mentioned if you want to reconfigure your kernel you must rebuild and install it, you cannot do it without that. Some features installed as modules and you only need to add/remove those modules. But would be nice to explain what do you really want to achieve.
Thanks.
I know that I can download a New Kernel and Install but I want to modify current installed Kernel and add and remove some options in it. For example, Check SElinux and firewall configuration.
Thanks.
I know that I can download a New Kernel and Install but I want to modify current installed Kernel and add and remove some options in it. For example, Check SElinux and firewall configuration.
As said before, you need to configure and build the sources. Check my links above.
you can rebuild the kernel you are currently running (build kernel from same source starting with the same configuration). So in the end you will have "the same kernel" but with differences due to the slightly different compile configuration. If this is now what you want, please explain why.
Thanks.
I know that I can download a New Kernel and Install but I want to modify current installed Kernel and add and remove some options in it. For example, Check SElinux and firewall configuration.
You can add and remove modules from kernel with the modprobe command.
Code:
#modprobe module-name to load a module
#modeprobe -r module-name to remove the module
Or if you want to blacklist a module, you can do it in the file /etc/modprobe.d/blacklist.conf
To disable SELinux or firewall, chaeck the man pages for SELinux and iptables, or for the service that you want to configure.
Thank you.
The problem is that I want to just add some option and keep current modules. I guess if I compiled Kernel very regular, all lost some Modules.
Any idea?
Thank you.
The problem is that I want to just add some option and keep current modules. I guess if I compiled Kernel very regular, all lost some Modules.
Any idea?
You can copy your current configuration to the kernel build directory and modify it. Check item number 8.10.3 on the first link I posted. Your current kernel configuration is stored inside /boot/config-{kernel-version}. So, when you copy this file into the kernel's build directory, you won't start from scratch, but you will use your current config, and you will be able to start configuring options, add/remove modules afterwards, based on your current config (when you execute make menuconfig).
Just out of curiosity, do you need to add custom/proprietary modules to the kernel, or just the modules that come with it?
Last edited by Hungry ghost; 02-25-2015 at 07:45 AM.
The problem is that I want to just add some option and keep current modules. I guess if I compiled Kernel very regular, all lost some Modules.
Any idea?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.