EyedeaLab

Playing embedded midi file in firefox – Part 3: Ubuntu (Linux)

October 8th, 2009 Priyanka
| More

play-midi-in-firefox

Series: Playing embedded midi file in firefox – Part 1
Continued from: Playing embedded midi file in firefox – Part 2: Windows

Instructions For Ubuntu Users:icon-ubuntu

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"
This post was written by Priyanka

You can visit Priyanka's profile for a short bio, more posts, and other information.

Possibly Related Topics :

4 Responses to Playing embedded midi file in firefox – Part 3: Ubuntu (Linux)

  1. Superb. What an impressive website! I appreciate the time you’ve taken to post. Keep up the great work.

  2. Pingback: Playing embedded midi file in firefox – Part 2: Windows | Eyedea Lab

  3. Pingback: Playing embedded midi file in firefox – Part 1 | Eyedea Lab

  4. Oddvar says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>