Installing DOSBox
Outcome: DOSBox is on your machine, and you have run the version check that proves the real program answers.
DOSBox is ordinary packaged software on every platform it supports. On Debian and Ubuntu it is one command:
sudo apt install dosbox
On Fedora it is sudo dnf install
dosbox; on macOS, Homebrew offers it as
brew install dosbox; on Windows, the
project's own site, dosbox.com, carries
an installer. The version numbers differ
a little by distributor — this guide's
lab used 0.74-3, the build Ubuntu
24.04 ships as package version
0.74-3-5build2 — but 0.74 is 0.74
everywhere it matters here, and every
command in this guide is from that
release.
The lab's route was the same package,
handled the way this series handles all
its installs: downloaded only, never
installed system-wide, unpacked into the
lab folder and run from there. The
record is transcript t00: the package
policy showing the candidate, 197 .deb
files fetched (DOSBox plus the libraries
it needs — SDL 1.2 for screen and sound,
SDL_net, libpng, OpenGL), and the
unpacked binary identifying itself as a
plain x86-64 Linux program.
However it arrived, prove it runs before you go further:
$ dosbox --version
DOSBox version 0.74-3, copyright 2002-2019 DOSBox Team.
That line is the whole install test. If
a terminal answers with it, the emulator
works; everything after this chapter is
configuration and use. If instead the
shell says the command is not found, the
install did not happen — on the Debian
family, apt-cache policy dosbox shows
whether the package is installed and
which version your distribution offers,
which is the first thing to check.
One thing the first launch does quietly:
it writes a default configuration file
to your home — on Linux,
~/.dosbox/dosbox-0.74-3.conf. You do
not need it yet. Chapter 7 opens it up;
for now, just know the file exists and
that the DOSBox you just started is
already keeping notes on how it likes
to run.