Windows 3.x on Mac OS X using DOSBox
As I mentioned in the previous post in this mini-series, one of the options for running Windows 3.x on Mac OS X is using the excellent little DOSBox DOS emulator. While it is akin to comparing minnows to sharks in features, the latest Mac build of DOSBox (0.72) weighs in at 10MiB, compared to VirtualBox 2.0.4's 34.6MiB or VMware Fusion's 247.6MiB.
DOSBox also has some distinct advantages other than filesize if you just want to run DOS. You don't need to worry about setting up your own copy of DOS from scratch, saving you the trouble of configuring
CONFIG.SYS, and all the graphics and audio for a huge slew of devices is already set up. For people interested in running Windows 3.x, DOSBox provides generic emulated hardware that you can easily install software for.
Setting it up
- Grab yourself a copy of DOSBox and install it.
- Create a folder in your home directory that will serve as you
C:drive in DOSBox. Alternatively if you want to keep things neat and tidy, you can create a dedicated disk image using Disk Utility.
- Create another folder within your dosbox folder or your disk image called
setupfor example, then copy the contents of each Windows 3.x floppy disk into it.
- If you created a disk image, mount it in Mac OS X, then fire up DOSBox and map your image to
c:. Obviously if you created a folder, reference that instead:
mount c /Volumes/[NAME OF IMAGE]
- Now you can navigate to your Windows installation files and start the setup process:
z:\> c:\ c:\> cd setup c:\setup\>setup.exe
When you see this, you’re home free!
The Windows 3.x installation process is fairly self explanatory, but just a few helpful pointers:
- Choose "Custom Installation" with your arrow keys during the DOS-based part of the installation.
- When you're asked, don't worry about using the option to search your drive for existing applications, there aren't any! Leave the option to install printers checked though.
- When you're asked about virtual memory, leave it with the default "Temporary" option. Because we're dealing essentially with a folder not a real file system, "Permanent" virtual memory won't work.
- You'll be asked if you want to make any changes to
CONFIG.SYS. Choose "Let you make the modifications later", because DOSBox won't use any boot files Windows creates anyway.
- When you get to the printer installation step, click the "Generic / Text Only" option and hit
[Install…]. Windows in the day needed a printer, any printer, to display some fonts properly.
Creating a preferences file
To save yourself the trouble of writing out that nasty
mount line each time you start DOSBox, and to allow yourself to tweak some performance options it's best to create a preferences file.
- Within DOSBox, enter the following (in one line):
config -writeconf "/Users/[YOUR-USER-NAME]/Library/Preferences/DOSBox Preferences"
- Quit DOSBox then open the file you just created in your favourite text editor. At the very end of the file is where your custom
AUTOEXEC.BATcode can be written. Enter the exact line you entered above to map your disk image or folder to drive
- Under this, enter the following line to help Windows and DOSBox locate files:
- If you intend to use DOSBox just to run Windows 3.x, add these lines right after your mount line so Windows starts when you start DOSBox, and DOSBox quits when Windows does:
Starting Windows 3.x
Now you have a basic Windows 3.x installation running on your Mac! It's somewhat of a surreal sight:
It is possible to drivers to get better performance, graphics, sound etc. DOSBox emulates a generic SoundBlaster card and a custom S3 Trio graphics card. The VOGONS (Very Old Games On New Systems) forum has a thread dedicated to this. If I have time this week I'll elaborate further in a separate post, keep an eye on the dosonmac tag.