Linux HOWTOs

About | Home | Search


HOWTO: mozplugger
Description: Mozilla plugin originally based on Plugger
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


# MozPlugger 1.7.3
# ================
# This plugin works with the following browsers:
# Netscape, Mozilla, Firefox, and Opera

cd
test -f installed/mozilla/mozplugger-1.7.3.tar.gz &&
 mv installed/mozilla/mozplugger-1.7.3.tar.gz .
test ! -f mozplugger-1.7.3.tar.gz &&
 wget http://download.mozdev.org/mozplugger/mozplugger-1.7.3.tar.gz
mkdir -p -m 0700 src/mozilla
find src src/mozilla -maxdepth 1 -type d -name "mozplugger-*" \
 -exec rm -r {} \;
cd src/mozilla
tar xzvf ~/mozplugger-1.7.3.tar.gz
cd mozplugger-1.7.3
test $UID = 0 && chown -R root:root .
make linux

# Become root to clean up old files and to install it
su

# Back up old config file:
test -f /etc/mozpluggerrc &&
 ( mkdir -p -m 0700 ~/backup ; cp -a /etc/mozpluggerrc ~/backup/ )

rm -f /usr/local/bin/mozplugger
test -f /usr/local/etc/mozpluggerrc &&
 mv -f /usr/local/etc/mozpluggerrc /etc/
test -f /etc/mozpluggerrc && cp /etc/mozpluggerrc /etc/mozpluggerrc.old
cp mozpluggerrc /etc/
cp mozplugger-controller /usr/local/bin/
cp mozplugger-helper /usr/local/bin/
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}/plugins" &&
   cp mozplugger.so "${browserdir}/plugins/"
done

# Become yourself again
exit

# If you use Opera, install a local copy of the plugin
test -d ~/.opera && make localinstall_opera

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

# To view info about your plugins in a mozilla-based browser, go to
# "about:plugins"

cd
rm -f installed/mozplugger-*.tar.* installed/mozilla/mozplugger-*.tar.*
mv mozplugger-1.7.3.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>