Attention! This is only updating a post months ago, which I highly recommend reading before proceeding any further, unless you already know the subject sufficiently. Click here to access the old post .

Without this small - but necessary - introduction, here are the instructions for compiling the new 2.6.25 kernel for the current stable release of Debian GNU / Linux (codenamed Etch).

First you must download the source for the new Linux kernel 2.6.25:

# apt-get -t etch-backports install linux-source-2.6.25

Then proceed as usual:

  1. We move to the directory where are placed the new sources and scompattiamoli:
    # cd /usr/src
    # tar xjf linux-2.6.25.tar.bz2
    # ln -s linux-2.6.25 linux
    # cd /usr/src/linux
  2. Resettiamo (optional) all parameters and compile rivediamoli for additional security:
    # make clean && make mrproper
    # cp /boot/config-`uname -r` ./.config
    # make menuconfig
  3. Prepare and compile the source packages. Deb:
    # make-kpkg clean
    # fakeroot make-kpkg --initrd --append-to-version=-tetragono kernel_image kernel_headers
  4. We install the packages. Deb:
    # cd ..
    # dpkg -i linux-image-2.6.25-tetragono_2.6.25-tetragono-10.00.Custom_i386.deb
    # dpkg -i linux-headers-2.6.25-tetragono_2.6.25-tetragono-10.00.Custom_i386.deb

And here is the kernel installed and working properly:

That's all, folks ;)