🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #11401

Re: Replace Google Groups with ?

#11401
From: Aaron W. Hsu
Date: Sat, 04 Aug 2012 19:25
166 lines
9374 bytes
"John F. Morse" <john@example.invalid> writes:

>My NNTPSERVER is set to my cable ISP's NSP, which does not require any 
>authentication.

The way NN does authentication is as follows:

1: Connect to the server and see whether you can post
2: If you can post, your fine, start reading
3: If you cannot post, you might want to post, so try an authentication
4: If you need authentication to read, then try an authentication

There are notes in the source code suggesting that it might be nice to 
have a variable to control whether or not authentication is performed, 
but my guess is that it is not done so right now.

>The /etc/hostname is correct (I do not have /etc/HOSTNAME). My hostname 
>shouldn't matter anyway.

It shouldn't, but depending on the configuration of NN, it might prevent 
logging in. Specifically, in Slackware, I had to make it use the hostname 
file because NN expects an FQDN when getting the hostname, which 
the hostname(3) was not giving it. It does not sound like this is a problem 
for you, but it's something to note just in case. 

>When I call nn, I see another local INN server answering, then the 
>connection immediately disconnects. Don't know where this other server's 
>hostname came from, nor how to change it.

In all the installations that I have seen of NN, if you specify an NNTP 
server, it will use that over the default one that was specified, or 
the nnmaster(1) database. 

>I have /etc/news/server but it is for SLRN, and points to localhost for 
>Stunnel support, and for a different local INN reader server which 
>requires TLS on port 563.

This may or may not be causing NN to barf, but I would be suprised if it 
is assuming that you are properly specifying the NNTP server. I'd have to 
check the code.

>If I use "nn -g" I am asked "Enter Group or Folder (+./~)" and the only 
>group I can access is one that unauthenticated readers are allowed access.

If you get a different set of groups when you are authenticated or 
unauthenticated, but you can post in both cases, then NN might not be 
asking for authentication, because it thinks that you already have all 
the privileges you need. 

>There is no prompt for authentication. I've found no information for 
>placing authentication (username and password) into a file that NN can read.

At the moment, I believe that you always authenticate interactively, and 
you cannot specify an username or a password in a file. If it is not prompting 
you for authentication, my guess is that NN thinks it unnecessary. 

>I have the file ~/.nn/init with the recommended configuration, which is 
>similar to these munged values:

>set nntp-server {my_NNTP_FQDN}

It is useless to put this in an init file, because the server is determined 
before the init file is read. The nn(1) man page has more information, but 
you want to specify this option either on the command line explicitly, or 
through an environment variable. The environment variable overrides the 
command line option, which in turn overrides the default. 

>set nntp-user {my_username}
>set nntp-password {my_password}

These are not valid settings, methinks. 

>set news-header Organization: {My_Organization_Name}
>set mail-header Organization: example.invalid

Good, you know about these settings. :-) They are very useful. 

>Changing the first three set lines by using : or = causes an "unknown 
>variable" error message for all three lines.

That's because they don't exist in those environments. 

>I can read -- and post -- but my real e-mail address is shown, which is 
>definitely not wanted.

I actually change my From header to display my real email address, 
which I know a lot of people do not like, but the process is the same 
for using invalid From headers as well. From the nn(1) man page, the 
news-header and mail-header settings can be used to specify more than a 
single header. Each header line can be separated by a semicolon. See 
the man page's documentation of the mail-header option for an example, 
which sets the Reply-To and Organization headers. 

>So, the two stumbling blocks are authentication, and changing (munging) 
>my e-mail address and substituting "example.invalid" in its place.

I wonder if authentication will just be a problem in the current version, 
because NN simply will not ask for authentication if you have posting 
access without needing to authenticate. I think I should release a patch 
of NN that fixes this. :-)

>I'd also prefer to use the command line to switch to various NNTP 
>servers instead of needing to edit the ~/.nn/init file.

Actually, this is the only way that you *can* switch servers. Keep in 
mind that switching servers really also requires that you switch your 
newsrc and .nn directories, too; the data stored in each is not portable 
across servers. I use GigaNews and Gmane. Normally I just set GigaNews 
up as the defualt, and then I have an alias in my shell when I want to 
run NN for gmane, like so:

alias nngmane='NNTPSERVER=news.gmane.org nn nntp-directory=~/.nn-gmane \
  newsrc=~/.newsrc-gmane' 
  
[Line truncated for transmission.]

>I must admit that every time I've actually had time to fool around with 
>NN, it's been past my bedtime, and I was on a quest to try and whip it. 
>Perhaps I was too tired to think?

Not necessarily. NN *is* different compared to the other news clients 
out there, and it does a lot of things differently. It's not always 
obvious how to achieve something, and I've acquired a lot of this 
knowledge through reading through old FAQs, testing, and reading the 
sources (which are actually remarkably clear and coherent). However, 
most of the questions you are dealing with can be answered with a patient 
read through the man page. Of course, patience and reading through man pages 
does not always go together at all! 

>I have NN on a couple other computers, and have spent time on it in the 
>past, but never have successfully figured it out, nor configured it to 
>run as seamlessly as TIN, SLRN, Gnus, ....

>If you have suggestions, I'd be grateful for any assistance.

>BTW, I'm running Debian on most of my boxen, and I do have various 
>versions of Slackware, but the distro shouldn't matter.

Actually, in NN's case, the distro *does* matter. Slackware had a broken 
version of NN for a while until some patches were sent in and those were 
fixed. NN does a lot of configuration of settings and code paths at 
configuration time, and it's sometimes easy to pick a combination that 
works in most cases, but breaks in certain other cases. I do not know 
how Debian's packaging is, but I know that the one on Slackware works well, 
partly because I contributed to it a bit. 

The distro shouldn't matter, and Debian should have a good set of defaults, 
but those may be different than what are configured for the Slackware 
version. 

At any rate, kudos to you for setting up Gnus! Gnus is quite powerful, but 
in terms of sheer editing prowess necessary to get it up and running, I 
think NN wins, though Gnus has a ton of how-tos and walkthroughs, which NN 
lacks. 

I have a number of things that I want to do to enhance NN a bit, 
foremost among them being Unicode support. However, the real reason I like 
such an old piece of software is that reading through news is *so* much 
faster when I read with NN. It's so easy to get through newsgroups with its 
interface and workflow. I don't know how you'll like it, but I imagine it 
might fit somewhere in your toolbox, once you get the thing to work! :-)

-- 
-- 
Aaron W. Hsu | arcfide@sacrideo.us | http://www.sacrideo.us
Programming is just another word for the lost art of thinking.
Technical Details
Message-ID: <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com>
Subject: Re: Replace Google Groups with ?
Date: Sat, 04 Aug 2012 14:25:38 -0500
From: Aaron W. Hsu <arcfide@sacrideo.us>
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 04 Aug 2012 14:25:38 -0500
Newsgroups: alt.os.linux.slackware, news.software.nn
Followup-To: alt.os.linux.slackware
User-Agent: nn/6.7.3
Lines: 166
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-WcFYPl10YT2iUHvrMvprvXGTAPlFAShV4Wc4SzqWlOElALyTnf0R6uGu1Q4ZN3N3oPjqtUvn81XCiWN!Cx/7mMkCgXwYHIo6G1ukUuv7GV1WzN+5M5EWB36GpjN7iYy6kyCZnQ+6HCjXE32D8/mCM/o6xQ==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.40
X-Original-Bytes: 9034