🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
37 messages
37 total messages Started by hawat.thufir Sat, 25 Mar 2006 01:02
FQDN for Leafnode
#182465
Author: hawat.thufir
Date: Sat, 25 Mar 2006 01:02
47 lines
2512 bytes
Have I not given a FQDN for leafnode?  Is there something additional which 
must be done for leafnode with regards to the FQDN?


thufir@localhost ~ $
thufir@localhost ~ $ su -
Password:
localhost ~ # leafnode
503 Leafnode must have a unique fully-qualified domain name. Have its 
administrator fix the configuration. More detail is in the logs.

Leafnode must have a fully-qualified and globally unique domain name,
not just "localhost".
Edit your /etc/hosts file to add a unique, fully qualified domain name.
"localhost.localdomain" or thereabouts will not work;
it's qualified, but not unique.
Please see the README-FQDN file for details.
Aborted
localhost ~ # exit
logout
thufir@localhost ~ $ cat /etc/hosts -n
      1  # /etc/hosts:  This file describes a number of hostname-to-address
      2  #              mappings for the TCP/IP subsystem.  It is mostly
      3  #              used at boot time, when no name servers are 
running.
      4  #              On small systems, this file can be used instead of 
a
      5  #              "named" name server.  Just add the names, addresses
      6  #              and any aliases to this file...
      7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 
2003/08/04 20:12:25 azarah Exp $
      8  #
      9
     10  #127.0.0.1      localhost
     11  127.0.0.1       hawat.thufir.gmail.com  arrakis
     12  192.168.0.2     gravity.twi-31o2.org gravity
thufir@localhost ~ $ date
Sat Mar 25 00:58:13 GMT 2006
thufir@localhost ~ $




thanks,


Thufir
Re: FQDN for Leafnode
#182466
Author: Neil Woods
Date: Sat, 25 Mar 2006 02:18
27 lines
1820 bytes
hawat.thufir@gmail.com writes:

> Have I not given a FQDN for leafnode?  Is there something additional
> which must be done for leafnode with regards to the FQDN?
>
>
> thufir@localhost ~ $
> thufir@localhost ~ $ su -
> Password:
> localhost ~ # leafnode
> 503 Leafnode must have a unique fully-qualified domain name. Have its
> administrator fix the configuration. More detail is in the logs.
>
> Leafnode must have a fully-qualified and globally unique domain name,
> not just "localhost".
> Edit your /etc/hosts file to add a unique, fully qualified domain name.
> "localhost.localdomain" or thereabouts will not work;
> it's qualified, but not unique.
> Please see the README-FQDN file for details.

Did you actually *read* this file?

-- 
Neil.
BOFH excuse #333:

A plumber is needed, the network drain is clogged
Re: FQDN for Leafnode
#182467
Author: SINNER
Date: Sat, 25 Mar 2006 02:18
31 lines
2182 bytes
* hawat.thufir@gmail.com wrote in news.software.readers:
> Have I not given a FQDN for leafnode?  Is there something additional which 
> must be done for leafnode with regards to the FQDN?


> thufir@localhost ~ $
> thufir@localhost ~ $ su -
> Password:
> localhost ~ # leafnode
> 503 Leafnode must have a unique fully-qualified domain name. Have its 
> administrator fix the configuration. More detail is in the logs.

> Leafnode must have a fully-qualified and globally unique domain name,
> not just "localhost".
> Edit your /etc/hosts file to add a unique, fully qualified domain name.
> "localhost.localdomain" or thereabouts will not work;
> it's qualified, but not unique.
> Please see the README-FQDN file for details.
> Aborted
> localhost ~ # exit
> logout

[...]

Post results of:
$ grep host /etc/leafnode/config

-- 
David
Show me a sane man and I will cure him for you.
		-- C.G. Jung
Re: FQDN for Leafnode
#182470
Author: gregor herrmann
Date: Sat, 25 Mar 2006 02:35
17 lines
2060 bytes
On Sat, 25 Mar 2006 02:18:36 GMT, SINNER wrote:

>> 503 Leafnode must have a unique fully-qualified domain name. Have its 
>> administrator fix the configuration. More detail is in the logs.

> Post results of:
> $ grep host /etc/leafnode/config

/etc/news/server is a candidate, too.


gregor
-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  infos zur usenet-hierarchie at.*: http://www.usenet.at/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-    NP: Beatles: I've got a feeling
Re: FQDN for Leafnode
#182533
Author: Whiskers
Date: Sat, 25 Mar 2006 14:59
68 lines
3487 bytes
On 2006-03-25, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * hawat.thufir@gmail.com wrote in news.software.readers:
>> Have I not given a FQDN for leafnode?  Is there something additional which 
>> must be done for leafnode with regards to the FQDN?
>
>
>> thufir@localhost ~ $
>> thufir@localhost ~ $ su -
>> Password:
>> localhost ~ # leafnode
>> 503 Leafnode must have a unique fully-qualified domain name. Have its 
>> administrator fix the configuration. More detail is in the logs.
>
>> Leafnode must have a fully-qualified and globally unique domain name,
>> not just "localhost".
>> Edit your /etc/hosts file to add a unique, fully qualified domain name.
>> "localhost.localdomain" or thereabouts will not work;
>> it's qualified, but not unique.
>> Please see the README-FQDN file for details.
>> Aborted
>> localhost ~ # exit
>> logout
>
> [...]
>
> Post results of:
> $ grep host /etc/leafnode/config

That shouldn't work; you need to be 'root' or 'news' to have 
permission to read that file.  (Have you made your user account a member 
of the 'news' group?).

If sudo is set up for the current user then 

    $ sudo grep host /etc/leafnode/config 

does work; otherwise su to 'root' before issuing the command.  (The user 
'news' on my system is not su-able).

I get

    $ sudo grep host /etc/leafnode/config
    hostname = ID-107770.user.individual.net

for example.  That is what leafnode uses to create my Message-ID headers, 
if my client doesn't create a valid-looking one.  (That FQDN is granted to 
me as part of the service I pay for from Individual.net; it is both 
'valid' and unique to me, which is useful for scoring or filtering 
putposes.  I have no registered domain name of my own).

Also, the output from

    $ cat /etc/hosts

would be useful.  (Normal users can run that one).  I get 

    $ cat /etc/hosts
    127.0.0.1               tavy.mobile.private tavy localhost

as this machine is currently 'stand alone', ie not networked, that seems 
to satisfy the basic requirements of the system - but doesn't give usenet 
(or email) programs anything to build a good public FQDN from; hence my use
of the optional hostname setting in leafnode.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: FQDN for Leafnode
#182537
Author: hawat.thufir
Date: Sat, 25 Mar 2006 15:46
29 lines
2152 bytes
Neil Woods wrote:
> hawat.thufir@gmail.com writes:
>
> > Have I not given a FQDN for leafnode?  Is there something additional
> > which must be done for leafnode with regards to the FQDN?
> >
> >
> > thufir@localhost ~ $
> > thufir@localhost ~ $ su -
> > Password:
> > localhost ~ # leafnode
> > 503 Leafnode must have a unique fully-qualified domain name. Have its
> > administrator fix the configuration. More detail is in the logs.
> >
> > Leafnode must have a fully-qualified and globally unique domain name,
> > not just "localhost".
> > Edit your /etc/hosts file to add a unique, fully qualified domain name.
> > "localhost.localdomain" or thereabouts will not work;
> > it's qualified, but not unique.
> > Please see the README-FQDN file for details.
>
> Did you actually *read* this file?
..

Yes, and if I missed something, please do point it out.


-Thufir
Re: FQDN for Leafnode
#182551
Author: hawat.thufir
Date: Sat, 25 Mar 2006 18:16
96 lines
4437 bytes
Whiskers wrote:
..
> I get
>
>     $ sudo grep host /etc/leafnode/config
>     hostname = ID-107770.user.individual.net
>
> for example.  That is what leafnode uses to create my Message-ID headers,
> if my client doesn't create a valid-looking one.  (That FQDN is granted to
> me as part of the service I pay for from Individual.net; it is both
> 'valid' and unique to me, which is useful for scoring or filtering
> putposes.  I have no registered domain name of my own).
>
> Also, the output from
>
>     $ cat /etc/hosts
>
> would be useful.  (Normal users can run that one).  I get
>
>     $ cat /etc/hosts
>     127.0.0.1               tavy.mobile.private tavy localhost
>
> as this machine is currently 'stand alone', ie not networked, that seems
> to satisfy the basic requirements of the system - but doesn't give usenet
> (or email) programs anything to build a good public FQDN from; hence my use
> of the optional hostname setting in leafnode.
>
> --


thufir@localhost ~ $
thufir@localhost ~ $ whoami
thufir
thufir@localhost ~ $ cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
#

#127.0.0.1      localhost
127.0.0.1       hawat.thufir.gmail.com  arrakis
192.168.0.2     gravity.twi-31o2.org gravity
thufir@localhost ~ $ su -
Password:
localhost ~ # nano /etc/hosts
localhost ~ # leafnode
200 Leafnode NNTP Daemon, version 1.11.3.rel running at
hawat.thufir.gmail.com (my fqdn: hawat.thufir.gmail.com)

