🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #165021

Re: Leafnode newbie questions.

#165021
From: Neil Woods
Date: Thu, 07 Apr 2005 22:45
59 lines
3126 bytes
natG <natgrossDOTrentalsystems@verizon.net> writes:

> NEW questions/problems.
> 1. I did a service xinetd restart, went [ok]. How do I verify leafnode 
> is running?

There are various ways. I use inetd, but the principle is the same. 

1. Use netstat, e.g. 

$ netstat -tlp | grep nntp
tcp        0      0 *:nntp      *:*     LISTEN     20380/inetd         

shows there is a listening TCP socket on port nntp (119).

2. Use ps, e.g.

$ ps -fC leafnode 
USER       PID  PPID  C STIME TTY          TIME CMD
news     12590 20380  0 Apr04 ?        00:00:44 leafnode

3. Try connecting to the server using telnet, e.g.

$ telnet localhost 119
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 Leafnode NNTP Daemon, version 1.11.0.rel running at localhost (...)

Any or all of the above will show that the server is up, and ready to
accept connections from a client, with the third method being the most
immediately clear way of checking that the server is up and running.

(The above examples assume that you are on the same machine on which
leafnode is running).

> 2. In my current client, Thunderbird, I set the server to localhost, 
> (also tied the ip address), port 119, but when I try to get a list of 

Is the client (ie, Thunderbird) running on the same machine as the
server? If not, you will have to enter the domain name or IP on which
leafnode is running into Thunderbird's setup.

> available groups (which should trigger leafnode to get the list from the 
> upstream server(s)) it times out with a "can't connect to server" message.

Connecting to the server does not trigger leafnode to do this,
AFAIK. You need to fetch the available groups beforehand by using 

# fetchnews -f

which will cause leafnode to fetch the active file(s) from the upstream
server(s). Once this is done, simply reading the placeholder articles
which will appear in your news client will cause leafnode to do a fetch
of that news group when it is next scheduled to run (via cron, or
whatever). 
-- 
Neil
Technical Details
Message-ID: <87sm22rysz.fsf@phun.phasmic.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!newsread.com!news-xfer.newsread.com!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <PKZ4e.303$Xm3.235@trndny01> <die5e.779$4v3.153@trndny03>

Show Full Headers
Complete Article Headers
Message-ID: <87sm22rysz.fsf@phun.phasmic.org>
Subject: Re: Leafnode newbie questions.
Date: Thu, 07 Apr 2005 23:45:32 +0100
From: Neil Woods <cnw+usenet@pobox.com>
References: <PKZ4e.303$Xm3.235@trndny01> <die5e.779$4v3.153@trndny03>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!newsread.com!news-xfer.newsread.com!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 59
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: individual.net vnW7oLUPnkanW9/VEOxynQDylHJ8Qf9QEsVrdlirA3DLXJogYx
X-Orig-Path: phun.phasmic.org!news
User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)
Cancel-Lock: sha1:FCrbGgwJvG2JcdHMyb+PEUYC6Fw=