🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39365

Re: Leafnode/suck in Linux

#39365
From: Mark Brown
Date: Mon, 23 Aug 1999 00:00
77 lines
4701 bytes
pking@idirect.com (Paul King) writes:

> Please can someone point me to some GOOD documentation on the use of leafnode as
> an NNTP server? I am not happy with the documentation that comes with the

There is a Linux HOWTO or mini-HOWTO on the subject, but other than
that I can't think of anything except what's in the tarball and on the
website.  If you have any suggestions for what you'd like to see I'd
suggest forwarding them to the author and/or the mailing list.

> software. I am trying to get nn-tk to not have to re-read "active" every time I
> log on. That is very annoying. I read in one of the newsgroups that leafnode is
> supposed to greatly improve the performance of nn-tk and for that matter nn.

I think that rereading the active file on startup is pretty much
standard for NNTP based clients, but I've been wrong before.  The
performance improvement would come from having a local copy of
the news.

> What is leafnode *supposed* to do? Is it supposed to pull the news from my ISP
> on to my local /var/spool/news? That is, when I log on, what should I expect?

That's it - leafnode is designed to download the news to your system
and then serve it up to your client.  When you connect to it with your
newsreader you should expect it to act like any other news server.

> Should I run it like a command, or should I nuke my copy of
> /etc/rc.d/init.d/innd and replace it with something that runs leafnode instead
> so that it runs when I boot? I take it that I shouldn't have two news servers
> running - innd and leafnode at the same time.

You don't want both inn and leafnode running - if you use leafnode,
you should probably deinstall inn.  All you should need to do for
leafnode is what's documented in the INSTALL file in the distribution
($LIBDIR is defined in the Makefile and defaults to /etc/leafnode).

Leafnode operates in a somewhat different manner to inn, and doesn't
need anything in init.d.  Instead of having a constantly running
program processing incoming and outgoing news and handling connections
from news clients there are two programs which do these jobs, which
are started as and when needed.

The transport is done by a program called fetchnews (fetch in older
versions).  This can be started whenever you like - I run it whenever
a PPP link is brought up, some people start it regularly with cron -
and will get new news and post any new postings.

The server part which your clients speak to is a run from inetd (try
"man inetd" for further information).  Clients connect to it like they
would to any other NNTP server and it allows them to read the stored
articles and post.  If a group hasn't been read recently it will mark
it for download next time fetchnews is run.

Expiry is handled similarly to inn - you run a program called texpire
every so often (usually daily) which deletes old articles.

> Also, I have had only partial success with "suck". It reads the news (God knows
> where - not to the spool, which is where I want it) and begins to spew error
> messages until I kill it. And what is suck exactly? I hesitate to call it a
> server, and it appears that you don't need to be root to run it.

The idea with suck is that it downloads the messages and then throws
them at a standard news server like inn - it's a piece of glue that
turns a reader connection into a feed for inn.  It sounds like it's
doing the download part OK, but is not managing to communicate with
inn.  Try checking that you can post normally using the method suck is
trying to use to communicate with your local inn.

If people here can't help you, there is a mailing list for suck
mentioned in the documentation.

-- 
Mark Brown  mailto:broonie@tardis.ed.ac.uk   (Trying to avoid grumpiness)
            http://www.tardis.ed.ac.uk/~broonie/
EUFS        http://www.eusa.ed.ac.uk/societies/filmsoc/

Technical Details
Message-ID: <87vha75knc.fsf@cassiel.localdomain>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <37bb5d23.575546@n3.idirect.com>

Show Full Headers
Complete Article Headers
Message-ID: <87vha75knc.fsf@cassiel.localdomain>
Subject: Re: Leafnode/suck in Linux
Date: Mon, 23 Aug 1999 00:00:00 +0000
From: Mark Brown <broonie@tardis.ed.ac.uk>
References: <37bb5d23.575546@n3.idirect.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 515990975
Mail-Copies-To: never
X-Complaints-To: usenet@scotsman.ed.ac.uk
X-Trace: scotsman.ed.ac.uk 935372969 11139 129.215.38.101 (23 Aug 1999 01:49:29 GMT)
Organization: The Tardis Project
NNTP-Posting-Date: 23 Aug 1999 01:49:29 GMT
Newsgroups: news.software.nntp
X-WWW-Homepage: http://www.tardis.ed.ac.uk/~broonie/