localhost ~ # cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
#

#127.0.0.1      localhost
127.0.0.1       hawat.thufir.gmail.com  arrakis localhost
192.168.0.2     gravity.twi-31o2.org gravity
localhost ~ # cat /etc/leafnode/config
## Unread articles will be deleted after this many days if
## you don't define special expire times. Mandatory.
expire = 20

## This is the NNTP server leafnode fetches its news from.
## You need read and post access to it. Mandatory.
server = shawnews.vc.shawcable.net

host = hawat.thufir.gmail.com
localhost ~ # whoami
root
localhost ~ # date
Sat Mar 25 18:14:00 GMT 2006
localhost ~ #



Ok, progress :)

I changed /etc/hosts so that there's the word "localhost" in there. ?



thanks,

Thufir
Re: FQDN for Leafnode
#182574
Author: Whiskers
Date: Sat, 25 Mar 2006 20:30
46 lines
2967 bytes
On 2006-03-25, hawat.thufir@gmail.com <hawat.thufir@gmail.com> wrote:

snip

> localhost ~ # cat /etc/leafnode/config
> ## Unread articles will be deleted after this many days if
> ## you don't define special expire times. Mandatory.
> expire = 20
>
> ## This is the NNTP server leafnode fetches its news from.
> ## You need read and post access to it. Mandatory.
> server = shawnews.vc.shawcable.net
>
> host = hawat.thufir.gmail.com

snip

> Ok, progress :)
>
> I changed /etc/hosts so that there's the word "localhost" in there. ?

Now your computer knows where to look to find itself  :))

> thanks,
>
> Thufir

Perhaps you should change the line in your /etc/leafnode/config that 
starts with the word host to start with the word hostname instead, so that 
leafnode knows what it means  ;))

You should also consider an entry for "initialfetch", unless you are 
prepared to wait while 100s or 1000s of old articles are fetched when you 
first subscribe to a new group.  A setting of 200 suits me, but you can 
choose your own number.  (I find a global "expire" setting of 20 days is
too short; 90 is more my style, and some people don't want anything to
expire, ever).

Then you can get a groups list for leafnode so that when you point your 
newsreader at leafnode, you can subscribe to some groups, and do an 
initial 'fetch' of articles to read.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: FQDN for Leafnode
#182601
Author: hawat.thufir
Date: Sat, 25 Mar 2006 21:28
44 lines
2697 bytes
Whiskers wrote:
..
> > host = hawat.thufir.gmail.com
>
> snip
>
> > Ok, progress :)
> >
> > I changed /etc/hosts so that there's the word "localhost" in there. ?
>
> Now your computer knows where to look to find itself  :))

Ok!  :)


..
> Perhaps you should change the line in your /etc/leafnode/config that
> starts with the word host to start with the word hostname instead, so that
> leafnode knows what it means  ;))

Ahem.  Let us never speak of that again, please ;)

> You should also consider an entry for "initialfetch", unless you are
> prepared to wait while 100s or 1000s of old articles are fetched when you
> first subscribe to a new group.  A setting of 200 suits me, but you can
> choose your own number.  (I find a global "expire" setting of 20 days is
> too short; 90 is more my style, and some people don't want anything to
> expire, ever).
>
> Then you can get a groups list for leafnode so that when you point your
> newsreader at leafnode, you can subscribe to some groups, and do an
> initial 'fetch' of articles to read.
..


Thanks, Whiskers.  I need to read up a bit on the inital fetch and so
forth to fully understand what you're saying, but I'm already looking
forward to getting leafnode working :)




-Thufir
Re: FQDN for Leafnode
#182613
Author: Whiskers
Date: Sat, 25 Mar 2006 22:45
21 lines
2024 bytes
On 2006-03-25, hawat.thufir@gmail.com <hawat.thufir@gmail.com> wrote:
> Whiskers wrote:

snip

>> Then you can get a groups list for leafnode so that when you point your
>> newsreader at leafnode, you can subscribe to some groups, and do an
>> initial 'fetch' of articles to read.
> ..
>
>
> Thanks, Whiskers.  I need to read up a bit on the inital fetch and so
> forth to fully understand what you're saying, but I'm already looking
> forward to getting leafnode working :)

You just need to spot the necessary command (clue: it is not 'leafnode').

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: FQDN for Leafnode
#182619
Author: hawat.thufir
Date: Sat, 25 Mar 2006 22:57
55 lines
3497 bytes
Whiskers wrote:
..
> You should also consider an entry for "initialfetch", unless you are
> prepared to wait while 100s or 1000s of old articles are fetched when you
> first subscribe to a new group.  A setting of 200 suits me, but you can
> choose your own number.  (I find a global "expire" setting of 20 days is
> too short; 90 is more my style, and some people don't want anything to
> expire, ever).
>
> Then you can get a groups list for leafnode so that when you point your
> newsreader at leafnode, you can subscribe to some groups, and do an
> initial 'fetch' of articles to read.
..

localhost ~ #
localhost ~ # whoami
root
localhost ~ # fetchnews -vvv
leafnode 1.11.3.rel: verbosity level is 3, debugmode is 0
try_lock(timeout=5), fqdn="hawat.thufir.gmail.com"
shawnews.vc.shawcable.net: connecting to port nntp...
shawnews.vc.shawcable.net: connected.
shawnews.vc.shawcable.net: using STAT <message-ID> command.
shawnews.vc.shawcable.net: 0 articles posted.
shawnews.vc.shawcable.net: getting new newsgroups
shawnews.vc.shawcable.net: got 0 new newsgroups.
shawnews.vc.shawcable.net: reading server info from
/var/spool/news/leaf.node/shawnews.vc.shawcable.net
shawnews.vc.shawcable.net: conversation completed, disconnected.
wrote active file with 61433 lines
Started process to update overview data in the background.
Network activity has finished.
localhost ~ # date
Sat Mar 25 22:54:36 GMT 2006
localhost ~ #


That's all well and good, but how do I subscribe to a group, please?

Am I either not reading the f***ing manual correctly, or not reading
the correct manual, or...? I'm looking at the man entries for fetchmail
and leafnode.

