source: server/other/leafnode.xml@ 61e058b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 61e058b was b785ab29, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Integrated system uid and gid values

into individual packages.

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

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