πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84996

Re: Nocem question

#84996
From: Alexander Bartolich
Date: Thu, 28 Jun 2012 21:54
75 lines
3807 bytes
Julien Γ‰LIE wrote:
> Hi Alexander,
>> [...]
>> Last time I looked the documentation was bad
>
> Do you remember what is bad in the documentation?

Starting with the description on

  http://rosalind.home.xs4all.nl/nocemreg/reghelp.html

is a good way to waste a day of your life. Perhaps the HOWTO works for
c-nocem, but it definitely is useless for perl-nocem. Once you discover
that fact you might be tempted to install c-nocem. Bad idea.

$ wget http://sites.inka.de/~bigred/sw/c-nocem-3.7.tar.gz
$ tar zxf c-nocem-3.7.tar.gz
$ cd c-nocem
$ ./configure | tail -1
configure: error: Need the news system source to compile.
checking for C News source... no

OK. With enough persistence you will eventually land on

  http://www.eyrie.org/~eagle/software/inn/docs/perl-nocem.html

At this point you need to realize that you are looking at a manual page
of INN 2.x. Which means that the described software ("perl-nocem") is
already installed. No need to search for a download link.

But, where is it? One way to solve this puzzle is to generalize the
hint in the documention

  <pathetc> is the value of the pathetc parameter set in inn.conf

and browse through "inn.conf".

$ egrep 'pathbin|pathetc' /etc/news/inn.conf 
pathbin:                /usr/lib/news/bin
pathetc:                /etc/news

It also comes very handy if you know how to list the contents of a
package.

$ dpkg -L inn2 | grep nocem
/usr/lib/news/bin/perl-nocem
/usr/share/man/man8/perl-nocem.8.gz
/etc/news/nocem.ctl
/usr/share/man/man5/nocem.ctl.5.gz

At this point it's time to cry "Heureka", close your web browser,
and continue with

  man perl-nocem

> [...]
> Yes, it is exactly the first documented step:
> /etc/news/pgp/ncmring.gpg having the keys.
> Here, you symlink the file to /var/spool/news/.gnupg/pubring.gpg

The problem with non-default file names like "ncmring.gpg" is that
it complicates handling of keys. Trivial things like

  gpg --list-keys

just don't work anymore. Yes, you can specify option --primary-keyring
together with --list-keys, but that just increases cognitive work load.
Creating a link to the home directory of user "news" also serves as a
reminder that perl-nocem is running under the UID of news.

</rant>

Ciao

    Alexander.
Technical Details
Message-ID: <jsijpv$bk7$1@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
References: <jscpog$dnh$1@cs6.cmpublishers.com> <jscurp$8ff$1@news.albasani.net> <jsiams$ko3$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <jsijpv$bk7$1@news.albasani.net>
Subject: Re: Nocem question
Date: Thu, 28 Jun 2012 21:54:07 +0000
From: Alexander Bartolich <alexander.bartolich@gmx.at>
References: <jscpog$dnh$1@cs6.cmpublishers.com> <jscurp$8ff$1@news.albasani.net> <jsiams$ko3$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: albasani.net
Lines: 75
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 J8/wCcw/y+0iH6B9rm8MRXgckpavMZ0SOOGK67P04XspZg3fXzMZ/Ib4f5hVpwIerLQBq5tAw7xmZqzecmfA5GGxHDKbgBsdwOW2WIZMgYvVXqKY473pqXXGQKhlBQvm
NNTP-Posting-Date: Thu, 28 Jun 2012 21:54:07 +0000 (UTC)
Injection-Info: news.albasani.net;
 logging-data="T3wA26Elva9mNCqGD4daww6AuWGiJmp/9rKRMb+XsWIC48Mn3CusS5KtQGPu6gImtuysyM8PRC8IcTIKa1AA+9VSWFlNmUhO9RwNO81QpKcpqRUF+BsF9p1G6MnPOY6R";
 mail-complaints-to="abuse@albasani.net"
User-Agent: slrn/pre1.0.0-16 (Linux)
Cancel-Lock: sha1:O+FVNlF9sBPUoPYpLxxnVWyHEj0=
 sha1:pWsBLwRcGXRG9qUpQK7YU7+GgaY=
X-Original-Bytes: 3544