I know that there's a config file for leafnode, but I'm at a loss as to
how to indicate which groups to download.  Could I get a pointer in the
right direction on that, please?  I don't know how to subscribe to a
group, never mind the initialfetch setting :(

In slrnpull I entered newsgroups into a list, is there something
analagous?  If so, I'm missing it.

Thanks,

Thufir
Re: FQDN for Leafnode
#182618
Author: hawat.thufir
Date: Sat, 25 Mar 2006 23:03
31 lines
2173 bytes
hawat.thu...@gmail.com wrote:
..
> In slrnpull I entered newsgroups into a list, is there something
> analagous?  If so, I'm missing it.
..

Ah, found:

localhost ~ #
localhost ~ #
localhost ~ # ls -hal /var/spool/news/leaf.node/
total 2.4M
drwxr-xr-x  2 news news 4.0K Mar 25 22:54 .
drwsr-xr-x  8 news news 4.0K Mar 25 22:45 ..
-rw-r--r--  1 news news    0 Mar 22 13:34 .keep
-rw-rw-r--  1 news news 2.4M Mar 25 22:54 groupinfo
-rw-rw-r--  1 news news    0 Mar 25 22:54 shawnews.vc.shawcable.net
localhost ~ # date
Sat Mar 25 23:02:30 GMT 2006
localhost ~ #


I presume that groupinfo can be edited so that certain groups are
downloaded, or subscribed?



thanks,

Thufir
Re: FQDN for Leafnode
#182632
Author: Whiskers
Date: Sun, 26 Mar 2006 00:29
44 lines
3058 bytes
On 2006-03-25, hawat.thufir@gmail.com <hawat.thufir@gmail.com> wrote:
> Whiskers wrote:

snip

>> Then you can get a groups list for leafnode so that when you point your
>> newsreader at leafnode, you can subscribe to some groups, and do an
>> initial 'fetch' of articles to read.
> ..
>
> localhost ~ #
> localhost ~ # whoami
> root
> localhost ~ # fetchnews -vvv
> leafnode 1.11.3.rel: verbosity level is 3, debugmode is 0

snip

> That's all well and good, but how do I subscribe to a group, please?

snip

You use a news-reader.  Leafnode is a 'server'; you can't use it to read 
or post /with/; - that is what news-readers ("usenet clients") are for. 
Leafnode provides an NNTP feed on the computer it runs on, so in your
newsreader of choice the server you set up is the name or IP address of
the machine on your local network that is running Leafnode - probably
'localhost' or '127.0.0.1' if I remember the older stuff in this thread
correctly.  I think you want to use tin, don't you?  That should be fine. 
I use slrn, but any standard NNTP newsreader will work happily with
Leafnode.

Leafnode provides a 'dummy article' in any group you haven't subscribed to 
yet; "read" that article, and the next time you run fetchnews, the 
articles in that group will be fetched and then you can read them in your 
news-reader.  Any articles you post using your newsreader will be posted 
to Leafnode (unless you do somehing unusual with your newsreader's 
configuration), and then passed on to your 'upstream' server (shawnews, in 
your case) next time fetchnews is run.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: FQDN for Leafnode
#182637
Author: Neil Woods
Date: Sun, 26 Mar 2006 01:10
70 lines
3720 bytes
hawat.thufir@gmail.com writes:

> hawat.thu...@gmail.com wrote:
> ..
>> In slrnpull I entered newsgroups into a list, is there something
>> analagous?  If so, I'm missing it.
> ..
>
> Ah, found:
>
> localhost ~ #
> localhost ~ #
> localhost ~ # ls -hal /var/spool/news/leaf.node/
> total 2.4M
> drwxr-xr-x  2 news news 4.0K Mar 25 22:54 .
> drwsr-xr-x  8 news news 4.0K Mar 25 22:45 ..
> -rw-r--r--  1 news news    0 Mar 22 13:34 .keep
> -rw-rw-r--  1 news news 2.4M Mar 25 22:54 groupinfo
> -rw-rw-r--  1 news news    0 Mar 25 22:54 shawnews.vc.shawcable.net
> localhost ~ # date
> Sat Mar 25 23:02:30 GMT 2006
> localhost ~ #
>
>
> I presume that groupinfo can be edited so that certain groups are
> downloaded, or subscribed?

No.  When you initially connect a news client to leafnode, you have to
pull the list of groups in the above groupinfo file via NNTP into your
client.  You should then be presented with a Leafnode "dummy" article in
each news group in your client.  

Just reading this article causes leafnode to create an empty file in
/var/spool/news/interesting.groups/ the name of which is the news group
you have just read the article in.  For example, if you subscribe to
say, news.software.readers, then leafnode will create

/var/spool/news/interesting.groups/news.software.readers.

On the next run of fetchnews, leafnode will see this file, and fetch
articles for that group.  

The actual file which your news client then saves (and reads when it
starts up), which contains the list of groups to which you are
subscribed, together with article numbers indicating which articles you
have read is traditionally called ~/.newsrc, but may differ depending on
the news client used.

On another note, how are you starting Leafnode?  The usual method is to
use the Internet superserver inetd (or xinetd on some systems).  This
provides some extra level of security.  For example, here I have in
/etc/inetd.conf:

# start leafnode nntp server
nntp  stream  tcp  nowait news /usr/sbin/tcpd /usr/sbin/leafnode

If you have xinetd, the entry will be different.

See inetd(8) (or xinetd(8)) man pages for more information.

Apologies if you know this already!

Hope this helps.

-- 
Neil.
Option Paralysis:
	The tendency, when given unlimited choices, to make none.
		-- Douglas Coupland, "Generation X: Tales for an Accelerated
		   Culture"
Re: FQDN for Leafnode
#182645
Author: SINNER
Date: Sun, 26 Mar 2006 01:58
73 lines
3679 bytes
* Whiskers wrote in news.software.readers:
> On 2006-03-25, SINNER <99nesorjd@gates_of_hell.invalid> wrote:

[...]

>> Post results of:
>> $ grep host /etc/leafnode/config

> That shouldn't work; you need to be 'root' or 'news' to have 
> permission to read that file.  (Have you made your user account a member 
> of the 'news' group?).

Nope. Ubuntu makes the first user created a member of admin. The system
is administered via the use of sudo. The root account is disabled by
default. Threw me for a loop on the switch from Mandrake, but I prefer
it now.

[07:41 PM][J:0][sinner@~]$ ll /etc/leafnode/config
-rw-r--r--  1 root root 9954 2006-03-12 18:04 /etc/leafnode/config

> If sudo is set up for the current user then 

>     $ sudo grep host /etc/leafnode/config 

> does work; otherwise su to 'root' before issuing the command.  (The user 
> 'news' on my system is not su-able).

Not necessary with Ubuntu, as above.

> I get


>     $ sudo grep host /etc/leafnode/config
>     hostname = ID-107770.user.individual.net

> for example.  That is what leafnode uses to create my Message-ID headers, 
> if my client doesn't create a valid-looking one.  (That FQDN is granted to 
> me as part of the service I pay for from Individual.net; it is both 
> 'valid' and unique to me, which is useful for scoring or filtering 
> putposes.  I have no registered domain name of my own).

> Also, the output from

>     $ cat /etc/hosts

[07:48 PM][J:0][sinner@~]$ cat /etc/hosts
127.0.0.1 gates-of-hell.com localhost gates-of-hell
localhost.localdomain
127.0.0.2 news.gates-of-hell.invalid
# The following lines are desirable for IPv6 capable hosts
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


> would be useful.  (Normal users can run that one).  I get 

>     $ cat /etc/hosts
>     127.0.0.1               tavy.mobile.private tavy localhost

> as this machine is currently 'stand alone', ie not networked, that seems 
> to satisfy the basic requirements of the system - but doesn't give usenet 
> (or email) programs anything to build a good public FQDN from; hence my use
> of the optional hostname setting in leafnode.

I use it as well.

-- 
David
Q:	How many supply-siders does it take to change a light bulb?
A:	None.  The darkness will cause the light bulb to change by itself.
Re: FQDN for Leafnode
#182658
Author: hawat.thufir
Date: Sun, 26 Mar 2006 12:48
129 lines
5920 bytes
Whiskers wrote:
..
> > That's all well and good, but how do I subscribe to a group, please?
>
> snip
>
> You use a news-reader.  Leafnode is a 'server'; you can't use it to read
> or post /with/; - that is what news-readers ("usenet clients") are for.
> Leafnode provides an NNTP feed on the computer it runs on, so in your
> newsreader of choice the server you set up is the name or IP address of
> the machine on your local network that is running Leafnode - probably
> 'localhost' or '127.0.0.1' if I remember the older stuff in this thread
> correctly.  I think you want to use tin, don't you?  That should be fine.
> I use slrn, but any standard NNTP newsreader will work happily with
> Leafnode.
>
> Leafnode provides a 'dummy article' in any group you haven't subscribed to
> yet; "read" that article, and the next time you run fetchnews, the
> articles in that group will be fetched and then you can read them in your
> news-reader.  Any articles you post using your newsreader will be posted
> to Leafnode (unless you do somehing unusual with your newsreader's
> configuration), and then passed on to your 'upstream' server (shawnews, in
> your case) next time fetchnews is run.

Ah, what I used to do is just manually run slrnpull periodically, which
would then download the postings.  Leafnode, however, doesn't download
the first message until requested to do so by the client?

I don't want to muck with xinetd for the time being.  Can I just
manually run fetchnews periodically for the time being?  Once the
client is configured and has asked for news.software.readers then
fetchnews will fetch the news for all subscribed groups when fetchnews
is run?  With the caveat that groups which don't get read after x days
are automagically unsubscribed.

I'm used to pine, so I'm over at:
<http://www.math.washington.edu/~chappa/pine/pine-info/collections/News/index.html>

However, let's say I'm using the mozilla GUI news reader, or something
like that, I presume that I'll still have to set up something like:

Nickname 	: 	Anything (the name of the server is a good idea)
Server   	: 	news.server.com/nntp/user=userid
Path     	: 	#news.
View     	:


Nickname 	: 	ArrakisLeafNode
Server   	: 	arrakis/nntp/
Path     	: 	#news.
View     	:

Nickname 	: 	ArrakisLeafNode
Server   	: 	localhost/nntp/
Path     	: 	#news.
View     	:

Nickname 	: 	ArrakisLeafNode
Server   	: 	hawat.thufir.gmail.com/nntp/
Path     	: 	#news.
View     	:

Nickname 	: 	ArrakisLeafNode
Server   	: 	hawat.thufir.gmail.com
Path     	: 	#news.
View     	:


I get:

[Connection failed to hawat.thufir.gmail.com,119:  Connection refused]

from pine for any of the above.

Now, the same page suggests to:

telnet your.newsserver.com 119

However, I just switched to gentoo and there seems to be some problem
with "emerge telnet" not working because of telnet's insecurities.  So,
I'm going to look into that.

However, I would "telnet localhost 119" to make sure that leafnode is
working?

localhost ~ #
localhost ~ #
localhost ~ # cat -n /etc/hosts
     1  # /etc/hosts:  This file describes a number of
hostname-to-address
     2  #              mappings for the TCP/IP subsystem.  It is mostly
     3  #              used at boot time, when no name servers are
running.
     4  #              On small systems, this file can be used instead
of a
     5  #              "named" name server.  Just add the names,
addresses
     6  #              and any aliases to this file...
     7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
     8  #
     9
    10  #127.0.0.1      localhost
    11  127.0.0.1       hawat.thufir.gmail.com  arrakis localhost
    12  192.168.0.2     gravity.twi-31o2.org gravity
localhost ~ # cat -n /etc/leafnode/config
     1  ## Unread articles will be deleted after this many days if
     2  ## you don't define special expire times. Mandatory.
     3  expire = 20
     4
     5  ## This is the NNTP server leafnode fetches its news from.
     6  ## You need read and post access to it. Mandatory.
     7  server = shawnews.vc.shawcable.net
     8
     9
    10  hostname = hawat.thufir.gmail.com
    11
    12  initialfetch = 5
localhost ~ # date
Sun Mar 26 13:22:19 IST 2006
localhost ~ #




thanks,

