Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing and Configuring DOSBox on Ubuntu #dosbox #ubuntu
# DOSBox is a great emulator to run old DOS games
# and applications.
# This configuration has been tested on Ubuntu 11.04 with DOSBox 0.74
# but# it should work on other distros too.
# This code snippet runs on a fresh install of DOSBox
# since it appends lines to DOSBox configuration file.
# First, open your shell(terminal) and type
sudo apt-get install dosbox
# to install DOSBox.
# Now type
dosbox
# so that DOSBox runs and creates the profile directory
# as ~/.dosbox and creates a file as dosbox-0.74.conf in it.
# Note that different versions of DOSBox will have
# a different name.
# Now just type
exit
# in DOSBox to exit from DOSBox and return to shell.
# At this point, we have a fresh configuration file.
# Now create the directories to contain your DOS system:
mkdir ~/DOS
mkdir ~/DOS/A
mkdir ~/DOS/B
mkdir ~/DOS/C
# The last section in the DOSBox configuration file is
# [autoexec].
# We will now add some lines so that the mount operation
# is automatically done when you start DOSBox.
# Run the following code so that you do not have to
# mount these directories everytime:
echo MOUNT A ~/DOS/A >> `ls ~/.dosbox/dosbox-*.conf`
echo MOUNT B ~/DOS/B >> `ls ~/.dosbox/dosbox-*.conf`
echo MOUNT C ~/DOS/C >> `ls ~/.dosbox/dosbox-*.conf`
echo C: >> `ls ~/.dosbox/dosbox-*.conf`
# Optional:
# You can add any valid DOSBox command to the end of
# the DOSBox configuration file.
# For example, it can welcome you by "DIR":
echo DIR C:\ >> `ls ~/.dosbox/dosbox-*.conf`
# You can find lots of options for DOSBox configuration here:
# http://www.dosbox.com/wiki/Dosbox.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment