home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
trn_197b.zip
/
readme.os2
< prev
next >
Wrap
Text File
|
1995-01-31
|
12KB
|
279 lines
TRN 1.97 (beta) for OS/2 is based the Unix-Version 3.5. Is was
ported using the EMX 0.9a GCC 32-bit-C-Compiler.
This package is a BETA release.
The program requires at least OS/2 2.0, it will not run
together with the EMX-extender for DOS (although this
was not explicitely tested). It was designed to run
together with the UUPC-Package by Drew Derbyshire.
If you use the NNTP version of TRN:
-----------------------------------
This package uses a REXX inews to post articles to the NNTP news
server. Because of this, you need to get the rxsock.dll package from
software.watson.ibm.com:/pub/os2/ews/rxsock.zip and install it
somewhere in your LIBPATH (\tcpip\dll is one place to put it). The
inews does NOT support the AUTHorization protocol that some nntpd
servers require. I'll consider implementing this if enough people
require it.
**REMARK**: You need a hpfs-partition, where the news
will be stored, where your personal file will
be located (your home-directory) and where temporary
files can be created (the uupc-temp-directory and the
TMP environment variable).
The reason are the long filenames, that are
hardcoded in the TRN-Source. Also TRN will use
a completely unix-compatible filestructure to
store the news. So there will be directory-names
like 'c:/usr/uupc/news/alt/cyberpunk' or even longer
ones. If there is enough desire for a FAT-version,
I will perhaps do that later.
Installation:
- Put the executables into a directory listed in your path.
The full name of the directory (including drive) must be
listed in the TRN-rc-file.
- Put the emx*.dll files into a directory listed in your LIBPATH.
If you already have emx*.dll-Files, check if yours are newer
that the ones included in this package. If your's are newer, don't
replace then, TRN should work with them. At least emx 0.9a with the
first emxpatch is needed.
(hobbes.nmsu.edu:/pub/os2/32bit/unix/emx09a/emxrt.zip)
- Edit your config.sys and add the following setting:
UUPCTRNRC
UUPCUSRRC
UUPCSYSRC
The setting must include the whole path to the file, like
UUPCSYSRC or UUPCUSRRC (e.g.: SET UUPCTRNRC=C:/USR/UUPC/CONFIG/TRN.RC)
You may use either "/" or "\" in this path.
UUPCSYSRC and UUPCUSRRC can point to the same file, I've included a
sample system.rc which I use with elm as well as trn.
- Set the environment variable NNTPSERVER.
This must be set to the name or IP address of the NNTP server you
use.
- Set the environment variable HOME to point where you want .newsrc
and other personal files to be stored. This must be on HPFS. Also
set TMP to where you want temp files stored. It must be on HPFS
and the TempDir option in system.rc must match it.
- Look through your UUPC-rc-files, and check if the information
is complete and correct. The following settings are required
(they are NOT optional, and remember that UUPCSYSRC and UUPCUSRRC
can be the same file):
UUPCSYSRC:
MailServ, NodeName, ConfDir, NewsDir, Domain, TempDir, MailDir
UUPCUSRRC:
Mailbox, Signature, Name, Home, Organization, Editor
UUPCTRNRC:
Newsadmin, TrnLib, LocalDist, OrganizationDist, CityDist,
StateDist, Countrydist, ContinentDist
Don't forget, these settings are required, not optional!
Path-names in this settings may either use '/' or '\' as
directory separators. This didn't work in the previous version
of the OS/2 port (version 1.0) but this is (hopefully) fixed now.
UUPCTRNRC: The variable Newsadmin is the name of the mailbox
of the person which does sysadmin on the machine,
this may be the same as the variable Mailbox in the
UUPCUSRRC-file.
TrnLib is the directory, where the executables
are located (TRN looks for the file newsnews there
and also stores some configuration files there).
The other 6 settings are the values for the
distributions you want to use for postings.
If you use the environment-variable HOME, it will overwrite
the setting Home in the UUPCUSRRC.
REMARK: If you use the UUPC version of TRN and you have UUPC already
installed and running, you only have to add UUPCTRNRC. The
other rc-files are probably already set up correctly.
If you use the NNTP version, I suggest that you use the
supplied files system.rc and trn.rc and adapt the few
settings in the files to you need.
- copy the file TERMCAP.DAT to one of your directories
for example the config-directory of UUPC.
The included termcap file also includes the correct settings
for the four cursor keys in the ANSI entry. If you use the
"ansi-color-2" or "ansi" terminal setting, your arrow keys will
work.
- set another environmentvariable: TERMCAP. This is the value
for the terminal-definition-file you want to use. The setting
must include the whole path to the TERMCAT.DAT-file
(SET TERMCAP=C:/USR/UUPC/CONFIG/TERMCAP.DAT).
You may use either "/" or "\" in this path.
- Now with your TERMCAP.DAT installed, you must set the
TERM-variable. (e.g. SET TERM=ansi)
- Copy the included .trnmac file to you home directory to enable
some default key mappings. This file defines a command for the
function keys F1 and F8 and for the keys <HOME> and <END>
Remarks:
- TRN can not only save but also extract articles directly
by using the e-command when displaying the article. TRN
will try to determine the type of the file. It will
recognize uuendoded or shiped (zip-archiver) articles and
also SHAR'ed files. TRN will use it's own routines to
uudecode and unship articles. This will also work if
the archive consists of multiple articles (just type 'e /dirname'
on the first part and then only 'e' on the following ones).
If a shell-archive is detected, TRN will call the external
programs 'tail' and 'unshar' to extract the archive.
You must ensure that you have the Unix-Tools 'tail' and
'unshar' installed and in the path. Tail will be used to strip
off the header so that only the article-body is saved. tail is
a unix-tool which was ported by Kai-Uwe Rommel and can be found
in the "gnututil.zoo", the GNU Text Utilities on ftp-os2. Also
the program "unshar" can be found on ftp-os2.
- XTHREAD support is the default, if your nntpd uses NOV thread
files, then add -Zo to your TRNINIT env. variable.
- A note about entries in *.rc -- try to make them match your system as
closely as possible, some entries are still used (amazing, eh?). One
to watch out for is NodeName. This should be set to whatever you want
to the right of the "@" in the From: line of your posts. You can
always modify what you want in your headers by defining NNTPHEADERS,
but that is not for the faint of heart.
- If you are using tia on netcom, email me asking about a new nntpd so
you can use thread files on netcom.
- To use inews (so you can post newsgroups) you need the rxsock.dll from
software.watson.ibm.com:/pub/os2/ews/rxsock.zip -- this was included
in tcpip 2.0 in the latest CSD, I don't know why it was not included
in Warps IAK. <shrug> Inews was a quick hack done by me to get trn to
post to an nntp server. Let me know if it fails with as much detail
as possible. It is fairly dumb, but gets the job done. It expects
one and ONLY one parameter (-h) which has to be used. the second
parameter will be interpreted as the input file which can also be
stdin (as in a pipe).
- weird, it traps if I have optimization turned on -- this will be
tough to track down I suppose. :( So it is being compiled w/out
optimization.
- TRN now uses the setting Rmail to invoke a mailer. Previously the
call to rmail was hardcoded in TRN. Now it is possible to specify
sendmail as mailer (I've not done this yet myself).
- The rmail setting may be omitted in which case
"rmail -f filename -t" is used.
- The rmail setting may be defined as "sendmail" in
which case "sendmail -af %s -t" will be used. This
makes it compatible with elm for OS/2.
- A setting may be specified which does not contain the
option "%s", for example:
Rmail=c:\usr\uupc\bin\mymailer.exe
In this case the command
"c:\usr\uupc\bin\mymailer.exe -f filename -t"
would be used to send mail
- Or a complete new rmail command can be specified where "%s"
is replaced with the filename of the mail to be sent, example:
RMail=c:\usr\uupc\bin\mymailer.exe -b -f %s -s
In this case the command
"c:\usr\uupc\bin\mymailer.exe -b -f filename -s"
would be used to send mail
- The news post command is configurable via environment parameter.
The default (if no environment setting is specified) is
"inews -h < filename" where filename is the article to post.
The environment variable NEWSPOSTER can be set to specify a
different call, for example:
NEWSPOSTER=c:\usr\uupc\bin\myposter -h %h
The option "%h" will be replaced with the fully qualified filename
of the file to post and must be given somewhere in the setting.
*******************************************************************
Thanks:
Thanks to Herbert Neugebauer for the initial port of trn 3.5
to OS/2 with UUPC support. Without his base code I wouldn't
have gotten this close to a finished product (NNTP was easy
due to all his original work).
Thanks to Eberhard Mattes for his excellent work on
the port of GNU GCC for OS/2. Porting TRN would have been
impossible to do without his GCC, because of lots of
unix-specific functions.
Thanks also to Kai-Uwe Rommel for his betatest and
the resulting improvements. A lot of suggestions
he made will be in the next release.
Thanks to Eric Veldhuyzen who did a lot of beta testing
on version 1.95b and who sent a lot of reports and
suggestions.
Thanks also to the others who tested TRN.
********************************************************************
Please send your suggestions, remarks or bug reports to
for NNTP stuff
Rupa Schomaker rupa@netcom.com
if it affects the base trn code maybe CC: it to
Herbert Neugebauer haen@veces.bb.bawue.de
********************************************************************
Remarks and ToDos:
------------------
- I had some problems with the OS/2 filesystems. Or better
with the Un*x-filesystem. There are no file links under
OS/2. I avoided them using the DosCopy API-function.
In most cases this may be suitable, but this may cause
problems under certain circumstances.
*** such problems were never experience ... ***
- currently the commands s S w and W for saving articles
do the same, there is no difference between them.
TRN doesn't save via a shell, it does it directly on it's own
and this will not be fixed, so there will be no difference
between s and S (btw. w and W) in future.
But the stripping of the header (w and W) will be included
later.
******* partly fixed at 08/15/92, now the stripping of
the header with the w-command is working. But there is still
no difference between s and S and between w and W. *****
- There was also a Problem when a file was opened two times
simultaneously. This is not possible with the fopen
command in EMX. I fixed this temporarily by copying the
file first and then opening the copied one only for reading.
There is another way by using API-calls and fdopen, so
this may be fixed later.
*** this should work now, because the fopen in EMX now allows ***
*** shared opening of files. Be sure not to have TRN running ***
*** while rnews is executed. Though rnews in version 1.12j is ***
*** able to avoid news loss, it might still cause problems. ***