Author: pierre Date: Sat Feb 18 13:51:19 2017 New Revision: 18341 Log: Fix a few minor issues
Modified: trunk/BOOK/general/sysutils/logrotate.xml trunk/BOOK/postlfs/filesystems/smartmontools.xml trunk/BOOK/postlfs/security/tripwire.xml trunk/BOOK/pst/scanning/sane.xml trunk/BOOK/server/major/vsftpd.xml Modified: trunk/BOOK/general/sysutils/logrotate.xml ============================================================================== --- trunk/BOOK/general/sysutils/logrotate.xml Sat Feb 18 11:48:48 2017 (r18340) +++ trunk/BOOK/general/sysutils/logrotate.xml Sat Feb 18 13:51:19 2017 (r18341) @@ -100,8 +100,9 @@ command: </para> -<screen><userinput>./autogen.sh && -./configure --prefix=/usr && +<screen><userinput>sed 's/-Werror//' Makefile.am && +./autogen.sh && +./configure --prefix=/usr && make</userinput></screen> <para> @@ -115,16 +116,17 @@ <screen role="root"><userinput>make install</userinput></screen> </sect2> -<!-- + <sect2 role="commands"> <title>Command Explanations</title> <para> - <envar>MANDIR=/usr/share/man</envar>: Ensure the man pages are installed - in the correct location. + <command>sed 's/-Werror//' Makefile.am</command>: Prevents the compiler + to stop with error when a warning is issued, since GCC 6 has introduced + a lot more warnings, which are triggered by the code. </para> - </sect2>--> + </sect2> <sect2 role="configuration"> <title>Configuring Logrotate</title> Modified: trunk/BOOK/postlfs/filesystems/smartmontools.xml ============================================================================== --- trunk/BOOK/postlfs/filesystems/smartmontools.xml Sat Feb 18 11:48:48 2017 (r18340) +++ trunk/BOOK/postlfs/filesystems/smartmontools.xml Sat Feb 18 13:51:19 2017 (r18341) @@ -97,6 +97,22 @@ <screen role="root"><userinput>make install</userinput></screen> + </sect2> + + <sect2 role="configuration"> + <title>Configuring smartmontools</title> + + <sect3 id="smartmontools-config"> + <title>Config File</title> + <para> + <filename>/etc/smartd.conf</filename> + </para> + + <indexterm zone="smartmontools smartmontools-config"> + <primary sortas="e-etc-smartd.conf">/etc/smartd.conf</primary> + </indexterm> + </sect3> + <sect3> <title>Configuration Information</title> Modified: trunk/BOOK/postlfs/security/tripwire.xml ============================================================================== --- trunk/BOOK/postlfs/security/tripwire.xml Sat Feb 18 11:48:48 2017 (r18340) +++ trunk/BOOK/postlfs/security/tripwire.xml Sat Feb 18 13:51:19 2017 (r18341) @@ -128,6 +128,15 @@ Of course, you should do this with dummy passwords and change them later. </para> + + <para> + Another issue when scripting is that the installer exits when the + standard input is not a terminal. You may disable this beahvior + with the following sed: + </para> + +<screen><userinput>sed '/-t 0/,+3d' -i installer/install.sh</userinput></screen> + </note> </sect2> Modified: trunk/BOOK/pst/scanning/sane.xml ============================================================================== --- trunk/BOOK/pst/scanning/sane.xml Sat Feb 18 11:48:48 2017 (r18340) +++ trunk/BOOK/pst/scanning/sane.xml Sat Feb 18 13:51:19 2017 (r18341) @@ -161,7 +161,7 @@ group. Create this group by issuing the following commands as the <systemitem class="username">root</systemitem> user:</para> -<screen><userinput>groupadd -g 70 scanner</userinput></screen> +<screen role="root"><userinput>groupadd -g 70 scanner</userinput></screen> <note> <para> Modified: trunk/BOOK/server/major/vsftpd.xml ============================================================================== --- trunk/BOOK/server/major/vsftpd.xml Sat Feb 18 11:48:48 2017 (r18340) +++ trunk/BOOK/server/major/vsftpd.xml Sat Feb 18 13:51:19 2017 (r18341) @@ -181,11 +181,11 @@ <filename>/etc/vsftpd.conf</filename> file (as the <systemitem class="username">root</systemitem> user):</para> -<screen><userinput role="root">cat >> /etc/vsftpd.conf << "EOF" +<screen role="root"><userinput>cat >> /etc/vsftpd.conf << "EOF" <literal>local_enable=YES</literal> EOF</userinput></screen> - <para>In additon, if using <application>Linux-PAM</application> and + <para>In addition, if using <application>Linux-PAM</application> and <application>vsftpd</application> with local user logins, you will need a <application>Linux-PAM</application> configuration file. As the <systemitem class="username">root</systemitem> user, create the @@ -193,7 +193,7 @@ configuration changes for <application>Linux-PAM</application> session support using the following commands:</para> -<screen><userinput role="root">cat > /etc/pam.d/vsftpd << "EOF" && +<screen role="root"><userinput>cat > /etc/pam.d/vsftpd << "EOF" && <literal># Begin /etc/pam.d/vsftpd auth required /lib/security/pam_listfile.so item=user sense=deny \ file=/etc/ftpusers \ -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page