Thufir
Re: FQDN for Leafnode
#182661
Author: Whiskers
Date: Sun, 26 Mar 2006 13:34
67 lines
3213 bytes
On 2006-03-26, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * Whiskers wrote in news.software.readers:
>> On 2006-03-25, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>
> [...]
>
>>> Post results of:
>>> $ grep host /etc/leafnode/config
>
>> That shouldn't work; you need to be 'root' or 'news' to have 
>> permission to read that file.  (Have you made your user account a member 
>> of the 'news' group?).
>
> Nope. Ubuntu makes the first user created a member of admin. The system
> is administered via the use of sudo. The root account is disabled by
> default. Threw me for a loop on the switch from Mandrake, but I prefer
> it now.

snip

Curious.  That would need to be known by whoever sets up a system for 
multiple users, otherwise things might not work at all as expected.  (I 
can imagine someone creating users in alphabetical order at installation 
time, thus inadvertently giving ten-year-old Anna admin powers ... Oops!).

> [07:41 PM][J:0][sinner@~]$ ll /etc/leafnode/config
> -rw-r--r--  1 root root 9954 2006-03-12 18:04 /etc/leafnode/config

I think my Mandriva system is more conventional - and closer to the 
specification in the Leafnode manual:

    [mark@tavy ~]$ ll /etc/leafnode/config
    -rw-------  1 news news 251 Feb 12 13:06 /etc/leafnode/config

so:

    [mark@tavy ~]$ cat /etc/leafnode/config
    cat: /etc/leafnode/config: Permission denied

but:

    [mark@tavy ~]$ sudo cat /etc/leafnode/config
    server = news.individual.net
    username = ******
    password = ******
    
    server = news.clara.net
    nodesc = 1
    
    expire = 90
    
    initialfetch = 200
    
    timeout_long = 30
    
    maxcrosspost = 3
    
    filterfile = /etc/leafnode/filters
    
    hostname = ID-107770.user.individual.net

[usernames and passwords hidden to protect the innocent]

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: FQDN for Leafnode
#182667
Author: Peter J Ross
Date: Sun, 26 Mar 2006 15:36
41 lines
2737 bytes
On 26 Mar 2006 04:48:16 -0800, hawat.thufir@gmail.com
<hawat.thufir@gmail.com> wrote in news.software.readers:

> Ah, what I used to do is just manually run slrnpull periodically, which
> would then download the postings.  Leafnode, however, doesn't download
> the first message until requested to do so by the client?

Alternatively, you could create the files in .../interesting.groups
manually.

> I don't want to muck with xinetd for the time being.  Can I just
> manually run fetchnews periodically for the time being?

No, because the leafnode daemon has to be running for fetchnews to
work. That's why you're getting the error messages you describe.

> Once the
> client is configured and has asked for news.software.readers then
> fetchnews will fetch the news for all subscribed groups when fetchnews
> is run?  With the caveat that groups which don't get read after x days
> are automagically unsubscribed.

Yes.

<...>

> However, I just switched to gentoo and there seems to be some problem
> with "emerge telnet" not working because of telnet's insecurities.  So,
> I'm going to look into that.

You don't need an insecure telnet server to connect to leafnode, just
a telnet client.


PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: FQDN for Leafnode
#182668
Author: Peter J Ross
Date: Sun, 26 Mar 2006 15:43
36 lines
2422 bytes
On Sun, 26 Mar 2006 14:34:29 +0100, Whiskers
<catwheezel@operamail.com> wrote in news.software.readers:

> On 2006-03-26, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>
>> [07:41 PM][J:0][sinner@~]$ ll /etc/leafnode/config
>> -rw-r--r--  1 root root 9954 2006-03-12 18:04 /etc/leafnode/config
>
> I think my Mandriva system is more conventional - and closer to the 
> specification in the Leafnode manual:
>
>     [mark@tavy ~]$ ll /etc/leafnode/config
>     -rw-------  1 news news 251 Feb 12 13:06 /etc/leafnode/config

Both of these appear to be contrary to recommendation.

sarge:# ls -l /etc/news/leafnode/config
-rw-r-----  1 root news 11782 2006-03-07 15:20 /etc/news/leafnode/config

>From the fine manual:

  /etc/news/leafnode  should  not  be writable by the user "news", but
  it must be executable for at least any of the group that the  user
  "news" is in.  /etc/news/leafnode/config contains the configuration
  parameters for leafnode.  It must not be writable by the user
  "news".  Set this  to owner root:news and mode 640. For details, see
  CONFIGURATION below.


PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: FQDN for Leafnode
#182670
Author: Ben Shimmin
Date: Sun, 26 Mar 2006 17:07
20 lines
1690 bytes
Whiskers <catwheezel@operamail.com>:

[...]

> I think my Mandriva system is more conventional - and closer to the 
> specification in the Leafnode manual:
>
>     [mark@tavy ~]$ ll /etc/leafnode/config
>     -rw-------  1 news news 251 Feb 12 13:06 /etc/leafnode/config

I think my system is the most conventional:

  [17:38][bas@rialto:~]$ ll /etc/news/leafnode/config
  bash: ll: command not found

b.

-- 
<bas@bas.me.uk>                                        <URL:http://bas.me.uk/>
              Non est hoc loco adrogantia, sed indicium.
Re: FQDN for Leafnode
#182671
Author: hawat.thufir
Date: Sun, 26 Mar 2006 18:41
39 lines
2802 bytes
Peter J Ross wrote:
..
> > I don't want to muck with xinetd for the time being.  Can I just
> > manually run fetchnews periodically for the time being?
>
> No, because the leafnode daemon has to be running for fetchnews to
> work. That's why you're getting the error messages you describe.

Aha!  thanks.

..

> > However, I just switched to gentoo and there seems to be some problem
> > with "emerge telnet" not working because of telnet's insecurities.  So,
> > I'm going to look into that.
>
> You don't need an insecure telnet server to connect to leafnode, just
> a telnet client.
>
>
> PJR :-)
> --
>   _  _(o)_(o)_  _       FSM: http://www.venganza.org/
> ._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
>     / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
>  ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/


Ok.  I don't know what the distinction is between a telnet server
(let's you telnet onto my box?) versus a telnet client (lets me telnet
onto your box?), but, at least I now know that I don't need a telnet
server :)


thanks for the help, I'm hoping to able to come back and "all set" :)


-Thufir
Re: FQDN for Leafnode
#182674
Author: hawat.thufir
Date: Sun, 26 Mar 2006 18:56
60 lines
3261 bytes
hawat.thufir@gmail.com wrote:
..
> Ok.  I don't know what the distinction is between a telnet server
> (let's you telnet onto my box?) versus a telnet client (lets me telnet
> onto your box?), but, at least I now know that I don't need a telnet
> server :)
>
>
> thanks for the help, I'm hoping to able to come back and "all set" :)
>
>
> -Thufir

On gentoo I did:


localhost ~ #
localhost ~ # emerge -pv netkit-telnetd
[..]

Which is

netkit-telnetd
Description: Standard Linux telnet client and server

Although, come to think of it, I didn't need the server.  Hmm.  Anyhow:
localhost ~ #
localhost ~ #
localhost ~ #
localhost ~ # telnet localhost
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # telnet localhost 119
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.086 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.080 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.081 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.077 ms

--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 0.077/0.081/0.086/0.003 ms
localhost ~ # date
Sun Mar 26 19:55:00 IST 2006
localhost ~ #



So, I just need to get leafnode running in the background and then
configure pine.  It's a few more steps than anticipated, but hopefully
worth it :)


thanks,

Thufir
Re: FQDN for Leafnode
#182675
Author: hawat.thufir
Date: Sun, 26 Mar 2006 19:10
78 lines
3865 bytes
hawat.thufir@gmail.com wrote:
..
> So, I just need to get leafnode running in the background and then
> configure pine.  It's a few more steps than anticipated, but hopefully
> worth it :)
>
>
> thanks,
>
> Thufir


Just kinda keeping a log of my progress, no questions...

from
<http://www-student.cs.uni-bonn.de/~kuester/html/slrn-with-leafnode-HOWTO-3.html>:

thufir@localhost ~ $ cat -n /etc/xinetd.conf
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13  includedir /etc/xinetd.d
thufir@localhost ~ $ cat -n /home/thufir/xinetd.conf
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13  includedir /etc/xinetd.d
    14
    15
    16
    17
    18  nntp    stream  tcp     nowait  root    /usr/sbin/tcpd
/usr/local/sbin/leafnode
    19
    20
    21
    22
    23
thufir@localhost ~ $ ls -hl /usr/local/sbin/
total 0
thufir@localhost ~ $ ls -hl /etc/leafnode/
total 40K
-rw-r--r--  1 root root 164 Mar 22 13:34 Makefile.dist
-rw-r--r--  1 root root 174 Mar 22 13:34 UNINSTALL-daemontools
-rw-r--r--  1 root root 324 Mar 26 13:01 config
-rw-r--r--  1 root root 12K Mar 22 13:34 config.example
-rw-r--r--  1 root root 473 Mar 22 13:34 filters.example
-rw-r--r--  1 root root  22 Mar 22 13:34 nntp.rules.dist
-rw-r--r--  1 root root 704 Mar 22 13:34 run.tcpd.dist
-rw-r--r--  1 root root 838 Mar 22 13:34 run.tcpserver.dist
thufir@localhost ~ $ date
Sun Mar 26 20:09:01 IST 2006
thufir@localhost ~ $



