![]() |
s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
5. News5.1 How do I set up an online news-reader?As long as PPP is active, it will be possible to read news online. There are lots of available programs, two simple alternatives being rtin and trn. To start reading news, the only thing required in terms of configuration in most cases is to set NNTPSERVER (usually once and for all in the file .profile):
To get the From-address correct in postings, some programs may require:
5.2 How do I set up an offline news-reader?To be able to read news while offline and thus reduce phone bills and give greater flexibility, one must set up a local news-spool of one sort or the other. This requires some configuration, and there will also be a certain amount of disk space involved. After initial setup, things should run more or less by themselves, with only some attention needed from time to time. Two different solutions will be described here.
5.3 How do I set up C News?The solution described here is based on the news-server C News and the NNTP protocol. C News was originally targeted towards another sort of configuration, but is flexible enough to handle our situation too. One might also use the more recent INN news server but it might require a bit more in terms of resources. Either way, be careful not to install both; they don't live together easily. It is crucial that all maintenance of news is done while logged
in as user The most important files in the configuration are:
C News needs a certain degree of daily maintenance, but this can
be specified once and for all via the command
newsrun moves articles in and
out (twice every hour),
doexpire will delete articles as they get old (every
night at 00:30), and the three last commands does various
supervisory and error correcting tasks.
One should also ensure that things are cleaned up when starting the machine. As user root, add the following line to /etc/rc.d/rc.local:
News may be collected via the program NewsX,
picking news from an NNTP-server
The program can be found at:
Setting up
With the setup outlined here, all you have to do is to create the groups you want to read using the addgroup command. To fetch articles, user
The option NewsX will also take care of posting of outgoing news. To control disposal of articles as they get old, a file
ALT: In a small news-spool, one will usually not need
the newsgroup
In this example, all proper groups under comp.os.linux will be
created (y), and the user news will be notified (v).
Everything else will be silently (q) ignored (n). The last line
is sufficient if you want to create all groups manually.
ALT: An alternative to NewsX is suck.
5.4 How do I set up Leafnode?A different solution altogether is to install the integrated package leafnode. This will handle all tasks required for a personal news spool, and is easy to configure. It is available via:
As for C News, all news maintenance really should be performed as
user The home directory for leafnode is in /usr/lib/leafnode. To install, write:
Note in the following that the prefix /usr/local/sbin should be replaced with /usr/sbin if you installed leafnode from a package. While still being logged in as
Activate it by:
Return to user
Leafnode will look after itself by adding the following command
via
News exchange is also done as user
Users who wants to read news should then use the recipe in How do I set up an online news-reader?, except that they configure for the local machine, i.e:
That should be all there is to it. The first
Note that leafnode does not seems to work in cases where NNTP authorization is required. +.LP ALT: An alternative to leafnode is nntpcache, available from:
Next Previous Contents |