home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
APPS
/
mnews.t.Z
/
mnews.t
/
inst.prf
< prev
next >
Wrap
Text File
|
1990-04-17
|
5KB
|
157 lines
.m1 0
.m2 0
.nopaging
.offset 5
.rightmargin 70
.ec X.ce
MNews - PreRelease
.ul
1. Copyright
.in +3
This package is copyrighted by Ulrich Dessauer, Germering, W.Germany.
You may copy and redistribute this package in whole but only in source
and this notice have to be included. If you made changes then you have
to redistribute the original source as well.
The programs
.bold
encode
and
.bold
decode
aren't copyright by me, they are normally part of the BNews 2.11
distribution and are only included to be compatible with this news
system.
.in -3
.ul
2. Installing
.in +3
Before installing the software itself you have to edit your sysinfo
database and add some entry for the package:
.ce 3
rnews.seq,l
rnews.batch,l
lck.inews,l
The news package needs an own account to run under this uid. I advice
to use an user `news' with a group `news'. Remember the uid and gid of
this account; All binaries and configuration files have to be owned by
this account (the file and on modules also the module).
You should have unshared the package and find some subdirectories. The
directory where this paper can be found is now called the root directory
of the package. You can find a file `config.h' there; please edit it and
adapt it to your local system. This will be everywhere included where it
will be useful.
Then go through all subdirectories and glance through the makefiles to
place the binaries to proper places. Now compile the whole stuff and
create the necessary directories. On default these are
.ce 6
/h0/USR/LIB/NEWS
/h0/USR/LIB/NEWS/HISTORY
/h0/SPOOL/NEWS
/h0/SPOOL/BATCH
and
/h0/SPOOL/RNEWS
Copy the files found in the `LIB' directory to /h0/USR/LIB/NEWS and
edit them to reflect your system. The format of the files are explained
in the file `INEWS/inews.h'. (Don't forget to change the owner of all
these directories and files!)
Now log in as `news' (or just make `su news') and execute the
following commands:
.ce 2
inews -c=newgroup:control -v </nil
inews -c=newgroup:junk -v </nil
You should then create (or get) a file called newsgroups where all
newsgroups are listen (one per line) which you like to have on your
system. Execute the following command:
.ce
inews -c=checkgroups -v <newsgroups
Now you can find a mail in the mailbox of the news account. The body
of the mail can be fed to `shell' to create all desired newsgroups.
Everything of the package should now be installed correct. If you have
had some problems have a short look in the logfile in `/h0/USR/LIB/NEWS'
where some hints may be found.
Or try the shellscript
.bold
install.sh
to do the whole thing for you. I am not sure if it really does everthing
okay, but it is a handy way to do all theses steps by a program. To run
this script, use `sh', not `shell' or `csh'!
.in -3
.ul
3. Setting up the System
.in +3
For a regular use you need to install some entries for cron. First
allow the user `news' to use cron (vcron users have to add news as a
member of the group `cron' in /h0/SYS/groups). For UUCP you have to
allow the command `rnews' to be executed by a remote machine. For every
system you feed news to you have to start the `sbatch' program before
this system calls you (or you call it). This will collect all new
articles and batch them for the remote system. If you like to use
compressed sending you need the `compress' program (not the OS-9 one, a
good working version can be found on TOP disks).
The more news you receive the faster the available free space on your
harddisk will be eaten. So you need to delete old articles from time to
time. This can be done by running `inews' with proper options (refer to
the manual for the exact syntax).
If you like, you can run the shell-script
.bold
check.sh
to glance over your installation and see if everything will be okay.
.in -3
.ul
4. Reading and Writing News
.in +3
I started to make the newsreader `NN' to run on OS-9. But it is a lot
of work of keep it up to date so Frank Kaefer (fkk@stasys.sta.sub.org)
will support the version for OS-9. In the patches for `NN' you can see
how to adapt a newsreader to the MNews file formats.
If you like to write your own newsreader you can use the predefined
user interface. For details refer to the source.
.in -3
.ul
5. Internal
.in +3
First of all, the programs `rnews' and `sbatch' had orginally be
written for receiving compressed news to forward them to the notes
system. So the source style may differ from the inews program, but I
hope it is still understandable.
MNews stores the articles as single files in a directory tree matching
the newsgroup of the article. All articles are found under
/h0/SPOOL/NEWS. Some examples for filenames for some newsgroups (I asume
as the current number for each group a one; this will be increased on
every new article in this group):
.ce 3
sub.sources.os9 --> sub/sources/os9/1
junk --> junk/1
comp.lang.c++ --> comp/lang/c__/1
The filename converting takes only on creating the filenames
themselves place; the name of the newsgroup aren't changed. A feature of
news are so called `crosspostings'. On UNIX(tm) systems the article in
theses groups are linked together. OS-9 doesn't (officially) supports
links so MNews writes the article itself in the first newsgroup and in
all other newsgroup there is only the filename of the original article,
prefixed by some (hopefully) unique characters.