source: server/other/leafnode/leafnode-config.xml@ 65df9fca

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 v5_1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 65df9fca was 65df9fca, checked in by Larry Lawrence <larry@…>, 20 years ago

grammar corrections

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

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[5f5a393]1<sect2>
[40330fcd]2<title>Configuring <application>Leafnode</application></title>
[5f5a393]3
4<sect3><title>Config files</title>
[65df9fca]5<para><filename>/etc/news/config</filename>,
6<filename>/etc/inetd.conf</filename> or
[e80cc95]7<filename>/etc/xinetd.conf</filename></para>
[5f5a393]8
[40330fcd]9<para><application>Leafnode</application> may be configured to use
10<command>inetd</command> by adding an entry
[786d85c]11to the <filename>/etc/inetd.conf</filename> file with the following
12command:</para>
13
14<screen><userinput><command>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
15&gt;&gt; /etc/inetd.conf</command></userinput></screen>
16
[65df9fca]17<para>Issue a <command>killall -HUP inetd</command> to reread the
18changed <filename>inetd.conf</filename> file.</para>
19
[40330fcd]20<para>Alternatively, <application>Leafnode</application> may be configured to
21use <command>xinetd</command> by adding an entry to the <filename>
22/etc/xinetd.conf</filename> file with the following command:</para>
[786d85c]23
[40330fcd]24<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF" </command>
[5f5a393]25 service nntp
26 {
27 flags = NAMEINARGS NOLIBWRAP
28 socket_type = stream
29 protocol = tcp
30 wait = no
31 user = news
32 server = /usr/sbin/tcpd
33 server_args = /usr/sbin/leafnode
34 instances = 7
35 per_source = 3
36 }
[40330fcd]37<command>EOF</command></userinput></screen>
[5f5a393]38
[65df9fca]39<para>Issue a <command>killall -HUP xinetd</command> to reread the
40changed <filename>xinetd.conf</filename> file.</para>
41
[5f5a393]42<para>The <filename>/etc/news/config</filename> file must be
[786d85c]43edited to reflect the name of the upstream <acronym>NNTP</acronym>
44provider. Copy the
[5f5a393]45example configuration file to <filename>/etc/news/config</filename>
[786d85c]46and save the original for reference: </para>
[5f5a393]47
[40330fcd]48<screen><userinput><command>cp /etc/news/config.example /etc/news/config
49</command></userinput></screen>
[5f5a393]50
[786d85c]51<para>Change the
[40330fcd]52<screen><userinput>server = </userinput></screen>
[786d85c]53entry to reflect your news provider.</para>
54
[40330fcd]55<para>The <envar>NNTPSERVER</envar> environment variable must be set to
56127.0.0.1 to prevent news clients from reading news from the upstream feed,
[65df9fca]57so add the following to <filename>/etc/profile</filename> or
[786d85c]58<filename>$HOME/.bash_profile</filename>:</para>
59
60<screen><userinput><command>export NNTPSERVER=127.0.0.1</command></userinput></screen>
[5f5a393]61
62</sect3>
63
64</sect2>
Note: See TracBrowser for help on using the repository browser.