Running DOS Programs on Linux: Duke Nukem Lives!
If I play video games they're usually pretty low tech ones. One of the few games I miss from the old days is Duke Nukem, and I'm talking about the Duke before he went 3D. If you have an old DOS game that you'd like to run, or for that matter any old DOS program, check out DOSBox. Even if you don't have any DOS programs that you'd like to run, you might want to try downloading some of the old DOS games that are now available free online.
DOSBox is a DOS emulator that runs under Linux as well as OS X and Windows. To quote from the website:
DOSBox is a DOS-emulator that uses the SDL-library which makes DOSBox very easy to port to different platforms. DOSBox has already been ported to many different platforms, such as Windows, BeOS, Linux, MacOS X...
DOSBox also emulates CPU:286/386 realmode/protected mode, Directory FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with older games...
DOSBox is fairly easy to use, if it's not included in your distro's repo (openSuSE has it), download it here. Once it's installed just type dosbox. When the DOSBox window appears the first thing you have to do is mount the directory that contains your DOS program as a DOS drive. You do this by typing a mount command in the DOSBox window, for example I did:
mount c ~/bindirs/dukenukem/DUKE
To start your DOS program change to the drive that you just mounted and type the name of the program:
And now you're playing Duke Nukem, or possibly doing something useful.
If you don't have a copy of Duke Nukem you can download it here. I already had a copy that I had saved years ago but I did download a copy of Duke Nukem 2. This required a few installation steps before I was able to run. Under Linux:
$ cd ~/bindirs/dukenukem $ mkdir DUKE2 $ cd DUKE2 $ unzip ~/tar/d/dnukem2.zip $ dosbox
Then in the DOSBox window:
mount c ~/bindirs/dukenukem/DUKE2 c: install.bat nukem2.exe
Note that this actually ended up installing it in ~/bindirs/dukenukem/DUKE2/DUKE2 but this is easy enough to move around from Linux to eliminate the extra DUKE2 from the path.
Running on a Quad Core Phenom, DOSBox's performance was good: I encountered no performance problems with video or sound. I also noticed that while running it didn't appear to require any more CPU than any other program I tend to use so I suspect performance should be good on most modern systems.
Mitch Frazier is an Associate Editor for Linux Journal.
Practical Task Scheduling Deployment
July 20, 2016 12:00 pm CDT
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.Register Now!
- Stunnel Security for Oracle
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- SUSE LLC's SUSE Manager
- SourceClear Open
- Managing Linux Using Puppet
- My +1 Sword of Productivity
- Google's SwiftShader Released
- Parsing an RSS News Feed with a Bash Script
- Non-Linux FOSS: Caffeine!
- SuperTuxKart 0.9.2 Released
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide