DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DOSbox in Linux [HOW TO]

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    DOS Games Discussion Forum Index -> Get Games to Work
Author Message
wardrich
lawl catz r lawlz
lawl catz r lawlz


Offline
Joined: 14 Sep 2002
Posts: 3361
Location: Ontario Canada

PostPosted: Sat Oct 25, 2008 1:07 am     Post subject: DOSbox in Linux [HOW TO] Reply with quote

Notes:
This was tested with Ubuntu 8.04LTS (Hardy Heron)
I've basically shamelessly ripped off Dosraider's guide, but changed a few words and instructions here and there. Shit-Eating Grin


If you're reading this it means you have discovered a simple fact:
You can't run dosgames in Linux.
Luckily there is help: Dosbox.
Dosbox will emulate a dos environment, so that the dosgames can run through it. It will handle all those dos instructions that Linux lacks.
--> It is a safe to use program, it will NOT harm your linux partition.

This is meant as a short intruction to help you on the way with that program, so that you can play most of those ol'gems in linux. It's not meant as an elaborate nor complete howto. If you need more explainations please use the Get Games To Work forum.

Before posting for help:
-> Read the dosbox readme. (/usr/share/doc/dosbox/README.gz)
-> Use the forum search, plenty games have already a topic with the needed solutions.


If you still need help:
-> Give your system specs (OS-HARDWARE).
-> State as clearely as possible your problem.
-> If you get an error message post it as correctly as you can.
-> Post what you did up to now to get your game running.
-> Post your mount lines, command lines you use to get the game running, the setup choices you made .....
-> Please don't forget to post about WHAT game you need help for.
-> Full original game? Downloaded? ISO? Ripped one? Downloaded from one of our sites?


First steps:
-> Download the latest dosbox version from your repository:
$ sudo apt-get install dosbox
-> You should create a directory in your home for your games: $ mkdir ~/games
-> You need to make a file in ~ to store your configuration settings:
$ touch ~/.dosboxrc
-> The repository didn't add it in automatically, so I had to build it from the bottom up (not that it's a lot of work)...

Here's mine:

Code:

[autoexec]
# Lines in this section will be run at startup.
# This is a good place to put your mount lines  amongst other things.
# If you want it to automatically switch to a specific mount upon startup add
# [drive]: to the bottom of your mount lines, where [drive] is the letter of the drive you want
# it to automatically go to.
mount x ~/games/


Save and exit.
Run dosbox, if you done it all correctly this is what you will see:



**If you get an error message, you made some mistakes, check everything and correct where needed.

Basic dosbox sound settings

The most compatible soundsettings in dosgames with a default dosbox configuration are:
Soundblaster or Soundblaster 16

Adress 220
IRQ 7
DMA 1
HDMA 5

Midi adress 330.

Handy dosbox keystrokes:
dosbox readme wrote:

================
5. Special Keys:
================

ALT-ENTER Switch to full screen and back.
ALT-PAUSE Pause emulation.
CTRL-F1 Start the keymapper.
CTRL-F4 Change between mounted disk-images. Update directory cache for all drives!
CTRL-ALT-F5 Start/Stop creating a movie of the screen. (avi video capturing)
CTRL-F5 Save a screenshot. (png)
CTRL-F6 Start/Stop recording sound output to a wave file.
CTRL-ALT-F7 Start/Stop recording of OPL commands.
CTRL-ALT-F8 Start/Stop the recording of raw MIDI commands.
CTRL-F7 Decrease frameskip.
CTRL-F8 Increase frameskip.
CTRL-F9 Kill DOSBox.
CTRL-F10 Capture/Release the mouse.
CTRL-F11 Slow down emulation (Decrease DOSBox Cycles).
CTRL-F12 Speed up emulation (Increase DOSBox Cycles).
ALT-F12 Unlock speed (turbo button).

These are the default keybindings. They can be changed in the keymapper.


The ones you will need the most are:
ALT-ENTER Switch to full screen and back.
CTRL-F10 Capture/Release the mouse.
CTRL-F11 Slow down emulation (Decrease DOSBox Cycles).
CTRL-F12 Speed up emulation (Increase DOSBox Cycles).

Highest time to play some game: installing running/games

Lets download/install/run Commander Keen 4 as tryout.( Always loved that one).

