Gea-Suan Lin's BLOG

Friday, November 24, 2006

Recompile Linux Kernel in Debian

應該還不是「正確」的方法 (因為 apt-cache search linux-source 時還看到 linux-patch-debian-2.6.18 與 linux-tree-2.6.18 這兩個套件),不過先記下來好了: $ apt-get install linux-source-2.6.18 $ apt-get install kernel-patch-grsecurity2 (這是 grsecurity patch) $ cd /usr/src $ tar yxf linux-source-2.6.18.tar.bz2 $ cd linux-source-2.6.18 $ zcat ../kernel-patches/diffs/grsecurity2/grsecurity-2.1.9-2.6.18.1.patch.gz | sudo patch -p1 $ sudo make menuconfig $ sudo make all (其中 all $ sudo make install $ sudo modules_install $ cd /boot $ sudo [...]