Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1.2 KB
#Install packages to compile kernel
sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
sudo apt-get build-dep linux
sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev
#Download source
git clone
#Kernel Compile and Install
cd protego/linux-stable
make menuconfig #Enable Security options ---> Security hooks for protego system
make-kpkg clean
make-kpkg --initrd kernel_image kernel_headers
cd ..
sudo dpkg -i linux-*.deb
#Install the helper binaries
cd proc_plugin
sudo make helper
cd ../shadow-4.1.5
sudo make plogin
cd ../xtables-addons-1.46
make && sudo make install
#Add the startup commands
sudo echo "iptables -A OUTPUT -j RAWSOCKET --allow icmp --icmp_type echo_request" > /etc/init.d/
sudo echo "iptables -A OUTPUT -j RAWSOCKET --deny_all" >> /etc/init.d/
sudo echo "nohup python $PWD/progs/ &" >> /etc/init.d/
sudo chmod a+x /etc/init.d/
sudo update-rc.d defaults 100
#Reboot the system in protego kernel
sudo reboot