Just recently we have installed news(2.10.3) on our
network of sun workstations. One sun is used to send
and recieve news. The news database is on a NFS file
system. We can read news from any one of the suns and
we want to be able to post news from any sun. However,
inews complains because not all of the suns' names are
in the sys file. How can we configure news so we can
post news from any sun and still keep only the name of
the sun responsible for transmitting and recieving news
in our sys file?
Lisa Vagrin
(princeton!siemens!lav)
The second alternative is to use the NNTP software distributed with
4.3BSD. It includes a version of "rn" that allows reading news across
the net without benefit of remote (network) file systems. I plan to
try this out but it does not address the problem of users who use their
own news reader("vn").
What I have currently done is to modify the news software to contain a
"fixed" host name. Thus all machines think that they are the news host
for purposes of news processing. This has been working great for some
time now though "rn" will sometimes get confused if the news host goes
down while people are reading news.
Before somebody screams about a built in name making the code
unportable, remember that for my purposes the code is portable. All 5
machines run the same inews. (Not the same version, not exact copies,
but the SAME file.)
Here are the changes I have:
-----First in your localize.sh for defs.h add the following-------
-----Change news-host-name to the UUCP name of the news server ---
/\/\* #define GHNAME/a
#define HNAME "news-host-name"
.
p
-----Then make the following change to uname.c-----
*** uname.c.orig Fri Mar 8 13:57:43 1985
--- uname.c Mon Sep 15 10:59:09 1986
***************
*** 13,18
#include "params.h"
#ifdef UNAME
# define DONE
#endif
--- 13,28 -----
#include "params.h"
+ #ifdef HNAME
+ /* use a fixed hostname, usefull when sharing news via network file system */
+ uname(uptr)
+ struct utsname *uptr;
+ {
+ strncpy(uptr->nodename, HNAME, sizeof (uptr->nodename));
+ }
+ # define DONE
+ #endif HNAME
+
#ifdef UNAME
# define DONE
#endif