thanks,

Thufir
Re: FQDN for Leafnode
#182677
Author: hawat.thufir
Date: Sun, 26 Mar 2006 19:28
30 lines
2488 bytes
Neil Woods wrote:
..
> On another note, how are you starting Leafnode?  The usual method is to
> use the Internet superserver inetd (or xinetd on some systems).  This
> provides some extra level of security.  For example, here I have in
> /etc/inetd.conf:
>
> # start leafnode nntp server
> nntp  stream  tcp  nowait news /usr/sbin/tcpd /usr/sbin/leafnode
>
> If you have xinetd, the entry will be different.
>
> See inetd(8) (or xinetd(8)) man pages for more information.
>
> Apologies if you know this already!
>
> Hope this helps.
..

Aha, this is exactly what I need to do.  I have xinetd and have read
the man pages, however I still don't know how to edit /etc/xinetd.conf
such that it starts leafnode.  I'm googling for an example, but notice
that I don't have anything in in /usr/sbin/leafnode (different distro,
no doubt).  How do you know what to put in that line, please?


thanks,

Thufir
Re: FQDN for Leafnode
#182678
Author: SINNER
Date: Sun, 26 Mar 2006 19:38
40 lines
2914 bytes
* Whiskers wrote in news.software.readers:
> On 2006-03-26, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>> * Whiskers wrote in news.software.readers:
>>> On 2006-03-25, SINNER <99nesorjd@gates_of_hell.invalid> wrote:

>> [...]

>>>> Post results of:
>>>> $ grep host /etc/leafnode/config

>>> That shouldn't work; you need to be 'root' or 'news' to have 
>>> permission to read that file.  (Have you made your user account a member 
>>> of the 'news' group?).

>> Nope. Ubuntu makes the first user created a member of admin. The system
>> is administered via the use of sudo. The root account is disabled by
>> default. Threw me for a loop on the switch from Mandrake, but I prefer
>> it now.

> snip

> Curious.  That would need to be known by whoever sets up a system for 
> multiple users, otherwise things might not work at all as expected.  (I 
> can imagine someone creating users in alphabetical order at installation 
> time, thus inadvertently giving ten-year-old Anna admin powers ... Oops!).

I should have been more specific. It does this for the user created
during the install. I don't remember it prompting for multiple users a
that time. I do recall it saying YOUR user name I believe. This is all
covered in the DOC that I didn't not read before installation ;)

But I did head head over to the Ubuntu Starter guide which straightened me
all out.

[...]

-- 
David
I'm going to live forever, or die trying!
		-- Spider Robinson
Re: FQDN for Leafnode
#182679
Author: hawat.thufir
Date: Sun, 26 Mar 2006 19:39
111 lines
4921 bytes
hawat.thufir@gmail.com wrote:
> Neil Woods wrote:
> ..
> > On another note, how are you starting Leafnode?  The usual method is to
> > use the Internet superserver inetd (or xinetd on some systems).  This
> > provides some extra level of security.  For example, here I have in
> > /etc/inetd.conf:
> >
> > # start leafnode nntp server
> > nntp  stream  tcp  nowait news /usr/sbin/tcpd /usr/sbin/leafnode
> >
> > If you have xinetd, the entry will be different.
> >
> > See inetd(8) (or xinetd(8)) man pages for more information.
> >
> > Apologies if you know this already!
> >
> > Hope this helps.
> ..
>
> Aha, this is exactly what I need to do.  I have xinetd and have read
> the man pages, however I still don't know how to edit /etc/xinetd.conf
> such that it starts leafnode.  I'm googling for an example, but notice
> that I don't have anything in in /usr/sbin/leafnode (different distro,
> no doubt).  How do you know what to put in that line, please?
>
>
> thanks,
>
> Thufir


Oh, it's a FAQ on leafnode's home page.


thufir@localhost ~ $
thufir@localhost ~ $ cat /home/thufir/xinetd.conf -n
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13
    14
    15  # see <http://tqmcube.com/leafnode.php>
    16  service nntp
    17  {
    18          disable         = no
    19          socket_type     = stream
    20          protocol        = tcp
    21          wait            = no
    22          user            = news
    23          server          = /usr/sbin/leafnode
    24  #       bind            = 127.0.0.1
    25  }
    26
    27
    28
    29  # see
<http://www.linuxfromscratch.org/blfs/view/stable/server/leafnode.html>
    30
    31          service nntp
    32          {
    33             flags           = NAMEINARGS NOLIBWRAP
    34             socket_type     = stream
    35             protocol        = tcp
    36             wait            = no
    37             user            = news
    38             server          = /usr/sbin/tcpd
    39             server_args     = /usr/sbin/leafnode
    40             instances       = 7
    41             per_source      = 3
    42          }
    43
    44
    45
    46  #<http://leafnode.sourceforge.net/wuerzburg/faq.html#4>
    47
    48                  service nntp
    49                  {
    50                          disable = no
    51                          flags           = REUSE
    52                          socket_type     = stream
    53                          wait            = no
    54                          user            = news
    55                          server          = /usr/sbin/leafnode
    56                          log_on_failure  += USERID
    57                  }
    58
    59
    60
    61
    62  includedir /etc/xinetd.d
    63
    64
    65
thufir@localhost ~ $ date
Sun Mar 26 20:37:47 IST 2006
thufir@localhost ~ $



-Thufir
Re: FQDN for Leafnode
#182682
Author: Whiskers
Date: Sun, 26 Mar 2006 21:08
89 lines
5254 bytes
On 2006-03-26, hawat.thufir@gmail.com <hawat.thufir@gmail.com> wrote:
> Whiskers wrote:
> ..
>> > That's all well and good, but how do I subscribe to a group, please?
>>
>> snip
>>
>> You use a news-reader.  Leafnode is a 'server'; you can't use it to read
>> or post /with/; - that is what news-readers ("usenet clients") are for.
>> Leafnode provides an NNTP feed on the computer it runs on, so in your
>> newsreader of choice the server you set up is the name or IP address of
>> the machine on your local network that is running Leafnode - probably
>> 'localhost' or '127.0.0.1' if I remember the older stuff in this thread
>> correctly.  I think you want to use tin, don't you?  That should be fine.
>> I use slrn, but any standard NNTP newsreader will work happily with
>> Leafnode.
>>
>> Leafnode provides a 'dummy article' in any group you haven't subscribed to
>> yet; "read" that article, and the next time you run fetchnews, the
>> articles in that group will be fetched and then you can read them in your
>> news-reader.  Any articles you post using your newsreader will be posted
>> to Leafnode (unless you do somehing unusual with your newsreader's
>> configuration), and then passed on to your 'upstream' server (shawnews, in
>> your case) next time fetchnews is run.
>
> Ah, what I used to do is just manually run slrnpull periodically, which
> would then download the postings.  Leafnode, however, doesn't download
> the first message until requested to do so by the client?

On a per-group basis; if you want to see messages in a 
news.software.readers, you have to 'subscribe' to that group with your 
newsreader, and read the dummy article from Leafnode.  If you want to read 
articles in alt.os.linux, you have to subscribe to that group with your 
newsreader, and read the dummy article from Leafnode.  Leafnode will not 
fetch any articles from any group for which you (or another user on your 
system) have not first read the initial dummy article.

> I don't want to muck with xinetd for the time being.  Can I just
> manually run fetchnews periodically for the time being?  Once the
> client is configured and has asked for news.software.readers then
> fetchnews will fetch the news for all subscribed groups when fetchnews
> is run?  With the caveat that groups which don't get read after x days
> are automagically unsubscribed.

The leafnode daemon needs to be running; it /is/ the leadnode server that 
provides the feed to your newsreader.  You can run fetchnews manually as 
and when you want to; that's what I do.  Some people run fetchnews 
automatically as a cron job, or every time a dial-up internet connection 
is made.

> I'm used to pine, so I'm over at:
> <http://www.math.washington.edu/~chappa/pine/pine-info/collections/News/index.html>
>
> However, let's say I'm using the mozilla GUI news reader, or something
> like that, I presume that I'll still have to set up something like:

snip

I don't know the Mozilla newsreader.

The Pine instructions you link to above lead me to believe that if you 
want Pine to work with Leafnode, you need an entry like

    nntp-server = 127.0.0.1

in the Pine configuration file.

If you are using Leafnode, then there would seem to be no need to set up 
any other news-servers in your news-reader; set them up in Leafnode 
instead.  (So Pine has one 'collection' and one ~/.newsrc file).

snip

> I get:
>
> [Connection failed to hawat.thufir.gmail.com,119:  Connection refused]
>
> from pine for any of the above.
>

snip

If you haven't set up Leafnode with inetd or xinetd, then there won't be a 
local news-server running.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: FQDN for Leafnode
#182683
Author: Peter J Ross
Date: Sun, 26 Mar 2006 21:36
57 lines
3105 bytes
On 26 Mar 2006 10:41:26 -0800, hawat.thufir@gmail.com
<hawat.thufir@gmail.com> wrote in news.software.readers:

