Mozilla Plugin Support on Linux (x86_64)
This document is still a work in progress.
- Adobe Reader (nspluginwrapper)
- Flash Player 10.0 (x86_64 Alpha)
- Flash Player 10.0 (nspluginwrapper)
- Java Runtime Environment (Sun)
- Java Runtime Environment (IcedTea)
- LinuxJ2K (nspluginwrapper)
- RealPlayer 10 or Helix Player (nspluginwrapper)
- RealPlayer or Helix Player (Nightly Builds)
Until fairly recently, plugins for 64 bit browsers on x86_64 Linux systems have essentially been non-existant. Well, they're still more or less non-existant as far as major ones go, however now we have reliable means of running other plugins with 64 bit browsers. This document covers using nspluginwrapper to run 32 bit Linux browser plugins and CrossOver Linux to run 32 bit Windows browser plugins, as well as native plugins where available.
The test system for the information in this document uses OpenSUSE 11.0 (x86_64) and SeaMonkey. Information for other Linux distributions may not be as current as a result.
All information in this document applies equally to both SeaMonkey and Mozilla Firefox.
32 bit Browsers on 64 bit Systems
Using a 32 bit browser on a 64 bit system has been the most common way of getting plugins to work. Users of 32 bit browsers on 64 bit systems should consult the Linux (x86) section of PluginDoc for more information.
32 and 64 bit Plugins on the Same System
32 and 64 bit browser plugins can exist in the same directory. 64 bit browsers can not load the 32 bit plugins and vice versa. You'll get a bit of interesting reading if you're running SeaMonkey or Firefox from a terminal, but it won't hurt anything.
What is nspluginwrapper?
nspluginwrapper allows you to use Netscape compatible (NPAPI) plugins on platforms that they were not built on - in this instance, using 32bit browser plugins with x86_64 browsers. This is beta software, and licensed under the GNU General Public License (GPL).
The latest release of nspluginwrapper at the time of writing is 0.9.91.5. It would be a good idea to take a quick glance at the Release Notes before installing.
Most distributions now ship with nspluginwrapper packages - in fact, in many cases, they are even installed by default. You can follow the instructions below if your distribution does not include packages or you do not wish to use them.
RPM Based Distributions
Installing nspluginwrapper on an RPM based system is easy enough, simply install the packages using the tool of your choice. These RPMs are known to work on openSUSE Linux and Mandriva, results may vary with other distributions.
DEB Based Distributions
If you have alien installed, the following instructions should work for you:
sudo alien -d nspluginwrapper-0.9.91.5-1.x86_64.rpm sudo alien -d nspluginwrapper-i386-0.9.91.5-1.x86_64.rpm sudo dpkg -i nspluginwrapper*.deb sudo ln -s /usr/lib/nspluginwrapper/x86_64/npconfig /usr/bin/nspluginwrapper
nspluginwrapper requires linux32. Make sure this is installed before trying to use it.
Build From Source
Instructions for compiling nspluginwrapper from source are available at the nspluginwrapper Help Center. This is NOT recommended if you are able to install a binary package!
What is CrossOver Linux?
CrossOver Linux allows you to use 32bit Windows applications and browser plugins on x86 and x86_64 Linux systems, using WINE. This is commercial software, available for purchase from the CodeWeavers Store. It is a good option when the Linux version of a plugin does not exist (or is out of date), and is an alternative if nspluginwrapper doesn't work well with a plugin. It is also easier to use than nspluginwrapper.
Download and Install CrossOver Linux
The latest release of CrossOver Linux at the time of writing is 6.1. Installation is easy, simply download the trial and run the installer. This software is best installed as a user.
Adobe Reader (nspluginwrapper)
nspluginwrapper -i /opt/Adobe/Reader8/Browser/intellinux/nppdf.soIf you have Adobe Reader installed in a non-default location, or have installed a version other than 8.x, alter that path accordingly.
Note that Adobe Reader 8.1 requires a 32 bit version of xulrunner and all the baggage that comes with it.
- Install DjVuLibre.
- Copy or create a symbolic link to nsdejavu.so in your Mozilla plugins directory.
Flash Player 10.0 (x86_64 Alpha)
If you are using nspluginwrapper, be sure to remove any npwrapper.libflashplayer.so files that may be present on your system, as these are likely to conflict with the 64 bit plugin.
Flash Player 10.0 (nspluginwrapper)
nspluginwrapper -i /usr/lib/browser-plugins/libflashplayer.sonspluginwrapper 0.9.91.5 and earlier have some known stability issues with Flash Player 9.0r115 and later. Using a pre-0.9.91.6 snapshot is recommended if you have problems. [More Information...]
- Install Gnash - packages are strongly recommended where available.
- Copy or create a symbolic link to libgnashplugin.so in your Mozilla plugins directory.
Java Runtime Environment (Sun)
Yes, Sun has finally implemented the Java Plugin on x86_64 in JRE 1.6.0_12. This works for Firefox 3.0 or later and pre-release versions of SeaMonkey 2.0.
To set up support for Java applets, create a symbolic link to libnpjp2.so (located in the lib/amd64/ directory of your JRE installation) in your Mozilla plugins directory.
Java Runtime Environment (IcedTea)
Yes, this really does work, however testing applets has been a bit hit and miss. Packages are available for several distributions:
openSUSE 11.0: java-1_7_0-icedtea-plugin (and dependencies)
Fedora Core 8/9: java-1.7.0-icedtea-plugin (and dependencies)
Mandriva 2008.1: java-1.7.0-icedtea-plugin (and dependencies)
Ubuntu hardy/gutsy: icedtea-java7-plugin (and dependencies)
To install for your browser of choice, create a symbolic link to gcjwebplugin.so (located in your IcedTea7 JRE installation) in your browser plugins folder, and name it "libjavaplugin.so". This will likely be set up automatically when you install the package for your distribution.
IcedTea7 is based on pre-release OpenJDK7 code, may not work in all situations, and its behaviour can not be relied upon. Use at your own risk.
- Download LinuxJ2K Plugin (glibc2.3 version).
- Decompress it, then copy npjp2_linux_jasper_pthread.so to the location of your choice (eg. /usr/lib/browser-plugins/), then run the following command:
nspluginwrapper -i /usr/lib/browser-plugins/npjp2_linux_jasper_pthread.soAlter the path accordingly if the plugin is installed elsewhere.
RealPlayer 10 or Helix Player (nspluginwrapper)
nspluginwrapper -i /usr/lib/browser-plugins/nphelix.soIf the browser plugin is installed at a different location, alter that path accordingly.
RealPlayer or Helix Player (Nightly Builds)
- Install RealPlayer or Helix Player.
- Copy nphelix.so and nphelix.xpt to your Mozilla plugins directory.
- Make sure a symbolic link to the realplay script is in your PATH.