Difference between revisions of "Browser plugins"

From ArchWiki
Jump to navigation Jump to search
(Java (IcedTea): added info about different versions of java. basically copied from Opera#Java Support)
(Video Plugins: used the app template for the list)
Line 129: Line 129:
{{Note|If you experience any problems with the Java plugin (it is not recognized by the browser), you can try this [[Flash#Plugins_are_installed_but_not_working|solution]].}}
{{Note|If you experience any problems with the Java plugin (it is not recognized by the browser), you can try this [[Flash#Plugins_are_installed_but_not_working|solution]].}}
==Video Plugins==
== Video Plugins ==
===Gecko Media Player===
* {{App|Gecko Media Player|A Mozilla browser plugin to handle media on websites, using MPlayer.|https://sites.google.com/site/kdekorte2/gecko-mediaplayer|{{Pkg|gecko-mediaplayer}}}}
A good replacement of the now obsolete mplayer-plugin is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player] packaged as {{Pkg|gecko-mediaplayer}}. More stable combined with MPlayer 1.0RC2. (No more crashes with Apple Trailers.)
* {{App|Totem Plugin|A browser plugin based on the [[Wikipedia:Totem (software)|Totem]] media player for [[Gnome]] which uses [[Gstreamer]].|http://projects.gnome.org/totem/|{{Pkg|totem-plugin}}}}
* {{App|Rosa Media Player Plugin|A Qt-based browser plugin also based on MPlayer.|https://abf.rosalinux.ru/uxteam/ROSA_Media_Player|{{AUR|rosa-media-player-plugin}}}}
===Totem Plugin===
* {{App|VLC Plugin|A NPAPI-based plugin that uses VLC technologies.|http://git.videolan.org/?p=npapi-vlc.git;a=summary|{{AUR|npapi-vlc-git}}}}
The {{Pkg|totem-plugin}} might be the right choice for those seeking a [[GStreamer]]-based plugin.
===Rosa Media Player Plugin===
The {{AUR|rosa-media-player-plugin}}, available in the [[AUR]], might be the right choice for those seeking a [[MPlayer]]-based plugin written in Qt.
===VLC Plugin===
{{AUR|npapi-vlc-git}} is the modern VLC Mozilla plugin based on libVLC.

Revision as of 08:40, 21 October 2012

zh-CN:Browser Plugins These plugins work in Firefox, Opera and WebKit derivatives.

Flash Player


GNU Gnash is a free (libre) alternative to Adobe Flash Player. It is available both as a standalone player for desktop computers and embedded devices, as well as a browser plugin, and supports the SWF format up to version 7 (with versions 8 and 9 under development) and about 80% of ActionScript 2.0.

GNU Gnash can be installed with the package gnash-gtk, available in the official repositories.


Lightspark is another attempt to provide a free alternative to Adobe Flash aimed at supporting newer Flash formats. Although it is still very much in development, it supports some popular sites.

Lightspark can be installed with the package lightspark-gitAUR, available in the AUR.

Adobe Flash Player

The Adobe Flash Player is also available in the official repositories, although it was discontinued on Linux (for both 32-bit and 64-bit). Adobe will be providing security updates for another 5 years (i.e. 2017), but new versions of the plugin will only come integrated with Google Chrome (using its new PPAPI).

Install flashplugin from the official repositories.

  • Some versions of Epiphany have trouble recognizing the Flash plugin. See Epiphany#Flash for more details.
  • The Adobe Flash Player may also require ttf-ms-fontsAUR from the AUR in order to properly render text.
Tip: Chromium can also use the Google Chrome Flash Player, see Chromium#Flash Player.


To change the preferences (privacy settings, resource usage, etc.) of Flash Player, right click on any embedded Flash content and choose Settings from the menu, or go to the Macromedia website. There, a Flash animation will give you access to your local settings.

You can also use the Flash settings file /etc/adobe/mms.cfg. An example configuration:

  # Adobe player settings
  AVHardwareDisable = 0
  FullScreenDisable = 0
  LocalFileReadDisable = 1
  FileDownloadDisable = 1
  FileUploadDisable = 1
  LocalStorageLimit = 1
  ThirdPartyStorage = 1
  AssetCacheSize = 10
  AutoUpdateDisable = 1
  LegacyDomainMatching = 0
  LocalFileLegacyAction = 0
  AllowUserLocalTrust = 0
  # DisableSockets = 1 
  OverrideGPUValidation = 1

You can also refer to the mms.cfg from Gentoo, which is extensively commented.

Disable the "Press ESC to exit full screen mode" message

For a way to disable this message see this ubuntuforums.org post.

Backup libflashplayer.so:

 # cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup 

Make a copy of it in your home directory:

 # cp /usr/lib/mozilla/plugins/libflashplayer.so ~/

Install wine from the official repositories.

Download Flash Fullscreen Patcher.zip from this page, extract and execute with wine:

 $ wget http://forum.videohelp.com/attachments/9255-1319291919/Flash%20Fullscreen%20Patcher.zip
 $ unzip Flash\ Fullscreen\ Patcher.zip 
 $ wine Flash\ Fullscreen\ Patcher.exe

Patch libflashplayer.so (the one from your home directory) using the GUI. Copy the patched Flash Player back to the plugins directory:

 # cp ~/libflashplayer.so /usr/lib/mozilla/plugins/

PDF viewer

External PDF viewers

Although Adobe Acrobat Reader is a popular PDF/PS viewing browser plugin, other options are available in the form of mozpluggerAUR (for GNOME/GTK+ users) or kpartsplugin (for KDE users). These plugins offer the possibility to open files in the browser using external applications.

For example, for viewing PDF files, you may want to use Evince (the default viewer in GNOME) without downloading the file and opening a new window. Of course, this can work for other PDF viewers as well.

For mozplugger follow these steps:

  • Install mozpluggerAUR or mozplugger-chromiumAUR from the AUR and follow the post-installation instructions.
  • Edit /etc/mozpluggerrc: find the line containing pdf and modify the corresponding line after GV() as below:
  repeat noisy swallow(evince) fill: evince "$file"

(replace evince with your viewer of choice).

  • Finally, restart your browser and check to see if mozplugger was correctly installed.

The kpartsplugin, available in the official repositories, only works with KDE applications that support the KPart technology, such as Okular.

Adobe Reader

Due to licensing restrictions, Adobe Reader cannot be distributed from any of the official Arch Linux repositories. There are versions available in the AUR. Please note that no matter how many votes it receives, Adobe Reader will never be included in the official repositories. See this comment for an explanation.

Also, there are localizations available in many languages.


Adobe Acrobat Reader is only available as a 32-bit binary. It can be installed with the acroreadAUR package, available in the AUR.

This package installs the Acrobat Reader application as well as the Firefox plugin. Note that hardware-assisted rendering is unavailable under Linux (at least using a Geforce 8600GTS with driver version 185.18.14).


There is yet to be an official 64-bit version of Adobe Reader.

To use it in a 64-bit environment, you can:

  • Follow this guide originally posted in the forums. It involves creating a chrooted environment that could be reused for other 32-bit only applications.
  • Install bin32-acroreadAUR (with all its 32-bit dependencies) from AUR. Be advised that the Firefox plugin cannot be used directly with this binary -- it will not load in the 64-bit browser. To load it install the nspluginwrapper plackage from the official [multilib] repository and run:
$ nspluginwrapper -v -a -i

as a normal user. This checks the plugin directory and links the plugins as needed.



Java (IcedTea)

To enable Java support in your browser, you have two options: use either Oracle's non-free JRE or the OpenJDK environment (recommended). For details about why OpenJDK is recommended see this.

To use OpenJDK, you have to install the IcedTea browser plugin:

If you want to use Oracle's JRE you have to install the jreAUR or jre6AUR package, available in the AUR.

See Java#OpenJDK JVM for additional details and references.

Note: If you experience any problems with the Java plugin (it is not recognized by the browser), you can try this solution.

Video Plugins

  • Gecko Media Player — A Mozilla browser plugin to handle media on websites, using MPlayer.
https://sites.google.com/site/kdekorte2/gecko-mediaplayer || gecko-mediaplayer
  • Totem Plugin — A browser plugin based on the Totem media player for Gnome which uses Gstreamer.
http://projects.gnome.org/totem/ || totem-plugin
  • Rosa Media Player Plugin — A Qt-based browser plugin also based on MPlayer.
https://abf.rosalinux.ru/uxteam/ROSA_Media_Player || rosa-media-player-pluginAUR
  • VLC Plugin — A NPAPI-based plugin that uses VLC technologies.
http://git.videolan.org/?p=npapi-vlc.git;a=summary || npapi-vlc-gitAUR



Install mozpluggerAUR through the AUR.


Bad (choppy) sound on 64bit flashplugin

There is a problem with flashplugin 11 64bit and a new memcpy routine in glibc, which makes the sound choppy on mp3 streams (more info here: [1]. Current workarounds are either replacing the memcopy routine like suggested in the mentioned thread or using flashplugin-squareAUR from the AUR.

Flash blocks sound and/or delayed playback

If sound is delayed within flash video and/or if Flash stops sound from any other application, then make sure you do not have snd_pcm_oss module loaded:

$ lsmod | grep snd_pcm_oss

You can unload it

# rmmod snd_pcm_oss

and restart the browser to see if it helps.

No sound in Flash

Flash Player outputs its sound only through the default ALSA device, which is number 0. If you have multiple sound devices (a very common example is having a sound card and HDMI output in video card), then your preferred device may have a different number. For example:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: DX [Xonar DX], device 0: Multichannel [Multichannel]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: DX [Xonar DX], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

In this case, HDMI output is "card 0" and sound card is "card 1". To make it default for ALSA, create a file named ~/.asoundrc with the following content:

pcm.!default {
type hw
card 1

ctl.!default {
type hw
card 1

Flash performance

Adobe's Flash plugin has some serious performance issues, especially when CPU frequency scaling is used. There seems to be a policy not to use the whole CPU workload, so the frequency scaling governor does not clock the CPU any higher. To work around this issue, see: cpufrequtils#Changing the ondemand governor's threshold

Plugins are installed but not working

A common problem is that the plugin path is unset. This typically occurs on a new install, when the user has not re-logged in before running Firefox after the installation. Test if the path is unset:


If unset, then either re-login, or source /etc/profile.d/mozilla-common.sh and start Firefox from the same shell:

. /etc/profile.d/mozilla-common.sh && firefox

Gecko Media Player will not play Apple trailers

If Apple Trailers appear to start to play and then fail, try setting the user agent for your browser to:

QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)

Low webcam resolution in Flash

If your webcam has low resolution in Flash (the image looks very pixelated) you can try starting your browser with this:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so chromium

Black bars in full screen flash playback on multi-headed setups

The Flash plugin has a known bug where the full screen mode does not really work when you have a multi-monitor setup. Apparently, it incorrectly determines the full screen resolution, so the full screen flash player fills the correct monitor but gets scaled as if the monitor had the resolution of the total display area.

To fix this, you can use the "hack" described here. Simply download the source from the link given on the page, and follow the instructions in the README.

Tip: The hack is now in the AUR and can be downloaded here.
Note: While the author mentions using Nvidia's TwinView, the hack should work for any multi-monitor setup.

Blue tint on videos with Flash and Nvidia

An issue with flashplugin versions and causes it to send the U/V panes in the incorrect order resulting in a blue tint on certain videos. Version 0.5 of libvdpau includes a workaround to fix this, see the official announcement.

Leaking overlay with Flash and Nvidia

This bug is due to the incorrect colour key being used by the flashplugin version [2] and causes the flash content to "leak" into other pages or solid black backgrounds. To avoid this issue simply export VDPAU_NVIDIA_NO_OVERLAY=1 within either your shell profile (E.g. ~/.bash_profile or ~/.zprofile) or ~/.xinitrc

Flash videos not working on older systems

If you have Adobe Flash installed on an older system and you start playing a video which simply turns black with nothing happening, it is most likely that your CPU does not support SSE2. You can simply check this by looking at your CPU flags with this command:

# cat /proc/cpuinfo | grep sse2

If no results are returned, then you need to install an older version of Flash (for example 10.3). Older versions possibly will have vulnerabilities. You should then consider sandboxing Firefox using sandfox (https://igurublog.wordpress.com/downloads/script-sandfox/).

Older versions of Flash are available here: http://www.adobe.com/products/flashplayer/distribution3.html

You need to copy libflashplayer.so to the folder /usr/lib/mozilla/plugins/