DOSBox
The purpose of this setup is to install and configure DOSBox for running DOS games.
Install DOSBox
$ sudo apt install dosbox
Generate DOSBox default configuration file
$ dosbox -printconf
This will generate a default configuration file and will print the path to the file. Copy the path to the configuration file for updating the configuration.
Update configuration file
$ nano <path-to-config-file>
Replace <path-to-config-file>
with the path to the configuration file printed in Step 2.
Update the following lines to configure screen resolution as per Mecha Comet :
fullscreen=true
fulldouble=false
fullresolution=480x480
windowresolution=480x480
output=opengl
Download DOS game
Download a DOS game from the internet and extract it to a folder
Start DOSBox
$ dosbox
Setup mount directory
Inside DOSBox, mount the game directory to a drive letter
$ mount c <path-to-game>
Replace <path-to-game>
with the path to the game folder.
Above command will mount the letter c
to the game directory.
Example: If the game directory is /home/mecha/skyroads
, then enter mount c /home/mecha/skyroads
.
Run exe file
Run the game executable file by entering the name of file without exe
followed by enter.
Example: If the game executable file is skyroads.exe
, then enter skyroads
and press enter.
$ skyroads
This completes the setup for running DOS games using DOSBox.