source: server/other/leafnode.xml@ 12967d4

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 12967d4 was 27609aaf, checked in by Richard Downing <richard@…>, 19 years ago

Updated to leafnode-1.11.3

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

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