running a dos program

Asked by irvin

I have a cashbook program that runs in dos. How do I run it in ubunto?
Thankyou,
Irvin

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gabriel Puliatti (predius) said :
#1

You can try using dosbox[1], running FreeDOS[2] under Qemu, or using wine[3].

[1] sudo apt-get install dosbox
[2] http://www.freedos.org/
[3] sudo apt-get install wine

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#2

Or dosemu. These applications are in the universe/multiverse repositories so you will need to enable those, as per the following page:-

https://help.ubuntu.com/community/Repositories/Ubuntu#what

Revision history for this message
irvin (irvin-free) said :
#3

Thankyou,
I have dosemu under applications - other and have added it to the
desktop.
 What now?
Irvin

Revision history for this message
Gabriel Puliatti (predius) said :
#4

Run "dosemu" within a terminal and you should get an instance of FreeDOS.

Revision history for this message
irvin (irvin-free) said :
#5

I opened dosemu but hit a snag. what now please?

rvin@irvin-:~$ dosemu

   DOSEMU will run on _this_ terminal.
   To exit you need to execute 'exitemu' from within DOS,
   because <Ctrl>-C and 'exit' won't work!

   Note that DOS needs 25 lines. You might want to enlarge your
   window before continuing.

   Now type ENTER to start DOSEMU or <Ctrl>C to cancel
enter
The Linux DOSEMU, Copyright (C) 2003 the 'DOSEMU-Development-Team'.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
/usr/share/doc/dosemu/copyright for more details. Use this program
at your own risk!

By continuing execution of this program, you are stating that you
have read the file /usr/share/doc/dosemu/copyright and the above
liability disclaimer and that you accept these conditions.

Enter 'yes' to confirm/continue: yes
ERROR: Unable to open console to evaluate the keyboard map.
Please specify your keyboard map explicitly via the $_layout option

irvin@irvin-:~$

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#6

This is a known issue.

https://launchpad.net/distros/ubuntu/+source/dosemu-freedos/+bug/52857/comments/2

See that comment for the solution.

You can edit the file in question by doing:-

$ sudo gedit /etc/dosemu/dosemu.conf

Hope that helps.

Revision history for this message
S.K.SAYANTH (ar-stec) said :
#7

I HAVE A ubuntu [LIVE AND INSTAAL ] CD, I LIKE IT UBUNTU

   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THANK YOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                                                             S.K.SAYANTH
                                                    <email address hidden>

Revision history for this message
irvin (irvin-free) said :
#8

ERROR: Unable to open console to evaluate the keyboard map.
Please specify your keyboard map explicitly via the $_layout option

I am lost again. After finding the file and adding the extra line was unable to save it.

Also I do not understand the error message above.
Trying to learn but?

Thanks
Irvin

Revision history for this message
Gabriel Puliatti (predius) said :
#9

It is a bug which makes it impossible to autodetect your keyboard layout. Therefore, you must do it yourself. Use the command Alan showed[1], look for the $_layout option and uncomment it, then modify it for your system. If you have a US keyboard, then you should have the following:

$_layout = "us"

[1] sudo gedit /etc/dosemu/dosemu.conf

Revision history for this message
Gabriel Puliatti (predius) said :
#10

Also, if you were unable to save it, it seems you don't have permissions. Remember to use sudo to open the file, and you will be able to modify and save it.

Revision history for this message
irvin (irvin-free) said :
#11

sudo gedit /etc/dosemu/dosemu.conf

## Keyboard related settings
# Keyboard layout: default: 'auto' (which tries to generate the table from
# the current Linux console settings)
# or one of: finnish(-latin1), de(-latin1), be, it, us, uk, dk(-latin1),
# keyb-no, no-latin1, dvorak, pl, po, sg(-latin1), fr(-latin1), sf(-latin1),
# es(-latin1), sw, hu(-latin2), hu-cwi, keyb-user, hr-cp852, hr-latin2,
# cz-qwerty, cz-qwertz, ru, tr.
# $_layout = "auto"
# $_layout = "us"
Thankyou for your help. I have done the above but still get the same message.
What am I doing wrong?

Irvin

Revision history for this message
Gabriel Puliatti (predius) said :
#12

Remove that # in front of $_layout = "us". The # makes everything after it be a comment, which will be ignored by the program when reading the configuration.

Revision history for this message
Ubuntu User (anotherubuntuuser) said :
#13

If these comments solved your problem, please consider closing this request as answered. You can find useful information on managing your support requests here: https://wiki.ubuntu.com/SupportRequests

If you are still having problems, let us know and we'll keep working on them.

Thanks-

Jim Jones

Revision history for this message
irvin (irvin-free) said :
#14

Hi Jim thanks for your help.
irvin@irvin-desktop:~$ dosemu

I run dosemu in a terminal and this is all that happens...

rvin@irvin-desktop:~$ dosemu

irvin@irvin-desktop:~$

Revision history for this message
ehutch (ehutch) said :
#15

Did this ever get fixed? I have installed dosemu, and FreeDOS in edgy with synaptic. I got the keyboard error and edited the /etc/dosemu/dosemu.conf as described above. When running dosemu from a $ prompt stuff flies by on a black terminal session faster than I can read it and then it closes and I am back to the $ prompt.

I tried redirecting the output to a logfile. I doubt that the screen display that followed has anything to do with the problem. I'm guessing that the dosemu command output can't be redirected... here it is anyway. The log was empty as you can see from the bottom....

~$ dosemu >demu.log
ERROR: cpu exception in dosemu code outside of VM86()!
trapno: 0x0e errorcode: 0x00000004 cr2: 0x468a5b2d
eip: 0x468a5b2d esp: 0xbfdfffb5 eflags: 0x00210282
cs: 0x0073 ds: 0x007b es: 0x007b ss: 0x007b
Page fault: read instruction to linear address: 0x468a5b2d
CPU was in user mode
Exception was caused by non-available page
ERROR: Fault handler re-entered! signal=11 _trapno=0xE
ERROR: cpu exception in dosemu code outside of VM86()!
trapno: 0x0e errorcode: 0x00000004 cr2: 0x468a5b23
eip: 0x0807d350 esp: 0x0840a2c0 eflags: 0x00210202
cs: 0x0073 ds: 0x007b es: 0x007b ss: 0x007b
Page fault: read instruction to linear address: 0x468a5b23
CPU was in user mode
Exception was caused by non-available page
~$ cat demu.log

~$

Any ideas???

Thanks,
Ed

Revision history for this message
irvin (irvin-free) said :
#16

O
> Ed
> I never got it going. I have another hd with windows I use for dos.

Irvin
> _______________________________________________________________________
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+ticket/2036

Revision history for this message
Launchpad Janitor (janitor) said :
#17

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
ehutch (ehutch) said :
#18

Thank You for the Note.

I am now using 8.04 Hardy Heron on this machine. The dosemu is still
installed but doesn't seem to work. I have forgotten now why I wanted a
dos session. I think it may have been to run a very old program. I
can't remember. I seem to be getting along without it just fine.

Thanks again.

Ed

Adam Buchbinder wrote:
> Bug #52857 status changed in Baltix:
>
> Confirmed => Incomplete
>
> Status change explanation given by Adam Buchbinder:
>
> Is there still a reason for a Baltix task to be open on this bug?
>
> https://bugs.edge.launchpad.net/baltix/+bug/52857
> "ERROR: cpu exception in dosemu code outside of VM86()!"
>
> This bug is linked to #2036.
> running a dos program
> https://answers.edge.launchpad.net/ubuntu/+question/2036
>
>