iREX Linux Setup Guide

Using DOSEMU2 with BRE/FE Integration (8.3 Compatible)

Important

BRE, FE, and iREX must all follow the 8-character DOS filename limit. Place them in /sbbs/xtrn/lg777/ for better compatibility with DOSEMU2.

1. Directory Setup

mkdir -p /sbbs/xtrn/lg777/irex
cd /sbbs/xtrn/lg777/irex

2. Download & Extract iREX

sudo apt-get update
sudo apt-get install -y libncurses5 libncurses5-dev unzip

sudo wget https://x-bit.org/info/downloads/irexl229.zip
sudo unzip -L irex229.zip -d /sbbs/xtrn/lg777/irex

3. Set Permissions

chmod u+x rexl rexcfgl update
chmod -R 755 /sbbs/xtrn/lg777/irex
sudo chown -R sbbs:sbbs /sbbs/xtrn/lg777/irex

4. Fix Termcap

sudo cp /sbbs/xtrn/lg777/irex/termcap /etc/termcap

Note: Resize your terminal window larger than default if iREX crashes when launching.

5. Configure iREX

sudo ./rexcfgl

If password options are greyed out:

./rexcfgl -pYOURPASSWORD





6. Optional: iREX Daemon Script

#!/bin/bash
cd /sbbs/xtrn/lg777/irex/
./rexl -daemon

7. File Mover Script

#!/bin/bash

BRE_OUTBOUND="/sbbs/xtrn/lg777/BRE/OUTBOUND"
FE_OUTBOUND="/sbbs/xtrn/lg777/FE/OUTBOUND"
TAL_OUTBOUND="/sbbs/xtrn/lg777/TAL/OUTBOUND"
IREX_MAILBOX="/sbbs/xtrn/lg777/irex/mailbox"
LOG_FILE="/sbbs/xtrn/lg777/irex/move_files.log"

echo "[$(date)] Starting file move..." >> "$LOG_FILE"

if mv "$BRE_OUTBOUND"/*.* "$IREX_MAILBOX" 2>> "$LOG_FILE"; then
  echo "[$(date)] Moved BRE files." >> "$LOG_FILE"
else
  echo "[$(date)] No BRE files or error." >> "$LOG_FILE"
fi

if mv "$FE_OUTBOUND"/*.* "$IREX_MAILBOX" 2>> "$LOG_FILE"; then
  echo "[$(date)] Moved FE files." >> "$LOG_FILE"
else
  echo "[$(date)] No FE files or error." >> "$LOG_FILE"
fi

if mv "$TAL_OUTBOUND"/*.* "$IREX_MAILBOX" 2>> "$LOG_FILE"; then
  echo "[$(date)] Moved TAL files." >> "$LOG_FILE"
else
  echo "[$(date)] No TAL files or error." >> "$LOG_FILE"
fi

if /sbbs/xtrn/lg777/irex/rexl -send >> "$LOG_FILE" 2>&1; then
  echo "[$(date)] Triggered iREX send." >> "$LOG_FILE"
else
  echo "[$(date)] Failed to trigger send." >> "$LOG_FILE"
fi

if [ $(stat -c%s "$LOG_FILE") -gt 5242880 ]; then
  mv "$LOG_FILE" "$LOG_FILE.$(date +%Y%m%d%H%M%S)"
  touch "$LOG_FILE"
fi

echo "[$(date)] Move complete." >> "$LOG_FILE"

8. Run Script Every 5 Minutes

crontab -e
*/5 * * * * /home/YOURUSER/irex/movefiles.sh

Done! You’ve now installed iREX and connected BRE/FE to work with DOSEMU2. Files placed in OUTBOUND will be delivered via the mailbox directory.