🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Desmond Rivet Thu, 26 Jan 2006 18:06
[slrn] read messages and (shared) spools
#179614
Author: Desmond Rivet
Date: Thu, 26 Jan 2006 18:06
24 lines
1992 bytes
Hi all,

I am in the process of setting slrn up on my home network and I have a
couple of questions (keep in mind I know next to nothing about NNTP).

1. 
How does slrn keep track of which messages I read? In the newsrc file? 

2. 
Let's say I have multiple machines on my network and I want to use
slrn locally from each one. Let's say that I'm willing to give each
machine a common spool via NFS (the spool that slrnpull writes to).

It would be nice if there was, say, a centralized location where slrn
kept track of which messages have been read and which have not so that
all the slrns on all my machines would work more or less the same. The
spool used by slrnpull would, I guess, be an ideal place for this
(assuming all slrns shared it), but is it possible to make slrn store 
read/unread article information in the spool?

Thanks in advance for any information,

Desmond
Re: [slrn] read messages and (shared) spools
#179616
Author: Adam Funk
Date: Thu, 26 Jan 2006 19:32
28 lines
2172 bytes
On 2006-01-26, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
> Hi all,
>
> I am in the process of setting slrn up on my home network and I have a
> couple of questions (keep in mind I know next to nothing about NNTP).
>
> 1. 
> How does slrn keep track of which messages I read? In the newsrc file? 

$HOME/.jnewsrc by default but you can change it with the server
directive in the $HOME/.srlnrc file,

> 2. 
> Let's say I have multiple machines on my network and I want to use
> slrn locally from each one. Let's say that I'm willing to give each
> machine a common spool via NFS (the spool that slrnpull writes to).
>
> It would be nice if there was, say, a centralized location where slrn
> kept track of which messages have been read and which have not so that
> all the slrns on all my machines would work more or less the same. The
> spool used by slrnpull would, I guess, be an ideal place for this
> (assuming all slrns shared it), but is it possible to make slrn store 
> read/unread article information in the spool?

I don't know, but I think you'd have to put the .jnewsrc file in some
shared place.  I think the easiest way to read news consistently
from different places is to log into the same machine by ssh and run
slrn there.
Re: [slrn] read messages and (shared) spools
#179617
Author: Whiskers
Date: Thu, 26 Jan 2006 19:33
33 lines
2401 bytes
On 2006-01-26, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
> Hi all,
>
> I am in the process of setting slrn up on my home network and I have a
> couple of questions (keep in mind I know next to nothing about NNTP).
>
> 1. 
> How does slrn keep track of which messages I read? In the newsrc file? 
>
> 2. 
> Let's say I have multiple machines on my network and I want to use
> slrn locally from each one. Let's say that I'm willing to give each
> machine a common spool via NFS (the spool that slrnpull writes to).
>
> It would be nice if there was, say, a centralized location where slrn
> kept track of which messages have been read and which have not so that
> all the slrns on all my machines would work more or less the same. The
> spool used by slrnpull would, I guess, be an ideal place for this
> (assuming all slrns shared it), but is it possible to make slrn store 
> read/unread article information in the spool?
>
> Thanks in advance for any information,
>
> Desmond

Wouldn't it be easier to run slrn on just one machine and log in to a 
session on that machine from whichever one you happen to be using at the 
time?

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] read messages and (shared) spools
#179619
Author: Desmond Rivet
Date: Thu, 26 Jan 2006 20:33
34 lines
2722 bytes
On 2006-01-26, Adam Funk <a24061@yahoo.com> wrote:
> On 2006-01-26, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
>
>> 2. 
>> Let's say I have multiple machines on my network and I want to use
>> slrn locally from each one. Let's say that I'm willing to give each
>> machine a common spool via NFS (the spool that slrnpull writes to).
>>
>> It would be nice if there was, say, a centralized location where slrn
>> kept track of which messages have been read and which have not so that
>> all the slrns on all my machines would work more or less the same. The
>> spool used by slrnpull would, I guess, be an ideal place for this
>> (assuming all slrns shared it), but is it possible to make slrn store 
>> read/unread article information in the spool?
>
> I don't know, but I think you'd have to put the .jnewsrc file in some
> shared place.  I think the easiest way to read news consistently
> from different places is to log into the same machine by ssh and run
> slrn there.

This might be the easiest thing to do. I suppose I could keep my newsrc
file in the same directory as my slrnpull.conf file and make the whole
thing sharable via NFS so any computer can use it.

This actually makes a certain amount of sense, since you are then
keeping two related files close together: the file which has your
subscribed newsgroups (newsrc), and the file which tells slrnpull 
which newsgroups to poll (slrnpull.conf).

