RGXfer v1.39 for Linux                                  NewWave Software
=========================================================================

The same three programs as the Windows set, built natively for 64-bit
Linux (x86-64) from the same sources:

  rgxfer      the mailer               (RGXFER.EXE)
  rgxcfg      the configuration program (RGXCFG.EXE)
  irex2rgx    the Internet Rex converter (IREX2RGX.EXE)

RGXFER.CFG, RGXSTAT.CFG, route.rgx, the log, the BSO outbound, events,
semaphores and the binkp/1.1 engine are the same as on Windows.  The
mailer was tested on Linux against binkd 1.1a-115 in both directions
(CRAM-MD5 password session, netmail packet, file attaches, daemon
answering binkd's call).

INSTALLATION
------------
 1. Make a directory, e.g. /fido/rgxfer, and copy rgxfer, rgxcfg,
    irex2rgx and RGXFER.DOC (RGXCFG's F1 help) into it.  RGXfer keeps
    RGXFER.CFG next to the programs, as on Windows.
 2. Run ./rgxcfg and set it up as on Windows, with Linux paths
    (/fido/inbound/ ...).  Or bring your Windows setup along, below.
 3. Start the mailer:
       ./rgxfer                   daemon mode with the Rex screen
       ./rgxfer -send -fetch      one run, as on Windows
    Under tmux or screen it keeps running when you disconnect; as a
    service (systemd, nohup) it runs without a screen (see below).
 4. Port 24554 needs no special rights.  For a port below 1024 run
       sudo setcap cap_net_bind_service=+ep ./rgxfer

MOVING A WINDOWS SETUP
----------------------
 Copy RGXFER.CFG, RGXSTAT.CFG and route.rgx.  Either change the paths
 in RGXCFG, or keep the Windows paths and map each drive letter:
       export RGX_DRIVE_C=/fido     C:\FIDO\INBOUND\ -> /fido/FIDO/INBOUND/
 Paths are matched without regard to case, so /fido/fido/inbound/
 is found too.  Paths in the FREQ alias and directories files are
 treated the same way.  RGXCFG saves the Linux paths the next time you
 save the setup.

FILE NAMES
----------
 Linux file names are case-sensitive; FidoNet ones are not.  RGXfer
 finds outbound and inbound files whatever their case - binkd and Husky
 write lower case (.flo, .out), RGEcho upper case (.SA0, .FLO) - and
 shares a BSO outbound with them safely: .bsy flags are created with
 O_EXCL, the same guarantee binkd relies on.  Files RGXfer creates keep
 the lower case names it uses on Windows.

SCREEN AND KEYS
---------------
 * Any UTF-8 terminal (PuTTY, Windows Terminal/WSL, xterm, the Linux
   console).  The 80x25 Rex screen is drawn top left with the CP437
   line drawing shown as Unicode; the terminal is restored on exit.
 * Alt keys are read as ESC+key, which PuTTY, Windows Terminal, GNOME
   Terminal, Konsole and the Linux console send.  For xterm set
   "metaSendsEscape: true" (or use the Alt-sends-Escape menu option).
   Alt-X quits.
 * F1-F10, arrows, Home/End, PgUp/PgDn, Ins/Del, Shift+Tab work as on
   Windows.
 * Alt-C runs rgxcfg in the same terminal and brings the mailer screen
   back when you quit it - sessions and events keep running meanwhile.
 * "Minimize to tray" does nothing on Linux.
 * With no terminal (a systemd service, nohup, output redirected) the
   mailer runs without a screen, from its log and semaphores; stop it
   with the rgxexit.now semaphore as on Windows.

BETWEEN AND EVENTS
------------------
 * BETWEEN.BAT becomes between.sh in the RGXfer directory, run by
   /bin/sh in the mailer's terminal and waited for, like Rex.
 * External events run through /bin/sh in their own session with no
   terminal (Windows: a new console window); "wait" works as before.

TIME
----
 Log times follow the system time zone (/etc/localtime, set with
 timedatectl).  Free Pascal programs ignore a TZ variable that names a
 zone, so set the system zone rather than TZ.  File dates exchanged
 over binkp are correct either way.
