[clug] Using DOSemu

George at Clug Clug at goproject.info
Mon Aug 12 01:00:06 UTC 2019


Your endeavors with DOSemu has caused me to investigate DOS emulation further.

You mentioned that you were not able to use the "mode" command to check your serial port. I wonder if you bothered to install a DOS into DOSemu? 

When I tested DOSemu, I had not at that time read the "HOW TO", and had not installed a version of DOS, and despite that I was still able to install and run a few DOS programs.

However from what I have read, it is important to install a DOS into DOSemu. And that FreeDOS (http://www.freedos.org/download/) is the best DOS to use.


If anyone has DOSemu experience, please comment on my three statements below;

1) I would recommend using the DOSemu that comes with your distribution over downloading source and building it. Makes upgrading your Distro less troublesome, and the DOSemu in your distro should be better designed to work with your distro.

2) Using the standard configuration for most settings would be preferable, the package maintainers for your distro are likely to know way more about DOSemu, that we would. However if you are dealing with serial ports, then you will need to configure this correctly for your particular hardware. See http://dosemu.org/docs/README/1.4/config.html as a good description of what can be configured.

3) It is recommended to install a DOS into DOSemu, and FreeDOS is the preferred as it is the most compatible DOS to use. Would you agree?

I was hoping to run Windows 3.11 using DOSemu, but know I am not sure if that is a good idea after reading http://www.tldp.org/HOWTO/DOSEMU-HOWTO-8.html

Below are some links I believe are worth reading before attempting to use DOSemu.

1.5 Do I need MS-DOS to use dosemu ?

No. You need some version of DOS but not necessarily MS-DOS. See the section "What versions of DOS are known to run with dosemu ?"

I wanted to run a Windows 98 environment to run Windows 98 programs, but it seems that Wine should be a more suitable way to try and do this.

1.6 Can I run Microsoft Windows programs under dosemu ?
Not reliably. You would be better to use the Windows emulator Wine ( http://www.winehq.com).

To set up DOSemu correctly, it seems I will have to read the "README.txt" file, and this page should help too http://dosemu.org/docs/README/1.4/config.html


2.6. What configurable options are available?

The compiletime-settings.help file describes the options you can change at compile time. README.txt describes the options you can change at run time.



DOSEMU stands for DOS Emulation, and allows you to run DOS and many DOS programs, including many DPMI applications such as DOOM and Windows 3.1, under Linux.
DOSEMU is available in the repos. As installed, it must be run as root. To run DOSEMU as a normal user, it is necessary to edit the file as root
by adding as the last line:





Task: Display Detected System’s Serial Support

Simple run dmesg command
$ dmesg | grep tty


[   37.531286] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[   37.531841] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[   37.532138] 0000:04:00.3: ttyS1 at I/O 0x1020 (irq = 18) is a 16550A

setserial command

setserial is a program designed to set and/or report the configuration information associated with a serial port. This information includes what I/O port and IRQ a particular serial port is using, and whether or not the break key should be interpreted as the Secure Attention Key, and so on. Just type the following command:
$ setserial -g /dev/ttyS[0123]


/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: 16550A, Port: 0x1020, IRQ: 18
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

setserial with -g option help to find out what physical serial ports your Linux box has

More information about the linux mailing list