forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DosEMU How-To

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Tips & Tricks
View previous topic :: View next topic  
Author Message
ellisol
Xplorer


Joined: 21 Dec 2002
Posts: 96
Location: Griswold, IA

PostPosted: Fri Jan 17, 2003 2:30 pm    Post subject: DosEMU How-To Reply with quote

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
View user's profile Send private message
lpbbear
Xendrosian
Xendrosian


Joined: 19 Nov 2002
Posts: 1794

PostPosted: Fri Jan 17, 2003 3:25 pm    Post subject: thanks Reply with quote

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. Smile
Back to top
View user's profile Send private message
Matthew Tan Creti
Xplorer


Joined: 23 Jan 2003
Posts: 90
Location: Iowa City, Iowa

PostPosted: Fri Jan 24, 2003 7:50 pm    Post subject: Reply with quote

Great How-To. Very Happy

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. Very Happy
Back to top
View user's profile Send private message
ellisol
Xplorer


Joined: 21 Dec 2002
Posts: 96
Location: Griswold, IA

PostPosted: Fri Jan 24, 2003 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
dsptech
Xandrosianling
Xandrosianling


Joined: 21 Dec 2002
Posts: 359

PostPosted: Sat Jan 25, 2003 6:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
ellisol
Xplorer


Joined: 21 Dec 2002
Posts: 96
Location: Griswold, IA

PostPosted: Sun Jan 26, 2003 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
dsptech
Xandrosianling
Xandrosianling


Joined: 21 Dec 2002
Posts: 359

PostPosted: Sun Jan 26, 2003 3:06 pm    Post subject: Reply with quote

Yup, that did it. Very Happy Working fine now.
Back to top
View user's profile Send private message
aldube
Xandrosianschwing


Joined: 02 Jan 2005
Posts: 2332
Location: Calgary, Alberta, Canada

PostPosted: Sun Jan 23, 2005 7:25 pm    Post subject: Did you guys ever try dosbox? Reply with quote

I´m not a great fan of dosemu; however, I find dosbox has better application support and with the frontend GUI it´s a piece of cake configure. Dosbox can be downloaded from debian unsupported and the frontend from:
http://dosbox.sourceforge.net/download.php?main=1&begaming_website_session=3bed1d76bdf6381b7bbd1ae683f5d93c
_________________
Linux simply works for me...
Registered Linux User 384461
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Tips & Tricks All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group