📄 lids-faq-2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE> LIDS FAQ: Installing LIDS</TITLE> <LINK HREF="LIDS-FAQ-3.html" REL=next> <LINK HREF="LIDS-FAQ-1.html" REL=previous> <LINK HREF="LIDS-FAQ.html#toc2" REL=contents></HEAD><BODY><A HREF="LIDS-FAQ-3.html">Next</A><A HREF="LIDS-FAQ-1.html">Previous</A><A HREF="LIDS-FAQ.html#toc2">Contents</A><HR><H2><A NAME="s2">2. Installing LIDS</A></H2><H2><A NAME="ss2.1">2.1 How do I apply the LIDS kernel patch?</A></H2><P>Xie has included <A HREF="http://www.lids.org/install.html">instructions</A> 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.<P><P><UL><LI> First you need to download the LIDS patch from <A HREF="http://www.lids.org/download.html">www.lids.org/download.html</A>.Make sure you get the version that matches your kernel.</LI><LI> Then, expand the tarball:<PRE> $ tar zxvf lids-<lids_version>-<kernel_version>.tar.gz </PRE></LI><LI> Apply the lids patch to the existing kernel sources:<P><PRE>$ cd /usr/src/linux$ patch -p1 < /path/to/lids/patch/lids-<lids_version>-<kernel_version>.patch</PRE></LI><LI> Then configure your kernel. For an excellent source of information on recompiling your Linux kernel, see the <B><A HREF="http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html">Linux Kernel HOW-TO.</A></B><P>There are several kernel configuration options for LIDS. In order for LIDS to work, you must make sure the following options are enabled:<PRE> [*] Prompt for development and/or incomplete code/drivers [*] Sysctl Support </PRE><P></LI></UL><P><H2><A NAME="ss2.2">2.2 How do I install the LIDS administration utility lidsadm?</A></H2><P>The source for the lidsadm utility is located in the directory containing your LIDS source and is called:<PRE>lidsadm-<lids_version></PRE><P>(<B>NOTE:</B> If you are upgrading lidsadm, you should backup everything in the /etc/lids directory first!)<P><P><A NAME="lidsadm-compile"></A> To compile and install lidsadm, simply:<PRE>$ make$ su -# make install</PRE><P>from the lidsadm source directory. This will install lidsadm in the /sbin directory. It will also create an /etc/lids directory and place a few default configuration files in it for you.<P>If you wish to use the view option with lidsadm, replace the <PRE>$ make</PRE><P>with <PRE>$ make VIEW=1</PRE><P><H2><A NAME="ss2.3">2.3 What next?</A></H2><P>Before you reboot into your LIDS enhanced kernel, you should configure your LIDS ACLs first. Otherwise your system may be unusable when you reboot. Configuring LIDS ACLs is covered <A HREF="LIDS-FAQ-5.html#Configuring-LIDS">later</A>. <P><H2><A NAME="lidsadm-compile-problem-1"></A> <A NAME="ss2.4">2.4 When I try to compile lidsadm, gcc reports that lidstext.h doesn't exist. How do I fix this problem?</A></H2><P>This happens on systems where <CODE>/usr/include/linux</CODE> is not a symbolic link to <CODE>/usr/src/linux/include/linux</CODE>. The complete error message is:<PRE> lidsadm.c:30: linux/lidsext.h: No such file or directory make: *** [lidsadm.o] Error 1 </PRE><P>To fix this problem, edit the Makefile in the lidsadm source directory and add <CODE>-I/usr/src/linux/include</CODE> to the CFLAGS option.<P>At this point, you should be able to compile lidsadm normally. <P><H2><A NAME="ss2.5">2.5 When I <EM>upgraded</EM> to LIDS version 0.9.14, 0.9.15, 1.0.6, or 1.0.7 my system panics during reboot. How do I fix it?</A></H2><P>The format of the <CODE>/etc/lids/lids.conf</CODE> file changed in these releases. You need to recreate the file using the new version of lidsadm.<P><P><HR><A HREF="LIDS-FAQ-3.html">Next</A><A HREF="LIDS-FAQ-1.html">Previous</A><A HREF="LIDS-FAQ.html#toc2">Contents</A></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -