source: server/other/leafnode.xml@ 9f729d3

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 9f729d3 was 9f729d3, checked in by Randy McMurchy <randy@…>, 20 years ago

updated to Leafnode-1.10.0

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

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