This is an old revision of the document!
# uname -a
# ls /lib/modules/`uname -r`/kernel/ # modprobe -l # lsmod # modprobe ip_gre # modprobe -r ip_gre # iptables -L # lsmod | grep ip # cat /etc/modules
# sysctl -a # sysctl net.ipv4.ip_default_ttl=2 # cat /etc/sysctl.conf # sysctl -f
# apt-get install libncurses5-dev # apt-get install kernel-package # cd /usr/src/
# apt-get install linux-source # tar -xvf linux-source-X.X.XX.tar.bz2
# wget http://www.kernel.org/pub/linux/kernel/vX.X/linux-X.X.X.tar.bz2 # tar -xvf linux-X.X.X.tar.bz2
# cd linux-* # yes "" | make oldconfig
# cd /usr/src # wget http://grsecurity.net/stable/grsecurity-X.X.X-X.X.X-201XXXXXXXX.patch # cd linux-* # patch -p1 < ../grsecurity-X.X.X-X.X.X-201XXXXXXXX.patch # apt-get install gcc-4.6-plugin-dev
# cd /usr/src # cd linux-* # make menuconfig
# less .config # time make-kpkg --initrd kernel-image kernel-headers # cd /usr/src # dpkg -i linux-image-X.X.XX.XX+drmXX.XXmykernel_X.X.XX.XX+drmXX.XXmykernel-10.00.Custom_i386.deb # dpkg -i linux-headers-X.X.XX.XX+drmXX.XXmykernel_X.X.XX.XX+drmXX.XXmykernel-10.00.Custom_i386.deb # cd /boot # mkinitramfs -k -o initrd.img-X.X.XX.XX+drmXX.12mykernel X.X.XX.XX+drmXX.XXmykernel # update-grub2