🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Paul Bickerstaff Mon, 14 Oct 1991 21:02
Installation under RISCos 4.51
#2160
Author: Paul Bickerstaff
Date: Mon, 14 Oct 1991 21:02
21 lines
1542 bytes
I'm trying (for the first time) to install nn on a Mips Magnum 3000
under RISCos 4.51.   I got version 6.4 off uunet.uu.net unpacked it,
applied patches 1-4 and built mini-inews (for NNTP) and built nn
with no problems.

However, the initialization of the database (./inst INIT) "appears"
to do nothing.  When I try to run nn I get

% nn
Cannot open file /usr/spool/nn/MASTER, mode=0x80, errno=2
% ls -l /usr/spool/nn/MASTER
/usr/spool/nn/MASTER: No such file or directory

I've read all the installation guides and have no idea what I'm missing.
Can anybody please make some suggestions?

Thanks

Paul Bickerstaff                 Internet: pbickers@tamaluit.phys.uidaho.edu
Physics Dept., Univ. of Idaho    Phone:    (208) 885 6809
Moscow ID 83843, USA             FAX:      (208) 885 6173
Re: Installation under RISCos 4.51
#2167
Author: Paul Bickerstaff
Date: Thu, 17 Oct 1991 00:06
132 lines
5383 bytes
WARNING:  long (sorry)

Thanks to all who responded to my earlier plea. However, nobody
has come close to suggesting the cause of the problem so let me
try again.

I have now found and applied all patches <=16 (including a new
s-umipsb file) but the problem remains. Since others have said
that they have nn running under RISCos 4.5 I assume the problem
to be on the NNTP side (or else I have done something really
stupid with the configuration).

The build of both mini-inews and nn appears to proceed
without problem. The only thing that might cause concern are
3 warnings in the compilation of init.c (about lines 604, 639 
and 932 not reached).  This sort of thing usually doesn't
matter and my cursory perusal of the code didn't cause
alarm. (Is there a problem?)

The problems appear to start with ./inst INIT
We find
# ./inst INIT

Removing old data files
Created directory /usr/spool/nn/DATA
Created directory /usr/spool/nn/DATA/0

and then

Initial article limit (50) 40
Running nnmaster -I 40 to initialize database....


Now start /usr/local/lib/nn/nnmaster [ -D ] [ -r ]

But the file /usr/spool/nn/GROUPS  is *not* created
nor is GROUPS created anywhere else on the system.
The INSTALLATION guide suggests that this is
incorrect behaviour.  After this, nothing else does
anything; trying to run nnmaster results in it 
immediately dying (without messages of any kind)
and nn can not be run by a user because /usr/spool/nn/MASTER
doesn't exist either (seems consistent at least!). 

I've tried building a test GROUPS file by hand but
this didn't help.

It appears that the communication with the NNTP server
is not taking place but there are no messages warning
of anything amiss.

Our setup is the following.  On this subnet (.phys.uidaho.edu)
there is just one machine on which I'm trying to install
nn:

# uname
tamaluit

and our NNTP server resides on a different subnet.  I run
dns on tamaluit and my nntpserver file reads

# cat /usr/local/lib/nn/nntp_server
groucho.mrc.uidaho.edu

# ls -l /usr/local/lib/nn/nntp_server
-rw-r--r--   1 root     other         23 Oct 16 13:55 /usr/local/lib/nn/nntp_se
rver

We currently use NNTP successfully to read news from
there under xrn.  The server does not run nn. I want(ed)
nn for those users who don't have X-windows displays.

Incidentally, the NNTP server is an HP running HP/UX.

