Configuration Information
The /etc/leafnode/config file must
be edited to reflect the name of the upstream NNTP provider. Copy
the example configuration file to /etc/leafnode/config and save the original for
reference:
cp /etc/leafnode/config.example /etc/leafnode/config
Change the
server =
entry to reflect your news provider.
The /etc/nntpserver file must
contain 127.0.0.1 to prevent news clients from reading news from
the upstream feed. Create this file using the following command:
cat > /etc/nntpserver << "EOF"
127.0.0.1
EOF
The /etc/rc.d/init.d/cleanfs
script, part of the LFS bootscript package, will remove the
/var/lock/leafnode directory during
the system boot sequence. Install the following line in the
/etc/sysconfig/createfiles file to
re-create the directory:
/var/lock/leafnode dir 2775 news news
Leafnode may be configured to
use inetd by adding
an entry to the /etc/inetd.conf
file with the following command:
echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
>> /etc/inetd.conf
Issue a killall -HUP
inetd to reread the changed inetd.conf file.
Add entries to the root or
news user's crontab to run the
fetchnews and
texpire commands at
the desired time intervals.