1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY leafnode-download-http "http://prdownloads.sourceforge.net/leafnode/leafnode-&leafnode-version;.rel.tar.bz2">
|
---|
8 | <!ENTITY leafnode-download-ftp "ftp://ftp.gwdg.de/pub/linux/mirrors/sunsite/system/news/transport/leafnode-&leafnode-version;.rel.tar.bz2">
|
---|
9 | <!ENTITY leafnode-size "383 KB">
|
---|
10 | <!ENTITY leafnode-buildsize "8.8 MB">
|
---|
11 | <!ENTITY leafnode-time "0.11 SBU">
|
---|
12 |
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="leafnode" xreflabel="Leafnode-&leafnode-version;">
|
---|
16 | <?dbhtml filename="leafnode.html"?>
|
---|
17 | <title>Leafnode-&leafnode-version;</title>
|
---|
18 |
|
---|
19 | <sect2>
|
---|
20 | <title>Introduction to <application>Leafnode</application></title>
|
---|
21 |
|
---|
22 | <para><application>Leafnode</application> is an <acronym>NNTP</acronym>
|
---|
23 | server designed for small sites to provide a local USENET spool.</para>
|
---|
24 |
|
---|
25 | <sect3><title>Package information</title>
|
---|
26 | <itemizedlist spacing='compact'>
|
---|
27 | <listitem><para>Download (HTTP): <ulink url="&leafnode-download-http;"/></para></listitem>
|
---|
28 | <listitem><para>Download (FTP): <ulink url="&leafnode-download-ftp;"/></para></listitem>
|
---|
29 | <listitem><para>Download size: &leafnode-size;</para></listitem>
|
---|
30 | <listitem><para>Estimated Disk space required: &leafnode-buildsize;</para></listitem>
|
---|
31 | <listitem><para>Estimated build time: &leafnode-time;</para></listitem></itemizedlist>
|
---|
32 | </sect3>
|
---|
33 |
|
---|
34 | <sect3><title><application>Leafnode</application> dependencies</title>
|
---|
35 | <sect4><title>Required</title>
|
---|
36 | <para><xref linkend="pcre"/> and <xref linkend="tcpwrappers"/>
|
---|
37 | </para></sect4>
|
---|
38 | <sect4><title>Recommended</title>
|
---|
39 | <para><xref linkend="xinetd"/></para></sect4>
|
---|
40 | </sect3>
|
---|
41 |
|
---|
42 | </sect2>
|
---|
43 |
|
---|
44 | <sect2>
|
---|
45 | <title>Installation of <application>Leafnode</application></title>
|
---|
46 |
|
---|
47 | <para>Create the group and user news, if not present:</para>
|
---|
48 |
|
---|
49 | <screen><userinput><command>groupadd news &&
|
---|
50 | useradd -g news news</command></userinput></screen>
|
---|
51 |
|
---|
52 | <para>Install <application>Leafnode</application> by running the following
|
---|
53 | commands:</para>
|
---|
54 |
|
---|
55 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
56 | --localstatedir=/var --sysconfdir=/etc/leafnode \
|
---|
57 | --with-lockfile=/var/lock/leafnode/fetchnews.lck &&
|
---|
58 | make &&
|
---|
59 | make install</command></userinput></screen>
|
---|
60 | <!-- ldconfig && -->
|
---|
61 | <!-- make update</command></userinput></screen> -->
|
---|
62 |
|
---|
63 | </sect2>
|
---|
64 |
|
---|
65 | <sect2>
|
---|
66 | <title>Installation command explanations</title>
|
---|
67 |
|
---|
68 | <para><parameter>--localstatedir=/var</parameter>: Change the default
|
---|
69 | spool directory of <filename class="directory">/usr/var</filename>.</para>
|
---|
70 |
|
---|
71 | <para><parameter>--sysconfdir=/etc/leafnode</parameter>:
|
---|
72 | <application>Leafnode</application> reads its configuration data from a file
|
---|
73 | called <filename>config</filename> which will be created in
|
---|
74 | <filename class="directory">/etc/leafnode</filename> to
|
---|
75 | avoid any potential conflict with other packages.</para>
|
---|
76 |
|
---|
77 | <para><command>make update</command>: Run this command if you are upgrading
|
---|
78 | from a very old version of <application>Leafnode</application>.</para>
|
---|
79 |
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 | <sect2>
|
---|
83 | <title>Configuring <application>Leafnode</application></title>
|
---|
84 |
|
---|
85 | <sect3><title>Config files</title>
|
---|
86 | <para><filename>/etc/leafnode/config</filename>,
|
---|
87 | <filename>/etc/xinetd.conf</filename> or
|
---|
88 | <filename>/etc/inetd.conf</filename></para></sect3>
|
---|
89 |
|
---|
90 | <sect3><title>Configuration commands</title>
|
---|
91 |
|
---|
92 | <para>The <filename>/etc/leafnode/config</filename> file must be
|
---|
93 | edited to reflect the name of the upstream <acronym>NNTP</acronym>
|
---|
94 | provider. Copy the example configuration file to
|
---|
95 | <filename>/etc/leafnode/config</filename> and save the original for
|
---|
96 | reference:</para>
|
---|
97 |
|
---|
98 | <screen><userinput><command>cp /etc/leafnode/config.example /etc/leafnode/config</command></userinput></screen>
|
---|
99 |
|
---|
100 | <para>Change the
|
---|
101 | <screen><userinput>server = </userinput></screen>
|
---|
102 | entry to reflect your news provider.</para>
|
---|
103 |
|
---|
104 | <para>The <filename>/etc/nntpserver</filename> file must contain 127.0.0.1 to
|
---|
105 | prevent news clients from reading news from the upstream feed. Create this
|
---|
106 | file using the following command:</para>
|
---|
107 |
|
---|
108 | <screen><userinput><command>cat > /etc/nntpserver << "EOF"</command>
|
---|
109 | 127.0.0.1
|
---|
110 | <command>EOF</command></userinput></screen>
|
---|
111 |
|
---|
112 | <para>The <command>/etc/rc.d/init.d/cleanfs</command> script, part of the
|
---|
113 | <acronym>LFS</acronym> bootscript package, will remove the
|
---|
114 | <filename class="directory">/var/lock/leafnode</filename> directory during
|
---|
115 | the system boot sequence. Install the following line in the
|
---|
116 | <filename>/etc/sysconfig/createfiles</filename> file to re-create the
|
---|
117 | directory:</para>
|
---|
118 |
|
---|
119 | <screen><userinput>/var/lock/leafnode dir 2775 news news</userinput></screen>
|
---|
120 |
|
---|
121 | <para><application>Leafnode</application> may be configured to use
|
---|
122 | <command>inetd</command> by adding an entry to the
|
---|
123 | <filename>/etc/inetd.conf</filename> file with the following
|
---|
124 | command:</para>
|
---|
125 |
|
---|
126 | <screen><userinput><command>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
|
---|
127 | >> /etc/inetd.conf</command></userinput></screen>
|
---|
128 |
|
---|
129 | <para>Issue a <command>killall -HUP inetd</command> to reread the
|
---|
130 | changed <filename>inetd.conf</filename> file.</para>
|
---|
131 |
|
---|
132 | <para>Alternatively, <application>Leafnode</application> may be configured to
|
---|
133 | use <command>xinetd</command> by adding an entry to the
|
---|
134 | <filename>/etc/xinetd.conf</filename> file with the following command:</para>
|
---|
135 |
|
---|
136 | <screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
---|
137 | service nntp
|
---|
138 | {
|
---|
139 | flags = NAMEINARGS NOLIBWRAP
|
---|
140 | socket_type = stream
|
---|
141 | protocol = tcp
|
---|
142 | wait = no
|
---|
143 | user = news
|
---|
144 | server = /usr/sbin/tcpd
|
---|
145 | server_args = /usr/sbin/leafnode
|
---|
146 | instances = 7
|
---|
147 | per_source = 3
|
---|
148 | }
|
---|
149 | <command>EOF</command></userinput></screen>
|
---|
150 |
|
---|
151 | <para>Issue a <command>killall -HUP xinetd</command> to reread the
|
---|
152 | changed <filename>xinetd.conf</filename> file.</para>
|
---|
153 |
|
---|
154 | <para>Add entries to the root or news user's crontab to run the
|
---|
155 | <command>fetchnews</command> and <command>texpire</command> commands at the
|
---|
156 | desired time intervals.</para>
|
---|
157 |
|
---|
158 | </sect3>
|
---|
159 |
|
---|
160 | </sect2>
|
---|
161 |
|
---|
162 | <sect2>
|
---|
163 | <title>Contents</title>
|
---|
164 |
|
---|
165 | <para>The <application>Leafnode</application> package contains
|
---|
166 | <command>leafnode-version</command>,
|
---|
167 | <command>leafnode</command>,
|
---|
168 | <command>applyfilter</command>,
|
---|
169 | <command>texpire</command>,
|
---|
170 | <command>checkgroups</command>,
|
---|
171 | <command>fetchnews</command> and
|
---|
172 | <command>newsq.</command></para>
|
---|
173 | </sect2>
|
---|
174 |
|
---|
175 | <sect2><title>Description</title>
|
---|
176 |
|
---|
177 | <sect3><title>leafnode-version</title>
|
---|
178 | <para><command>leafnode-version</command> prints the leafnode
|
---|
179 | version.</para></sect3>
|
---|
180 |
|
---|
181 | <sect3><title>leafnode</title>
|
---|
182 | <para><command>leafnode</command> is the <acronym>NNTP</acronym>
|
---|
183 | server daemon.</para></sect3>
|
---|
184 |
|
---|
185 | <sect3><title>applyfilter</title>
|
---|
186 | <para><command>applyfilter</command> filters newsgroup articles according
|
---|
187 | to regular expressions.</para></sect3>
|
---|
188 |
|
---|
189 | <sect3><title>texpire</title>
|
---|
190 | <para><command>texpire</command> expires old articles and unread
|
---|
191 | groups.</para></sect3>
|
---|
192 |
|
---|
193 | <sect3><title>checkgroups</title>
|
---|
194 | <para><command>checkgroups</command> inserts newsgroup titles into the
|
---|
195 | newsgroup database.</para></sect3>
|
---|
196 |
|
---|
197 | <sect3><title>fetchnews</title>
|
---|
198 | <para><command>fetchnews</command> sends posted articles to and retrieves
|
---|
199 | new articles from an upstream news server.</para></sect3>
|
---|
200 |
|
---|
201 | <sect3><title>newsq</title>
|
---|
202 | <para><command>newsq</command> shows articles waiting to be sent
|
---|
203 | upstream.</para></sect3>
|
---|
204 |
|
---|
205 | </sect2>
|
---|
206 |
|
---|
207 | </sect1>
|
---|