🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by Felix Karpfen Sat, 25 Sep 2004 20:40
[slrn/leafnode] Using several newsservers
#156150
Author: Felix Karpfen
Date: Sat, 25 Sep 2004 20:40
25 lines
1933 bytes
>From my exploration of the readily-available documentation, leafnode makes
it easy to download postings from several newsservers.

However, how this dovetails with the features of slrn-0.9.8.0 is less clear.

Specifically:

- when creating a database of available groups with "slrn --create" is it
  necessary to invoke the newsserver (with slrn --nntp -h) and to save the
  downloaded database to separate files; and

- when posting queued messages, does leafnode need to be told the newsserver
  to which the messages should be sent?  And, if so, how?

In case it is not obvious, I am a new arrival to <slrn|leafnode>.  If
relevant documentation exists, I would welcome being told.

Felix Karpfen 

-- 

Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Re: [slrn/leafnode] Using several newsservers
#156156
Author: Francesco Ciattaglia
Date: Sun, 26 Sep 2004 09:16
36 lines
2076 bytes
* Il 25-09-2004 alle 20:40, Felix Karpfen ha scritto:
>
> From my exploration of the readily-available documentation, leafnode makes
> it easy to download postings from several newsservers.
>
> However, how this dovetails with the features of slrn-0.9.8.0 is less clear.
>
> Specifically:
>
> - when creating a database of available groups with "slrn --create" is it
>   necessary to invoke the newsserver (with slrn --nntp -h) and to save the
>   downloaded database to separate files; and
>
> - when posting queued messages, does leafnode need to be told the newsserver
>   to which the messages should be sent?  And, if so, how?
>
> In case it is not obvious, I am a new arrival to <slrn|leafnode>.  If
> relevant documentation exists, I would welcome being told.
>
> Felix Karpfen 
>
Use one server for posting and set the others to
no post =1

see man leafnode....


Ataualpa
-- 
Lancia il tuo cuore davanti a te, e corri a raggiungerlo. [Proverbio
Arabo]


The Gates of Hell? Linux: Open&Free! |\/| http://ataualpa.altervista.org

Re: [slrn/leafnode] Using several newsservers
#156158
Author: Jörg Lüders
Date: Sun, 26 Sep 2004 11:38
33 lines
2087 bytes
Felix Karpfen <felixk@webone.com.au>:

> - when creating a database of available groups with "slrn --create" is it
>   necessary to invoke the newsserver (with slrn --nntp -h) and to save the
>   downloaded database to separate files

>From slrn you use only _one_ server, your local leafnode. slrn doesn't 
(need to) know what's behind that.

> slrn --nntp -h

--nntp should be the default setting and you don't need -h if you set 
$NNTPSERVER.

> - when posting queued messages, does leafnode need to be told the newsserver
>   to which the messages should be sent?

If you just want your articles posted to any server you don't need to 
set anything.

> In case it is not obvious, I am a new arrival to <slrn|leafnode>.  If
> relevant documentation exists, I would welcome being told.

The documentation that comes with slrn and leafnode is all you need in 
most cases.

While you're at it you should read about these options.
leafnode: "hostname"
slrn:     "posting_host" (or better set "generate_message_id" to 0)


Jörg
Re: [slrn/leafnode] Using several newsservers
#156224
Author: Felix Karpfen
Date: Mon, 27 Sep 2004 21:39
37 lines
2084 bytes
* <jlpublic-b4879@gmx.net> 

>
>
>The documentation that comes with slrn and leafnode is all you need in 
>most cases.
>
My thanks to both respondents for the pointers.

My initial posting was too brief and failed to flag the _real issue_.

There are no problems until the leafnode option to use several different
newsservers, that list totally different newsgroups, is exploited.

You may care to expand on the following entries from the documentation:

- Suggestion from the slrn FAQ:

   slrn --nntp -h YOUR.NEWS.SERVER -a -f groups.dat --create

and

- [felixk@carrot felixk]$ slrn --nntp --help
 
 --nntp options:
 -h nntp-host    Host name to connect to.  This overrides NNTPSERVER variable.
 -p NNTP-PORT    Set the NNTP port to NNTP-PORT. The default value is 119.
                 Note: This option has no effect on some systems.


Felix Karpfen 

-- 

Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Re: [slrn/leafnode] Using several newsservers
#156236
Author: Whiskers
Date: Tue, 28 Sep 2004 14:37
36 lines
2770 bytes
On Mon, 27 Sep 2004 21:39:52 +0000, Felix Karpfen wrote:

