
Series: Playing embedded midi file in firefox – Part 1
Continued from: Playing embedded midi file in firefox – Part 2: Windows
Instructions For Ubuntu Users:
A special plugin and a midi software ‘renderer’ is required for playing embedded midi file types from within the browser.
Installation
Open up a terminal, type the command below and then press enter.
sudo apt-get install timidity mozplugger
Answer yes to all questions and the installation will be complete.
Restart firefox (don’t forget to close all instances) and embedded midi files should now play when you go to this sample webpage below.
Additional tips you may require in the process:
1. Sometimes you may need to delete /home/[USERNAME]/.mozilla/pluginreg.dat and restart firefox. This is because a bug require mozplugger to be the last plugin loaded .
2. The mozilla folder is in your Home folder, but you cannot see it until you turn on ‘show hidden files’ (Ctrl+H) in the ‘view’ menu.
3. Mostly the default Evince (http://projects.gnome.org/evince/) PDF document viewer will have no problem with reading PDF files. But this plugin doesn’t cooperate very nice with Acrobat Reader in firefox, but using xpdf in firefox solves this problem. If pdf’s are not displaying anymore in your browser follow the instructions below:
Type:
sudo apt-get install xpdf
Then:
sudo gedit /etc/mozpluggerrc
Put an # before the line with acroread in it, as shown below:
text/x-pdf: pdf: PDF file
# repeat swallow(documentShell) fill: acroread -geometry +9000+9000 +useFrontEndProgram "$file"
repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
repeat noisy swallow(gv) fill: gv --safer --quiet --antialias -geometry +9000+9000 "$file"
3 Comments
Thank you very much! Your advice worked perfectly for me on Ubuntu 12.04 64-bit.
Here it is three years later and your web page is still helping people out. Thank you.
These instructions function perfectly for me and Ubuntu 9.10.
Also have a look at http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Three_Steps_to_MIDI_on_Linux
to install timidity the best way.