LinuxQuestions.org
Review your favorite Linux distribution.
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 04-13-2004, 09:41 PM   #1
debnuxian
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian 2.6.x
Posts: 20

Rep: Reputation: 0
Compiling your own Kernel


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.
 
Old 04-13-2004, 09:46 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Just go ahead and do it? what exactly is your question?
 
Old 04-13-2004, 09:56 PM   #3
debnuxian
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian 2.6.x
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 04-13-2004, 10:02 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.
 
Old 04-13-2004, 10:09 PM   #5
debnuxian
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian 2.6.x
Posts: 20

Original Poster
Rep: Reputation: 0
Mmm Gentoo. As I have heard of this distro and as you say it seems to be what I want, the only problem is that's a "work-around" for my problem.

I was just wondering if it's possible to do what I had proposed. I am pretty sure it is, but it may be way out of my league for the moment.

I will, however, look into Gentoo. Thanks for the quick response Demonbane, I really do appriciate it.
 
Old 04-13-2004, 10:15 PM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.

Last edited by Demonbane; 04-13-2004 at 10:18 PM.
 
Old 04-13-2004, 11:39 PM   #7
qkslvrwolf
LQ Newbie
 
Registered: Apr 2004
Distribution: Lycoris Desktop/LX (Amethyst)
Posts: 14

Rep: Reputation: 0
Thats one of the advantages of linux, right? No crap buildup because of no registry?
 
Old 04-14-2004, 01:35 PM   #8
j33px0r
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Rep: Reputation: 0
You want to do it from scratch. All by yourself...for the experience...not just the end product. Here's a site for you:

http://www.linuxfromscratch.org/

and another:


http://users.netwit.net.au/~pursang/lofat.html


if they don't fully meet your needs keep searching with any old engine.
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 02:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 03:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 08:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:15 AM.

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