R-Ts NetWorks

Server the Best

How to Install Grsecurity in linux

How to Install Grsecurity in linux

First download the kernel using the below link:


Then, download gr-security path using the below link:


Extract the kernel using the below command:

tar xjf linux-

Then go to the extracted folder.

cd linux-

Patch the kernel using below command.

patch -p1 < ../grsecurity-2.1.11-

Use the below step to start making the kernel.

make clean && make mrproper

Once done the copy the previous kernel.

cp /boot/config-`uname -r` .config

Edit the kernel as per your requirement.

make menuconfig

Compile the kernel using the below command.

make bzImage

make modules

make modules_install

Run the below command to make sure it is working ok.


First check the architecture of your system using below command


Installing and booting the kernel using the below steps:

cp arch/i386/boot/bzImage /boot/vmlinuz-

Copy system.map to /boot directory

cp System.map /boot

Then edit the grub.conf file and select the gr-security kernel. Once done go to grub prompt and fire the below command to start the server once using that kernel. If it is not starting than it will start the server using previous kernel.

grub > savedefault –default=0 –once

Then reboot the server.

Shutdown -r now




May 3, 2012 - Posted by | Installation, Security |

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: