(These instructions are somewhat adapted from a post by Malor on the official Ubuntu forums)
1. Go into Synaptic Package Manager and install these packages:
- dosbox
- timidity
- fluid-soundfont-gm
- fluid-soundfont-gs
2. Open a command prompt, and type:
sudo gedit /etc/timidity/timidity.cfg
- The last line in the file says:
source /etc/timidity/freepats.cfg
Put a # mark at the beginning of that line to comment it out. We're going to use the soundfonts we installed from the previous step. - On the next line, type:
soundfont /usr/share/sounds/sf2/FluidR3_GM.sf2
- Save and exit
3. If you don't already have a dosbox.conf you want to use, type:
dosboxand hit enter. Dosbox will pop up. At its command prompt, type:
config -writeconf dosbox.confThis will generate one for you. Then type:
exitto quit dosbox.
4. Type
gedit dosbox.conf
- Click the Find button, type:
mpu401=
and click Find. You should see a line highlighted. - Close the search popup.
- The three lines starting with mpu401= should look like this:mpu401=intelligentdevice=alsaconfig=128:0
- Save and exit
5. Restart Ubuntu
6. Open a command prompt, type:
timidity -iA -B2,8 -Os -EFreverb=0 2>&1 &
7. Start dosbox
8. Enjoy General MIDI. :)
9. Close terminal window when finished.
Note: You may have to occasionally change
config=128:0To
config=129:0in your dosbox.conf. Watch the output when you start timidity and it'll show which to use.
Also, if you get permission errors while installing or running timidity, you may have to add "timidity" to the "audio", "pulse", and "pulse-access" groups in Users and Groups (In the System menu).