Here are relevant lines from my config.h file:
/* #define NETWORK_DATABASE     /* */
#define NNTP                    /* */
#define NNTP_SERVER     "/usr/local/lib/nn/nntp_server"
#define NNTP_POST             /* */
#define NNTP_MINI_INEWS_HEADER  /* uses "broken" mini-inews */
#include "s-umipsb4-5.h"
#define DEFAULT_PAGER           "/usr/new/less"
#define DEFAULT_PRINTER "lpr -p -JNEWS" /* bsd */
#define RESIZING                /* */
#include "m-mips.h"
#define OWNER   "news"
#define GROUP   "news"
#define BIN_DIRECTORY   "/usr/local/bin"
#define LIB_DIRECTORY   "/usr/local/lib/nn"
#define DB_DIRECTORY    "/usr/spool/nn"
#define NEWS_DIRECTORY          "/usr/spool/news"       /* */
#define NEWS_LIB_DIRECTORY      "/usr/local/lib/news"           /* */
#define REC_MAIL        "/usr/lib/sendmail -t"  /* sendmail */
#define HAVE_ROUTING                    /* */
#define APPEND_SIGNATURE                /* */
#define BUG_REPORT_ADDRESS      "nn-bugs@dkuug.dk"
#define USER_MAN_DIR    "/usr/local/man/man1"
#define USER_MAN_SECTION        "1"

#define SYS_MAN_DIR     "/usr/local/man/man1"
#define SYS_MAN_SECTION         "1m"

#define DAEMON_MAN_DIR  "/usr/local/man/man8"
#define DAEMON_MAN_SECTION      "8"
#define FOLDER_DIRECTORY        "~/News"
#define NAME_LENGTH             16
#include "global.h"

Everything else is the default.  /usr/spool/news doesn't
exist. I assume it will get created if need. ??

The inews/conf.h file includes

#define DOMAIN  "phys.uidaho.edu"

and that's about it. Some straightforward compiler
options in the makefiles --- most over-ridden anyway
by the machine configuration file --- , follow the
instructions as I understand them....

If anybody can spot the stupid mistake above then
please e-mail, or if you can suggest something else
to check I'd also appreciate it.  Any debugging
procedures I should try? (Remember I have not
used nn before.)

Many thanks.


Paul Bickerstaff                 Internet: pbickers@tamaluit.phys.uidaho.edu
Physics Dept., Univ. of Idaho    Phone:    (208) 885 6809
Moscow ID 83843, USA             FAX:      (208) 885 6173
suggestions for easier/better installation (was Re: Installation under RISCos 4.51)
#2177
Author: Paul Bickerstaff
Date: Fri, 18 Oct 1991 21:08
116 lines
6260 bytes
Based on my recent experiences I would like to offer 2 serious
suggestions for minor changes to the installation docs and implementation.
The first is general the second pertains to RISCos.

First, thanks to all who offered help with my problem. It is now fixed
and was just a very stupid oversight on my part (the nn master directory
had the wrong permissions and nnmaster couldn't put a lock file in it).
Several of you had emphasized the importance of directory ownership
but I kept overlooking this one :-(

However the real problem from my point of view (and which nobody
offered any insight into) was the absence of any error messages from
the dying nnmaster program.  Deep in the bowels of the nnmaster
man pages however I found that by default the error messages are
mailed to the owner and sure enough in /usr/mail/news there they
were. Knowing what the problem was it was trivial to locate the cause
and fix.

Now, I had set up the news account with logins disabled (like lp or
rje accounts for instance) in the mistaken belief that the only
issues involved were security ones with some programs running
setuid to owner.  Hence I never saw these mail messages. I believe
that my setup was a reasonable thing for a novice to do but clearly 
the writers and maintainers of nn intend that installation and
administration of nn be done from the news account. I suggest
therefore that this should be stated up front e.g. (and preferably)
in the config.h file and maybe in the INSTALLATION file.

Hence my first suggestion is:
1) In the file config.h down where you define OWNER
and GROUP, place an additional blurb in the remarks
on ownership e.g. add after the 3rd sentence/paragraph
*      
*      Since nnmaster will by default mail error messages to the
*      owner it is recommended that you perform installation and
*      nn management from the OWNER account.
*

One could even make use of this account expedient by defining
environment variables so that one could do things like cd $DB_DIR.
However, to keep in line with configuration changes this would
be best done by having make create/modify a file which could
be sourced at login. But this is getting a little too ambitious a
suggestion for the present.


My second suggestion concerns formatting of the man pages. It
is of particular concern under RISCos which has no man source
but may be relevant to other systems also. Hence I have had to
run all of the man pages through /bsd43/bin/nroff -man.new
While this is not much of a problem to do once (actually about
thrice already as I struggled with the install :-) ) , I shudder at
the thought of future patches causing me to redo again and
again and again ...

