| View previous topic :: View next topic |
| Author |
Message |
ellisol Xplorer
Joined: 21 Dec 2002 Posts: 96 Location: Griswold, IA
|
Posted: Fri Jan 17, 2003 2:30 pm Post subject: DosEMU How-To |
|
|
I setup dosemu using a Dos 6.22 boot disk I had laying around. I have not tried it with FreeDos or any other flavors from M$.If you are interested I can e-mail you the necessary Dos 6.22 files. Just e-mail me at ellison@netins.net .
Make sure if you use files from a boot disk that you modify any references to the A:\ drive in batch files, etc. At the end of this How-To is a file list and a print out of my config.sys and autoexec.bat.
I have not had any luck editing my Dos batch files with Xandros. Each time I do the editor I use (vi) creates weird line feeds and adds extra characters. Until I get dosemu running I use a Dos editor on another computer to edit them. After you get dosemu running you can use the regular Dos editor (if you copied it to your dosemu directory) or I use a little program called Ted.
Here goes:
1.Install dosemu and xfonts-dosemu using Xandros update
2.As root create a directory named dos under /var/lib/dosemu
3.As root using XFM or from the console give everyone the read/write/execute rights to the dos directory. (chmod 777 /var/lib/dosemu/dos)
4.As a user copy your dos files to /var/lib/dosemu/dos
5.As root edit /etc/dosemu/dosemu.conf. Find the following lines and modify them as noted.
$_hdimage = “freedos:ro” ---> $_hdimage = “dos”
$_X_font = “' ----> $_X_font = “vga”
6.As a user copy /usr/lib/dosemu/commands/generic.com to /var/lib/dosemu/dos
7.As a user rename /var/lib/dosemu/generic.com to exitemu.com
8.As a user open a console window and type dosemu.bin and hit enter
9.Answer yes to the conditions
10. Type exitemu to exit dos
11. Go to your desktop and create a shortcut to /usr/bin/xdosemu
12. Double click on the xdosemu icon and your dos box should appear. Use exitemu to get out of dos.
Files needed in the dos directory
autoexec.bat
command.com
config.sys
drvspace.bin
exitemu.com
io.sys
mirror.fil
msdos.sys
ted.com (dos editor)
contents of config.sys
lastdrive=z
contents of autoexec.bat
@echo off
cls
path=c:\
One gotcha that can create problems is the permissions on the files in the /var/lib/dosemu/dos directory. You need at least R/W on most of these files.
Hope this helps someone. Thanks to all who have posted to this forum it has helped me a great deal.
Larry |
|
| Back to top |
|
 |
lpbbear Xendrosian

Joined: 19 Nov 2002 Posts: 1794
|
Posted: Fri Jan 17, 2003 3:25 pm Post subject: thanks |
|
|
Thank you for posting this HowTo. I had been looking for a succinct howto on setting this up for quite a while. I am looking forward to trying it.  |
|
| Back to top |
|
 |
Matthew Tan Creti Xplorer
Joined: 23 Jan 2003 Posts: 90 Location: Iowa City, Iowa
|
Posted: Fri Jan 24, 2003 7:50 pm Post subject: |
|
|
Great How-To.
My dad has been reluctant to move away from Windows in the office because he uses an old DOS database system.
To prove to him that Xandros was compatible, I mounted the office drive in Linux. Then using FreeDOS I added the line to autoexec.bat:
lredir d: linux\fs/home/user/Desktop/OfficeDrive attrib = READ/WRITE
The problem is that FreeDOS is not running perfectly. Since you are using real MSDOS I was wondering if you can do this same thing.
I think I am realy close to getting my dad to switch away from MS. I already showed him OpenOffice.org and now he wonders why anyone would pay for MSOffice.  |
|
| Back to top |
|
 |
ellisol Xplorer
Joined: 21 Dec 2002 Posts: 96 Location: Griswold, IA
|
Posted: Fri Jan 24, 2003 10:50 pm Post subject: |
|
|
I don't have any experience with that command. I access a share on my Win2k server using the "Mount network share" in XFM. The share name is "d" and it has my Quicken database. I create the mount point under the dos directory. Here is the layout of my Dosemu directory. (/var/lib/dosemu)
+Dosemu
-----+dos
-----------+d.............(Windows 2000 network share)
-----------+Quicken7
-----------+Quicken
This allows me to see my Windows network in dosemu but not my local drive which is what you may be wanting to do.
Larry |
|
| Back to top |
|
 |
dsptech Xandrosianling

Joined: 21 Dec 2002 Posts: 359
|
Posted: Sat Jan 25, 2003 6:33 pm Post subject: |
|
|
Help!
xandros:/var/lib/dosemu/dos$ dosemu.bin
Running unpriviledged in low feature mode
kernel CPU speed is 2134000991 Hz
Running on CPU=586, FPU=1
In file included from /usr/lib/dosemu/global.conf:113
from :113
Error in /etc/dosemu/dosemu.conf: (line 091) parse error
Error in /etc/dosemu/dosemu.conf: (line 133) parse error
2 error(s) detected while parsing the configuration-file
These are my edited lines...
line 091...
$_X_font =""----> $_X_font ="vga" # basename from /usr/X11R6/lib/X11/fonts/misc/*
line 133...
$_hdimage = "freedos:ro"---> $_hdimage = "dos" # list of hdimages under DOSEMU_LIB_DIR |
|
| Back to top |
|
 |
ellisol Xplorer
Joined: 21 Dec 2002 Posts: 96 Location: Griswold, IA
|
Posted: Sun Jan 26, 2003 11:08 am Post subject: |
|
|
Sorry about that. I should have been more specific. Your line should read:
$_hdimage = “dos”
$_X_font = “vga”
Hope this helps.
Larry |
|
| Back to top |
|
 |
dsptech Xandrosianling

Joined: 21 Dec 2002 Posts: 359
|
Posted: Sun Jan 26, 2003 3:06 pm Post subject: |
|
|
Yup, that did it. Working fine now. |
|
| Back to top |
|
 |
aldube Xandrosianschwing
Joined: 02 Jan 2005 Posts: 2332 Location: Calgary, Alberta, Canada
|
|
| Back to top |
|
 |
|