Skip to contentSkip to conversation

dosemu won't load

DISCUSSION Larry Alkoff 4 participants 11 messages Nov 9, 2008 – Dec 8, 2008

lore
Share & tools
lore
#0 lore raw

I am using dosemu on a 6 months old machine with Kubuntu 8.04 and it works perfectly.

This week I loaded Kubuntu 8.04.1 on a machine for my wife.
It loaded dosemu the first time with the stock config and autoexec from apt-get intall dosemu but am having some problems.

Both machines are running dosemu 1.4.0+svn.1828-1.

On the first machine that loads without issues, I took the stock freedos config.sys and autoexec.bat in the ~/.dosemu/drive_c directory and added some extra lines that run 4dos and nansi.sys in config.sys and sets the path to my liking in autoexec.bat. I also have some soft links to directories in the drive_c directory.

In my wife's machine the behavior of dosemu seems to have changed.
It will not recognize the config.sys and autoexec.bat in drive_c but only looks at the config.lnk -> /etc/dosemu/freedos/config.sys and similiarly for autoexec.

Also the soft links in drive_c now do not show up.

I've attached my autoexec.bat and config.sys if the list will accept these.

Questions:
1: Has the behavior of dosemu really changed to only recognize the config.sys and autoexec.bat in /etc/dosemu/freedos?

2: How can I get dosemu to load my soft linked directories which should appear in c:?

3. How to loadhigh certain programs like 4dos.com? This dosemu doesn't seem to like devicehigh=. Most importantly I'd like to not load command.com but instead load 4dos which is so much more versatile

Thanks for any help you can give me. My wife used Windows 98 but I am changing her to Linux. She uses some old dos programs like supercalc (spreadsheet) and Q&A (edit and data base program) and probably won't accept Linux unless she can use her ancient programs. She likes the new fast machine though <g>

Larry Alkoff

rem config.sys for DOSEMU + FreeDOS
rem note that the initial "D:" is set to "Z:" at the end SWITCHES=/F
DOS=UMB,HIGH
dosdata=umb
lastdrive=Z
files=40
stacks=0
buffers=10
device=d:\dosemu\ems.sys
devicehigh=d:\dosemu\cdrom.sys install=d:\dosemu\lredir.com z: linux\fs\${DOSEMU_LIB_DIR}/drive_z ro shellhigh=z:\command.com /e:1024 /p

rem lba: config.sys for DOSEMU + FreeDOS
rem note that the initial "D:" is set to "Z:" at the end SWITCHES=/F
DOS=UMB,HIGH
dosdata=umb
lastdrive=Z
files=40
stacks=0
buffers=10
device=d:\dosemu\ems.sys
devicehigh=d:\dosemu\cdrom.sys install=d:\dosemu\lredir.com z: linux\fs\${DOSEMU_LIB_DIR}/drive_z ro rem by lba: shellhigh=z:\command.com /e:1024 /p

rem lba: added this to config.sys.link above
rem ---------------------------------------------

rem uncomment for cdrom support (also autoexec.bat:shsucdx) rem devicehigh=c:\dosemu\cdrom.sys

rem !!!shellhigh=c:\bin\4dos\4dos.com /e:1024 /p

rem device=c:\bin\nansi.sys
rem devicehigh=c:\bin\ansi.sys

rem new devicehigh c:\bin\nansip.sys

rem end lba
rem ---------------------------------------------

#1 lore raw
Quoted 1 line · On Sun, 09 Nov 2008 14:48:08 -0600 Larry Alkoff <[email protected]>…

Also the soft links in drive_c now do not show up.

I create a custom user's desktop and whatnot and put that into /etc/skel. That way all new users automatically get my custom desktop.

I also have a symbolic link in ~/.dosemu/drive_c to a directory under /opt where I keep the common databases that all users access through the dos programs.

I have discovered that if I have a ~/.dosemu/drive_c/link in/etc/skel, then dosemu somehow can't find the symbolic link. "cd c:\link" in a new user's directory. "cd c:\link" gives me a "chdir failed" error.