At least, I think this makes a certain amount of sense. I'm new to 
all this. Comments welcome.

Desmond
Re: [slrn] read messages and (shared) spools
#179620
Author: Desmond Rivet
Date: Thu, 26 Jan 2006 20:43
46 lines
3114 bytes
On 2006-01-26, Whiskers <catwheezel@operamail.com> wrote:
> On 2006-01-26, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
>>
>> 2. 
>> Let's say I have multiple machines on my network and I want to use
>> slrn locally from each one. Let's say that I'm willing to give each
>> machine a common spool via NFS (the spool that slrnpull writes to).
>>
>> It would be nice if there was, say, a centralized location where slrn
>> kept track of which messages have been read and which have not so that
>> all the slrns on all my machines would work more or less the same. The
>> spool used by slrnpull would, I guess, be an ideal place for this
>> (assuming all slrns shared it), but is it possible to make slrn store 
>> read/unread article information in the spool?
>>
>> Thanks in advance for any information,
>>
>> Desmond
>
> Wouldn't it be easier to run slrn on just one machine and log in to a 
> session on that machine from whichever one you happen to be using at the 
> time?
>

That's what people are telling me :) But I have a number of reasons for
setting up a central place for everything (possibly bad ones):

- My network is set up so that I have one old P200Mhz accessible from
  the outside and that's it. My much faster P2.4Ghz doesn't run any 
  remote access server (no telnet or sshd).

- So, from the outside I can only access my P200Mhz and therefore if I 
  want to read my newsgroups from the outside, I have to use this box.
  Performance is okay, but not the best.

- Slrn performance is much better on my P2.4GHz, so I would prefer to
  use that when I'm actually at home in front of the computer. 

- That being the case, it would be nice if the slrn on my P200Mhz and 
  the slrn on my P2.4Ghz showed consistent information (like which
  newsgroups I've subscribed to and which articles I've read).

Again, comments welcome.

Desmond
Re: [slrn] read messages and (shared) spools
#179622
Author: Whiskers
Date: Thu, 26 Jan 2006 22:33
53 lines
3499 bytes
On 2006-01-26, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
> On 2006-01-26, Whiskers <catwheezel@operamail.com> wrote:

snip

>> Wouldn't it be easier to run slrn on just one machine and log in to a 
>> session on that machine from whichever one you happen to be using at the 
>> time?
>>
>
> That's what people are telling me :) But I have a number of reasons for
> setting up a central place for everything (possibly bad ones):
>
> - My network is set up so that I have one old P200Mhz accessible from
>   the outside and that's it. My much faster P2.4Ghz doesn't run any 
>   remote access server (no telnet or sshd).
>
> - So, from the outside I can only access my P200Mhz and therefore if I 
>   want to read my newsgroups from the outside, I have to use this box.
>   Performance is okay, but not the best.
>
> - Slrn performance is much better on my P2.4GHz, so I would prefer to
>   use that when I'm actually at home in front of the computer. 

If you use the slower machine as a 'server/gateway', it doesn't need an X 
server or any GUI installed (or if installed, they don't need to be 
running); slrn and slrn-pull are text-based and may run quicker if the 
machine doesn't have to try to run a GUI at the same time.

> - That being the case, it would be nice if the slrn on my P200Mhz and 
>   the slrn on my P2.4Ghz showed consistent information (like which
>   newsgroups I've subscribed to and which articles I've read).
>
> Again, comments welcome.
>
> Desmond


You could use rsync to 'synchronise' your usenet data across two or more 
machines - but there is the potential for getting them out of sync if you 
aren't careful; not a huge technical problem, but a human one  ;))  

Make  sure that you synchronise /all/ the neccessary files, not just some
of them!  I seem to have a number of 'hidden' files whose names start with 
~/.jnewsrc and ~/.slrn as well as a directory called ~/News with some
files and sub-directories, all of which are used by my slrn.  I use 
Leafnode rather than slrn-pull so I don't know what files slrn-pull 
requires to keep its data up-to-date.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] read messages and (shared) spools
#179624
Author: Peter J Ross
Date: Thu, 26 Jan 2006 23:32
87 lines
5021 bytes
On Thu, 26 Jan 2006 20:43:59 GMT, Desmond Rivet
<desmond.rivet@sympatico.ca> wrote in news.software.readers:

