On the plus side, almost everything in the whole world of Linux can be done on Ubuntu, and usually a simple Google search will not only tell you how to do it, but give you the command-line commands to do it, which you simple copy, then paste in an open terminal window. For someone like me who's grow up around computers, this is an acceptable compromise.
I don't have a lot of hard drive space allocated to Ubuntu, but thankfully, I like to play classic games. To this end, I use the fabulous open-source DOS emulator, DOSBox.
For those of you who would like to try this as well, I looked at the following forum posts:
Tutorial: dosbox with Glide under Linux and DOSBox 0.72 and MIDI Support
And here is my condensed summary (Note: I'll mark the general-midi portions of the setup in green, so that if you don't want to mess with your system sound settings, you don't have to):
Note: This is for Ubuntu 9.04 and DOSBox 0.73. If you try this with a different version of either, your mileage may vary.
Update: On Ubuntu 9.10, DOSBox 0.73 can be installed from the Ubuntu Software Center, so you can skip the compilation steps below. You may want to change (in your dosbox.conf or dosbox-0.73.conf) the mixer settings to "rate=44100" and the "prebuffer=50" to avoid stuttering sound. I haven't tried setting up General MIDI to work with it yet, but I'll post here if I do.
- Get DOSBox (the "source" version, as this is frequently the most current).
- Extract the package into your /home/yournamehere directory.
- Open a terminal window and copy/paste the following command in and run it:
sudo apt-get install libsdl1.2-dev libsdl-sound1.2-dev libsdl-net1.2-dev libpcap-dev build-essential cvs
- When that's done, "cd" into the folder you extracted earlier , for example "cd /home/yournamehere/dosbox-0.73".
- copy/paste, run the following commands (one at a time, in order):
./configure
make
sudo make install - Then, get the following packages (you can just paste this in the command-line, like before):
sudo apt-get install dosbox timidity fluid-soundfont-gm fluid-soundfont-gs
- Type "dosbox".
- This should automatically make a dosbox.conf (or dosbox-version.conf) file. You can check by opening your /home/yournamehere directory, turning on "Show Hidden Files" in the "View" menu, then scrolling down and opening the ".dosboxrc" folder. If you don't see the file there, go back to dosbox and type:
config -writeconf dosbox.conf
- When you see the file in the directory, close DOSBox, and open up the dosbox.conf file by double-clicking it.
- Scroll down until you see a line that starts with "mp401=", then make sure it looks like this:
mpu401=intelligent
mididevice=alsa
midiconfig=128:0 - Save the file and exit it.
- In the terminal window, type (or paste) the following command:
sudo gedit /etc/timidity/timidity.cfg
- Scroll down, put a "#" in front of the line that reads "source /etc/timidity/freepats.cfg", then paste this on the next line:
soundfont /usr/share/sounds/sf2/FluidR3_GM.sf2
- Save and close. In the terminal, type (or paste) the following command:
sudo /etc/init.d/timidity restart
- DOSBox should now be configured for General MIDI sound.
- Now, you'll need to create a folder for DOSBox to use to store and run programs. I call mine "dosdisk", but you can name it anything you want, and I'd recommend creating it in your "home/yournamehere" folder.
- Open up the dosbox.conf, scroll down to the very bottom of the file. Under "[autoexec]
# Lines in this section will be run at startup", type the following (change folder names as appropriate):#Hard drives:
mount c /home/yournamehere/dosdisk
#CD-ROMs:
mount d /media/cdrom0 -t cdrom
c: - Save and quit. Open a terminal window and run dosbox. It should mount your folder and DVD-ROM drive as c: and d: respectively. If it gives you an error, quit out, go back to dosbox.conf, and check your autoexec section at the bottom is pointing at the right folders/drives.
- Now, you can either take zip files of classic games and extract them to the "dosdisk" folder directly, or put a game cd in your drive, start DOSBox, and install it just as you would on a real DOS machine. DOSBox works exactly like real DOS, except you don't usually have to mess with all that memory management crap.
- If you have any further questions, message me, or check out either the DOSBox or Ubuntu forums (search for dosbox in the latter).
- Have fun!
5 comments:
Am running Ubuntu 9.10 and following your instructions up until I hit this point:
sudo: /etc/init.d/timidity: command not found
I'm not sure why this is happening or how to fix it. Any ideas on your end?
DosBox also seems to run ne, but am still getting so sound and the following message:
SHELL:Redirect output to nul
Should this be happening?
Sounds like an error in the sound setup part. It's possible that 9.10 Ubuntu handles this a bit differently than 9.04, in which case, I'm not sure exactly what to do. It's possible the paths have changed or the program versions are different enough that they won't respond to the same process. I would say check and see if the files listed are actually installed, and if their locations are the same as listed.
Turns out it's not dosbox, but the game I'm trying to play - Syndicate. Which has a lot of people baffled when they try and get it running, but after a couple of forum searches I know for sure that at least my Windows version of db runs fine now with a minor change to my irq line.
Also that SHELL line seems to be an effect of the sound setup, in essence it means it's working exactly the way it should.
Thanks for your response.
No problem. Glad you got that sorted out.
Post a Comment