source: server/other/leafnode.xml@ 0fbab6b

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 0fbab6b was 0fbab6b, checked in by Randy McMurchy <randy@…>, 19 years ago

Added md5sums to Chapter 22 package instructions

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

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