> On 2006-01-26, Whiskers <catwheezel@operamail.com> wrote:
>> On 2006-01-26, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
>>>
>>> 2. 
>>> Let's say I have multiple machines on my network and I want to use
>>> slrn locally from each one. Let's say that I'm willing to give each
>>> machine a common spool via NFS (the spool that slrnpull writes to).
>>>
>>> It would be nice if there was, say, a centralized location where slrn
>>> kept track of which messages have been read and which have not so that
>>> all the slrns on all my machines would work more or less the same. The
>>> spool used by slrnpull would, I guess, be an ideal place for this
>>> (assuming all slrns shared it), but is it possible to make slrn store 
>>> read/unread article information in the spool?
>>>
>>> Thanks in advance for any information,
>>>
>>> Desmond
>>
>> Wouldn't it be easier to run slrn on just one machine and log in to a 
>> session on that machine from whichever one you happen to be using at the 
>> time?
>>
>
> That's what people are telling me :) But I have a number of reasons for
> setting up a central place for everything (possibly bad ones):
>
> - My network is set up so that I have one old P200Mhz accessible from
>   the outside and that's it. My much faster P2.4Ghz doesn't run any 
>   remote access server (no telnet or sshd).

This seems to me to be an excellent plan. I have a box under a table
in the corner running exim + spamassassin + clamav, and leafnode, and
apache, and squid, and a few other bits and pieces. It chugs away
happily, and never slows my other box down at all.

> - So, from the outside I can only access my P200Mhz and therefore if I 
>   want to read my newsgroups from the outside, I have to use this box.
>   Performance is okay, but not the best.

I'm more paranoid than you, because I have a router/firewall between
the server box and the Internet. In fact, there are three hand-crafted
firewalls between the box I'm typing this on and the rest of the
world, which means that I can make fun of people in
alt.hackers.malicious as much as I like. ;-) Otherwise, my setup is
similar to yours.

> - Slrn performance is much better on my P2.4GHz, so I would prefer to
>   use that when I'm actually at home in front of the computer. 

Have you considered running leafnode on your server box instead of
slrnpull? It would change what you're trying to do from "tricky" to
"very easy".

> - That being the case, it would be nice if the slrn on my P200Mhz and 
>   the slrn on my P2.4Ghz showed consistent information (like which
>   newsgroups I've subscribed to and which articles I've read).

apt-get install ssh
man scp

...to copy your .jnewsrc* files betwen machines. But beware of
overwriting newer files with older ones, especially if you use cron
automation.

In answer to a question you implied in your original post: you don't
need to know anything about nntp to make this kind of stuff work. I'm
a newsadmin on a small scale, and I don't have a clue how nntp works.

PJR :-)
-- 
Have you been touched    ___    ___          Hammer of Thor, Jan 2006
by His noodly           / _ \  / _ \
appendage?             ( (_) )( (_) )        Pierre Salinger Memorial
                        \_ _/  \_ _/         Hook, Line & Sinker, Dec