> Peter J Ross wrote:
> ..
>> > I don't want to muck with xinetd for the time being.  Can I just
>> > manually run fetchnews periodically for the time being?
>>
>> No, because the leafnode daemon has to be running for fetchnews to
>> work. That's why you're getting the error messages you describe.
>
> Aha!  thanks.
>
> ..
>
>> > However, I just switched to gentoo and there seems to be some problem
>> > with "emerge telnet" not working because of telnet's insecurities.  So,
>> > I'm going to look into that.
>>
>> You don't need an insecure telnet server to connect to leafnode, just
>> a telnet client.
>>
>>
>> PJR :-)
>> --
>>   _  _(o)_(o)_  _       FSM: http://www.venganza.org/
>> ._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
>>     / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
>>  ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
>
>
> Ok.  I don't know what the distinction is between a telnet server
> (let's you telnet onto my box?)

Yes, it does, if you're running a telnet server.

> versus a telnet client (lets me telnet
> onto your box?),

Yes, it does, if I'm running a telnet server.

> but, at least I now know that I don't need a telnet
> server :)
>
>
> thanks for the help, I'm hoping to able to come back and "all set" :)

Set up leafnode in inetd or xinetd, and you should be ready to rock n'
roll.

PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: FQDN for Leafnode
#182684
Author: hawat.thufir
Date: Sun, 26 Mar 2006 22:46
82 lines
4318 bytes
Peter J Ross wrote:
..
> Set up leafnode in inetd or xinetd, and you should be ready to rock n'
> roll.
..

>From the gentoo mailing list (I would've crossposted, but didn't know
how):

localhost ~ #
localhost ~ #
localhost ~ # cat -n /etc/xinetd.conf
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13  includedir /etc/xinetd.d
localhost ~ # ls -hl /etc/xinetd.d/
total 56K
-rw-r--r--  1 root root 643 Mar 22 13:29 README.services
-rw-r--r--  1 root root 246 Mar 22 13:29 chargen-tcp
-rw-r--r--  1 root root 266 Mar 22 13:29 chargen-udp
-rw-r--r--  1 root root 368 Mar 20 19:39 cups-lpd
-rw-r--r--  1 root root 246 Mar 22 13:29 daytime-tcp
-rw-r--r--  1 root root 272 Mar 22 13:29 daytime-udp
-rw-r--r--  1 root root 238 Mar 22 13:29 echo-tcp
-rw-r--r--  1 root root 263 Mar 22 13:29 echo-udp
-rw-r--r--  1 root root 250 Mar 21 11:37 fingerd
-rw-r--r--  1 root root 230 Mar 22 13:34 leafnode-nntp
-rw-r--r--  1 root root 528 Mar 20 19:59 swat
-rw-r--r--  1 root root 205 Mar 26 19:46 telnetd
-rw-r--r--  1 root root 270 Mar 22 13:29 time-tcp
-rw-r--r--  1 root root 272 Mar 22 13:29 time-udp
localhost ~ # cat -n /etc/xinetd.d/leafnode-nntp
     1  # default: off
     2  # description: Leafnode - accepts connections on port 119
(NNTP)
     3
     4  service nntp
     5  {
     6          socket_type = stream
     7          protocol    = tcp
     8          wait        = no
     9          user        = news
    10          server      = /usr/sbin/leafnode
    11          disable     = yes
    12  }
localhost ~ # telnet 127.0.0.1 119
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # telnet 127.0.0.1
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # telnet localhost
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # telnet localhost 119
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # whoami
root
localhost ~ # date
Sun Mar 26 23:45:43 IST 2006
localhost ~ #




This file, /etc/xinetd.d/leafnode-nntp, was already there.  However,
I'm not convinced that line 10, server=/usr/sbin/leafnode is correct.


-Thufir
Re: FQDN for Leafnode
#182685
Author: hawat.thufir
Date: Sun, 26 Mar 2006 22:46
68 lines
3781 bytes
Whiskers wrote:
..
> The leafnode daemon needs to be running; it /is/ the leadnode server that
> provides the feed to your newsreader.  You can run fetchnews manually as
> and when you want to; that's what I do.  Some people run fetchnews
> automatically as a cron job, or every time a dial-up internet connection
> is made.

Ok, I'm just acknowledging that I've read what you wrote.  I'm going to
have to read a bit more to more fully understand what you're saying :)

> > I'm used to pine, so I'm over at:
> > <http://www.math.washington.edu/~chappa/pine/pine-info/collections/News/index.html>
> >
> > However, let's say I'm using the mozilla GUI news reader, or something
> > like that, I presume that I'll still have to set up something like:
>
> snip
>
> I don't know the Mozilla newsreader.
>
> The Pine instructions you link to above lead me to believe that if you
> want Pine to work with Leafnode, you need an entry like
>
>     nntp-server = 127.0.0.1
>
> in the Pine configuration file.
>
> If you are using Leafnode, then there would seem to be no need to set up
> any other news-servers in your news-reader; set them up in Leafnode
> instead.  (So Pine has one 'collection' and one ~/.newsrc file).
>
> snip
>
> > I get:
> >
> > [Connection failed to hawat.thufir.gmail.com,119:  Connection refused]
> >
> > from pine for any of the above.
> >
>
> snip
>
> If you haven't set up Leafnode with inetd or xinetd, then there won't be a
> local news-server running.
>
> --
> -- ^^^^^^^^^^
> --  Whiskers
> -- ~~~~~~~~~~

Hmm.  I actually think that when I installed (emerge leafnode) on
gentoo that it created the necesarry files for xinitd.  I'm going to
watch some tv, just kinda thinking out loud, but I think I need to go
back and read up on this thread because I'm missing something.  xinitd
seems to be configured, so the leafnode server should be working, yet I
can't telnet into it.  There's something missing, I'm going to take a
break and come back in a bit :)

I feel like I'm making progress even if it might be at a relative
snails pace.


Thanks for the patience,


Thufir
Re: FQDN for Leafnode
#182686
Author: Peter J Ross
Date: Sun, 26 Mar 2006 23:19
19 lines
2060 bytes
On 26 Mar 2006 14:46:34 -0800, hawat.thufir@gmail.com
<hawat.thufir@gmail.com> wrote in news.software.readers:

<...>

I'm sorry to say this, and I hope you don't think I'm being unduly
rude, but man leafnode and www.google.com are your friends. You're
asking questions to which you could easily find the answers yourself
with a few minutes' work.



PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: FQDN for Leafnode
#182691
Author: hawat.thufir
Date: Mon, 27 Mar 2006 04:42
212 lines
9704 bytes
Peter J Ross wrote:
> On 26 Mar 2006 14:46:34 -0800, hawat.thufir@gmail.com
> <hawat.thufir@gmail.com> wrote in news.software.readers:
>
> <...>
>
> I'm sorry to say this, and I hope you don't think I'm being unduly
> rude, but man leafnode and www.google.com are your friends. You're
> asking questions to which you could easily find the answers yourself
> with a few minutes' work.
..

You obviously have good intentions and no, you're not rude.

I've been trying to figure this out and find it difficult, although I
think I'm very close.

I can use slrn to read my ISP's groups, I just did that a few minutes
ago.  I've found countless pages devoted to slrn + leafnode
configuration, I've read the FAQ and other doc's at the leafnode
website, etc.

I can't telnet to the localhost, so there's no way to check whether or
not leafnode is running.  If leafnode's not running, I don't see why
not, as the config files are, I think, setup correctly.  I can
speculate that there's a permissions problem with regards to the "news"
user, but I don't think so.  There's a group "news", so I don't see why
that'd be a problem.

I don't see why xinitd isn't causing leafnode to run, nor do I see why
I can't test that leafnode's running.
thufir@localhost ~ $
thufir@localhost ~ $ whoami
thufir
thufir@localhost ~ $ ls -lh /etc/leafnode/
total 40K
-rw-r--r--  1 root root 164 Mar 22 13:34 Makefile.dist
-rw-r--r--  1 root root 174 Mar 22 13:34 UNINSTALL-daemontools
-rw-r--r--  1 root root 324 Mar 26 13:01 config
-rw-r--r--  1 root root 12K Mar 22 13:34 config.example
-rw-r--r--  1 root root 473 Mar 22 13:34 filters.example
-rw-r--r--  1 root root  22 Mar 22 13:34 nntp.rules.dist
-rw-r--r--  1 root root 704 Mar 22 13:34 run.tcpd.dist
-rw-r--r--  1 root root 838 Mar 22 13:34 run.tcpserver.dist
thufir@localhost ~ $ cat -n /etc/leafnode/config
     1  ## Unread articles will be deleted after this many days if
     2  ## you don't define special expire times. Mandatory.
     3  expire = 20
     4
     5  ## This is the NNTP server leafnode fetches its news from.
     6  ## You need read and post access to it. Mandatory.
     7  server = shawnews.vc.shawcable.net
     8
     9
    10  hostname = hawat.thufir.gmail.com
    11
    12  initialfetch = 5
