[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY leafnode-download-http "&sourceforge-repo;/leafnode/leafnode-&leafnode-version;.tar.bz2">
|
---|
[eb2c0073] | 8 | <!ENTITY leafnode-download-ftp "ftp://ftp.gwdg.de/pub/linux/mirrors/sunsite/system/news/transport/leafnode-&leafnode-version;.tar.bz2">
|
---|
| 9 | <!ENTITY leafnode-md5sum "88552c5cc91cb27146c8906b2d33289d">
|
---|
| 10 | <!ENTITY leafnode-size "428 KB">
|
---|
| 11 | <!ENTITY leafnode-buildsize "6.2 MB">
|
---|
| 12 | <!ENTITY leafnode-time "0.1 SBU">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[40330fcd] | 15 | <sect1 id="leafnode" xreflabel="Leafnode-&leafnode-version;">
|
---|
[be2a00b] | 16 | <?dbhtml filename="leafnode.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Leafnode-&leafnode-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="leafnode">
|
---|
| 22 | <primary sortas="a-Leafnode">Leafnode</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Leafnode</title>
|
---|
| 27 |
|
---|
| 28 | <para><application>Leafnode</application> is an NNTP server designed
|
---|
| 29 | for small sites to provide a local USENET spool.</para>
|
---|
| 30 |
|
---|
| 31 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 32 | <itemizedlist spacing="compact">
|
---|
| 33 | <listitem>
|
---|
| 34 | <para>Download (HTTP): <ulink url="&leafnode-download-http;"/></para>
|
---|
| 35 | </listitem>
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>Download (FTP): <ulink url="&leafnode-download-ftp;"/></para>
|
---|
| 38 | </listitem>
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download MD5 sum: &leafnode-md5sum;</para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download size: &leafnode-size;</para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Estimated disk space required: &leafnode-buildsize;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Estimated build time: &leafnode-time;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | </itemizedlist>
|
---|
| 52 |
|
---|
| 53 | <bridgehead renderas="sect3">Leafnode Dependencies</bridgehead>
|
---|
| 54 |
|
---|
| 55 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[a6ac43b] | 56 | <para role="required"><xref linkend="pcre"/> and
|
---|
| 57 | <xref linkend="tcpwrappers"/></para>
|
---|
[be2a00b] | 58 |
|
---|
| 59 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[59048cd9] | 60 | <para role="recommended">
|
---|
| 61 | <!-- <xref linkend="xinetd"/> and -->
|
---|
| 62 | <xref linkend="fcron"/>
|
---|
| 63 | </para>
|
---|
[be2a00b] | 64 |
|
---|
[3cb0c57] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/leafnode"/></para>
|
---|
| 67 |
|
---|
[be2a00b] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of Leafnode</title>
|
---|
| 72 |
|
---|
[27609aaf] | 73 | <para>As the <systemitem class="username">root</systemitem> user, create
|
---|
| 74 | the group and user <systemitem class="username">news</systemitem>,
|
---|
[be2a00b] | 75 | if not present:</para>
|
---|
| 76 |
|
---|
[b785ab29] | 77 | <screen role="root"><userinput>groupadd -g 36 news &&
|
---|
| 78 | useradd -c "Leafnode News Server" -d /var/spool/news -g news \
|
---|
| 79 | -u 36 news</userinput></screen>
|
---|
[be2a00b] | 80 |
|
---|
| 81 | <para>Install <application>Leafnode</application> by running the following
|
---|
| 82 | commands:</para>
|
---|
| 83 |
|
---|
| 84 | <screen><userinput>./configure --prefix=/usr \
|
---|
[9f729d3] | 85 | --localstatedir=/var --sysconfdir=/etc/leafnode \
|
---|
| 86 | --with-lockfile=/var/lock/leafnode/fetchnews.lck &&
|
---|
[be2a00b] | 87 | make</userinput></screen>
|
---|
[27609aaf] | 88 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[be2a00b] | 89 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[7f2584b7] | 90 |
|
---|
[be2a00b] | 91 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[0931098] | 92 |
|
---|
[be2a00b] | 93 | </sect2>
|
---|
[0931098] | 94 |
|
---|
[be2a00b] | 95 | <sect2 role="commands">
|
---|
| 96 | <title>Command Explanations</title>
|
---|
[0931098] | 97 |
|
---|
[be2a00b] | 98 | <para><parameter>--localstatedir=/var</parameter>: Change the default
|
---|
| 99 | spool directory of <filename class="directory">/usr/var</filename>.</para>
|
---|
[0931098] | 100 |
|
---|
[be2a00b] | 101 | <para><parameter>--sysconfdir=/etc/leafnode</parameter>:
|
---|
| 102 | <application>Leafnode</application> reads its configuration data from a
|
---|
| 103 | file called <filename>config</filename> which will be created in
|
---|
| 104 | <filename class="directory">/etc/leafnode</filename> to
|
---|
| 105 | avoid any potential conflict with other packages.</para>
|
---|
[0931098] | 106 |
|
---|
[be2a00b] | 107 | <para><command>make update</command>: Run this command if you are upgrading
|
---|
| 108 | from a very old version of <application>Leafnode</application>.</para>
|
---|
[0931098] | 109 |
|
---|
[be2a00b] | 110 | </sect2>
|
---|
[0931098] | 111 |
|
---|
[be2a00b] | 112 | <sect2 role="configuration">
|
---|
| 113 | <title>Configuring Leafnode</title>
|
---|
[0931098] | 114 |
|
---|
[be2a00b] | 115 | <sect3 id="leafnode-config">
|
---|
| 116 | <title>Config Files</title>
|
---|
| 117 |
|
---|
| 118 | <para><filename>/etc/leafnode/config</filename>,
|
---|
| 119 | <filename>/etc/nntpserver</filename>,
|
---|
[ecc3032] | 120 | <filename>/etc/sysconfig/createfiles</filename>
|
---|
| 121 | <filename>/etc/inetd.conf</filename> or
|
---|
[59048cd9] | 122 | <!-- <filename>/etc/xinetd.conf</filename> or
|
---|
| 123 | <filename>/etc/xinetd.d/nntp</filename>--></para>
|
---|
[be2a00b] | 124 |
|
---|
| 125 | <indexterm zone="leafnode leafnode-config">
|
---|
| 126 | <primary sortas="e-etc-leafnode-config">/etc/leafnode/config</primary>
|
---|
| 127 | </indexterm>
|
---|
| 128 |
|
---|
| 129 | <indexterm zone="leafnode leafnode-config">
|
---|
| 130 | <primary sortas="e-etc-nntpserver">/etc/nntpserver</primary>
|
---|
| 131 | </indexterm>
|
---|
[59048cd9] | 132 | <!--
|
---|
[be2a00b] | 133 | <indexterm zone="leafnode leafnode-config">
|
---|
| 134 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
| 135 | </indexterm>
|
---|
[59048cd9] | 136 | -->
|
---|
[be2a00b] | 137 | <indexterm zone="leafnode leafnode-config">
|
---|
| 138 | <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
|
---|
| 139 | </indexterm>
|
---|
[ecc3032] | 140 |
|
---|
[be2a00b] | 141 | <indexterm zone="leafnode leafnode-config">
|
---|
| 142 | <primary sortas="e-etc-sysconfig-createfiles">/etc/sysconfig/createfiles</primary>
|
---|
| 143 | </indexterm>
|
---|
[59048cd9] | 144 | <!--
|
---|
[be2a00b] | 145 | <indexterm zone="leafnode leafnode-config">
|
---|
| 146 | <primary sortas="e-etc-xinetd.d-nntp">/etc/xinetd.d/nntp</primary>
|
---|
| 147 | </indexterm>
|
---|
[59048cd9] | 148 | -->
|
---|
[be2a00b] | 149 | </sect3>
|
---|
[ecc3032] | 150 |
|
---|
[be2a00b] | 151 | <sect3>
|
---|
| 152 | <title>Configuration Information</title>
|
---|
[ecc3032] | 153 |
|
---|
[be2a00b] | 154 | <para>The <filename>/etc/leafnode/config</filename> file must be
|
---|
| 155 | edited to reflect the name of the upstream NNTP provider. Copy the
|
---|
| 156 | example configuration file to <filename>/etc/leafnode/config</filename>
|
---|
| 157 | and save the original for reference:</para>
|
---|
[9f729d3] | 158 |
|
---|
[be2a00b] | 159 | <screen role="root"><userinput>cp /etc/leafnode/config.example /etc/leafnode/config</userinput></screen>
|
---|
[9f729d3] | 160 |
|
---|
[be2a00b] | 161 | <para>Change the</para>
|
---|
[9f729d3] | 162 |
|
---|
[be2a00b] | 163 | <screen><literal>server = </literal></screen>
|
---|
[9f729d3] | 164 |
|
---|
[be2a00b] | 165 | <para>entry to reflect your news provider.</para>
|
---|
[9f729d3] | 166 |
|
---|
[be2a00b] | 167 | <para>The <filename>/etc/nntpserver</filename> file must contain
|
---|
| 168 | 127.0.0.1 to prevent news clients from reading news from the upstream
|
---|
| 169 | feed. Create this file using the following command:</para>
|
---|
[9f729d3] | 170 |
|
---|
[be2a00b] | 171 | <screen role="root"><userinput>cat > /etc/nntpserver << "EOF"
|
---|
| 172 | <literal>127.0.0.1</literal>
|
---|
[7f2584b7] | 173 |
|
---|
[be2a00b] | 174 | EOF</userinput></screen>
|
---|
[9f729d3] | 175 |
|
---|
[be2a00b] | 176 | <para>The <command>/etc/rc.d/init.d/cleanfs</command> script, part
|
---|
| 177 | of the LFS bootscript package, will remove the
|
---|
| 178 | <filename class="directory">/var/lock/leafnode</filename> directory
|
---|
| 179 | during the system boot sequence. Install the following line in the
|
---|
| 180 | <filename>/etc/sysconfig/createfiles</filename> file to re-create the
|
---|
| 181 | directory:</para>
|
---|
[9f729d3] | 182 |
|
---|
[be2a00b] | 183 | <screen><literal>/var/lock/leafnode dir 2775 news news</literal></screen>
|
---|
[0931098] | 184 |
|
---|
[be2a00b] | 185 | <para><application>Leafnode</application> may be configured to
|
---|
| 186 | use <command>inetd</command> by adding an entry to the
|
---|
| 187 | <filename>/etc/inetd.conf</filename> file with the following
|
---|
| 188 | command:</para>
|
---|
[0931098] | 189 |
|
---|
[be2a00b] | 190 | <screen role="root"><userinput>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
|
---|
| 191 | >> /etc/inetd.conf</userinput></screen>
|
---|
[0931098] | 192 |
|
---|
[be2a00b] | 193 | <para>Issue a <command>killall -HUP inetd</command> to reread the
|
---|
| 194 | changed <filename>inetd.conf</filename> file.</para>
|
---|
[59048cd9] | 195 | <!--
|
---|
[be2a00b] | 196 | <para>If you use <command>xinetd</command>, the following command will
|
---|
| 197 | create the <application>Leafnode</application> file as
|
---|
| 198 | <filename>/etc/xinetd.d/nntp</filename>:</para>
|
---|
[1f672c1] | 199 |
|
---|
[be2a00b] | 200 | <screen role="root"><userinput>cat >> /etc/xinetd.d/nntp << "EOF"
|
---|
| 201 | <literal># Begin /etc/xinetd.d/nntp
|
---|
[0931098] | 202 |
|
---|
| 203 | service nntp
|
---|
| 204 | {
|
---|
| 205 | flags = NAMEINARGS NOLIBWRAP
|
---|
| 206 | socket_type = stream
|
---|
| 207 | protocol = tcp
|
---|
| 208 | wait = no
|
---|
| 209 | user = news
|
---|
| 210 | server = /usr/sbin/tcpd
|
---|
| 211 | server_args = /usr/sbin/leafnode
|
---|
| 212 | instances = 7
|
---|
| 213 | per_source = 3
|
---|
| 214 | }
|
---|
[1f672c1] | 215 |
|
---|
[be2a00b] | 216 | # End /etc/xinetd.d/nntp</literal>
|
---|
| 217 | EOF</userinput></screen>
|
---|
| 218 |
|
---|
| 219 | <para>Issue a <command>killall -HUP xinetd</command> to reread the
|
---|
| 220 | changed <filename>xinetd.conf</filename> file.</para>
|
---|
[59048cd9] | 221 | -->
|
---|
[be2a00b] | 222 | <para>Add entries to the <systemitem class="username">root</systemitem>
|
---|
| 223 | or <systemitem class="username">news</systemitem> user's crontab to run
|
---|
| 224 | the <command>fetchnews</command> and <command>texpire</command> commands
|
---|
| 225 | at the desired time intervals.</para>
|
---|
| 226 |
|
---|
| 227 | </sect3>
|
---|
| 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
| 236 | <segtitle>Installed Libraries</segtitle>
|
---|
| 237 | <segtitle>Installed Directories</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
| 240 | <seg>applyfilter, checkgroups, fetchnews, leafnode,
|
---|
| 241 | leafnode-version, newsq, and texpire</seg>
|
---|
| 242 | <seg>None</seg>
|
---|
| 243 | <seg>/etc/leafnode, /var/lock/leafnode, and /var/spool/news</seg>
|
---|
| 244 | </seglistitem>
|
---|
| 245 | </segmentedlist>
|
---|
| 246 |
|
---|
| 247 | <variablelist>
|
---|
| 248 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 249 | <?dbfo list-presentation="list"?>
|
---|
| 250 | <?dbhtml list-presentation="table"?>
|
---|
| 251 |
|
---|
| 252 | <varlistentry id="applyfilter">
|
---|
| 253 | <term><command>applyfilter</command></term>
|
---|
| 254 | <listitem>
|
---|
| 255 | <para>filters newsgroup articles according to regular
|
---|
| 256 | expressions.</para>
|
---|
| 257 | <indexterm zone="leafnode applyfilter">
|
---|
| 258 | <primary sortas="b-applyfilter">applyfilter</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="checkgroups">
|
---|
| 264 | <term><command>checkgroups</command></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>inserts newsgroup titles into the newsgroup database.</para>
|
---|
| 267 | <indexterm zone="leafnode checkgroups">
|
---|
| 268 | <primary sortas="b-checkgroups">checkgroups</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
| 272 |
|
---|
| 273 | <varlistentry id="fetchnews">
|
---|
| 274 | <term><command>fetchnews</command></term>
|
---|
| 275 | <listitem>
|
---|
| 276 | <para>sends posted articles to and retrieves new articles from an
|
---|
| 277 | upstream news server.</para>
|
---|
| 278 | <indexterm zone="leafnode fetchnews">
|
---|
| 279 | <primary sortas="b-fetchnews">fetchnews</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | <varlistentry id="leafnode-prog">
|
---|
| 285 | <term><command>leafnode</command></term>
|
---|
| 286 | <listitem>
|
---|
| 287 | <para>is an NNTP server daemon.</para>
|
---|
| 288 | <indexterm zone="leafnode leafnode-prog">
|
---|
| 289 | <primary sortas="b-leafnode">leafnode</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
| 294 | <varlistentry id="leafnode-version">
|
---|
| 295 | <term><command>leafnode-version</command></term>
|
---|
| 296 | <listitem>
|
---|
| 297 | <para>prints the <application>Leafnode</application> version.</para>
|
---|
| 298 | <indexterm zone="leafnode leafnode-version">
|
---|
| 299 | <primary sortas="b-leafnode-version">leafnode-version</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
| 304 | <varlistentry id="newsq">
|
---|
| 305 | <term><command>newsq</command></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>shows articles waiting to be sent upstream.</para>
|
---|
| 308 | <indexterm zone="leafnode newsq">
|
---|
| 309 | <primary sortas="b-newsq">newsq</primary>
|
---|
| 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
| 313 |
|
---|
| 314 | <varlistentry id="texpire">
|
---|
| 315 | <term><command>texpire</command></term>
|
---|
| 316 | <listitem>
|
---|
| 317 | <para>expires old articles and unread groups.</para>
|
---|
| 318 | <indexterm zone="leafnode texpire">
|
---|
| 319 | <primary sortas="b-texpire">texpire</primary>
|
---|
| 320 | </indexterm>
|
---|
| 321 | </listitem>
|
---|
| 322 | </varlistentry>
|
---|
| 323 |
|
---|
| 324 | </variablelist>
|
---|
| 325 |
|
---|
| 326 | </sect2>
|
---|
[f45b1953] | 327 |
|
---|
| 328 | </sect1>
|
---|