Linux HOWTOs

About | Home | Search


HOWTO: mozilla-plugins
Description: Set up plugins for Mozilla-based browsers
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


# This howto is just for setting up plugins for the Mozilla-suite and
# Mozilla-based browsers like Firefox and Netscape.

# Become root
su

for browserdir in \
 /usr/lib/firefox \
 /usr/lib/firefox-?.* \
 /usr/lib/mozilla \
 /usr/lib/mozilla-?.* \
 /usr/lib/mozilla-firefox \
 /usr/lib/netscape \
 /usr/lib/seamonkey-* \
 /usr/local/firefox \
 /usr/local/lib/mozilla-?.* \
 /usr/local/mozilla \
 /usr/local/netscape \
 /usr/local/seamonkey ; do

test -d "$browserdir/plugins" && cd "$browserdir/plugins"

# If you have Sun's Java SDK installed...  I've only tried it with Sun's
# JDK version 1.4.2_xx and 1.5.0_xx (5.0 Update xx) but it should be the
# same for other versions and for Blackdown's port too.
#
# If you use gcc >= 3.x, run this:
find /usr/lib/jre*/plugin/i386/ns7 -type f -name libjavaplugin_oji.so \
 -exec ln -sf {} \; 2> /dev/null
test -f /usr/local/java/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so &&
 ln -sf /usr/local/java/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
test -f /usr/local/java/jre/plugin/i386/ns7/libjavaplugin_oji.so &&
 ln -sf /usr/local/java/jre/plugin/i386/ns7/libjavaplugin_oji.so
#
# and if not, run this:
find /usr/lib/jre*/plugin/i386/ns7-gcc29 -type f -name libjavaplugin_oji.so \
 -exec ln -sf {} \; 2> /dev/null
test -f /usr/local/java/jre/plugin/i386/ns610/libjavaplugin_oji.so &&
 ln -sf /usr/local/java/jre/plugin/i386/ns610/libjavaplugin_oji.so
test -f /usr/local/java/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so &&
 ln -sf /usr/local/java/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

# If you have Adobe Acrobat Reader 5 installed in it's default location, do
# this to enable it's plugin:
test -d /usr/local/Acrobat5 &&
 ln -sf /usr/local/Acrobat5/Browsers/intellinux/nppdf.so

# If you have Adobe Acrobat Reader 7 installed in it's default location, do
# this to enable it's plugin:
test -d /usr/local/Adobe/Acrobat7.0 &&
 ln -sf /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so

# If you have RealPlayer installed:
test -d /usr/local/RealPlayer8 &&
 ( ln -sf /usr/local/RealPlayer8/rpnp.so
   ln -sf /usr/local/RealPlayer8/raclass.zip )

# If you have RealPlayer 10 installed and you installed it under
# /usr/local/RealPlayer like I did (if so, don't symlink the rp8 ones):
test -d /usr/local/RealPlayer &&
 ( ln -sf /usr/local/RealPlayer/mozilla/nphelix.so
   ln -sf /usr/local/RealPlayer/mozilla/nphelix.xpt )

done

# Become yourself again
exit

# See the flash player howto if you'd like to install it

# See the mozplugger howto to install it

# See the mplayerplug-in howto if you'd like to install it

# If you install gxine, it will create a symlink to it's plugin in
# ~/.firefox/ and/or ~/.mozilla/plugins/ when you first run it

# totem also has a plugin

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>