mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
5cd0959daa
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2592 af4574ff-66df-0310-9fd7-8a98e5e911e0
212 lines
7.4 KiB
XML
212 lines
7.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY leafnode-download-http "http://prdownloads.sourceforge.net/leafnode/leafnode-&leafnode-version;.rel.tar.bz2">
|
|
<!ENTITY leafnode-download-ftp "ftp://ftp.gwdg.de/pub/linux/mirrors/sunsite/system/news/transport/leafnode-&leafnode-version;.rel.tar.bz2">
|
|
<!ENTITY leafnode-size "383 KB">
|
|
<!ENTITY leafnode-buildsize "8.8 MB">
|
|
<!ENTITY leafnode-time "0.11 SBU">
|
|
|
|
]>
|
|
|
|
<sect1 id="leafnode" xreflabel="Leafnode-&leafnode-version;">
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
<?dbhtml filename="leafnode.html"?>
|
|
<title>Leafnode-&leafnode-version;</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>Leafnode</application></title>
|
|
|
|
<para><application>Leafnode</application> is an <acronym>NNTP</acronym>
|
|
server designed for small sites to provide a local USENET spool.</para>
|
|
|
|
<sect3><title>Package information</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Download (HTTP): <ulink url="&leafnode-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP): <ulink url="&leafnode-download-ftp;"/></para></listitem>
|
|
<listitem><para>Download size: &leafnode-size;</para></listitem>
|
|
<listitem><para>Estimated Disk space required: &leafnode-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time: &leafnode-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title><application>Leafnode</application> dependencies</title>
|
|
<sect4><title>Required</title>
|
|
<para><xref linkend="pcre"/> and <xref linkend="tcpwrappers"/>
|
|
</para></sect4>
|
|
<sect4><title>Recommended</title>
|
|
<para><xref linkend="xinetd"/></para></sect4>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>Leafnode</application></title>
|
|
|
|
<para>Create the group and user news, if not present:</para>
|
|
|
|
<screen><userinput><command>groupadd news &&
|
|
useradd -g news news</command></userinput></screen>
|
|
|
|
<para>Install <application>Leafnode</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput><command>./configure --prefix=/usr \
|
|
--localstatedir=/var --sysconfdir=/etc/leafnode \
|
|
--with-lockfile=/var/lock/leafnode/fetchnews.lck &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
<!-- ldconfig && -->
|
|
<!-- make update</command></userinput></screen> -->
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation command explanations</title>
|
|
|
|
<para><parameter>--localstatedir=/var</parameter>: Change the default
|
|
spool directory of <filename class="directory">/usr/var</filename>.</para>
|
|
|
|
<para><parameter>--sysconfdir=/etc/leafnode</parameter>:
|
|
<application>Leafnode</application> reads its configuration data from a file
|
|
called <filename>config</filename> which will be created in
|
|
<filename class="directory">/etc/leafnode</filename> to
|
|
avoid any potential conflict with other packages.</para>
|
|
|
|
<para><command>make update</command>: Run this command if you are upgrading
|
|
from a very old version of <application>Leafnode</application>.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Configuring <application>Leafnode</application></title>
|
|
|
|
<sect3><title>Config files</title>
|
|
<para><filename>/etc/leafnode/config</filename>,
|
|
<filename>/etc/xinetd.conf</filename> or
|
|
<filename>/etc/inetd.conf</filename></para></sect3>
|
|
|
|
<sect3><title>Configuration commands</title>
|
|
|
|
<para>The <filename>/etc/leafnode/config</filename> file must be
|
|
edited to reflect the name of the upstream <acronym>NNTP</acronym>
|
|
provider. Copy the example configuration file to
|
|
<filename>/etc/leafnode/config</filename> and save the original for
|
|
reference:</para>
|
|
|
|
<screen><userinput><command>cp /etc/leafnode/config.example /etc/leafnode/config</command></userinput></screen>
|
|
|
|
<para>Change the
|
|
<screen><userinput>server = </userinput></screen>
|
|
entry to reflect your news provider.</para>
|
|
|
|
<para>The <filename>/etc/nntpserver</filename> file must contain 127.0.0.1 to
|
|
prevent news clients from reading news from the upstream feed. Create this
|
|
file using the following command:</para>
|
|
|
|
<screen><userinput><command>cat > /etc/nntpserver << "EOF"</command>
|
|
127.0.0.1
|
|
<command>EOF</command></userinput></screen>
|
|
|
|
<para>The <command>/etc/rc.d/init.d/cleanfs</command> script, part of the
|
|
<acronym>LFS</acronym> bootscript package, will remove the
|
|
<filename class="directory">/var/lock/leafnode</filename> directory during
|
|
the system boot sequence. Install the following line in the
|
|
<filename>/etc/sysconfig/createfiles</filename> file to re-create the
|
|
directory:</para>
|
|
|
|
<screen><userinput>/var/lock/leafnode dir 2775 news news</userinput></screen>
|
|
|
|
<para><application>Leafnode</application> may be configured to use
|
|
<command>inetd</command> by adding an entry to the
|
|
<filename>/etc/inetd.conf</filename> file with the following
|
|
command:</para>
|
|
|
|
<screen><userinput><command>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
|
|
>> /etc/inetd.conf</command></userinput></screen>
|
|
|
|
<para>Issue a <command>killall -HUP inetd</command> to reread the
|
|
changed <filename>inetd.conf</filename> file.</para>
|
|
|
|
<para>Alternatively, <application>Leafnode</application> may be configured to
|
|
use <command>xinetd</command> by adding an entry to the
|
|
<filename>/etc/xinetd.conf</filename> file with the following command:</para>
|
|
|
|
<screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
|
service nntp
|
|
{
|
|
flags = NAMEINARGS NOLIBWRAP
|
|
socket_type = stream
|
|
protocol = tcp
|
|
wait = no
|
|
user = news
|
|
server = /usr/sbin/tcpd
|
|
server_args = /usr/sbin/leafnode
|
|
instances = 7
|
|
per_source = 3
|
|
}
|
|
<command>EOF</command></userinput></screen>
|
|
|
|
<para>Issue a <command>killall -HUP xinetd</command> to reread the
|
|
changed <filename>xinetd.conf</filename> file.</para>
|
|
|
|
<para>Add entries to the root or news user's crontab to run the
|
|
<command>fetchnews</command> and <command>texpire</command> commands at the
|
|
desired time intervals.</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<para>The <application>Leafnode</application> package contains
|
|
<command>leafnode-version</command>,
|
|
<command>leafnode</command>,
|
|
<command>applyfilter</command>,
|
|
<command>texpire</command>,
|
|
<command>checkgroups</command>,
|
|
<command>fetchnews</command> and
|
|
<command>newsq.</command></para>
|
|
</sect2>
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
<sect3><title>leafnode-version</title>
|
|
<para><command>leafnode-version</command> prints the leafnode
|
|
version.</para></sect3>
|
|
|
|
<sect3><title>leafnode</title>
|
|
<para><command>leafnode</command> is the <acronym>NNTP</acronym>
|
|
server daemon.</para></sect3>
|
|
|
|
<sect3><title>applyfilter</title>
|
|
<para><command>applyfilter</command> filters newsgroup articles according
|
|
to regular expressions.</para></sect3>
|
|
|
|
<sect3><title>texpire</title>
|
|
<para><command>texpire</command> expires old articles and unread
|
|
groups.</para></sect3>
|
|
|
|
<sect3><title>checkgroups</title>
|
|
<para><command>checkgroups</command> inserts newsgroup titles into the
|
|
newsgroup database.</para></sect3>
|
|
|
|
<sect3><title>fetchnews</title>
|
|
<para><command>fetchnews</command> sends posted articles to and retrieves
|
|
new articles from an upstream news server.</para></sect3>
|
|
|
|
<sect3><title>newsq</title>
|
|
<para><command>newsq</command> shows articles waiting to be sent
|
|
upstream.</para></sect3>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|