Ubuntu: DOSBox is unable to run c program



Question:

I am using ubuntu 12.04 LTS and I installed DOSBox emulator to run TC. DOSBox is working fine. but when I try to run program on the C drive than DOSBox is closed automatically.

I am using CTRL+F9 to run the program.

See the terminal output

umeshkumar@LABE-1294-0-170:~/Downloads$ dosbox  DOSBox version 0.74  Copyright 2002-2010 DOSBox Team, published under GNU GPL.  ---  CONFIG:Loading primary settings from config file /home/umeshkumar/.dosbox/dosbox-0.74.conf  MIXER:Got different values from SDL: freq 44100, blocksize 512  ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)  MIDI:Opened device:none  DOSBox switched to max cycles, because of the setting: cycles=auto. If the game runs too fast try a fixed cycles amount in DOSBox's options.  

Any help ?


Solution:1

CTRL+F9 is a shourtcut key to kill the dosbox that's why DOSBOX closes eventually on running the programm by using ctrl+f9 . Because DOXbox understand ctrl+f9 as a external command to close the DOSbox

Solution:

  1. Open dosbox and press ctrl+f1 to open the key mapper.
  2. A box will open in which all the keyboard keys are present
  3. Find the SHUTDOWN text in the commands.
  4. Click on SHUDOWN and than click on DEL button below.
  5. Save the changes.
  6. Exit and enjoy...!!!

DOSbox Key Mapper

You can change the configuration file manually by editing the README file.

  1. Go to /usr/share/doc/dosbox.
  2. Find the README.gz file
  3. Extract README.gz to another location.
  4. Find CTRL+F9 entry
  5. Change it from CTRL+F9 to ALT+CTRL+F9.
  6. Now save the file and compress it again named as README.gz
  7. Paste it on /usr/share/doc/dosbox again bu using terminal with sudo
  8. Now enjoy.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »