packages you need
# aptitude install patch bin86 kernel-package build-essential lzop bc libncurses5-dev gcc-4.7-plugin-dev
# cd /usr/src
# wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.5.tar.xz
# wget http://grsecurity.net/test/grsecurity-3.0-3.14.5-201406051310.patch
this is an example, use most recent kernel and patch (attention version number!)
# tar -xf linux-3.14.5.tar.xz
# cd linux-3.14.5.tar.xz
# patch -p1 < ../grsecurity-3.0-3.14.5-201406051310.patch
# make menuconfig
config your kernel, see Debian Handbook how to build a kernel and http://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options for GRSec Options
# fakeroot make deb-pkg -j5
use j flag in correspondence to your core/threads +1
kernel will be compiled and .debs created
# cd ..
# dpkg -i *.deb
# shutdown -r now
:)
No comments:
Post a Comment