If I delete ~/.dosemu from the user's home directory, then run dosemu and allow it to create its own ~/.dosemu, then put my batch file and symbolic link into that directory, everything works perfectly. And I have no idea why it would make any difference, but it does.

Do you perhaps have a similar problem? What happens if you remove ~/.dosemu and then run dosemu? Does it work then?

Signature · 2 lines
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
#2 lore raw
Quoted 16 lines · Frank Cox
Quoted 1 line · On Sun, 09 Nov 2008 14:48:08 -0600 Larry Alkoff <[email protected]>…

Also the soft links in drive_c now do not show up.

I create a custom user's desktop and whatnot and put that into /etc/skel. That way all new users automatically get my custom desktop.

I also have a symbolic link in ~/.dosemu/drive_c to a directory under /opt where I keep the common databases that all users access through the dos programs.

I have discovered that if I have a ~/.dosemu/drive_c/link in/etc/skel, then dosemu somehow can't find the symbolic link. "cd c:\link" in a new user's directory. "cd c:\link" gives me a "chdir failed" error.

Quoted 8 lines

If I delete ~/.dosemu from the user's home directory, then run dosemu and allow it to create its own ~/.dosemu, then put my batch file and symbolic link into that directory, everything works perfectly. And I have no idea why it would make any difference, but it does.

Do you perhaps have a similar problem? What happens if you remove ~/.dosemu and then run dosemu? Does it work then?

Thanks for your reply Frank.
All I can say is WOW.

I renamed ~/.dosemu and restarted dosemu.
It created a brand new ~/.dosemu with only autoexec.bat, config.sys and a tmp subdirectory. I then exited and created a soft link to my main bin directory.
When I restarted dosemu, there it was.
To test, I cd to the 4dos directory and started 4dos - it came right up.

The only problem is I cannot exit dosemu by issuing 'exitemu' as normal. The only way I have found to quit doesmu tonight is to:
ps ax |grep dosemu
and then kill the process.

Do know an easier way?

Thank you very very much for your help on this.
Who would have figured!

Larry

#3 lore raw
In reply to Frank Cox
Quoted 16 lines · Frank Cox
Quoted 1 line · On Sun, 09 Nov 2008 14:48:08 -0600 Larry Alkoff <[email protected]>…

Also the soft links in drive_c now do not show up.

I create a custom user's desktop and whatnot and put that into /etc/skel. That way all new users automatically get my custom desktop.

I also have a symbolic link in ~/.dosemu/drive_c to a directory under /opt where I keep the common databases that all users access through the dos programs.

I have discovered that if I have a ~/.dosemu/drive_c/link in/etc/skel, then dosemu somehow can't find the symbolic link. "cd c:\link" in a new user's directory. "cd c:\link" gives me a "chdir failed" error.

Quoted 8 lines

If I delete ~/.dosemu from the user's home directory, then run dosemu and allow it to create its own ~/.dosemu, then put my batch file and symbolic link into that directory, everything works perfectly. And I have no idea why it would make any difference, but it does.

Do you perhaps have a similar problem? What happens if you remove ~/.dosemu and then run dosemu? Does it work then?

All ok. exitemu now working.
My world is complete.
Thanks very much Frank.

Larry

#4 lore raw

Start DOS application from linux

In reply to Larry Alkoff

I've done this before, but I've forgotten how. I want to start a DOS application from a linux shell script. I want the script to start xdosemu and then start the application (blood.exe) and then when I exit the application I want the script to exit xdosemu. I have done this before, but it's been a while and I've forgotten how I did it. Can someone refresh my memory?

Thanks,
Rick Knight

#5 lore raw

Re: Start DOS application from linux

Quoted 8 lines · Rick Knight

I've done this before, but I've forgotten how. I want to start a DOS application from a linux shell script. I want the script to start xdosemu and then start the application (blood.exe) and then when I exit the application I want the script to exit xdosemu. I have done this before, but it's been a while and I've forgotten how I did it. Can someone refresh my memory?

Thanks,
Rick Knight

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Nevermind, I found what I was looking for. -E

Rick

#6 lore raw

Re: Start DOS application from linux

In reply to Rick Knight
Quoted 6 lines · On Sun, 23 Nov 2008 13:30:42 -0800 Rick Knight <[email protected]> wrote:

