Category: Ubuntu

Added: 18th of September 2015

Viewed: 5015 times

Install dosbox in Ubuntu and other Ubuntu based distributions

This tutorial works in Ubunbu, Kubuntu, Xubuntu, Lubuntu, Ubuntu Mate and other Ubuntu based distributions. The tutorial also works in Linux Mint and other Debian based distributions.

dosbox is an emulator which allows you to run old dos Windows programs and games. The simple guide below will show you how to install dosbox in Ubuntu based distributions in about 5 mins.

To install dosbox open your terminal and enter the following command

sudo apt-get install dosbox

After installation start dosbox from the terminal. dosbox will open in a window. Once the window has opened please close it. This will create a hidden in your home directory named .dosbox, and a configuration file where you will specify where dosbox should locate your programs and games.

Next goto to your home directory and create a folder named dosgames

Whilst in your home directory display hidden files. You can either press ctrl + h or select show hidden files from the menu depending on your window manager.

Locate and double click on .dosbox folder which was created earlier when you started dosbox, to display the dosbox configuration file

Open the configuration file in your text editor and scroll down to the bottom.

Add the following lines by copying and pasting below.
Remember to replace username with your own username, and then save the configuration file.
mount c /home/username/dosgames

What we are doing here is telling does box to mount the C: drive and point at your dosgames folder that you created earlier.

Next open your terminal and enter the following command to start dosbox again

Installation is now complete. dosbox will now open in a new window. You will place any programs or games that you download in future in to the dosgames folder

You can't beat the classic games. Playing Quake through Dosbox

Other Tips & Tutorials


How do I upgrade a single package in Ubuntu and Ubuntu based distributions

Posted: 12th of September 2021

Views: 248


Create a multiboot USB for your .iso images, using Ventoy on Linux

Posted: 25th of August 2021

Views: 340


How to find out what date you installed Linux on your machine

Posted: 13th of April 2021

Views: 476


Install bashtop in Ubuntu and Ubuntu based distributions. Monitor your cpu, memory, disks, network and other processes

Posted: 21st of February 2021

Views: 587


Ubuntu 20.10 Groovy Gorilla installation error, installer crashed

Posted: 3rd of February 2021

Views: 972


Find out what version of Ubuntu you are running, using the terminal

Posted: 29th of January 2021

Views: 483


Install Redshift to automatically adjust the colour of your screen depending on time of day on Ubuntu and Ubuntu based distributions

Posted: 26th of November 2020

Views: 1078


PulseAudio, Pavucontrol not saving settings after reboot on Ubuntu and Ubuntu based distributions

Posted: 11th of November 2020

Views: 3752


No sound after installation of Ubuntu or Ubuntu based distribution, install pavucontrol

Posted: 9th of November 2020

Views: 585


Shutdown Ubuntu and Ubuntu based distributions at a specific time or within (x) minutes

Posted: 30th of October 2020

Views: 670