From: "Andrew Brooks" <arb@sat.dundee.ac.uk>
To: linux-msdos@vger.kernel.org
Subject: Re: Using Screen
Date: Thu, 15 Jan 2009 19:08:44 -0000 [thread overview]
Message-ID: <op.untbgutoqw3wu1@titan> (raw)
In-Reply-To: <496F8289.4040909@pobox.com>
On Thu, 15 Jan 2009 18:38:01 -0000, Alain M. <alainm@pobox.com> wrote:
>
> Do you have instructions about using screen that you can share?
Below are my notes which I hope you find helpful. The remote viewer
logs in with ssh and runs "start_viewer". On the dos PC you have
already started "start_screen" which calls "start_dos".
> If it is still needed, I can digg info about installing DOS's fonts
> in the client machine. it should solve the box-drawing problem.
That would be useful, thanks.
Andrew
On the "viewer" PC
To view a dosemu session properly you need to open a terminal window
with the correct character encoding. eg. Gnome Terminal using IBM850.
Although the example below says UTF-8 for some reason.
DOSView.desktop:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=DOSView
Type=Application
Exec=ssh -t user@dospc /bin/bash -lc ./start_viewer
TryExec=
X-GNOME-DocPath=
Terminal=true
Name[en_US]=DOSView
GenericName[en_US]=
Comment[en_US]=
GenericName=
Comment=
Gnome terminal preferences are stored in ~/.gconf/apps/gnome-terminal
However Gnome terminal sucks up too much CPU time so xterm is better.
But I haven't yet found a way of getting the correct character encoding
in xterm.
On the "server" PC (let's call it dospc)
The start_viewer script:
---------------------------------------------------------
#!/bin/sh
numscreens=`ls ~user/tmp/*.drive | wc -l`
if [ 0$numscreens -ne 1 ]; then
echo There is not a single screen session for attachment
echo Is start_screen running?
exit 1
fi
session=`basename ~opr/tmp/*.drive`
#screen -x $session
screen -rx
--------------------------------------------------------
The start_screen script:
--------------------------------------------------------
#!/bin/sh
# default terminal type is "linux" but use "vt100" because the
# line-drawing characters work better
export TERM=vt100
screen -S drive -s ./start_dos #-T ansi
--------------------------------------------------------
The start_dos script:
-------------------------------------------------------
#!/bin/sh
# 1.00 arb Thu Mar 3 12:12:44 GMT 2005
# Limit processes to 128MB of virtual memory (limit).
# Run dosemu in super-user mode in order to access hardware (-s).
# Automatically restart dosemu (after 30 seconds) if it fails.
vm_limit=131072 # KB
TZ=UTC0; export TZ # Timezone without daylight savings
ulimit -v $vm_limit
while true; do
dosemu -s
echo Restarting dosemu in 30 seconds
echo Press CTRL-C to abort
sleep 30
done
-------------------------------------------------------
The .screenrc config file has the following additions:
multiuser on # allow multiple users
defc1 off # allow 8-bit chars ("on" uses top bit set chars as control funcs)
vbell off # use audible bell
The dosemu.conf config file changes:
$_term_char_set = "ibm"
When viewing using screen you can use ctrl-a then d to detach the
session and reconnect to it later.
-------------------------------------------------------
next prev parent reply other threads:[~2009-01-15 19:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a9dd9d150901141542n1909a13em8937c869ce12b79b@mail.gmail.com>
2009-01-14 23:44 ` Using Screen Julieto Agbay
2009-01-15 2:12 ` C.J. Adams-Collier
2009-01-15 16:37 ` Alain M.
2009-01-15 17:11 ` Andrew Brooks
[not found] ` <496F8289.4040909@pobox.com>
2009-01-15 19:08 ` Andrew Brooks [this message]
2009-01-16 5:45 ` Julieto Agbay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.untbgutoqw3wu1@titan \
--to=arb@sat.dundee.ac.uk \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox