Xie has included instructions on how to patch the kernel in the LIDS download. However, I will briefly cover the necessary steps. This example assumes your kernel sources are installed in /usr/src/linux.
Always make sure you are using the latest LIDS version with the corresponding kernel version. LIDS development can go very rapid from time to time and documentation changes just as fast.
First you need to download the LIDS patch from www.lids.org/download.html. Make sure you get the version that matches your kernel. (People who use kernels provided by their Linux distribution please read the following.
Then, expand the tarball:
bash$ tar -zxvf lids-lids_version-kernel_version.tar.gz |
Apply the lids patch to the existing kernel sources:
bash$ cd /usr/src/linux bash$ patch -p1 < /path/to/lids/patch/lids-lids_version-kernel_version.patch |
Then configure your kernel. For an excellent source of information on recompiling your Linux kernel, see the Linux Kernel HOW-TO.
There are several kernel configuration options for LIDS. In order for LIDS to work, you must make sure the following options are enabled:
[*] Prompt for development and/or incomplete code/drivers [*] Sysctl Support |