30 Oct 16 08:38, you wrote to All:
MP> When I access my board via telnet using syncterm & other programs, I
MP> get the following error whenever attempting to open anything that runs
MP> under dosemu:
there were a few lines that T had to change from the default DOSEMU config...
i'm trying to find them but yes...
stty cols 80 rows 25
is in the script used to start DOSEMU and fire up the doors...
in /etc/dosemu/dosemu.conf, in the keyboard section,
# $_layout = "auto"
$_layout = us
and there was something about some memory setting somewhere but i can't locate
it... it wasn't in the DOSEMU settings but something else, IIRC...
the 59 line script T uses for all doors (better than duplicating everything
each time) follows... it logs everything to its own log file... the log file
should appear in the mystic logs directory where the other logs are located...
in mystic, the myemu script is called like the following examples which T runs
on the system... these are for L.O.R.D., Global War, Stack'em, Operation
Overkill II, and Falcon's Eye... the name given is the name of the door.bat
file that lives in mystic/doors along with x00.exe...
./myemu lord %3 /DOS
./myemu gwar %3 /DOS
./myemu stackem %3 /DOS
./myemu ooii %3 /DOS
./myemu falcon %3 /DOS
===== start myemu =====
#!/bin/bash
## set BBSDIR to your BBS base directory. do not put a trailing slash (/)
BBSDIR=~/bbs
DOORDIR=$BBSDIR/doors
## there should be no reason for you to edit below this point!
LOGDIR=$BBSDIR/logs
LOGFNAME=$(basename $0).log
THISDOOR=$1
THISNODE=$2
E_NOARGS=1
E_BADARG=2
CMDRESULT=0
getDateTime () {
NOWD=$(date +"%F")
NOWT=$(date +"%T")
}
startlog () {
## change >> to > in next line to start the log cleared each time
echo >>$LOGDIR/$LOGFNAME 2>&1
getDateTime
echo "------------ Starting $(basename $0) $NOWD $NOWT" >>$LOGDIR/$LOGFNAME
2>&1
}
terminate () {
getDateTime
echo "------------ Ending $(basename $0) $NOWD $NOWT" >>$LOGDIR/$LOGFNAME
2>&1
cd $BBSDIR
exit $CMDRESULT
}
#############################
## main script starts here ##
#############################
startlog
# set the terminal window size
getDateTime
echo "$NOWD $NOWT Setting window size to 80x25" >>$LOGDIR/$LOGFNAME 2>&1
getDateTime
echo "$NOWD $NOWT stty cols 80 rows 25" >>$LOGDIR/$LOGFNAME 2>&1
stty cols 80 rows 25
CMDRESULT=$?
getDateTime
echo "$NOWD $NOWT CMDRESULT=$CMDRESULT" >>$LOGDIR/$LOGFNAME 2>&1
getDateTime
echo "$NOWD $NOWT Running DOSEMU for $THISDOOR" >>$LOGDIR/$LOGFNAME 2>&1
getDateTime
echo "$NOWD $NOWT dosemu -I\"serial { com 1 virtual }\"
\"$DOORDIR/$THISDOOR.bat\" $THISNODE" >>$LOGDIR/$LOGFNAME 2>&1
dosemu -I"serial { com 1 virtual }" "$DOORDIR/$THISDOOR.bat" $THISNODE
CMDRESULT=$?
getDateTime
echo "$NOWD $NOWT CMDRESULT=$CMDRESULT" >>$LOGDIR/$LOGFNAME 2>&1
terminate
===== stop myemu =====
===== start ~/.dosemu/drive_c/config.sys =====
rem config.sys for DOSEMU + FreeDOS
rem note that the initial "D:" is set to "Z:" at the end
SWITCHES=/F
DOS=UMB,HIGH
dosdata=umb
lastdrive=Z
files=40
stacks=0
buffers=10
device=d:\dosemu\ems.sys
devicehigh=d:\dosemu\cdrom.sys
install=d:\dosemu\lredir.com z: linux\fs\${DOSEMU_LIB_DIR}/drive_z ro
shellhigh=z:\command.com /e:1024 /p
===== stop ~/.dosemu/drive_c/config.sys =====
===== start ~/.dosemu/drive_c/autoexec.bat =====
@echo off
prompt $p $g
path z:\bin;z:\gnu;z:\dosemu
set HELPPATH=z:\help
set TEMP=c:\tmp
lredir d: linux\fs\home\mystic\bbs
d:
cd \doors
x00
unix -e
===== stop ~/.dosemu/drive_c/autoexec.bat =====
watch the wordwrap! myemu is 59 lines... config.sys is 14 counting the blank
one at the end... autoexec.bat is 11 counting the blank one at the end...
damn! i wish i could remember what and where that memory setting is/was that
had to be changed, too... it may have been in either /etc/sysctl.conf or
/etc/sysctl.d/... i'm thinking maybe something with the zero page memory
thing... it looks familiar but i don't see the original saved anywhere...
AHHHH... i found the note in the ~/.dosemu/boot.log that tells about it...
WARN: using non-zero memory base address 0x10f000.
WARN: You can use the better-tested zero based setup using
WARN: sysctl -w vm.mmap_min_addr=0
WARN: as root, or by changing the vm.mmap_min_addr setting in
WARN: /etc/sysctl.conf or a file in /etc/sysctl.d/ to 0.
it looks like T did this in the /etc/sysctl.conf file... at the very end...
###################################################################
# give us the zero page mempry map please...
vm.mmap_min_addr=0
oh, and here's an example of the myemu.log file...
------------ Starting myemu 2016-10-30 13:53:20
2016-10-30 13:53:20 Setting window size to 80x25
2016-10-30 13:53:20 stty cols 80 rows 25
2016-10-30 13:53:20 CMDRESULT=0
2016-10-30 13:53:20 Running DOSEMU for stackem
2016-10-30 13:53:20 dosemu -I"serial { com 1 virtual }"
"/home/mystic/bbs/doors/stackem.bat" 1
2016-10-30 13:53:38 CMDRESULT=0
------------ Ending myemu 2016-10-30 13:53:38
HTH
)\/(ark
Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin' it
wrong...
... McMemories: a tofu tribute to the burger. RIP Beef.
---
* Origin: (1:3634/12.73)
|