Next Previous Contents

12. Problems and fixes

12.1 Security issues

A full featured Dosemu needs to be suid root, e.g to access ports. Dosemu runs as suid "root" only where it is needed, and releases this right thereafter. But with DPMI, the Dos client programm can access the whole user space, hence also can modify the dosemu code itself. Use of the 'secure on' option in /etc/dosemu.conf disables this, but then you can't run any more some applications like 32-bit video games (lermen@elserv.ffm.fgan.de(97/2/11)). E.g. running a well known compiler with full access might have smaller security implications then some game, obtained by some obscure source.

12.2 Dosemu dies when booting. I have Win95 installed.

Dosemu relies that the Dos-Version on the hdimage and the Drive you map to contain command.com are the same. If not, dosemu will crash sooner or later. With the dual boot option Win95 offers when pressing the F4,F5 and F8 Keys with the "Starting Win95" text, versions on the Win95 drive may swap. Take special care for command.com. Let your shell variable in config.emu point to the correct static version of command.com, e.g.: shell=c:\win95\command.com c:\ /P /E:1024 (97/02/28)

Learn about dosdebug and use it to control a dosemu session(97/2/9)

12.3 Dosemu hangs! How can I kill it?

Learn about dosdebug and use it to control a dosemu session(97/2/9)

12.4 Dosemu crashed and now I can't type anything.

Daniel Barlow(jo95004@sable.ox.ac.uk) reported (95/4/8) that

If you have no terminal or network access that you can use to log in, you may have to press the reset button. If you can still get a usable shell somehow, run "kbd_mode -a" to switch the keyboard out of raw mode, and/or "stty sane" on the console so that you can see what you're typing.

A useful thing to do is to use a script to run dosemu, and run "kbd_mode -a" automatically right after dosemu. When dosemu crashes, the script usually will resume running, and execute the "kbd_mode -a" command.

12.5 I've enabled EMS memory in dosemu.conf but it does not help.

Rob Janssen (rob@pe1chl.ampr.org) reported (94/7/11)

Don't forget to load the provided ems.sys from the config.sys file.

12.6 How do I get rid of all those annoying "disk change" messages?

(94/8/11)

Grab and install klogd. Try

         sunsite.unc.edu:/pub/Linux/system/Daemons/sysklogd1.2.tgz

12.7 Why won't dosemu run a second time after exiting in console mode?

Aldy Hernandez (aldy@sauron.cc.andrews.edu) reported (94/7/8) that

You should disable your video and/or BIOS caching.

12.8 Why will dosemu run in a term but not in the console?

JyiJiin Luo (jjluo@casbah.acns.nwu.edu) reported (94/4/19) that

I experienced exactly the same problem before. I figured out all the video shadow in my AMI BIOS must be disabled. Now dosemu runs fine on my system.

12.9 How can I speed up dosemu?

In some cases it is useful to play with the value of the HogThreshold variable in your dosemu.conf file.

Daniel Barlow(jo95004@sable.ox.ac.uk) reported (95/4/8) that

HogThreshold should now be set to approximately half of the BogoMips value that the system reports on boot.

12.10 My CDROM drive has problems reading some files under dosemu.

Vinod G Kulkarni (vinod@cse.iitb.ernet.in) reported (94/4/7) that

When a CDROM is mounted from linux and used from within dosemu (mapped drive), there could be some problems. The CD-ROM driver (iso9660) in the kernel tries to find out the type of the file (i.e. binary or text). If it can't find, it tries to guess the type of the file using a heuristic. This heuristic fails under some circumstances when a (almost) text file is to be treated as binary. (I do not know if it is a bug or feature.)

The result of this is that if you copy such a file from CD-ROM (from linux itself, and not necessarily dosemu), the resulting file will be usually bigger than original file. (Blanks get added before ^J,^M.) So a program running in dosemu gives an error or hangs, which may be mistaken as problem of dosemu.

Rob Janssen (pe1chl@rabo.nl) reported (94/8/10) that

The way to solve this is to turn off conversion altogether. Pass the option "-o conv=binary" to the mount command mounting the CD-ROM, or use the following in /etc/fstab:

/dev/cdrom      /cdrom          iso9660 conv=binary,ro
No patches to the kernel are necessary.

12.11 How do I see debugging output?

Daniel Barlow(jo95004@sable.ox.ac.uk) reported (95/4/8) that

As of dosemu 0.60, debugging output is redirected to a file specified on the command line. Use "dos -D+a -o /tmp/debug" to log all debug output to /tmp/debug. There should no longer be any need to redirect stderr.

12.12 Why are my keystrokes echoed ttwwiiccee??

Nick Holloway (alfie@dcs.warwick.ac.uk) reported (94/2/22) that

After running dos after playing with some stty settings, I was getting doubled key presses. I can now reveal what the reason is!

It only happens when dos is run on the console with 'istrip' set. This is (I think) because the raw scancodes are mutilated by the 'istrip', so that key release events look like key press events.

So, the input processing needs to be turned off when using the scan codes on a console (it wouldn't be a good idea to do it for tty lines).

12.13 Dosemu scrambles my screen?

For those graphics cards not fully supported in dosemu, with allowed console graphics a dosemu crash may leave your console in a scrambles and nearly unusable way. To prepare for that situation, Spudgun <spudgun@earthlight.co.nz> posted following solution. First save your registers when running on the console ~> cat /usr/bin/savetextmode ~> restoretextmode -w /etc/textregs ~> restorefont -w /etc/fontdata Then, when a crash happened, run following script: restoretextmode -r /etc/textregs restorefont -r /etc/fontdata restorepalette

If it doesn't fix it nothing will I also found having an X server running sometimes put my Vid card's registers into a strange state where this script made things worse I think since changing X servers and/or running savetextmode on a vt while X was running helped. (97/04/08)

12.14 MS FoxPro 2.6 won't run

FoxPro 2.6 doesn't run on network drives. Alexey Naidyonov <growler@growler.tsu.tula.ru> states on that problem: And I guess your FoxPro files are on lredir'ed disk, yeah? The matter is that FoxPro doesn't run on such disk, but when I said disk { partition ... } in /etc/dosemu/conf, it runs.


Next Previous Contents