🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #182691

Re: FQDN for Leafnode

#182691
From: 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
Technical Details
Message-ID: <1143434578.751938.222490@i39g2000cwa.googlegroups.com>
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!postnews.google.com!i39g2000cwa.googlegroups.com!not-for-mail
References: <Pine.LNX.4.64.0603250058250.10025@ybpnyubfg> <udlef3xhe4.ln2@news.gates-of-hell.com> <mf2gf3-isc.ln1@ID-107770.user.individual.net> <1143310596.083858.270300@i39g2000cwa.googlegroups.com> <irlgf3-lvh.ln1@ID-107770.user.individual.net> <1143327438.223962.198770@g10g2000cwb.googlegroups.com> <6t3hf3-k0m.ln1@ID-107770.user.individual.net> <1143377296.837234.116110@i39g2000cwa.googlegroups.com> <slrne2dd7v.o7v.pjr@nntp.alcatroll.com> <1143398486.739176.180940@g10g2000cwb.googlegroups.com> <slrne2e2at.o7v.pjr@nntp.alcatroll.com> <1143413194.784286.156640@v46g2000cwv.googlegroups.com> <slrne2e8d6.o7v.pjr@nntp.alcatroll.com>

Show Full Headers
Complete Article Headers
Message-ID: <1143434578.751938.222490@i39g2000cwa.googlegroups.com>
Subject: Re: FQDN for Leafnode
Date: Mon, 27 Mar 2006 04:42:58 +0000
From: hawat.thufir@gmail.com
References: <Pine.LNX.4.64.0603250058250.10025@ybpnyubfg> <udlef3xhe4.ln2@news.gates-of-hell.com> <mf2gf3-isc.ln1@ID-107770.user.individual.net> <1143310596.083858.270300@i39g2000cwa.googlegroups.com> <irlgf3-lvh.ln1@ID-107770.user.individual.net> <1143327438.223962.198770@g10g2000cwb.googlegroups.com> <6t3hf3-k0m.ln1@ID-107770.user.individual.net> <1143377296.837234.116110@i39g2000cwa.googlegroups.com> <slrne2dd7v.o7v.pjr@nntp.alcatroll.com> <1143398486.739176.180940@g10g2000cwb.googlegroups.com> <slrne2e2at.o7v.pjr@nntp.alcatroll.com> <1143413194.784286.156640@v46g2000cwv.googlegroups.com> <slrne2e8d6.o7v.pjr@nntp.alcatroll.com>
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!postnews.google.com!i39g2000cwa.googlegroups.com!not-for-mail
Newsgroups: news.software.readers
Organization: http://groups.google.com
Lines: 212
NNTP-Posting-Host: 24.84.131.197
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1143434584 1937 127.0.0.1 (27 Mar 2006 04:43:04
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 27 Mar 2006 04:43:04 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US;
Complaints-To: groups-abuse@google.com
Injection-Info: i39g2000cwa.googlegroups.com; posting-host=24.84.131.197;
 posting-account=fzKvuw0AAABwacCCYjdJ_2qlt6GHSH_U