snip

> My thanks to both respondents for the pointers.
> 
> My initial posting was too brief and failed to flag the _real issue_.
> 
> There are no problems until the leafnode option to use several different
> newsservers, that list totally different newsgroups, is exploited.

snip

As far as your newsreader is concerned (slrn, Pan, Knode, whatever),
leafnode is YOUR.NEWS.SERVER; tell your newsreader to read from, post to,
get group list from, leafnode.  If leafnode is on the same machine as
slrn, then tell slrn that the newsserver is 'localhost' or '127.0.0.1' or
whatever the hostname is.  

Leafnode takes care of working out which up-line servers to get the data
from, and which ones to post your articles to, and creates a single list
of newsgroups and a single database of articles and headers, for your
local newsreaders.  It make no difference to your newsreader, if leafnode
happens to get some groups and articles from individual.net, some from
claranet, some from gmane, some from opera, and so on; leafnode combines
them all into 'local' groups in a single grouplist, and your newsreader
posts all your articles to leafnode.

See /etc/leafnode/config.example for a very fully 'commented' sample
config file for leafnode.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn/leafnode] Using several newsservers
#156249
Author: Jörg Lüders
Date: Tue, 28 Sep 2004 18:23
19 lines
1824 bytes
Felix Karpfen <felixk@webone.com.au>:

> My initial posting was too brief and failed to flag the _real issue_.

I'm still not sure what the real issue is. I was under the the 
impression that you didn't understand that leafnode makes it unnecessary 
to mess with any external servers directly, hence my (perhaps too short) 
"one server" comment. Whiskers explained this in more detail.

> There are no problems until the leafnode option to use several different
> newsservers, that list totally different newsgroups, is exploited.

If the above was not your problem you'll have to give more details. What 
do you want to achieve, what exactly did you do, what was the result and 
what's wrong with that?


Jörg
Re: [slrn/leafnode] Using several newsservers
#156329
Author: Felix Karpfen
Date: Wed, 29 Sep 2004 21:20
77 lines
4019 bytes
* =?iso-8859-1?Q?J=F6rg_L=FCders?= <jlpublic-b4879@gmx.net>

>
>> There are no problems until the leafnode option to use several
>> different newsservers, that list totally different newsgroups, is
>> exploited.
>

>If the above was not your problem you'll have to give more details.
>What do you want to achieve, what exactly did you do, what was the
>result and what's wrong with that?

So far, nothing has gone wrong because I have contented myself with _one_
news server and am becoming familiar with the features of slrn. I have not
seriously explored the additional features offered by leafnode's ability to
access several upstream news servers. 

Perhaps it will help if I detail how my current offline newsreader (that
has some insoluble font problems with my recently-installed Debian)
works.  This newsreader combines the functions of both slrn and leafnode
and I cannot work out which routines belong where.

- The newsreader has a configuration file for news servers in which it
  stores some basic information relating to logging on to the server 
  (like leafnode);

- After a successful logon to one of the servers listed in the 
  configuration file, it is possible to download (and store in
  another file) all the newsgroups that are listed on that server 
  (like slrn --create);

- the stored list is used (offline) for subscribing to newsgroups of
  interest (like the "L" option from within slrn);

- these steps need to be repeated for each news server of interest
  (???);

- all postings, new and follow-ups, are queued in the same directory;
  these messages have to be flagged for posting when appropriate (not 
  checked yet, but I believe slrn offers a similar routine).

To use the newsreader requires the following steps:

- select the news server (offline)

- go online and request new headers

  --this downloads all new headers (up to a designated maximum) in all
    subscribed groups _and_ posts all queued messages that are flagged 
    for posting;

- go online again and request all bodies of all threads flagged for
  download.

The newsreader goes offline automatically after the completion of each
online request.

The above three steps need to be carried out in turn for each news
server of interest.

Finally, it should be mentioned that I routinely use three different
news servers that list totally different sets of newsgroups.  So my
queued messages need to be flagged for posting immediately prior to
connecting to the news server that lists the relevant newsgroup.

I hope this contains the details needed to help me to make slrn/leafnode
work on my box.

Again, thank you for the interest in my problems. 


Felix  Karpfen 
-- 

Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Re: [slrn/leafnode] Using several newsservers
#156352
Author: Whiskers
Date: Thu, 30 Sep 2004 15:15
100 lines
6355 bytes
On Wed, 29 Sep 2004 21:20:07 +0000, Felix Karpfen wrote:

