Linux HOWTOs

About | Home | Search

HOWTO: mplayerplug-in
Description: mplayer plug-in for netscape/mozilla
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything

# mplayerplug-in 3.40
# ===================
# Prerequisites:
# gawk
# pkg-config
# A full installation (with libs and includes) of mozilla (Slackware's
#  mozilla package is sufficient)
# GTK+-2.0
# Glib-2.0
# XFree86 or
# grep
# mplayer >= 1.0pre7

# Naturally every distribution, source tarball, and binary tarball all
# put each browser somewhere else, so we try several common locations.
# If your browser's plugins directory isn't listed below, let me know.

test -f installed/mozilla/mplayerplug-in-3.40.tar.gz &&
 mv installed/mozilla/mplayerplug-in-3.40.tar.gz .
test ! -f mplayerplug-in-3.40.tar.gz &&
mkdir -p -m 0700 src/mozilla
cd src/mozilla
find -maxdepth 1 -type d -name "mplayerplug-in-*" -exec rm -r {} \;
tar xzvf ~/mplayerplug-in-3.40.tar.gz
mv -f mplayerplug-in mplayerplug-in-3.40
cd mplayerplug-in-3.40
test $UID = 0 && chown -R root:root .

# Become root to install it

for browserdir in \
 /usr/lib/firefox \
 /usr/lib/firefox-?.* \
 /usr/lib/mozilla \
 /usr/lib/mozilla-?.* \
 /usr/lib/mozilla-firefox \
 /usr/lib/netscape \
 /usr/local/firefox \
 /usr/local/lib/mozilla-?.* \
 /usr/local/mozilla \
 /usr/local/netscape ; do
  test -d "$browserdir" &&
   ( install mplayerplug-in*.xpt "${browserdir}/components/"
     install mplayerplug-in*.so "${browserdir}/plugins/" )

# If you want a system-wide configuration file, create a
# /etc/mplayerplug-in.conf file.  There is a sample one in the source
# directory.  More info is available here:

# Become yourself again

# Remove your browser's pluginreg.dat if you did not upgrade the plug-in,
# but only changed it's configuration.  It will re-create it.
rm ~/.mozilla/firefox/pluginreg.dat

# Make sure you don't also have an old version in ~/.mozilla/plugins/ or
# ~/.firefox/plugins/

# Go to "about:plugins" with a Mozilla browser to see info related to your
# plugins

mkdir -p -m 0700 installed/mozilla
rm -f installed/mozilla/mplayerplug-in-*.tar.*
mv mplayerplug-in-3.40.tar.gz installed/mozilla/

Back to the list

Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>