Compile kernel in Debian 5 Step 1: Download kernel Download the kernel via terminal or a newer from www.kernel.org From the debian stable repo: #sudo apt-get install linux-source-2.6.26 Put the downloaded source (if you downloaded from www.kernel.org) in /usr/src
Step 2: Preparing the kernelsource and installing nessessary pkg's Get all the packages needed for a kernel compile. I've listed them all here, both for gconfig, xconfig and menuconfig. #sudo apt-get install libgtk2.0-dev libglib2.0-dev libglade2-dev libqt3-mt-dev xconfig #apt-get install kernel-package ncurses-dev bzip2 module-init-tools initramfs-tools procps fakeroot
Step 3: Configuration Do the configurations you'd like in gconfig/xconfig/menuconfig #make gconfig/xconfig/menuconfig
Step 4: Compile the kernel #make-kpkg clean #fakeroot make-kpkg --initrd --append-to-version=-linxea kernel_image kernel_headers That will leave you with two .deb packages in ”cd ..” Do #cd .. to get back to /usr/src where the newly created deb's are.
Step 5: Install the new kernel In the directory where the two new .deb files are preform this actions: #sudo dpkg -i pkg1.deb #sudo dpkg -i pkg2.deb
Step 6: Reboot into the new kernel Check that GRUB is updated correctly and then reboot #sudo init 6 Good Luck ! linXea ©