source: server/other/leafnode/leafnode-config.xml@ 786d85c

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_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 786d85c was 786d85c, checked in by Igor Živković <igor@…>, 21 years ago

updated to leafnode-1.9.43

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

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