snip

> I hope this contains the details needed to help me to make slrn/leafnode
> work on my box.

snip

It is possible to make leafnode behave rather like that, but I think it's
usually much more convenient not to, at least for text-only groups. 
('Binary' groups are a different kettle of fish, and the Agent/NewsFlex
procedure you describe is perhaps more suited to them; that's roughly how
Pan works in 'offline mode').

When you have leafnode set up as the server for your newsreader, the
newsreader can operate in 'online' mode (slrn itself can only operate as
an online newsreader); that means that you "download" the message headers
for the group you are intersted in (or all subscribed groups at once) from
leafnode into slrn - that's a purely local transfer so it will happen as
quickly as your hardware allows. 

The log for my newsreader, Pan, says for this session in NSR:-

saved 18 groups in "leafnode" in 0.0 seconds (16997 groups/sec)
loaded 363 articles ... in 0.0 seconds (14021 arts/sec)
scored 363 items in 0.0 seconds (363000 articles/sec)

When you want to read a particular article, select it from the article
list in slrn and it will be immediately "downloaded" from leafnode into
slrn.  In the blink of an eye, system load permitting.

When you post an article (follow-up or starting a new thread) slrn will
"upload" it to leafnode which will save it in a directory from which
leafnode will read it when next you run 'fetchnews'.  For slrn, this is
almost as quick as saving a file.

All of this can happen while you are not connected to the internet.  All
the groups available from leafnode, are in one list, regardless of where
leafnode gets them from.  As far as your newsreader is concerned, there is
only one server - leafnode.

Leafnode does all the 'talking' to your up-stream servers.  It creates a
groups list containing all the groups available from all the servers you
tell it about; *one* list.  When you subscribe to a group, leafnode will
download all the headers for that group, using all the servers it knows
about that carry that group, it will then check your 'filters' file to
plonk unwanted articles, and download all the bodies for the remaining
articles - again, from all or any server that has those bodies (but only
once for each body).  The headers and bodies will all go into a single
'database', regardless of how many servers they came from.

If there are new articles you have posted, they will be "uploaded" by
leafnode to whichever server it first accesses that will accept articles
for that group.  That's automatic, you need do nothing to tell leafnode
which server goes with which groups.  Recent versions of leafnode upload
your own articles before downloading anything, so your own posts will
appear in your groups the next time you look.

The utility that actually 'does the talking' to your up-stream servers is
called 'fetchnews', and it can be run from the command-line, or from a
script (including automatically each time you dial-up, or according to a
cron schedule).  I run 

Eterm --pause -e sudo /usr/sbin/fetchnews -vv

manually from a 'launcher' in GKrellM, so that I can see a simple 'log' of
what fetchnews has done, and only run it when I feel like it.  Usually, it
takes only a few minutes at most, and sometimes only a few seconds, to
'refresh' all 18 groups I get from (currently) two servers, via my
dial-up.  Headers and bodies, all 18 groups, both servers, and
uploading all my own articles, all in a single operation.  I have had up
to six servers set up in leafnode at one time; that does take longer -
leafnode only accesses one server at a time, which is its main weakness in
my opinion - but leaves 'bandwidth' for e-mail and web-surfing at the
same time.

The instructions for setting up leafnode are mostly summarised in the
/etc/leafnode/config.example file you should find when you install
leafnode.  I think you can also find a manual, FAQ, and guidelines, on the
web.

I suggest that you set up leafnode first, and use NewsFlex to access it so
that you only have to learn leafnode for now.  Then get slrn running, with
leafnode as it's only server, and become familiar with slrn before making
the complete switch from NewsFlex (or not!).  

One big advantage to having leafnode running, is that you can try out
several newsreaders without having to repeatedly set up your up-stream
servers and download the same stuff many times.  I'm using Pan as my
'real' newsreader, but 'playing' with Gnus, slrn, Opera, Mozilla, ...
whatever looks worth a try.  (I did try NewsFlex, but found it too
'clunky' for my liking).  (I find slrn is a brute to get set up 'just so',
but it is very quick).

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn/leafnode] Using several newsservers
#156407
Author: Felix Karpfen
Date: Fri, 01 Oct 2004 21:20
78 lines
4284 bytes
* Whiskers <catwheezel@operamail.com> 

