Playing old DOS games on the Raspberry Pi

Variants

Dosbian comes with two variants of DOSBox: the conventional SVN version, which is compiled directly from the source code, and the ECE variant, which has been improved by the community and has a number of technical enhancements (e.g., more video memory and a bug-fixed emulation of the CGA and EGA video modes).

From the Dosbian configuration tool, which you can access by entering the exit command at the DOSBox prompt, you can permanently define the mode in which DOSBox runs on your Dosbian installation. To do this, open the 6 DOSBox SVN option in the configuration tool to use the official SVN mode or 7 DOSBox ECE for the advanced mode. To enable the setting, you again need to reboot the system.

Data Transfer

Dosbian stores the DOS games in the GAMES/ directory below the /home/pi/dosbian/ folder, which is where you can organize your games in separate subdirectories to facilitate access. By default, Dosbian already has two games installed. To transfer data, use the SSH server, which you enabled in the Pi's configuration console. On the client desktop computer, the easiest way to transfer data if you are working with Linux is to use an SSH GUI client such as PuTTY or EasySSH. Alternatively, you can set up a network drive in the file manager of the graphical Linux desktop.

After completing the data transfer, you need to unmount and remount the C:\ drive in the Dosbian installation to gain access to all the data. To do this, switch to the Dosbian configuration tool at the prompt by entering the exit command; then select the 1 Start My Super Duper 486DX option. After a short time, you will be returned to the DOS prompt. From there, you can now change to the subdirectory for the game of interest by typing cd <folder> and then launch the game.

Graphics

Dosbian also has a text-based graphical user interface in the form of LaunchBox, which is visually reminiscent of the GRUB boot manager and means the installed applications can be called conveniently from the start menu without having to change directories at the prompt each time. Additionally, you can configure LaunchBox in Dosbian so that it runs automatically at boot time, thus avoiding even seeing the prompt.

To enable LaunchBox as the startup screen after booting the system, exit DOSBox with the exit command and open the 8 LaunchBox option in the Dosbian configuration dialog. The system now sets LaunchBox as the startup screen and opens a window after you confirm the prompt. After rebooting, LaunchBox then automatically appears.

Initially, you only get a list in the selection menu of the two games already pre-installed. To add more games – or even applications – use the mouse to click Edit | Add at the top of the application's menubar. Now a superimposed window opens where you have to specify various data about the new application to be added to the LaunchBox main menu (Figure 3).

Figure 3: Use the Edit dialog to configure the LaunchBox menu items.

In the Title box, enter the title you want to appear as a starter in the menu. In the Run App Commands box, type the DOS command you normally use to start the new game or application at the prompt. If you don't know the exact path, click the Browse button on the right to open another window with a small file manager, in which you click your way through the directory structure to the target folder and select the appropriate executable or batch file. The Configure Commands box also lets you specify additional parameters (e.g., if you need to call additional files in the context of the program file). You can enter these randomly or select them by clicking Browse to the right of the input field.

Clicking the Details button at bottom right lets you enter metadata for the respective application. (See the "Searching" box for why this is a good idea.) The most important details include the Genre, Publisher, and Release Year fields. If you check the Favorites box, you select the entry as a favorite, which means it will display at or near the top of the selection menu. After completing the entries and clicking OK, the new game or application appears in the LaunchBox main menu (Figure 4).

Searching

If you have added a large number of games to the main menu, you can filter the list from the bottom option line with keywords – assuming you entered some metadata to use for the search. The Tab key or arrow keys let you jump backward and forward between the individual categories in the lower option bar. The Genre selection, for example, puts in the upper part of the LaunchBox list the game genres you have entered. After selecting one of the genres and pressing Enter, the software branches to a new list that displays all the program entries that match the respective criterion. You can then select one of the matches and press Enter again to launch the selected game.

Figure 4: LaunchBox lets you create an easy way to launch the games installed on your system.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Raspberry Pi Distros

    The Raspberry Pi is a Linux machine, and its default distribution is Raspberry Pi OS. But Linux is all about choices….

  • Lutris

    If you frequently play games on Linux, you are accustomed to dealing with many different installers and configurations. Lutris can help simplify the process of setting up all your games.

  • Kodi 18.0 and LibreELEC 9.0

    Thanks to Kodi 18.0, LibreELEC 9.0 now supports the DRM encryption used by many streaming services. However, integrating Netflix, Amazon, and other streaming services does involve some manual work.

  • Lakka

    With the right software, you can turn the Raspberry Pi into a versatile console for retro games.

  • Retro Gaming

    Many computer games from the 1980s and 1990s enjoy cult status. Graphics and sound were not very advanced back then, which forced the producers to impress gamers with good ideas and a convincing level of design. Emulators let you run those classic games on a Linux PC.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News