If you want to replay titles like SimCity, Golden Ax, The Oregon Trail or Wolfenstein on the big screen via Respberry Pi then this article is for you. You can learn how to install DOSBox on Raspberry Pi to enjoy all those classic DOS games through the following article.
Things to prepare
To complete this tutorial, you’ll need:
– Raspberry Pi that runs Raspberry Pi OS
– Power cable compatible with Raspberry Pi
– External keyboard and how to attach it to Raspberry Pi
– HDMI cable or micro HDMI, depending on Raspberry Pi model
– External display
– Gaming controller
Update Pi to the latest version
If not already done, attach an external keyboard, monitor, handle, and any other peripheral to the Raspberry Pi, then attach the Pi to a power source. Next, check that the Raspberry Pi is fully updated. Open Terminal and type the following command:
sudo apt update && sudo apt -y upgrade
DOSBox is a simulator that mimics a computer running DOS, allowing to run DOS games on Raspberry Pi. To install DOSBox, run the following command on the Raspberry Pi:
sudo apt install dosbox
Before you can enjoy any DOS game on your Raspberry Pi, you need to configure your DOSBox settings. To begin, create a directory where all DOS games will be stored. A directory called dos-games, created in this tutorial in the Home directory of Raspberry Pi.
To create a directory, run the following command:
The DOSBox configuration file has not been created until DOSBox runs for the first time, so do so now. In Terminal, just type the following:
Press the Enter key on the keyboard to run.
Play DOSBox games with the controller
Now that DOSBox is up and running, the next step is to configure the game console. First, attach the handle you want to use. Next, press the
Ctrl + F1 keys on the keyboard and the keymapper window will appear on the screen. DOSBox can often automatically detect and map gaming controllers.
Note that if the keymapper does not start, DOSBox may not run. You should be able to solve this problem by typing dosbox into Terminal, pressing
Enter and then repeating the shortcut.
Depending on your gaming controller model, DOSBox may automatically detect and map the handle. If DOSBox does not recognize the handle, you will need to manually configure it by following the instructions on the screen.
Find free DOS games
There are a few places you can download DOSBox games. Abandonia has thousands of free DOS games for you to choose from:
Abandonia is a website specializing in software and games that is not supported by owners, publishers, developers or original manufacturer anymore and not currently available in the retail market.
Create a directory for DOS games
Once you’ve downloaded one or more games, you’ll need to extract the zipped files to the dos-games folder you created in the previous step. Once completed, your DOS games are ready to play!
Enjoy playing games on DOSBox
To play the game, open the extracted game file and find the executable file of the game. The exact files will vary depending on the game. For example, for the Apollo 18 game, this file is apollo.exe. Right-click on the .exe file and select Open With …
In the next window, select Games > DOSBox Emulator.