source: archive/leafnode.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 11.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY leafnode-download-http "&sourceforge-repo;/leafnode/leafnode-&leafnode-version;.tar.bz2">
8 <!ENTITY leafnode-download-ftp "ftp://ftp.gwdg.de/pub/linux/mirrors/sunsite/system/news/transport/leafnode-&leafnode-version;.tar.bz2">
9 <!ENTITY leafnode-md5sum "88552c5cc91cb27146c8906b2d33289d">
10 <!ENTITY leafnode-size "428 KB">
11 <!ENTITY leafnode-buildsize "6.2 MB">
12 <!ENTITY leafnode-time "0.1 SBU">
13]>
14
15<sect1 id="leafnode" xreflabel="Leafnode-&leafnode-version;">
16 <?dbhtml filename="leafnode.html"?>
17
18
19 <title>Leafnode-&leafnode-version;</title>
20
21 <indexterm zone="leafnode">
22 <primary sortas="a-Leafnode">Leafnode</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Leafnode</title>
27
28 <para><application>Leafnode</application> is an NNTP server designed
29 for small sites to provide a local USENET spool.</para>
30
31 <bridgehead renderas="sect3">Package Information</bridgehead>
32 <itemizedlist spacing="compact">
33 <listitem>
34 <para>Download (HTTP): <ulink url="&leafnode-download-http;"/></para>
35 </listitem>
36 <listitem>
37 <para>Download (FTP): <ulink url="&leafnode-download-ftp;"/></para>
38 </listitem>
39 <listitem>
40 <para>Download MD5 sum: &leafnode-md5sum;</para>
41 </listitem>
42 <listitem>
43 <para>Download size: &leafnode-size;</para>
44 </listitem>
45 <listitem>
46 <para>Estimated disk space required: &leafnode-buildsize;</para>
47 </listitem>
48 <listitem>
49 <para>Estimated build time: &leafnode-time;</para>
50 </listitem>
51 </itemizedlist>
52
53 <bridgehead renderas="sect3">Leafnode Dependencies</bridgehead>
54
55 <bridgehead renderas="sect4">Required</bridgehead>
56 <para role="required"><xref linkend="pcre"/> and
57 <xref linkend="tcpwrappers"/></para>
58
59 <bridgehead renderas="sect4">Recommended</bridgehead>
60 <para role="recommended">
61 <!-- <xref linkend="xinetd"/> and -->
62 <xref linkend="fcron"/>
63 </para>
64
65 <para condition="html" role="usernotes">User Notes:
66 <ulink url="&blfs-wiki;/leafnode"/></para>
67
68 </sect2>
69
70 <sect2 role="installation">
71 <title>Installation of Leafnode</title>
72
73 <para>As the <systemitem class="username">root</systemitem> user, create
74 the group and user <systemitem class="username">news</systemitem>,
75 if not present:</para>
76
77<screen role="root"><userinput>groupadd -g 36 news &amp;&amp;
78useradd -c "Leafnode News Server" -d /var/spool/news -g news \
79 -u 36 news</userinput></screen>
80
81 <para>Install <application>Leafnode</application> by running the following
82 commands:</para>
83
84<screen><userinput>./configure --prefix=/usr \
85 --localstatedir=/var --sysconfdir=/etc/leafnode \
86 --with-lockfile=/var/lock/leafnode/fetchnews.lck &amp;&amp;
87make</userinput></screen>
88 <para>To test the results, issue: <command>make check</command>.</para>
89 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
90
91<screen role="root"><userinput>make install</userinput></screen>
92
93 </sect2>
94
95 <sect2 role="commands">
96 <title>Command Explanations</title>
97
98 <para><parameter>--localstatedir=/var</parameter>: Change the default
99 spool directory of <filename class="directory">/usr/var</filename>.</para>
100
101 <para><parameter>--sysconfdir=/etc/leafnode</parameter>:
102 <application>Leafnode</application> reads its configuration data from a
103 file called <filename>config</filename> which will be created in
104 <filename class="directory">/etc/leafnode</filename> to
105 avoid any potential conflict with other packages.</para>
106
107 <para><command>make update</command>: Run this command if you are upgrading
108 from a very old version of <application>Leafnode</application>.</para>
109
110 </sect2>
111
112 <sect2 role="configuration">
113 <title>Configuring Leafnode</title>
114
115 <sect3 id="leafnode-config">
116 <title>Config Files</title>
117
118 <para><filename>/etc/leafnode/config</filename>,
119 <filename>/etc/nntpserver</filename>,
120 <filename>/etc/sysconfig/createfiles</filename>
121 <filename>/etc/inetd.conf</filename> or
122 <!-- <filename>/etc/xinetd.conf</filename> or
123 <filename>/etc/xinetd.d/nntp</filename>--></para>
124
125 <indexterm zone="leafnode leafnode-config">
126 <primary sortas="e-etc-leafnode-config">/etc/leafnode/config</primary>
127 </indexterm>
128
129 <indexterm zone="leafnode leafnode-config">
130 <primary sortas="e-etc-nntpserver">/etc/nntpserver</primary>
131 </indexterm>
132<!--
133 <indexterm zone="leafnode leafnode-config">
134 <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
135 </indexterm>
136-->
137 <indexterm zone="leafnode leafnode-config">
138 <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
139 </indexterm>
140
141 <indexterm zone="leafnode leafnode-config">
142 <primary sortas="e-etc-sysconfig-createfiles">/etc/sysconfig/createfiles</primary>
143 </indexterm>
144<!--
145 <indexterm zone="leafnode leafnode-config">
146 <primary sortas="e-etc-xinetd.d-nntp">/etc/xinetd.d/nntp</primary>
147 </indexterm>
148-->
149 </sect3>
150
151 <sect3>
152 <title>Configuration Information</title>
153
154 <para>The <filename>/etc/leafnode/config</filename> file must be
155 edited to reflect the name of the upstream NNTP provider. Copy the
156 example configuration file to <filename>/etc/leafnode/config</filename>
157 and save the original for reference:</para>
158
159<screen role="root"><userinput>cp /etc/leafnode/config.example /etc/leafnode/config</userinput></screen>
160
161 <para>Change the</para>
162
163<screen><literal>server = </literal></screen>
164
165 <para>entry to reflect your news provider.</para>
166
167 <para>The <filename>/etc/nntpserver</filename> file must contain
168 127.0.0.1 to prevent news clients from reading news from the upstream
169 feed. Create this file using the following command:</para>
170
171<screen role="root"><userinput>cat &gt; /etc/nntpserver &lt;&lt; "EOF"
172<literal>127.0.0.1</literal>
173
174EOF</userinput></screen>
175
176 <para>The <command>/etc/rc.d/init.d/cleanfs</command> script, part
177 of the LFS bootscript package, will remove the
178 <filename class="directory">/var/lock/leafnode</filename> directory
179 during the system boot sequence. Install the following line in the
180 <filename>/etc/sysconfig/createfiles</filename> file to re-create the
181 directory:</para>
182
183<screen><literal>/var/lock/leafnode dir 2775 news news</literal></screen>
184
185 <para><application>Leafnode</application> may be configured to
186 use <command>inetd</command> by adding an entry to the
187 <filename>/etc/inetd.conf</filename> file with the following
188 command:</para>
189
190<screen role="root"><userinput>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
191&gt;&gt; /etc/inetd.conf</userinput></screen>
192
193 <para>Issue a <command>killall -HUP inetd</command> to reread the
194 changed <filename>inetd.conf</filename> file.</para>
195<!--
196 <para>If you use <command>xinetd</command>, the following command will
197 create the <application>Leafnode</application> file as
198 <filename>/etc/xinetd.d/nntp</filename>:</para>
199
200<screen role="root"><userinput>cat &gt;&gt; /etc/xinetd.d/nntp &lt;&lt; "EOF"
201<literal># Begin /etc/xinetd.d/nntp
202
203 service nntp
204 {
205 flags = NAMEINARGS NOLIBWRAP
206 socket_type = stream
207 protocol = tcp
208 wait = no
209 user = news
210 server = /usr/sbin/tcpd
211 server_args = /usr/sbin/leafnode
212 instances = 7
213 per_source = 3
214 }
215
216# End /etc/xinetd.d/nntp</literal>
217EOF</userinput></screen>
218
219 <para>Issue a <command>killall -HUP xinetd</command> to reread the
220 changed <filename>xinetd.conf</filename> file.</para>
221-->
222 <para>Add entries to the <systemitem class="username">root</systemitem>
223 or <systemitem class="username">news</systemitem> user's crontab to run
224 the <command>fetchnews</command> and <command>texpire</command> commands
225 at the desired time intervals.</para>
226
227 </sect3>
228
229 </sect2>
230
231 <sect2 role="content">
232 <title>Contents</title>
233
234 <segmentedlist>
235 <segtitle>Installed Programs</segtitle>
236 <segtitle>Installed Libraries</segtitle>
237 <segtitle>Installed Directories</segtitle>
238
239 <seglistitem>
240 <seg>applyfilter, checkgroups, fetchnews, leafnode,
241 leafnode-version, newsq, and texpire</seg>
242 <seg>None</seg>
243 <seg>/etc/leafnode, /var/lock/leafnode, and /var/spool/news</seg>
244 </seglistitem>
245 </segmentedlist>
246
247 <variablelist>
248 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
249 <?dbfo list-presentation="list"?>
250 <?dbhtml list-presentation="table"?>
251
252 <varlistentry id="applyfilter">
253 <term><command>applyfilter</command></term>
254 <listitem>
255 <para>filters newsgroup articles according to regular
256 expressions.</para>
257 <indexterm zone="leafnode applyfilter">
258 <primary sortas="b-applyfilter">applyfilter</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="checkgroups">
264 <term><command>checkgroups</command></term>
265 <listitem>
266 <para>inserts newsgroup titles into the newsgroup database.</para>
267 <indexterm zone="leafnode checkgroups">
268 <primary sortas="b-checkgroups">checkgroups</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="fetchnews">
274 <term><command>fetchnews</command></term>
275 <listitem>
276 <para>sends posted articles to and retrieves new articles from an
277 upstream news server.</para>
278 <indexterm zone="leafnode fetchnews">
279 <primary sortas="b-fetchnews">fetchnews</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="leafnode-prog">
285 <term><command>leafnode</command></term>
286 <listitem>
287 <para>is an NNTP server daemon.</para>
288 <indexterm zone="leafnode leafnode-prog">
289 <primary sortas="b-leafnode">leafnode</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="leafnode-version">
295 <term><command>leafnode-version</command></term>
296 <listitem>
297 <para>prints the <application>Leafnode</application> version.</para>
298 <indexterm zone="leafnode leafnode-version">
299 <primary sortas="b-leafnode-version">leafnode-version</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="newsq">
305 <term><command>newsq</command></term>
306 <listitem>
307 <para>shows articles waiting to be sent upstream.</para>
308 <indexterm zone="leafnode newsq">
309 <primary sortas="b-newsq">newsq</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="texpire">
315 <term><command>texpire</command></term>
316 <listitem>
317 <para>expires old articles and unread groups.</para>
318 <indexterm zone="leafnode texpire">
319 <primary sortas="b-texpire">texpire</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 </variablelist>
325
326 </sect2>
327
328</sect1>
Note: See TracBrowser for help on using the repository browser.