I've done this before, but I've forgotten how. I want to start a DOS application from a linux shell script. I want the script to start xdosemu and then start the application (blood.exe) and then when I exit the application I want the script to exit xdosemu. I have done this before, but it's been a while and I've forgotten how I did it. Can someone refresh my memory?

/usr/bin/dosemu -dumb -input 'c:\\mybat.bat\r'

Put "exitemu" as the last line in mybat.bat.

Signature · 2 lines
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
#7 lore raw

Re: Start DOS application from linux

Quoted 4 lines · Frank Cox

On Sun, 23 Nov 2008 13:30:42 -0800
Rick Knight <[email protected]> wrote:

Quoted 8 lines
Quoted 2 lines

I've done this before, but I've forgotten how. I want to start a DOS application from a linux shell script. I want the script to start xdosemu and then start the application (blood.exe) and then when I exit the application I want the script to exit xdosemu. I have done this before, but it's been a while and I've forgotten how I did it. Can someone refresh my memory?

/usr/bin/dosemu -dumb -input 'c:\\mybat.bat\r'

Put "exitemu" as the last line in mybat.bat.

Frank,

I've tried this. The game starts and I can hear the sounds, but I don't get a window or full screen game image. Just sounds.

Thanks,
Rick

#8 lore raw

Re: Start DOS application from linux

Quoted 2 lines · On Sun, 23 Nov 2008 14:54:33 -0800 Rick Knight <[email protected]> wrote:

I've tried this. The game starts and I can hear the sounds, but I don't get a window or full screen game image. Just sounds.

That would be because that line is intended to be used for unattended and automatic stuff like a cron job.

Signature · 2 lines
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
#9 lore raw

Re: Start DOS application from linux

In reply to Rick Knight

Hi Frank and Rick,

The line will (likely) work as Rick wants it to, as long as the "-dumb" is removed. (It worked for me.)

Try using: /usr/bin/dosemu -input 'c:\\mybat.bat\r'

jamie

Quoted 25 lines · Rick Knight
Quoted 4 lines · Frank Cox

On Sun, 23 Nov 2008 13:30:42 -0800
Rick Knight <[email protected]> wrote:

Quoted 8 lines
Quoted 2 lines

I've done this before, but I've forgotten how. I want to start a DOS application from a linux shell script. I want the script to start xdosemu and then start the application (blood.exe) and then when I exit the application I want the script to exit xdosemu. I have done this before, but it's been a while and I've forgotten how I did it. Can someone refresh my memory?

/usr/bin/dosemu -dumb -input 'c:\\mybat.bat\r'

Put "exitemu" as the last line in mybat.bat.

Frank,

I've tried this. The game starts and I can hear the sounds, but I don't get a window or full screen game image. Just sounds.

Thanks,
Rick

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#10 lore raw

Re: Start DOS application from linux

Thanks Jaime,

What I found works for me is "/usr/bin/xdosemu -w -E c:\mybat.bat"

Thought I had posted here, maybe not.

Thanks again,
Rick

Quoted 36 lines · Jamie

Hi Frank and Rick,

The line will (likely) work as Rick wants it to, as long as the "-dumb" is removed. (It worked for me.)

Try using: /usr/bin/dosemu -input 'c:\\mybat.bat\r'

jamie

Quoted 25 lines · Rick Knight
Quoted 4 lines · Frank Cox

On Sun, 23 Nov 2008 13:30:42 -0800
Rick Knight <[email protected]> wrote:

Quoted 8 lines
Quoted 2 lines

I've done this before, but I've forgotten how. I want to start a DOS application from a linux shell script. I want the script to start xdosemu and then start the application (blood.exe) and then when I exit the application I want the script to exit xdosemu. I have done this before, but it's been a while and I've forgotten how I did it. Can someone refresh my memory?

/usr/bin/dosemu -dumb -input 'c:\\mybat.bat\r'

Put "exitemu" as the last line in mybat.bat.

Frank,

I've tried this. The game starts and I can hear the sounds, but I don't get a window or full screen game image. Just sounds.

Thanks,
Rick

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html