On Fri, 2 Feb 2001 10:32:10 -0800, Daryl S. Ehrenheim said:

> How do I do this? Thanks.
>  
>  I am really new to this.

Compiling your own kernel (commonly called 'rolling your own') is one of the
pleasures of using Linux. It means you can compile a kernel which is
specifically tailored for your machine and is compiled using the actual libs
you have installed.

Basically you download a kernel source from somewhere like
ftp://ftp.kernel.org/pub/linux/kernel/ and move the tar.gz file to /usr/src.
Unzip and untar it and you will be left with /usr/src/linux. I tend to rename
the linux directory to, eg., linux-2.4.1 and make a symlink to /usr/src/linux
instead. Not necessary, though.

Make sure you have some development libs installed - read through the kernel
documentation in /usr/src/linux/ to see what you need. If you have compiled any
apps before, you should have most of what you need. To make things *much*
easier, install 'kernel-package', the Debian way of compiling a kernel.

Anyway, once the kernel source is installed, do 'make xconfig' as root. You
will be faced with loads of questions about what you want to install in your
new kernel. There is help for each option. You are given the choice to add the
item as a module or compile it into the kernel itself. As I explained, I tend
to compile in most of the important options, and leave the less important
things as modules. Just make sure you compile in support for the hard drives
and linux filesystem rather than making modules!

Once all questions have been answered, click on 'save and exit' and then enter
'make-kpkg kernel_image -revision=custom.1.0'. The kernel will be compiled and
a debian package will appear in /usr/src called something like 
'kernel-image-2.4.1_custom.1.0_i386.deb'. You install this like any Debian
package with 'dpkg -i kernel-image-2.4.1_custom.1.0_i386.deb' and it will
install the new kernel and modules and will set up lilo for you and offer to
create a boot floppy. Wonderful stuff.

-- 
Phillip Deackes
Using Debian Linux


_______________________________________________
Stormlinux-users-list mailing list
[EMAIL PROTECTED]
http://www.stormix.com/community/lists/listinfo/stormlinux-users-list

Reply via email to