thufir@localhost ~ $ ls -lh /etc/xinetd.d/
total 56K
-rw-r--r--  1 root root 643 Mar 22 13:29 README.services
-rw-r--r--  1 root root 246 Mar 22 13:29 chargen-tcp
-rw-r--r--  1 root root 266 Mar 22 13:29 chargen-udp
-rw-r--r--  1 root root 368 Mar 20 19:39 cups-lpd
-rw-r--r--  1 root root 246 Mar 22 13:29 daytime-tcp
-rw-r--r--  1 root root 272 Mar 22 13:29 daytime-udp
-rw-r--r--  1 root root 238 Mar 22 13:29 echo-tcp
-rw-r--r--  1 root root 263 Mar 22 13:29 echo-udp
-rw-r--r--  1 root root 250 Mar 21 11:37 fingerd
-rw-r--r--  1 root root 229 Mar 27 04:55 leafnode-nntp
-rw-r--r--  1 root root 528 Mar 20 19:59 swat
-rw-r--r--  1 root root 205 Mar 26 19:46 telnetd
-rw-r--r--  1 root root 270 Mar 22 13:29 time-tcp
-rw-r--r--  1 root root 272 Mar 22 13:29 time-udp
thufir@localhost ~ $ cat -n /etc/xinetd.conf
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13  includedir /etc/xinetd.d
thufir@localhost ~ $ fetchnews -fvvv
bash: fetchnews: command not found
thufir@localhost ~ $ su -
Password:
localhost ~ # whoami
root
localhost ~ # fetchnews -fvvv
leafnode 1.11.3.rel: verbosity level is 3, debugmode is 0
Forced active fetch requested from command-line (option -f).
try_lock(timeout=5), fqdn="hawat.thufir.gmail.com"
shawnews.vc.shawcable.net: connecting to port nntp...
shawnews.vc.shawcable.net: connected.
shawnews.vc.shawcable.net: using STAT <message-ID> command.
shawnews.vc.shawcable.net: 0 articles posted.
shawnews.vc.shawcable.net: getting all newsgroups (debug: active: nil,
forceactive: true)
Newsgroup name conflict: alt.2600.QnA vs. alt.2600.qna
Newsgroup name conflict, chose alt.2600.qna
Newsgroup name conflict: rye.scs.CPS393 vs. rye.scs.cps393
Newsgroup name conflict, chose rye.scs.cps393
Newsgroup name conflict: se.folk.utlandssvenskaR vs.
se.folk.utlandssvenskar
Newsgroup name conflict, chose se.folk.utlandssvenskar
shawnews.vc.shawcable.net: getting newsgroup descriptions
shawnews.vc.shawcable.net: reading server info from
/var/spool/news/leaf.node/shawnews.vc.shawcable.net
shawnews.vc.shawcable.net: conversation completed, disconnected.
wrote active file with 61433 lines
Started process to update overview data in the background.
Network activity has finished.
localhost ~ # ls -lh /var/spool/news/
total 32K
-rw-rw-r--     1 news news    0 Mar 27 05:31 active.read
drwxrwsr-x     2 news news 4.0K Mar 22 13:34 failed.postings
drwxrwsr-x     2 news news 4.0K Mar 25 18:37 interesting.groups
drwxr-xr-x     2 news news 4.0K Mar 27 05:31 leaf.node
drwxr-xr-x  1002 news news  12K Mar 22 13:34 message.id
drwxr-xr-x     2 news news 4.0K Mar 25 18:37 out.going
drwxr-xr-x     2 news news 4.0K Mar 22 13:34 temp.files
localhost ~ # whoami
root
localhost ~ # date
Mon Mar 27 05:31:54 IST 2006
localhost ~ # exit
logout
thufir@localhost ~ $ NNTPSERVER='shawnews.vc.shawcable.net' && export
NNTPSERVER
thufir@localhost ~ $ slrn
slrn 0.9.8.1 [2004-10-07]

Using newsrc file /home/thufir/.jnewsrc for server
shawnews.vc.shawcable.net.
Connecting to host shawnews.vc.shawcable.net ...
Connected to host.  Posting ok.
Checking for new groups ...
Checking news ...
thufir@localhost ~ $ echo "slrn worked fine, didn't post, but read
groups fine."
slrn worked fine, didn't post, but read groups fine.
thufir@localhost ~ $ NNTPSERVER='localhost' && export NNTPSERVER
thufir@localhost ~ $ slrn
slrn 0.9.8.1 [2004-10-07]

Using newsrc file /home/thufir/.jnewsrc for server localhost.
Connecting to host localhost ...Unable to make connection. Giving up.
slrn fatal error:
Failed to initialize server.
thufir@localhost ~ $ su -
Password:
localhost ~ # whoami
root
localhost ~ # telnet localhost 119
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # telnet localhost
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
localhost ~ # ping localhost
PING hawat.thufir.gmail.com (127.0.0.1) 56(84) bytes of data.
64 bytes from hawat.thufir.gmail.com (127.0.0.1): icmp_seq=1 ttl=64
time=0.085 ms
64 bytes from hawat.thufir.gmail.com (127.0.0.1): icmp_seq=2 ttl=64
time=0.073 ms
64 bytes from hawat.thufir.gmail.com (127.0.0.1): icmp_seq=3 ttl=64
time=0.082 ms
64 bytes from hawat.thufir.gmail.com (127.0.0.1): icmp_seq=4 ttl=64
time=0.080 ms

--- hawat.thufir.gmail.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.073/0.080/0.085/0.004 ms
localhost ~ # exit
logout
thufir@localhost ~ $ date
Mon Mar 27 05:36:11 IST 2006
thufir@localhost ~ $ telnet 127.0.0.1
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
thufir@localhost ~ $ cat -n /etc/xinetd.d/leafnode-nntp
     1  # default: off
     2  # description: Leafnode - accepts connections on port 119
(NNTP)
     3
     4  service nntp
     5  {
     6          socket_type = stream
     7          protocol    = tcp
     8          wait        = no
     9          user        = news
    10          server      = /usr/sbin/leafnode
    11          disable     = no
    12  }
thufir@localhost ~ $ date
Mon Mar 27 05:41:52 IST 2006
thufir@localhost ~ $






thanks,

Thufir
Re: FQDN for Leafnode
#182692
Author: Neil Woods
Date: Mon, 27 Mar 2006 07:09
61 lines
3761 bytes
hawat.thufir@gmail.com writes:

> I can't telnet to the localhost, so there's no way to check whether or
> not leafnode is running.  If leafnode's not running, I don't see why
> not, as the config files are, I think, setup correctly.  I can
> speculate that there's a permissions problem with regards to the "news"
> user, but I don't think so.  There's a group "news", so I don't see why
> that'd be a problem.
>
> I don't see why xinitd isn't causing leafnode to run, nor do I see why
> I can't test that leafnode's running.
[...]

> localhost ~ # fetchnews -fvvv
> leafnode 1.11.3.rel: verbosity level is 3, debugmode is 0
  ^^^^^^^^
Leafnode is running, as fetchnews is connecting to it.

Check with 'netstat -tl' (you should see a line with 'nntp', and with
'ps aux | grep leafnode').

> Forced active fetch requested from command-line (option -f).
> try_lock(timeout=5), fqdn="hawat.thufir.gmail.com"
> shawnews.vc.shawcable.net: connecting to port nntp...
> shawnews.vc.shawcable.net: connected.
> shawnews.vc.shawcable.net: using STAT <message-ID> command.
> shawnews.vc.shawcable.net: 0 articles posted.
> shawnews.vc.shawcable.net: getting all newsgroups (debug: active: nil,
> forceactive: true)
[...]
That looks OK.

> localhost ~ # telnet localhost 119
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused

OK, that's a bit odd.

> localhost ~ # telnet localhost
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused

You won't connect if you don't have a telnet daemon running!

> localhost ~ # ping localhost
> PING hawat.thufir.gmail.com (127.0.0.1) 56(84) bytes of data.
> 64 bytes from hawat.thufir.gmail.com (127.0.0.1): icmp_seq=1 ttl=64
> time=0.085 ms

There's a problem here.

For some reason you have 127.0.0.1 resolving to
hawat.thufir.gmail.com. It should _only_ resolve to localhost (and vice
versa).  And you *definitely* shouldn't use a domain that doesn't belong
to you.

It looks to me like your /etc/hosts file is misconfigured.

-- 
Neil.
No line available at 300 baud.
Re: FQDN for Leafnode
#182701
Author: hawat.thufir
Date: Mon, 27 Mar 2006 13:48
107 lines
5459 bytes
Neil Woods wrote:
..
> For some reason you have 127.0.0.1 resolving to
> hawat.thufir.gmail.com. It should _only_ resolve to localhost (and vice
> versa).  And you *definitely* shouldn't use a domain that doesn't belong
> to you.
>
> It looks to me like your /etc/hosts file is misconfigured.
..

login:
login: Connection closed by foreign host.
thufir@localhost ~ $ cat -n /etc/hosts
     1  # /etc/hosts:  This file describes a number of
hostname-to-address
     2  #              mappings for the TCP/IP subsystem.  It is mostly
     3  #              used at boot time, when no name servers are
running.
     4  #              On small systems, this file can be used instead
of a
     5  #              "named" name server.  Just add the names,