Download commander Keen4 from:
$ mkdir ~/games/keen4/
$ cd ~/games/keen4/
$ wget ftp://ftp.3drealms.com/share/4keen.zip
$ unzip ~/games/keen4/4keen.zip

Run dosbox, will start on x drive
$ dosbox

Input at the dosprompt:
cd keen4
install
You will get an install screen for C:\Keen4, alter the install directory (folder) to x:\keen4
Let the installer run completely, it will leave you in x:\keen4
Input
keen4e

Here ya go, you can configure the game via the ingame configuration panel at your wish.( sounds-input methods- .......)

Next time you want to play Commander Keen 4:
Run dosbox and input:
x:
cd keen4
keen4e


Last edited by wardrich on Sat Oct 25, 2008 2:06 am; edited 3 times in total
Back to top
dosraider
Moderator
Moderator


Offline
Joined: 15 Mar 2005
Posts: 6797
Location: ROTFLMAO in Belgium.

PostPosted: Sat Oct 25, 2008 1:14 am     Post subject: Reply with quote

One question: Why not mount a C instead of a X ?
Back to top
wardrich
lawl catz r lawlz
lawl catz r lawlz


Offline
Joined: 14 Sep 2002
Posts: 3361
Location: Ontario Canada

PostPosted: Sat Oct 25, 2008 1:16 am     Post subject: Reply with quote

Force of habit. When I'm in windows, I always used X instead of C namely because I used to have 2 optical drives, 2 external drives, and a crap ton of other things in that computer, so the easiest letter to guess that wouldn't be put to use any time soon was x. lol

The only issue I've got with the dosbox in linux is that it only looks in the pwd for dosbox.conf, that means that if you're in say, /home/dosraider/pictures when you put in the dosbox command, and your dosbox.conf is in /home/dosraider, it won't load it up.

I tried moving the .conf file into /usr/bin/ (which is where the executable is) and that didn't do the trick.


[edit: 3:07am]
got it figured out. Linux uses ~/.dosboxrc for a permanent always-working dosbox.conf. the .conf file is more of a temporary thing I guess for more-specific files... or something. It seems a tad bit useless.
Back to top
dosraider
Moderator
Moderator


Offline
Joined: 15 Mar 2005
Posts: 6797
Location: ROTFLMAO in Belgium.

PostPosted: Sat Oct 25, 2008 4:59 am     Post subject: Reply with quote

wardrich wrote:

[edit: 3:07am]
got it figured out. Linux uses ~/.dosboxrc for a permanent always-working dosbox.conf. the .conf file is more of a temporary thing I guess for more-specific files... or something. It seems a tad bit useless.

'3.07 Am' .... Laughing

FYI : dosbox reads ~/.dosboxrc and then executes the commands in the user dosboxconf.

And about your 'X'
That's now exactly one of the many charmes of dosbox, no matter what letters are in use on your host OS, dosbox always can work with C as virtual drive.
So your X to be sure that the drive letter is free is pretty useless.
Same goes for your CDdrive in dosbox, it can always use D for that.
Back to top
wardrich
lawl catz r lawlz
lawl catz r lawlz


Offline
Joined: 14 Sep 2002
Posts: 3361
Location: Ontario Canada

PostPosted: Tue Oct 28, 2008 1:28 am     Post subject: Reply with quote

True, it doesn't really matter much in Linux, since drives aren't letter-assigned.
Back to top
2LT Worm
American Hero
<font color=gold>American Hero</font>


Offline
Joined: 25 May 2004
Posts: 1232
Location: Indianapolis, IN

PostPosted: Tue Oct 28, 2008 7:01 am     Post subject: Reply with quote

But really, if you need extra help with this, and you're using Linux, you might want to consider switching back to Windows.
Back to top
wardrich
lawl catz r lawlz
lawl catz r lawlz


Offline
Joined: 14 Sep 2002
Posts: 3361
Location: Ontario Canada

PostPosted: Wed Oct 29, 2008 12:27 am     Post subject: Reply with quote

Mr. Worm wrote:
But really, if you need extra help with this, and you're using Linux, you might want to consider switching back to Windows.


Yeah, kind of I guess...
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    DOS Games Discussion Forum Index -> Get Games to Work All times are GMT - 5 Hours
Page 1 of 1

 
Free Windows games


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)