source: server/other/leafnode.xml@ 02663ce

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 02663ce was 5cd0959d, checked in by Archaic <archaic@…>, 20 years ago

Resetting keywords

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

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