DOS Emulation Under Linux - a Simple Guide 299
David Precious writes "With just a little work, it's possible to get your Linux system to run DOS applications with very little trouble. Whether you need to run some legacy corporate application, or just want to play some of those old classic DOS games, it's easy to get going. To make it easy, I've produced a simple guide to explain it. Hopefully it'll be of use to some people."
Comment removed (Score:5, Funny)
Re:Duke Nukem 3D (Score:2)
Re:Duke Nukem 3D (Score:5, Interesting)
By the way, does anyone know if there is a free program like DOSEMU/DOSBox for MacOS?
Re:Duke Nukem 3D (Score:4, Interesting)
Re:Duke Nukem 3D (Score:2)
DOSBox and Mac OS X. (Score:5, Informative)
There is a DOSBox package [sourceforge.net] in Fink [sourceforge.net].
Re:DOSBox and Mac OS X. (Score:2)
Re:Duke Nukem 3D (Score:2)
Easier way to get DOS running on a Linux box (Score:2)
Here's my easier way to accomplish the same thing:
DOSBox (Score:2)
Re:Duke Nukem 3D (Score:5, Informative)
The same goes for all the games mentioned in the guide - Quake, Wolf3D, Doom all have versions that can be run natively on GNU/Linux and some are also greatly enhanced. Schorched Earth's original version isn't but several remakes are. The Linux Game Tome [happypenguin.org] is a good starting place if you wish to obtain these.
It's interesting how it might be easier to run legacy Dos apps in GNU/Linux than in Windows (XP) these days. My friend's been dreaming of running a certain old dos game on his WinXP system, but all he has is Dosbox which doesn't run it and even if it did, it would be unplayably slow.
Re:Duke Nukem 3D (Score:5, Funny)
It doesn't run Duke Nukem 3D Forever.
It does run Duke Nukem 3D however.
It can run Duke Nukem 3D forever.
It won't run Duke Nukem 3D smooth or fast or whatever
And if DOSemu doesn't work for some reason . . . (Score:5, Informative)
Re:And if DOSemu doesn't work for some reason . . (Score:2, Interesting)
---
Re:And if DOSemu doesn't work for some reason . . (Score:5, Informative)
Re:And if DOSemu doesn't work for some reason . . (Score:2)
Re:And if DOSemu doesn't work for some reason . . (Score:2, Informative)
w00t! (Score:2)
Keen!! (Score:5, Interesting)
-Cyc
Re:Keen!! (Score:5, Informative)
Quake?? Doom?? (Score:4, Informative)
Re:Quake?? Doom?? (Score:2)
Re:Quake?? Doom?? (Score:2)
Re:Quake?? Doom?? (Score:3, Informative)
so go take a nap.. THEN LAUNCH THE MISSILES!"
here's a link to the swf [cox.net] referred to, for those of you who don't have friends that compulsively forward everything funny they come across..
Re:Quake?? Doom?? (Score:2)
Oh joy... (Score:2, Funny)
It gets worse (Score:2)
Yes, my head did hurt making that happen. It appears to be something to do with WINE's multiple parameter handling being dodgy.
Oh no (Score:5, Funny)
Re:Oh no (Score:2, Interesting)
Re:Oh no (Score:2, Funny)
Now if only Windows could do the same thing, right (Score:5, Funny)
Re:Now if only Windows could do the same thing, ri (Score:5, Funny)
Re:Now if only Windows could do the same thing, ri (Score:2)
Re:Now if only Windows could do the same thing, ri (Score:2)
Jon.
Re:Now if only Windows could do the same thing, ri (Score:2, Informative)
I thought it rather amusing that all the classic old DOS games that the guy mentioned are in fact available as source ports for Linux (and probably most other OSs).
But in case you didn't know, you can get a very damn cool version of Scorched Earth in 3d here: http://www.scorched3d.co.uk/ [scorched3d.co.uk] (Windows, Mac OSX, Linux, source, etc.)
I played it with a bunch of friends at a LAN party recently, several of whom had played the DOS Scorched Earth before (I hadn't). Fan-fucking-tastic game. 'Twas a very satisfyin
Re:Now if only Windows could do the same thing, ri (Score:2, Interesting)
Re:Now if only Windows could do the same thing, ri (Score:2)
Industrial Programs? (Score:5, Insightful)
Some programs that "just work" are really a pain to change. I support a few of these that run on dos and I don't think there is a will to port them or replace them.
At this point Linux is much better maintained than dos and it would be a better fit if the programs ran perfectly? I know I'd like to dump dos.
LS
Re:Industrial Programs? (Score:4, Informative)
Then again, I could be wrong... I need sleep.
Re:Industrial Programs? (Score:2)
Old code that will no longer compile and that no one wants to fix to compile is a growing problem. There are some executables I'd like to run but they are not statically linked so the libraries are needed as are other resources.
I think that some of the older linux systems just won't work on new hardware. I've not tried to get one to work that was older than 2.2.x.
Actually this is more complex than I thought.
Re:Industrial Programs? (Score:3, Informative)
Or do it the easy way. (Score:5, Informative)
Enter root password
search for dos.
Tick the dosbox box. Click install.
All the depencancies are automagically resolved and your done in 10 seconds.
Then click
K > Applications > Emulators > Dosbox
Then volia, the c prompt is here haunt you.
Silly geeks, why do you make your life so hard when it can be so easy now days.
Re:Or do it the easy way. (Score:5, Informative)
# apt-get install dosemu
Re:Or do it the easy way. (Score:2)
Though if you have DOS applications that you need to run, then surely you also have DOS...
(you are allowed to use apt-cache to find such things, in this case apt-cache search freedos, or apt-cache search dosemu, or apt-cache search dos will work. Depending on how much clutter you wish to soft through...)
Re:Or do it the easy way. (Score:2)
deb ftp://mirror.aarnet.edu.au/pub/debian-non-us sid/non-US main non-free contrib
It's in contrib.
Re:Or do it the easy way. (Score:3, Informative)
Re:Or do it the easy way. (Score:3, Insightful)
Grandma can use Redhat/Mandrake/Knoppix/whatever.
And my USB mouse worked by plugging it in, for what it's worth...
Re:Or do it the easy way. (Score:5, Informative)
urpmi dosbox
Re:Or do it the easy way. (Score:4, Funny)
tar -zxvf dosbox.tar.gz
cd dosbox
Spend 30 minutes to resolve dependencies.
make
sudo make install
Spend 30 more minutes resolving a segfault.
Rebuild glibc with debugging support.
Rebuild dosbox.
This time it works with no segfault, but 50 other apps just broke because you rebuilt glibc.
You know, real men suck. Maybe it's time I try out one of these new-fangaled distribution thingies...
Re:Or do it the easy way. (Score:2)
or
emerge dosbox (and dosbox-cvs for that newest version)
Gentoo [gentoo.org] has a nice collection of emulators.
Re:Or do it the easy way. (Score:2)
Re:Or do it the easy way. (Score:2)
?
Re:Or do it the easy way. (Score:2)
emerge dosbox
Re:Or do it the easy way. (Score:2)
And that was so easy that i now have to wait because
what's the big deal? (Score:5, Insightful)
Sure, I haven't touched DOSEMU since about 1998 but back then I remember all sorts of problems.
Even now, the article mentions nothing about setting up sound, midi playback, etc, is this all handled automatically by dosemu installer (doubt it).
This guide seems to be written by someone who just found DOSEMU yesterday and didn't know anyone used it for years before.
I mean there's even DOSEMU-HOWTO [tldp.org] written which is the official linux dosemu howto, what's wrong with that one? It seems to be even kept up-to-date (as popular dos is these days, anyhow).
And most of the games he mentions on the site have way better native linux ports...
Re:what's the big deal? (Score:2)
Re:what's the big deal? (Score:2)
PCEmu (Score:3, Interesting)
Re:PCEmu (Score:5, Interesting)
The trick is, that when writing an emulator, you don't need to write a BIOS in 16 bit code. Instead a BIOS implementation is written in 32 bit code, that can execute outside the precious low end address space. Then I just need enough entry points from 16 bit code to 32 bit code. An entry points requires an instruction that will trap from virtual 86 mode to 32 bit user mode. I decided to use the HLT instruction which is only one byte. Because of the segment:offset addressing there are 4096 different ways to address this single byte, that means I have 4096 entry points which is a lot more than I need. The entry point for reboot is sometimes accessed through at least two different addressings, so I avoided to place my HLT instruction there and instead placed the conventional five bytes long far jump instruction there, which jumps to one of my entry points. After this five bytes instruction are eight bytes reserved for the BIOS date written as month / date / year. The last three bytes are three single byte instructions HLT IRET RETF. The HLT and IRET are actually used, the RETF I just placed there because it might come in handy. Because of the DOS memory management and the reboot entry point, there is no way to make the ROM smaller than 16 bytes.
To actually protect the ROM against writing I mark the entire page read only, though it is only the last 16 bytes I really need to protect. This means any write to the first 4050 bytes of this page will trap, those are the traps that I needed to fix in the kernel because they would Oops if triggered by a stack access by an instruction emulated in the kernel. All those traps of course slows down execution, so I might want to sacrifice the last 4050 bytes for a bit of performance. I'm still looking for an efficient way to access the last bytes. If I could put an upper limit to the address accessed by virtual 86 mode, I could switch between a limit just below the ROM and a write protected page, which I belive would speed up execution. Together with my emulator I have put a GPL'ed UMM driver that works with my emulator, quite conveniently this driver does not support the last 4050 bytes of UMB that have been causing problems anyway. EMM386 doesn't work with my emulator, and never will because of braindead Intel design.
Re:PCEmu (Score:3, Interesting)
In fact, dosemu already had some interesting possibilities for saving memory. I wrote the network driver for dosemu, it emulates a "PC/TCP packet driver". In a normal DOS system, that driver would be loaded in high memory, but in dosemu there was only a small block of code residing in the BIOS area (required because of the interface definition for packet drivers), and the actual driver code is 32bit.
So, dosemu can be considered to have "PC/TCP packet driver support in the BIOS", and no m
DOSemu (Score:5, Funny)
Thinking about DOSemu and DOSbox remind me of an old article in Wired about the Turbo Switch on computers.
"Having a turbo switch on your computer is kind of like saying 'I have this really cool ferrari that when I press a button it turns into a pinto'".
I downloaded Dosbox and played some of the old classics at a sluggish pace... They say that an XP 1800 with DosBox is the equivalent of a 386SX-25.
"Look ma! I have this cool little program that makes my Athlon 64 3200 into a 386SX-40! Isn't that swell?"
The sad thing is... I don't think I've ever been so happy about finding a program online.
I suck.
Re:DOSemu (Score:2)
DOSemu is not like VMware or even Virtual PC.
Re:DOSemu (Score:3, Informative)
Actually, there were a large number of DOS applications that were coded in assembly for a 4.77Mhz PC. Faster computer would make these programs not work - and some were actual business applications and programs that interfaced with hardware that were written this way. The idea that PC archetecture would be around for 20+ years did not even cross the programmer's mind back then! Originally the purpo
Re:DOSemu (Score:2)
When you get redraw glitches with that, it's often hard to see what's going on. Pressing the turbo button on our 486-66 machines would turn them into a very slow PC, which made it really obvious where the redraw was screwing up :-)
Re:DOSemu (Score:2)
Only if you think cheating is a fun way to play games.
Or. (Score:2)
Best option... (Score:4, Insightful)
Why this news? (Score:5, Insightful)
OK, I'm not getting why this article made the front page. The "tutorial" seems to consist of saying "download the software and install it", which shouldn't be too hard to figure out on one's own. The bulk of the tutorial content is pointers to four standard DOS games.
BTW, on Debian, the installation is "apt-get install dosemu-freedos". I was about to gloat about how easy that is, but it looks pretty darn easy under Slackware also. :-)
Scorched Earth (Score:2, Interesting)
The author of the guide says he used to play Scorched in his Sixth Form, and the network admin would join in too... exactly like in my school! This game must have been more popular than I first thought. If you've never played it, you really should...
Re:Scorched Earth (Score:2)
DOSEMU / FreeDOS useful for embedded support (Score:5, Informative)
Only now, we can use DOSEMU to run them under Linux and get the benefit of real development environment when supporting legacy apps. We can open a bash shell and use Perl, gnu make, emacs/vim, etc to drive development, then have a DOSemu / FreeDOS window to drive download and debug.
It can be quite difficult automating the Windows versions of these tools to that same level. Most of our projects use Windowes tool (running in VMware on Linux), but we did one two years ago hosted on DOSEMU and using Bytecraft's (now) excellent compiler for the PIC chips.
Best of both worlds, and many, many thanks to all the hackers that made it work so well.
- Barrie
Re:DOSEMU / FreeDOS useful for embedded support (Score:2)
It's a bit ironic... (Score:4, Informative)
Re:It's a bit ironic... - Try VDMsound (Score:5, Informative)
A lame question, but... (Score:3, Interesting)
Re:A lame question, but... (Score:3, Informative)
You could instead use Bochs to emulate an x86.
Re:A lame question, but... (Score:2)
Maybe I can put that stack of floppies to use (Score:2, Interesting)
Right now, I've got a huge box full of old floppies for Dune, ChessMaster, Wolfenstein, and a bunch of other old games that I spent way too much money on, considering all they can do now is collect dust.
Now if they only had an emulator for the Win95 games that no longer work in 2000/XP... Somebody aught to support these commercial products that no longer have an OS to run on!
Gentoo users: (Score:4, Informative)
Re:Gentoo users: (Score:2)
Possible to get full VESA or 'x' video card? (Score:2, Interesting)
The reason I ask is for the old venerable OrCAD 386 SDT and PCB programs... 800x600 just doesn't cut it, and that old program is still way ahead of what they've put out today in terms of ease of use, functionality and keyboard support.
I know about Eagle's cross-platform abilities and all the other win32-only ones but to be honest, none of them seem to have that right mix of keyboard use, navigation and plain old workability. I'm rapidly running out of systems that OrCAD 386 will run on. :-(
I am greatly saddened... (Score:4, Insightful)
It would be nice to run non-bloated code again. I used to be amazed at the speed of spell-checking in WP 5.2 on a 286, it would most probably still beat Word 2000 on my Athlon 2.6GHz. Life was much less troublesome then, before truly abominable software, designed by idiots, for idiots, became dominant.
Now, if DOS could be combined with Unix version 7, that would be almost perfection.
My DosEmu Experience (Score:2, Funny)
tar xzvf dosemu-1.1.99.1.tgz
cd dosemu-1.1.99.1/
make
ERROR:
In file included from
from
from
from int.c:44:
The article is lacking... (Score:2)
Mechwarrior 2 (Score:2)
ok, it's not a big deal to install it (Score:2, Interesting)
Now all I need is a CP/M emulator. (Score:2)
(Assuming the adhesive on any of those old floppies survived well enough to extract the contents.)
My personal favorites (off the top of my head) (Score:3, Informative)
Commander Keen
Scorched Earth/TANKS!
Hugo Whodunit (wish I could find a copy of those!)
Raptor: Call of the Shadows/Raptor 2
Descent
Duke Nukem 3D
Command and Conquer (Gold)
Warcraft I and II
Oher than the games listed above, I pretty much missed out on the DOS gaming era - I didn't get a Nintendo until '93 or so, and quite a while longer until I got a PC ('96?).
Re:WP 5.1!!! (Score:2)
From one WP-5.1 user to another (Score:3, Informative)
I still use it on DOSemu (easy, start it with -c -k and all the function keys work as expected.)
Re:WP 5.1!!! (Score:5, Informative)
There were several versions of the graphical WordPerfect available for Linux.. google and you will find a guide to getting them running on a modern distro.
Unfortunately, only the very crippled personal version is available for free, and since Corel killed all their Linux stuff, you can't get it anymore.
Bollocks (Score:2)
Re:WP 5.1!!! (Score:3, Funny)
Re:WP 5.1!!! (Score:3, Informative)
Actually
About 14 years ago I remember writing a library for outputting charts in
Re:WP 5.1!!! (Score:3, Insightful)
LOL! How little things have really changed. My current era MS Word, Lotus WordPro and WP 11 all have problems with formatting when I switch from my Lexmark to a Canon ink jet as the Canon supports edge to edge printing where the Lexmark doesn't. WP would have font issues - if a printer wouldn't have a given font in woul
Re:Isn't this just ... (Score:3, Funny)
Re:Isn't this just ... (Score:2)
now you just gotta RTFA.
Re:Isn't this just ... (Score:2)
Re:Isn't this just ... (Score:5, Funny)
Re:Abandomware (Score:5, Informative)