[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[be2a00b] | 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">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[40330fcd] | 15 | <sect1 id="leafnode" xreflabel="Leafnode-&leafnode-version;">
|
---|
[be2a00b] | 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 |
|
---|
[b785ab29] | 73 | <screen role="root"><userinput>groupadd -g 36 news &&
|
---|
| 74 | useradd -c "Leafnode News Server" -d /var/spool/news -g news \
|
---|
| 75 | -u 36 news</userinput></screen>
|
---|
[be2a00b] | 76 |
|
---|
| 77 | <para>Install <application>Leafnode</application> by running the following
|
---|
| 78 | commands:</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput>./configure --prefix=/usr \
|
---|
[9f729d3] | 81 | --localstatedir=/var --sysconfdir=/etc/leafnode \
|
---|
| 82 | --with-lockfile=/var/lock/leafnode/fetchnews.lck &&
|
---|
[be2a00b] | 83 | make</userinput></screen>
|
---|
[7f2584b7] | 84 |
|
---|
[be2a00b] | 85 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[7f2584b7] | 86 |
|
---|
[be2a00b] | 87 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[0931098] | 88 |
|
---|
[be2a00b] | 89 | </sect2>
|
---|
[0931098] | 90 |
|
---|
[be2a00b] | 91 | <sect2 role="commands">
|
---|
| 92 | <title>Command Explanations</title>
|
---|
[0931098] | 93 |
|
---|
[be2a00b] | 94 | <para><parameter>--localstatedir=/var</parameter>: Change the default
|
---|
| 95 | spool directory of <filename class="directory">/usr/var</filename>.</para>
|
---|
[0931098] | 96 |
|
---|
[be2a00b] | 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>
|
---|
[0931098] | 102 |
|
---|
[be2a00b] | 103 | <para><command>make update</command>: Run this command if you are upgrading
|
---|
| 104 | from a very old version of <application>Leafnode</application>.</para>
|
---|
[0931098] | 105 |
|
---|
[be2a00b] | 106 | </sect2>
|
---|
[0931098] | 107 |
|
---|
[be2a00b] | 108 | <sect2 role="configuration">
|
---|
| 109 | <title>Configuring Leafnode</title>
|
---|
[0931098] | 110 |
|
---|
[be2a00b] | 111 | <sect3 id="leafnode-config">
|
---|
| 112 | <title>Config Files</title>
|
---|
| 113 |
|
---|
| 114 | <para><filename>/etc/leafnode/config</filename>,
|
---|
| 115 | <filename>/etc/nntpserver</filename>,
|
---|
[ecc3032] | 116 | <filename>/etc/sysconfig/createfiles</filename>
|
---|
| 117 | <filename>/etc/inetd.conf</filename> or
|
---|
[be2a00b] | 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>
|
---|
[ecc3032] | 132 |
|
---|
[be2a00b] | 133 | <indexterm zone="leafnode leafnode-config">
|
---|
| 134 | <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
|
---|
| 135 | </indexterm>
|
---|
[ecc3032] | 136 |
|
---|
[be2a00b] | 137 | <indexterm zone="leafnode leafnode-config">
|
---|
| 138 | <primary sortas="e-etc-sysconfig-createfiles">/etc/sysconfig/createfiles</primary>
|
---|
| 139 | </indexterm>
|
---|
[ecc3032] | 140 |
|
---|
[be2a00b] | 141 | <indexterm zone="leafnode leafnode-config">
|
---|
| 142 | <primary sortas="e-etc-xinetd.d-nntp">/etc/xinetd.d/nntp</primary>
|
---|
| 143 | </indexterm>
|
---|
[ecc3032] | 144 |
|
---|
[be2a00b] | 145 | </sect3>
|
---|
[ecc3032] | 146 |
|
---|
[be2a00b] | 147 | <sect3>
|
---|
| 148 | <title>Configuration Information</title>
|
---|
[ecc3032] | 149 |
|
---|
[be2a00b] | 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>
|
---|
[9f729d3] | 154 |
|
---|
[be2a00b] | 155 | <screen role="root"><userinput>cp /etc/leafnode/config.example /etc/leafnode/config</userinput></screen>
|
---|
[9f729d3] | 156 |
|
---|
[be2a00b] | 157 | <para>Change the</para>
|
---|
[9f729d3] | 158 |
|
---|
[be2a00b] | 159 | <screen><literal>server = </literal></screen>
|
---|
[9f729d3] | 160 |
|
---|
[be2a00b] | 161 | <para>entry to reflect your news provider.</para>
|
---|
[9f729d3] | 162 |
|
---|
[be2a00b] | 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>
|
---|
[9f729d3] | 166 |
|
---|
[be2a00b] | 167 | <screen role="root"><userinput>cat > /etc/nntpserver << "EOF"
|
---|
| 168 | <literal>127.0.0.1</literal>
|
---|
[7f2584b7] | 169 |
|
---|
[be2a00b] | 170 | EOF</userinput></screen>
|
---|
[9f729d3] | 171 |
|
---|
[be2a00b] | 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>
|
---|
[9f729d3] | 178 |
|
---|
[be2a00b] | 179 | <screen><literal>/var/lock/leafnode dir 2775 news news</literal></screen>
|
---|
[0931098] | 180 |
|
---|
[be2a00b] | 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>
|
---|
[0931098] | 185 |
|
---|
[be2a00b] | 186 | <screen role="root"><userinput>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
|
---|
| 187 | >> /etc/inetd.conf</userinput></screen>
|
---|
[0931098] | 188 |
|
---|
[be2a00b] | 189 | <para>Issue a <command>killall -HUP inetd</command> to reread the
|
---|
| 190 | changed <filename>inetd.conf</filename> file.</para>
|
---|
[0931098] | 191 |
|
---|
[be2a00b] | 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>
|
---|
[1f672c1] | 195 |
|
---|
[be2a00b] | 196 | <screen role="root"><userinput>cat >> /etc/xinetd.d/nntp << "EOF"
|
---|
| 197 | <literal># Begin /etc/xinetd.d/nntp
|
---|
[0931098] | 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 | }
|
---|
[1f672c1] | 211 |
|
---|
[be2a00b] | 212 | # End /etc/xinetd.d/nntp</literal>
|
---|
| 213 | EOF</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>
|
---|
[f45b1953] | 323 |
|
---|
| 324 | </sect1>
|
---|