Setting Up DOSBOX in Ubuntu to run Turbo C

2 min


A tutorial on how to set up DOSBOX in Ubuntu Linux with steps.

DOSBOX

DOSBOX is an x86 architecture emulator which helps to run older DOS-based programs on modern computers running Windows or Linux. It creates a layer where all DOS programs can run from their own installation directory by mounting a virtual drive.

How to Install DOSBOX in Ubuntu Linux

dosbox software centre

To install DOSBOX in the Ubuntu version older than 16.04, Mint go to Software Center. Search for DOSBOX and click install.

To install DOSBOX in Ubuntu 16.04 LTS and above, open GNOME Software from the dash and search for DOSBOX, then click install.

Dosbox Install from GNOME Software
Dosbox Install from GNOME Software

For other Linux distributions, go to DOSBOX download page.

Setup DOSBOX to run old DOS programs

  • After installation is complete, go to Ubuntu dash/search for DOSBOX.
  • Click DOSBOX icon to start.
  • You should be seeing DOSBOX’s own terminal with a virtual Z:\ Drive.
dosbox running in ubuntu

Now it’s time to run a dos based application in Ubuntu using DOSBOX. For this tutorial, I have used the old TURBO C dos based editor which was used to create C and C++ applications.

  • Create a directory where we would be mounting the drives.
  • Go to your HOME directory (/home/your.user.name/).
  • Create a directory named “dos” (You can choose any name you want)
  • Copy your dos programs – for this example the entire TURBO C files into the newly created directory “dos”.
TURBO C UBUNTU 1
TURBO C ubuntu 2
  • Go back to your DOSBOX terminal and run the below command. This command will mount the “dos” directory contents as virtual drive C:\ in DOSBOX.
mount c /home/your.user.name/dos
  • Go to newly mounted drive using C:\
MOUNT C DRIVE DOSBOX UBUNTU
  • Browse to your application directory executable file (*.exe) and type the same to run. For this example, the TURBO C executable resides in TC\BIN\TC.EXE
  • You can see your application is running inside the DOSBOX emulator.
DOSBOX running TURBO C ubuntu

Links

  • DOSBOX Home Page: home


Arindam

Creator and author of debugpoint.com. Connect with me via Telegram, đť•Ź (Twitter), or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

4 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments