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

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"

Last modified on September 15th, 2015 at 8:07 pm.
Share this post:

Priyanka Naskar Majumder - the Owner, Eyedea LAB. Graphic & Web Design Studio, lives in Kolkata, India. Interested in: Usability research, Graphic Design, Web Design & Development.


3 Comments

2 Trackbacks


Leave a Reply

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

*

Allowed HTML tags: <strong> <em> <pre> <code> <a href="" title="">