Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Installation


Code Block
apt-get install dosemu


Starting DOSEmu


Code Block
> dosemu

Configuring

Configuration Files

DOSEmu will create a hidden folder under the home directory of the user.

...

The boot.log is your logfile!

Mounting a Drive

You can mount a folder as a drive in dosemu but updating the autoexec.bat file and adding the following:

...

Code Block
@echo off^M
rem autoexec.bat for DOSEMU + FreeDOS^M
path z:\bin;z:\gnu;z:\dosemu^M
set HELPPATH=z:\help^M
set TEMP=c:\tmp^M
blaster^M
prompt $P$G^M
unix -s DOSDRIVE_D^M
if "%DOSDRIVE_D%" == "" goto nodrived^M
lredir del d: > nul^M
lredir d: linux\fs%DOSDRIVE_D%^M
:nodrived^M
rem uncomment to load another bitmap font^M
rem loadhi display con=(vga,437,2)^M
rem mode con codepage prepare=((850) z:\cpi\ega.cpx)^M
rem mode con codepage select 850^M
rem chcp 850^M
rem lredir e: linux\fs/media/cdrom c^M
lredir g: linux\fs\media\psf\Home\dev\dosemu^M
unix -s DOSEMU_VERSION^M
echo "Welcome to dosemu %DOSEMU_VERSION%!"^M
unix -e^M


Restricting a User

TODO: What does restricting a user mean?

...

Code Block
test restricted


Enable Low Memory Access

In recent linux kernels, being able to map to low memory addresses was disabled due to security concerns; this breaks dosemu for a lot of things. You will need to add vm.mmap_min_addr=0 to your /etc/sysctl.conf (and reboot, or reload as root with sysctl -p) if you want to be able to to run certain programs (TW2002 is one such program that suffers from this). 

> sudo sysctl -w vm.mmap_min_addr=0


Debuging Errors

If we experience an error, we can look in dosemu's boot.log file. This file is located in ~/.dosemu.

...

Debian 7 - Wheezy

Debian 8 - Jesse (Maybe)


Commands


CommandDescription Example
lredirMount a folder as a drive
lredir d: linux\fs\${home}


Installing DOSEmu on Debian 7 - Wheezy

Details

Debian installation details:

...

Code Block
echo "deb http://archive.debian.org/debian/ wheezy main contrib" > /etc/apt/sources.list
echo "deb-src http://archive.debian.org/debian/ wheezy main contrib" >> /etc/apt/sources.list


Installing DOSEmu

Code Block
wget http://ftp.us.debian.org/debian/pool/contrib/d/dosemu/dosemu_1.4.0.7+20130105+b028d3f-1_i386.deb
sudo dpkg -i dosemu_1.4.0.7+20130105+b028d3f-1_i386.deb




References

...