source: server/other/leafnode.xml@ eb2c0073

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since eb2c0073 was eb2c0073, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Updated to Leafnode-1.11.5.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6004 af4574ff-66df-0310-9fd7-8a98e5e911e0

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