>
>Leafnode does all the 'talking' to your up-stream servers.  It creates a
>groups list containing all the groups available from all the servers you
>tell it about; *one* list.  When you subscribe to a group, leafnode will
>download all the headers for that group, using all the servers it knows
>about that carry that group, it will then check your 'filters' file to
>plonk unwanted articles, and download all the bodies for the remaining
>articles - again, from all or any server that has those bodies (but only
>once for each body).  The headers and bodies will all go into a single
>'database', regardless of how many servers they came from.

I believe this answers my questions.

And demonstrates that "leafnode" is smarter than NewsFleX - which needs
separate lists for each server.


>The utility that actually 'does the talking' to your up-stream servers is
>called 'fetchnews', and it can be run from the command-line, or from a
>script (including automatically each time you dial-up, or according to a
>cron schedule).  I run 
>
>Eterm --pause -e sudo /usr/sbin/fetchnews -vv

Based on my experience with "fetchmail", this is what I had expected -
and failed.   

When I made the attempt to run fetchnews , it refused because a
lockfile indicated that it was already in use. In the light of the
above, I checked again and find that there are scripts in "ip-up.d" and
"ip-down.d" that control the running of "fetchnews" on my box.


>The instructions for setting up leafnode are mostly summarised in the
>/etc/leafnode/config.example file you should find when you install
>leafnode.  I think you can also find a manual, FAQ, and guidelines, on
>the web.

While I have followed these instructions - and they work (in conjunction
with slrn), I find that the sample file and the FAQ to be very minimal.
Perhaps the online manual will come to the rescue.

>
>I suggest that you set up leafnode first, and use NewsFlex to access it
>so that you only have to learn leafnode for now.
>
>Then get slrn running, with leafnode as it's only server, and become
>familiar with slrn before making the complete switch from NewsFlex (or
>not!).

As indicated, I did it the other way round - more or less.  I am
(gradually) getting the hang of the slrn features. leafnode is still a
complete mystery.


>One big advantage to having leafnode running, is that you can try out
>several newsreaders without having to repeatedly set up your up-stream
>servers and download the same stuff many times.  I'm using Pan as my
>'real' newsreader,
>

Since you run "leafnode" in conjunction with "pan", I would welcome
configuration hints to point "pan" to the postings downloaded by
leafnode.

This is probably all that I need to unravel the leafnode mystery.

Many thanks for the full and helpful advice.

Felix Karpfen 

-- 

Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Re: [slrn/leafnode] Using several newsservers
#156466
Author: Whiskers
Date: Sat, 02 Oct 2004 22:52
30 lines
2671 bytes
On Fri, 01 Oct 2004 21:20:08 +0000, Felix Karpfen wrote:

snip

> Since you run "leafnode" in conjunction with "pan", I would welcome
> configuration hints to point "pan" to the postings downloaded by leafnode.
> 
> This is probably all that I need to unravel the leafnode mystery.

In Pan's menu bar, 'Tools - New Servers'.  Select 'Add', and type in a
suitable name (eg 'leafnode' or the name of your own computer), and for
the 'address' put 127.0.0.1.  The usual port is 119, but if you configure
leafnode to use a different port then change the default in Pan.  I leave
the 'Authorization' and '.newsrc' boxes empty.  I don't think the number
of connections makes much difference with a local server.

Now just select the new server from the 'Servers' menu, and proceed in
exactly the same way as for a first connection with any news-server. 
You'll only get a single 'dummy' article in each group you subscribe to,
until after fetchnews has been run again.

> Many thanks for the full and helpful advice.

You're welcome  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn/leafnode] Using several newsservers
#156602
Author: Felix Karpfen
Date: Mon, 04 Oct 2004 22:12
31 lines
2480 bytes
* Whiskers <catwheezel@operamail.com> 

>
>In Pan's menu bar, 'Tools - New Servers'.  Select 'Add', and type in a
>suitable name (eg 'leafnode' or the name of your own computer), and for
>the 'address' put 127.0.0.1.  

I believe that this suggestion made the difference.

"127.0.0.1" worked; previously, "localhost" had  not.

However, since I also allowed for the possibility of a corrupted database
by rerunning "fetchnews -f" before checking the newsgroups displayed by
"pan", I am not certain which change solved the problem.

Tomorrow's test will be to see what subscribed newsgroups are fetched by
leafnode.

For the record, "slrn" is still behaving oddly.  But, at least, "pan" does
what it should.  And, as a bonus, my current newsreader (NewsFleX) also
now recognises the presence of leafnode!  It still has some problems with
(the absense of?) some of the fonts that it uses - alas.

Again, thank you for the help.

Felix 
-- 

Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads