mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
Fix a few minor issues
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18341 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
80a314cae2
commit
1dd7b0aece
@ -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 @@ make</userinput></screen>
|
||||
<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>
|
||||
|
@ -97,6 +97,22 @@ make</userinput></screen>
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -128,6 +128,15 @@ cp -v policy/*.txt /usr/share/doc/tripwire-&tripwire-version;</userinput></scree
|
||||
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>
|
||||
|
@ -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>
|
||||
|
@ -181,11 +181,11 @@ EOF</userinput></screen>
|
||||
<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 @@ EOF</userinput></screen>
|
||||
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user