source: server/other/leafnode/leafnode-config.xml@ 40330fcd

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 40330fcd was 40330fcd, checked in by Larry Lawrence <larry@…>, 18 years ago

update samba intro

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

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