STOP GLOBAL   __       _.-\\----//--._                2003 & May 2005
WARMING   _  / _\___.-'/ _| / _\  /\/\`-._.-.__   _
NOW,     (_\_)| \___   ||_  ((_  //\/\\  _.-._ \-' )     AHM Wittiest
JIM LAD!   \__)   __)  | _| _) ) ||  || (_    \_.-'      Troll of the
                 /_-.  ||   \_/  ||  .-'-.\                Year, 2003
http://      _._//  / .--._______.-'\ \   \\__._          2004 & 2005
www.        /_._/   \ \              ))    \__._) 
venganza   (/     _.-')             ( `-._          wsd 42 ~ mhm 34x8
.org/            (_.-'         :F_P: `--._)      smeeter 30 ~ mwpl 12
Re: [slrn] read messages and (shared) spools
#179628
Author: Desmond Rivet
Date: Fri, 27 Jan 2006 02:03
53 lines
3627 bytes
On 2006-01-26, Peter J Ross <pjr@kookbusters.org> wrote:
> On Thu, 26 Jan 2006 20:43:59 GMT, Desmond Rivet
><desmond.rivet@sympatico.ca> wrote in news.software.readers:
>> - Slrn performance is much better on my P2.4GHz, so I would prefer to
>>   use that when I'm actually at home in front of the computer. 
>
> Have you considered running leafnode on your server box instead of
> slrnpull? It would change what you're trying to do from "tricky" to
> "very easy".

Actually, I'm using nntpcache. I only mentioned slrnpull because I
thought, maybe, that the slrnpull spool would store the read/unread
information for each article (which, of course, nntpcache does not do,
being nothing more than an NNTP cache server *g*). I'm beginning to
suspect that this is not the case which makes slrnpull less attractive.

Then again, maybe reading from a spool would be faster than reading from
nntpcache. I haven't actually tried it yet.

slnpull is also unattractive because it doesn't keep the subscribed
groups is sync with the slrnpull.conf file (as far as I know;
corrections are welcome).

As for leafnode, I used it briefly, but I thought it was a bit weird
that I would go into a newsgroup and see just one article, which I would
have to read, and then wait a minute or two for leafnode to pull down
the actual content.

>> - That being the case, it would be nice if the slrn on my P200Mhz and 
>>   the slrn on my P2.4Ghz showed consistent information (like which
>>   newsgroups I've subscribed to and which articles I've read).
>
> apt-get install ssh
> man scp
>
> ...to copy your .jnewsrc* files betwen machines. But beware of
> overwriting newer files with older ones, especially if you use cron
> automation.

Easy enough, but it would be more convienient I think if both computers
just used the same newsrc file, which I can set up via NFS.

> In answer to a question you implied in your original post: you don't
> need to know anything about nntp to make this kind of stuff work. I'm
> a newsadmin on a small scale, and I don't have a clue how nntp works.

It's rather enlightening, once you get it. However, I still don't really
get it :)

Please don't laugh but until recently I was thinking up questions like "so
which computer on the Internet actually hosts alt.politics.libertarian?"...

Desmond
Re: [slrn] read messages and (shared) spools
#179646
Author: Whiskers
Date: Fri, 27 Jan 2006 15:50
78 lines
5319 bytes
On 2006-01-27, Desmond Rivet <desmond.rivet@sympatico.ca> wrote:
> On 2006-01-26, Peter J Ross <pjr@kookbusters.org> wrote:
>> On Thu, 26 Jan 2006 20:43:59 GMT, Desmond Rivet
>><desmond.rivet@sympatico.ca> wrote in news.software.readers:
>>> - Slrn performance is much better on my P2.4GHz, so I would prefer to
>>>   use that when I'm actually at home in front of the computer. 
>>
>> Have you considered running leafnode on your server box instead of
>> slrnpull? It would change what you're trying to do from "tricky" to
>> "very easy".
>
> Actually, I'm using nntpcache. I only mentioned slrnpull because I
> thought, maybe, that the slrnpull spool would store the read/unread
> information for each article (which, of course, nntpcache does not do,
> being nothing more than an NNTP cache server *g*). I'm beginning to
> suspect that this is not the case which makes slrnpull less attractive.

As far as your end-user newsgroups client program (eg slrn) is concerned, 
slrn-pull is a 'local caching proxy server' - as are NNTPCache and 
Leafnode and Newsstar and Dnews ... .  Slrn-pull is slrn-specific in design
whereas the others should work with any NNTP client.  

Keeping track of which groups are subscribed to and which articles have
been read are both 'client' activities; the 'server' does not want such
information.  Of course, all news-servers are also 'clients' when it comes 
to getting stuff from up-stream servers, and it can be confusing trying to 
keep it clear in ones mind just where the distinction falls.

Looking at the NNTPCache web site I get the impression that the it is 
intended for use with an 'always on' internet connection and that it 
'pulls' article bodies from the up-stream feed(s) only when a client 
program is asked to read that article.  That would have the side-effect of
producing a database revealing which articles have (at any given moment)
been requested by any of your clients; whether you could exploit that to 
keep /all/ of the clients 'synchronised' is another matter; I suspect that 
it would be possible, but not necessarily the 'best approach' for what you 
are trying to do.

> Then again, maybe reading from a spool would be faster than reading from
> nntpcache. I haven't actually tried it yet.

Either way you are going to be accessing the same RAM or disc ... 

> slnpull is also unattractive because it doesn't keep the subscribed
> groups is sync with the slrnpull.conf file (as far as I know;
> corrections are welcome).

I'll leave that one for someone who is familiar with slrn-pull.

> As for leafnode, I used it briefly, but I thought it was a bit weird
> that I would go into a newsgroup and see just one article, which I would
> have to read, and then wait a minute or two for leafnode to pull down
> the actual content.

snip

Leafnode is 'optimised' for use on a system that has discontinuous 
internet access - eg a dial-up connection, or a lap-top being used on the 
move.  The normal set-up is to pull all new articles in all subscribed 
groups whenever 'fetchnews' is run - which can be a cron job, or triggered 
by the internet connection coming 'up', or by the user manually running it 
'as required'.  (I do the latter, on this dial-up-connected laptop).  In 
this context the 'dummy article' method of triggering a new group 
subscription makes pretty good sense.  

Of course, that does mean that bodies are pulled without regard to whether
or not any end user will want to read them - so not a good arrangement if
binary groups are involved, but Leafnode can be made to work in a more
bunny-friendly mode, apparently (I don't do bunnies so I've never bothered
to try).

Leafnode defaults to 'local network only' access for clients; it can be 
made to accept connections from 'outside' as well, though.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
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