Trifle Menot
2010-03-13 21:55:17 UTC
I wondered if there was a simple way to get PCBoard working over telnet
with dosemu on linux. Turns out there is. Docs on this are scarce and
so working through it the first time took a lot of trial and error. But
once you understand what pieces are required, and how they fit together,
the recipe is not hard for an experienced cook.
Ingredients:
pcboard
linux (2.6.32 crashed, so i used an older kernel)
xinetd
telnetd
gcc, flex, bison, etc.
svn
dosemu source code
Steps:
svn co https://dosemu.svn.sourceforge.net/svnroot/dosemu/trunk dosemu
adjust compiletime-settings to your liking
./configure
make
make install
install xinetd and telnetd
living dangerously, heh.
caveat about "root" user.
Fix up your autoexec.bat file to start the dosemu fossil. Mine looks
$_external_char_set = "iso8859-1"
$_com1 = "virtual"
char_set suppressed some unwanted console messages that appeared because
I didn't have LANG set. com1 = virtual is the main idea here.
Now configure PCBoard like so:
Modem Information
Modem Setup
Comm Driver : F (fossil)
Comm Port : 1
Opening Baud Rate : 57600
You may also want to lock the baud rate, but I did not.
Modem Information
Configuration Switches
Packet-Switch Network : Y
Force 16550A Usage : Y
Configuration Options
Switches
Exit to DOS After Each Call : Y
Tweak your PCBoard batch files to use COM1. Running more than one node
will require more batch file work, and dosemu work too.
Well that's all I can remember at the moment. Hopefully I didn't leave
out anything important.
Bon appetit.
with dosemu on linux. Turns out there is. Docs on this are scarce and
so working through it the first time took a lot of trial and error. But
once you understand what pieces are required, and how they fit together,
the recipe is not hard for an experienced cook.
Ingredients:
pcboard
linux (2.6.32 crashed, so i used an older kernel)
xinetd
telnetd
gcc, flex, bison, etc.
svn
dosemu source code
Steps:
svn co https://dosemu.svn.sourceforge.net/svnroot/dosemu/trunk dosemu
adjust compiletime-settings to your liking
./configure
make
make install
install xinetd and telnetd
service telnet
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.telnetd
server_args = -h -n -L /usr/local/bin/bbs
disable = no
}
You may want to change "root" to some other user. Unless you like{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.telnetd
server_args = -h -n -L /usr/local/bin/bbs
disable = no
}
living dangerously, heh.
#!/bin/sh
export HOME=/root
exec /usr/local/bin/dosemu.bin "c:\pcb\node1.bat"
HOME is required, dosemu won't run without it. But here again, sameexport HOME=/root
exec /usr/local/bin/dosemu.bin "c:\pcb\node1.bat"
caveat about "root" user.
Fix up your autoexec.bat file to start the dosemu fossil. Mine looks
@echo off
rem autoexec.bat for DOSEMU + FreeDOS
path c:\pcb;z:\bin;z:\gnu;z:\dosemu
set HELPPATH=z:\help
set TEMP=c:\tmp
blaster
prompt $P$G
unix -s DOSDRIVE_D
if "%DOSDRIVE_D%" == "" goto nodrived
lredir del d: > nul
lredir d: linux\fs%DOSDRIVE_D%
:nodrived
rem uncomment to load another bitmap font
rem loadhi display con=(vga,437,2)
rem mode con codepage prepare=((850) z:\cpi\ega.cpx)
rem mode con codepage select 850
rem chcp 850
lredir e: linux\fs/media/cdrom c
unix -s DOSEMU_VERSION
echo "Welcome to dosemu %DOSEMU_VERSION%!"
fossil.com
unix -e
Fix up your /etc/dosemu/dosemu.conf with these settings:rem autoexec.bat for DOSEMU + FreeDOS
path c:\pcb;z:\bin;z:\gnu;z:\dosemu
set HELPPATH=z:\help
set TEMP=c:\tmp
blaster
prompt $P$G
unix -s DOSDRIVE_D
if "%DOSDRIVE_D%" == "" goto nodrived
lredir del d: > nul
lredir d: linux\fs%DOSDRIVE_D%
:nodrived
rem uncomment to load another bitmap font
rem loadhi display con=(vga,437,2)
rem mode con codepage prepare=((850) z:\cpi\ega.cpx)
rem mode con codepage select 850
rem chcp 850
lredir e: linux\fs/media/cdrom c
unix -s DOSEMU_VERSION
echo "Welcome to dosemu %DOSEMU_VERSION%!"
fossil.com
unix -e
$_external_char_set = "iso8859-1"
$_com1 = "virtual"
char_set suppressed some unwanted console messages that appeared because
I didn't have LANG set. com1 = virtual is the main idea here.
Now configure PCBoard like so:
Modem Information
Modem Setup
Comm Driver : F (fossil)
Comm Port : 1
Opening Baud Rate : 57600
You may also want to lock the baud rate, but I did not.
Modem Information
Configuration Switches
Packet-Switch Network : Y
Force 16550A Usage : Y
Configuration Options
Switches
Exit to DOS After Each Call : Y
Tweak your PCBoard batch files to use COM1. Running more than one node
will require more batch file work, and dosemu work too.
Well that's all I can remember at the moment. Hopefully I didn't leave
out anything important.
Bon appetit.
--
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php