(For those who mightn't understand the problem, or who
can come up with a better solution, I elaborate a little later
on.)

Hence my second (very strong) recommendation (plea) is
2) In config.h allow an option such as the following to be
included down where the man pages directories are defined.
/*      If your man pages are read on your system by a plain pager
 *      then you will want to process them first before storing
 *      in the MAN_DIR. In that case define NO_MAN_SOURCE
 *      and MAN_FORMAT as appropriate.
 */

/*	#define NO_MAN_SOURCE
  	#define MAN_FORMAT 	"/bsd43/bin/nroff -man.new"	/*   */

Then it should be fairly simple to modify the inst program to pass
the man pages through the MAN_FORMAT program before installing.
I've looked and think even I could do it.  Being an nn novice though I
hesitate to try and supply some diffs without even asking for comment
on the above. :-)

I'm actually a little surprised that an option like this isn't there. Have
I missed something?

So what do you nn wizards think of these suggestions?

[For those wanting a little more information about how RISCos
does a call to man they basically "fake it out" to quote a Mips
employee on comp.sys.mips about a year ago. Some directory listings
show the strategy:

% ls -l /usr/man
total 171
l---------   1 bin      bin           12 Sep  4  1990 a_man -> catman/a_man
drwxr-xr-x   5 bin      bin          512 Jun 21 01:10 catman
l---------   1 root     other         12 Jun 27 03:52 l_man -> catman/l_man
l---------   1 bin      bin           12 Sep  4  1990 p_man -> catman/p_man
l---------   1 bin      bin           12 Sep  4  1990 u_man -> catman/u_man
-r--r--r--   1 bin      bin        82880 Aug 23  1990 whatis
l---------   1 bin      bin           12 Sep  4  1990 x_man -> catman/x_man

and
% ls -l /usr/man/catman
total 5
drwxr-xr-x   7 bin      bin          512 Sep  4  1990 a_man
l---------   1 root     other         14 Jun 21 01:10 l_man -> /usr/local/man
drwxr-xr-x  13 bin      bin          512 Sep  4  1990 p_man
drwxr-xr-x   7 bin      bin          512 Sep  4  1990 u_man
l---------   1 bin      bin           17 Sep  4  1990 x_man ->
./../X11/man/cat
with these directories containing the man section directories and those 
in turn containing the man pages files in readable form. 
Notice how I've set up the local man pages. What did other RISCos users
do for the nn man pages? Do you persevere or do you know something I
don't.] 


Paul Bickerstaff                 Internet: pbickers@tamaluit.phys.uidaho.edu
Physics Dept., Univ. of Idaho    Phone:    (208) 885 6809
Moscow ID 83843, USA             FAX:      (208) 885 6173
Re: suggestions for easier/better installation (was Re: Installation under RISCos 4.51)
#2184
Author: Bill Wohler
Date: Mon, 21 Oct 1991 13:42
22 lines
1680 bytes
pbickers@tamaluit.phys.uidaho.edu (Paul Bickerstaff) writes:
>My second suggestion concerns formatting of the man pages. It

>/*      If your man pages are read on your system by a plain pager
> *      then you will want to process them first before storing
> *      in the MAN_DIR. 

paul,

  well, i would be reluctant to put this into nn.  since you're going
  to combat this problem in every little bit of software you get from
  the net, you'll pull your hair out trying to get every little author
  to change every little program.  your better solution is to create a
  place where normal software puts normal man pages and then write a
  script that does the equivalent of catman.

  but your ls -l of /usr/man seems to indicate that only the names have
  changed.  don't you just want to change *MAN_DIR in config.h to the
  appropriate directories and run catman?

Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
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