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.
After many many googles... I have come to the conclusion that compiling your own kernel isnt that hard, but no one explains exactly whats going on. (well, sorta)
What I want to do:
1. Compile the kernel with the correct modules only needed for my hardware.
2. Compile a new kernel with just the basics to hit a prompt. Absolutely no "extra fat."
3. Install the packages I need to run things like x, word processing, email etc. for a simple workstation. (Because thats all I need it to do)
As quoted from Capt_Caveman
Quote:
It's usually a good practice to either do a minimum install or to remove unneeded applications (ie you shouldn't need an mp3 player or GIMP on a router) as they provide possible vectors for compromise (can't exploit an application that doesn't exist).
It seems on most distros and installations, even the very minimalistic of installs gives you a lot of "extra" that you really do not need or use. And thats exactly what I want to eliminate.
My question is how do I get rid of everything else? When I compile the new kernel all my pre-existing packages will be there in some file, directory, tree etc.. I was wondering how to make it fresh, I mean completely fresh. Not, install linux, then got to a terminal, compile etc.. I do not even want a "pre-existing" install to be there.
Sounds like Gentoo is the right distro for you, when you do a stage1 install you start completely fresh, nothing is installed by default (besides necessary tools to get you up and running), you compile your kernel then add the packages you want one by one. Though this process can be time consuming.
Well if you want to trim your current system it's still pretty easy, compile the kernel selecting only minimal options as you mentioned earlier, then find and remove unnecessary packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.