How To Use DOSBox on Mac, Windows & Linux – A Detailed Guide
Everyone loves nostalgia. Whether it’s in the form of old pictures, videos, memorable places or something else, reliving the good old times is always joyous. And what times are better than those of our childhood, when everything was simpler. A constant in most of our childhoods were the old DOS games.
Nowadays most operating systems don’t support DOS programs and games. Luckily, there’s a way around that. Thanks to DOSBox, you can enjoy all your favorite DOS games and programs on your computer. We will show you exactly how to do so in this guide.
Table of Contents:
What is DOSBox?
DOSBox is an open-source emulator that is capable of running old DOS games and programs. DOSBox is completely free and compatible with nearly every version of Windows, Linux and macOS. Compatible with a large variety of DOS games and programs, DOSBox is the best option for anyone looking to run DOS stuff on their PC without the hassle of actually having to install and use DOS.
Installing DOSBox
Depending on what operating system you’re using, the steps for installing DOSBox can vary. The installation process is very simple, no matter what OS. Just follow the steps below:
How to Install DOSBox on Windows
- First off, head over to the DOSBox download page. Click on Download Now. You should be redirected to another page and the installer will begin downloading automatically.
- Once the installer has finished downloading, run it.
- Upon running the installer, the license agreement should appear. Click on Next.
- Next, it’ll ask what files you want to install. Click on Next again.
- After that it’ll ask you to choose the directory where DOSBox will be installed. Change the directory by clicking on Browse. Otherwise, click Install.
- Finally, DOSBox will be installed in a matter of seconds. Click Close when the process finishes.
How to Install DOSBox on macOS
- Similar to Windows, click on the Download Now button. Again, you’ll be redirected and a DMG file will begin downloading.
- Once it has finished downloading, open the DMG file.
- Next, select the DOSBox app inside the DMG file and drag it into the Applications folder.
- Open the Applications folder to see and confirm that DOSBox is now successfully installed.
- If you’re using an Apple silicon Mac, you’ll need to install Rosetta. A prompt to install Rosetta will appear when you attempt to run DOSBox. Click on Install.
- Eject the DOSBox DMG from the side bar by pressing the Eject button or right-clicking on it and selecting Eject.
How to Install DOSBox on Linux
Since there are multiple forks of Linux, the installation process can differ slightly. However, the only difference is the command you’ll run on the Terminal. Ubuntu users don’t need to run any command as DOSBox is available for download on the Ubuntu Software Center.
- To install DOSBox, press Ctrl+Alt+T or Ctrl+Shift+T on your keyboard to open the Terminal.
- Next, run the following commands based on the type of system you have:
For Debian-based systems
sudo apt-get install dosbox
Fedora/RHEL/CentOS based systems:
sudo dnf install dosbox
Arch-based systems:
sudo pacman -S dosbox
For Ubuntu and Ubuntu-based systems (if Software Center has been uninstalled):
sudo apt install dosbox
You might be asked for confirmation so proceed with the on-screen instructions to confirm the install. In most cases it will just be pressing ‘Y’ (yes):
Setting up DOSBox
The instructions for setting up DOSBox are essentially the same for every operating system. Although we’ve explained the process for setting up DOSBox on macOS previously, we’ll be doing the setup this time on Windows.
Linux users will have to run this command on the Terminal to open the DOSBox application:
dosbox
DOSBox Setup
- First, open up the DOSBox app. The app will open along with a DOSBox Status Window. Ignore this window.
- Next, you’ll have to mount a drive on your PC and designate a folder to DOSBox where it can find games and programs. You can choose a directory and drive of your choice. To do this, run the following command in DOSBox:
mount (drive letter) (drive letter):\(path to directory)
We’ve created a directory for our games called “Games” (how original) inside the C Drive, and thus are using this command:
mount c c:\Games
For macOS, the command will be like this:
mount (drive letter) ~/(path to directory)
For Linux, the command is the same as macOS:
mount (drive letter) ~/(path to directory)
As you can see in the screenshot above, we wrote mount c ~/Downloads/DOS which would mount the “DOS” folder inside Downloads inside C Drive. Make sure to mount the correct drive and directory for your computer. - Now enter the drive letter as shown, to change the path where DOSBox is currently accessing:
c:
- Finally, run the following command to display the files present in the chosen path:
dir
This command is not necessary if you already know what DOS games/programs you have inside this directory and what their names are. Otherwise, you’ll see a list of all the files present inside the directory, from which you can discern the name of the file you’re trying to run.
Editing the Config File
Since you’ll have to repeat the process of mounting the folder every time you open up DOSBox, it’s better to edit the config file once to quicken everything. This will allow you to launch DOSBox with the mounting process already done. Simply follow the steps below:
Modifying config file on Windows
- Open the folder where DOSBox is located. You can do this by right-clicking on the DOSBox shortcut and selecting Open file location. If you don’t have the DOSBox shortcut on your desktop, the program is installed in Program Files (x86) by default.
- Next, open the config file.
- Now, the file should open up on Notepad. Scroll down to the bottom till you see the [autoexec] section.
- Now, you’ll add the same commands you entered previously to mount the drive.
mount c c:\Games
c:
dirReminder: Only put the “dir” command in here if you want DOSBox to show your directory’s content each time you open it. If not, you can omit this command and just write the first two. - Hit Ctrl+S to save the config file and close it.
Modifying config file on macOS
To modify the config file on macOS, you need to access the Library folder.
- In Finder, press Command + Shift + S to open Library. Alternatively, you can click on “Go” in the menu bar and select Library from there.
- Now, select the Preferences folder.
- Type dosbox in the search bar towards the top-right and press Enter. A file named DOSBox 0.74-3-3 Preferences should pop-up, click on it.
- This file is the same as the config file on Windows. Just find the [autoexec] section and enter the following commands:
mount c ~/Downloads/DOS
c:
dir - Press Command + S to save the changes and close the file.
Modifying config file on Linux
- In order to alter the config file in Linux, we’ll have to use Nano, a text editor that comes pre-installed with most Linux systems. Enter the following command inside the Terminal:
nano ~/.dosbox/dosbox-0.74-3.conf
- Next, scroll down until you see the to the [autoexec] section. Use your keyboard’s down-arrow key if your mouse doesn’t scroll here.
- Finally, add the following commands in the [autoexec] section:
mount c ~/Downloads/DOS
c:
dir - Press Ctrl+X to exit the nano editor, then press Y to save the edits to this config file.
- Press Enter to confirm your edits and then close the Terminal.
Running Games and Programs on DOSBox
DOSBox is only an emulator and does not come with any built-in games or programs. Unfortunately, many DOS programs and games are not available for purchase. A handful of old classic games are available on the GOG Galaxy Store for purchase, but in most cases you’ll have to rely on the Internet.
You can find a surprising amount of old DOS games legally and ethically online. Some of the best sites include:
Any game or program you download will be in the form of a ZIP file, which you’ll then need to extract. Make sure you put the extracted contents directly into your DOSBox directory and NOT the extracted folder. Any folder inside your DOSBox directory will simply not work.
Launching a game
To run a game in DOSBox, follow these steps:
- Before launching a game, first complete the setup process and mount a folder.
- Next, enter the name of the game file you have. The game file should be .BAT or .EXE file. The extension of the game file is not necessarily required to be entered.
- Upon running the command, your game should load up.
Launching a program
The procedure of running a program on DOSBox are the same as the steps followed for running a game on DOSBox:
- Make sure that the directory is mounted.
- Next, enter the program’s file name. Again, there’s no need to enter the extension of the file.
Finally, the program will start after running the command.
Handy Keyboard Shortcuts for DOSBox
Shortcut Key | Function |
---|---|
ALT+Enter | Enter/Exit fullscreen |
CTRL+F1 | Starts the keymapper, which allows you to configure key bindings |
CTRL+F5 | Take a screenshot |
CTRL+ALT+F5 | Start recording gameplay |
CTRL+F9 | Terminate DOSBox |
Additionally, if you want to view a complete list of keyboard shortcuts for DOSBox, run the following command in DOSBox:
intro special
DOSBox Alternatives
Even though, DOSBox is as close to perfection an emulator can get, everyone may not be a fan. An alternative to DOSBox is PCem, an emulator whose main focus is to run older operating systems. PCem is free to download and use, and while the source code is free to view, it cannot be modified. PCem is only compatible with Windows and Linux.
Other alternatives include DOSBox-X and JsDOSBox.
Conclusion
Besides giving you nostalgia through old classics, DOSBox is also a very versatile tool for running compilers for older programming languages. DOSBox has also been utilized by many modern game studios in remaking or porting some of their most popular games. It is one of the most invaluable tools out there on the Internet. We hope you enjoy reliving some great childhood memories!
Frequently Asked Questions (FAQs)
What operating systems does DOSBox support?
DOSBox supports Windows 2000, XP, 7, 8, 10 and 11. It also supports Mac OS X versions and above, along with most Linux distros.
Is DOSBox compatible with every DOS game and program?
DOSBox is compatible with most DOS programs and games, but not all. You can check out DOSBox’s official compatibility list to see which games are compatible.
Can DOSBox mount a CD-ROM?
Yes, you can allow DOSBox to mount a CD-ROM by entering the following command (D represents the drive letter of the CD-ROM):
mount c D:\ -t cdrom
Is there a better user interface for the DOSBox app?
Yes. DOSBox has numerous user-friendly interfaces available for you to choose from. These are termed as “frontends“. They are available to download for free on the DOSBox download page.