addresses
     6  #              and any aliases to this file...
     7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
     8  #
     9
    10  #127.0.0.1      localhost
    11  127.0.0.1       hawat.thufir.gmail.com  arrakis localhost
    12  192.168.0.2     gravity.twi-31o2.org gravity
thufir@localhost ~ $ date
Mon Mar 27 14:38:00 IST 2006
thufir@localhost ~ $


For a FQDN, obviously I don't own gmail.com, but I understood that I
should pick something valid.

thufir@localhost ~ $
thufir@localhost ~ $ cat -n /etc/hosts
     1  # /etc/hosts:  This file describes a number of
hostname-to-address
     2  #              mappings for the TCP/IP subsystem.  It is mostly
     3  #              used at boot time, when no name servers are
running.
     4  #              On small systems, this file can be used instead
of a
     5  #              "named" name server.  Just add the names,
addresses
     6  #              and any aliases to this file...
     7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
     8  #
     9
    10  #127.0.0.1      localhost
    11  127.0.0.1       hawat.thufir.invalid arrakis localhost
    12  192.168.0.2     gravity.twi-31o2.org gravity
thufir@localhost ~ $ date
Mon Mar 27 14:42:45 IST 2006
thufir@localhost ~ $


So I changed it to:

thufir@localhost ~ $
thufir@localhost ~ $
thufir@localhost ~ $ cat -n /etc/hosts
     1  # /etc/hosts:  This file describes a number of
hostname-to-address
     2  #              mappings for the TCP/IP subsystem.  It is mostly
     3  #              used at boot time, when no name servers are
running.
     4  #              On small systems, this file can be used instead
of a
     5  #              "named" name server.  Just add the names,
addresses
     6  #              and any aliases to this file...
     7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
     8  #
     9
    10  #127.0.0.1      localhost
    11  127.0.0.1       hawat.thufir.invalid arrakis localhost
    12  192.168.0.2     gravity.twi-31o2.org gravity
thufir@localhost ~ $ cat -n /etc/leafnode/config
     1  ## Unread articles will be deleted after this many days if
     2  ## you don't define special expire times. Mandatory.
     3  expire = 20
     4
     5  ## This is the NNTP server leafnode fetches its news from.
     6  ## You need read and post access to it. Mandatory.
     7  server = shawnews.vc.shawcable.net
     8
     9
    10  hostname = hawat.thufir.invalid
    11
    12  initialfetch = 5
thufir@localhost ~ $ date
Mon Mar 27 14:44:26 IST 2006
thufir@localhost ~ $



thanks,

Thufir
Re: FQDN for Leafnode
#182709
Author: Neil Woods
Date: Mon, 27 Mar 2006 17:50
82 lines
4505 bytes
hawat.thufir@gmail.com writes:

> Neil Woods wrote:
> ..
>> For some reason you have 127.0.0.1 resolving to
>> hawat.thufir.gmail.com. It should _only_ resolve to localhost (and vice
>> versa).  And you *definitely* shouldn't use a domain that doesn't belong
>> to you.
>>
>> It looks to me like your /etc/hosts file is misconfigured.
> ..

[...]
>     10  #127.0.0.1      localhost
>     11  127.0.0.1       hawat.thufir.gmail.com  arrakis localhost
>     12  192.168.0.2     gravity.twi-31o2.org gravity

OK, that's incorrect.

> For a FQDN, obviously I don't own gmail.com, but I understood that I
> should pick something valid.

Yes.  If you don't own a domain name, you can get one from one of the
free dynamic DNS services such as dyndns.org.  See their web site for
details.

> So I changed it to:
>
> thufir@localhost ~ $
> thufir@localhost ~ $
> thufir@localhost ~ $ cat -n /etc/hosts
[...]
>     10  #127.0.0.1      localhost
>     11  127.0.0.1       hawat.thufir.invalid arrakis localhost

Still not right. 127.0.0.1 should _only_ resolve to localhost, at least
on the same line.  Use something like this:

127.0.0.1          localhost
127.0.0.1          hawat.thufir.invalid hawat arrakis

Because of the way the resolver works, putting the name on a separate
line /should/ work (IIRC), even though they both point to the same IP
address.  The order is important here.

Though really, I don't know if you need the second entry here, as
Leafnode should work OK with the 'hostname' entry you already have in
the leafnode config file.

>     12  192.168.0.2     gravity.twi-31o2.org gravity

This is incorrect, even if you happened to own the domain, which I
doubt.  For a start gravity.twi-31o2.org does not have an A record, but
it *does* have an AAAA record (IPv6).

% host gravity.twi-31o2.org
gravity.twi-31o2.org has IPv6 address 3ffe:bc0:23:1:290:27ff:fe81:b234

Why have you got this entry here?

> thufir@localhost ~ $ cat -n /etc/leafnode/config
[...]

>     10  hostname = hawat.thufir.invalid

Sorry, this is not correct here, the use of .invalid, whilst OK for use
in constructing fake email addresses, is not, strictly speaking, OK to
use when constructing a message-id.  Leafnode will fail with this
setting. 

My best advice to you would be to use DynDNS.org to obtain a valid (and
free) domain.  If you don't wish to do that, then you might get away
with using your original .gmail.com entry in /etc/leafnode/config, but
bear in mind that doing so is not strictly "allowed" (i.e. using a domain
name you don't own) but will at least get you up and running.

Hope this helps.

-- 
Neil.
* wichert_ imagines master without a MTA
<james> wichert: ehm?  that might hinder peformance of the BTS :p
Re: FQDN for Leafnode
#182720
Author: »Q«
Date: Mon, 27 Mar 2006 21:19
16 lines
2128 bytes
hawat.thufir@gmail.com wrote in
<news:1143377296.837234.116110@i39g2000cwa.googlegroups.com>:

> However, I just switched to gentoo and there seems to be some
> problem with "emerge telnet" not working because of telnet's
> insecurities.  So, I'm going to look into that.

More likely it doesn't work because there is no package named "telnet"
in portage.  `emerge netkit-telnetd' for the standard Linux telnet or
`emerge telnet-bsd' for a port of OpenBSD's telnet.  Or if you like a
GUI, you could `emerge putty'.

-- 
»Q«
     links to Xnews resources:
     <http://xnews.remarqs.net>
Re: FQDN for Leafnode
#182723
Author: hawat.thufir
Date: Mon, 27 Mar 2006 23:17
108 lines
5178 bytes
»Q« wrote:
> hawat.thufir@gmail.com wrote in
> <news:1143377296.837234.116110@i39g2000cwa.googlegroups.com>:
>
> > However, I just switched to gentoo and there seems to be some
> > problem with "emerge telnet" not working because of telnet's
> > insecurities.  So, I'm going to look into that.
>
> More likely it doesn't work because there is no package named "telnet"
> in portage.  `emerge netkit-telnetd' for the standard Linux telnet or
> `emerge telnet-bsd' for a port of OpenBSD's telnet.  Or if you like a
> GUI, you could `emerge putty'.
>
> --
> »Q«
>      links to Xnews resources:
>      <http://xnews.remarqs.net>


Thanks, I did, IIRC, netkit-telnetd because it said it was the
standard.  It threw me for a loop when there was no telnet, and emerge
telnet didn't work, though.

All is good and I'm satisfied and would like to to say "thank you" to
all for helping!  I try my best with the manuals, sometimes I think
they were written to answer every question very thoroughly except the
one I'm asking.  Again, thanks :)


localhost ~ #
localhost ~ # telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 Leafnode NNTP Daemon, version 1.11.3.rel running at localhost (my
fqdn: hawat.thufir.gmail.com)
^]

telnet> quit
Connection closed.
localhost ~ # cat -n /etc/hosts
     1  # /etc/hosts:  This file describes a number of
hostname-to-address
     2  #              mappings for the TCP/IP subsystem.  It is mostly
     3  #              used at boot time, when no name servers are
running.
     4  #              On small systems, this file can be used instead
of a
     5  #              "named" name server.  Just add the names,
addresses
     6  #              and any aliases to this file...
     7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
     8  #
     9
    10
    11  127.0.0.1          localhost
    12  127.0.0.1          hawat.thufir.gmail.com arrakis
localhost ~ # cat -n /etc/leafnode/config
     1  ## Unread articles will be deleted after this many days if
     2  ## you don't define special expire times. Mandatory.
     3  expire = 20
     4
     5  ## This is the NNTP server leafnode fetches its news from.
     6  ## You need read and post access to it. Mandatory.
     7  server = shawnews.vc.shawcable.net
     8
     9
    10  hostname = hawat.thufir.gmail.com
    11
    12  initialfetch = 5
localhost ~ # cat -n /etc/xinetd.conf
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13  includedir /etc/xinetd.d
localhost ~ # cat -n /etc/xinetd.d/leafnode-nntp
     1  # default: off
     2  # description: Leafnode - accepts connections on port 119
(NNTP)
     3
     4  service nntp
     5  {
     6          socket_type = stream
     7          protocol    = tcp
     8          wait        = no
     9          user        = news
    10          server      = /usr/sbin/leafnode
    11          disable     = no
    12  }
localhost ~ # date
Mon Mar 27 23:58:26 IST 2006
localhost ~ #
localhost ~ #



-Thufir
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