Difference between revisions of "Browser plugins"

From ArchWiki
Jump to: navigation, search
(Adobe Flash Player)
m (added ja)
(29 intermediate revisions by 19 users not shown)
Line 2: Line 2:
 
[[es:Browser Plugins]]
 
[[es:Browser Plugins]]
 
[[fr:Plugins navigateur]]
 
[[fr:Plugins navigateur]]
 +
[[ja:Browser Plugins]]
 
[[tr:Web tarayıcı eklentileri]]
 
[[tr:Web tarayıcı eklentileri]]
 
[[zh-CN:Browser Plugins]]
 
[[zh-CN:Browser Plugins]]
 
[[Category:Web Browser]]
 
[[Category:Web Browser]]
These plugins work in [[Firefox]], [[Opera]] and WebKit derivatives. <!-- Chrome? -->
+
These plugins work in [[Firefox]], [[Opera]] and WebKit derivatives.
  
 
== Flash Player ==
 
== Flash Player ==
 +
 +
=== Shumway ===
 +
 +
[http://mozilla.github.io/shumway/ Shumway] is an HTML5 technology experiment that explores building a faithful and efficient renderer for the SWF file format without native code assistance. As of 2013-01-01, the plugin may be installed directly from [http://mozilla.github.io/shumway/ Mozilla's github.io site]. According to the [https://github.com/mozilla/shumway/wiki Shumway wiki], "Integration with Firefox is a possibility if the experiment proves successful." 
 +
 +
{{Warning| As of 2013-10-23, the AUR package is no longer being maintained.
 +
}}
 +
 +
Shumway is available as a [http://mozilla.github.io/shumway/extension/firefox/shumway.xpi plugin], as  {{AUR|firefox-extension-shumway}} in the [[AUR]] or embedded in Firefox Nightly/Aurora builds.
  
 
=== Gnash ===
 
=== Gnash ===
  
 
{{Wikipedia|Gnash}}
 
{{Wikipedia|Gnash}}
 +
 
[http://www.gnu.org/software/gnash/ 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.
 
[http://www.gnu.org/software/gnash/ 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 [[Pacman|installed]] with the package {{Pkg|gnash-gtk}}, available in the [[official repositories]].
 
GNU Gnash can be [[Pacman|installed]] with the package {{Pkg|gnash-gtk}}, available in the [[official repositories]].
 +
 +
{{Note|If you find that Gnash doesn't work properly right out of the box, then you may also need to [[pacman|install]] {{Pkg|gstreamer0.10-ffmpeg}} from the [[official repositories]].}}
  
 
=== Lightspark ===
 
=== Lightspark ===
Line 24: Line 37:
 
=== Adobe Flash Player ===
 
=== Adobe Flash Player ===
  
The Adobe Flash Player is also available in the official repositories, although it was [http://blogs.adobe.com/flashplayer/2012/02/adobe-and-google-partnering-for-flash-player-on-linux.html discontinued on Linux] (for both 32-bit and 64-bit). Adobe will be providing security updates
+
[[pacman|Install]] {{Pkg|flashplugin}} from the official repositories.
for another 5 years (i.e. 2017), but new versions of the plugin will only come integrated with Google Chrome (using its new PPAPI).
+
 
+
[[Pacman|Install]] {{Pkg|flashplugin}} from the [[official repositories]].
+
 
+
 
{{Note|
 
{{Note|
* Some versions of Epiphany have trouble recognizing the Flash plugin. See [[Epiphany#Flash]] for more details.
+
* Adobe Flash Player for Linux using the NPAPI was [http://blogs.adobe.com/flashplayer/2012/02/adobe-and-google-partnering-for-flash-player-on-linux.html discontinued by Adobe], although security updates for version 11.2 will be provided for another 5 years by Adobe (i.e. 2017). Adobe will, however, release new versions of PPAPI version of the plugin, shipped with Google Chrome. See [[Chromium#Adobe_Flash_Player_.28Pepper_plugin_API.29|Chromium#Adobe Flash Player (Pepper plugin API)]] for more information.
* The Adobe Flash Player may also require {{AUR|ttf-ms-fonts}} from the [[AUR]] in order to properly render text.
+
* For hardware acceleration, see [[VDPAU]].
 +
* Some Flash apps may require {{AUR|ttf-ms-fonts}} from the [[AUR]] in order to properly render text.
 
}}
 
}}
{{Tip|Chromium can also use the Google Chrome Flash Player, see [[Chromium#Flash Player]].}}
 
  
 
==== Configuration ====
 
==== Configuration ====
  
<!-- Change this heading to Flash configuration once more than one plugin needs a similar section -->
+
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 [http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html Adobe website]. There, a Flash animation will give you access to your local settings.
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 [http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html Macromedia website]. There, a Flash animation will give you access to your local settings.
+
  
 
You can also use the Flash settings file {{ic|/etc/adobe/mms.cfg}}. An example configuration:
 
You can also use the Flash settings file {{ic|/etc/adobe/mms.cfg}}. An example configuration:
 
{{hc|/etc/adobe/mms.cfg|<nowiki>
 
{{hc|/etc/adobe/mms.cfg|<nowiki>
  # Adobe player settings
+
# Adobe player settings
  AVHardwareDisable = 0
+
AVHardwareDisable = 0
  FullScreenDisable = 0
+
FullScreenDisable = 0
  LocalFileReadDisable = 1
+
LocalFileReadDisable = 1
  FileDownloadDisable = 1
+
FileDownloadDisable = 1
  FileUploadDisable = 1
+
FileUploadDisable = 1
  LocalStorageLimit = 1
+
LocalStorageLimit = 1
  ThirdPartyStorage = 1
+
ThirdPartyStorage = 1
  AssetCacheSize = 10
+
AssetCacheSize = 10
  AutoUpdateDisable = 1
+
AutoUpdateDisable = 1
  LegacyDomainMatching = 0
+
LegacyDomainMatching = 0
  LocalFileLegacyAction = 0
+
LocalFileLegacyAction = 0
  AllowUserLocalTrust = 0
+
AllowUserLocalTrust = 0
  # DisableSockets = 1  
+
# DisableSockets = 1  
  OverrideGPUValidation = 1
+
OverrideGPUValidation = 1
 
</nowiki>}}
 
</nowiki>}}
  
Line 66: Line 74:
  
 
Backup {{ic|libflashplayer.so}}:
 
Backup {{ic|libflashplayer.so}}:
  # cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup  
+
# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup  
  
 
Make a copy of it in your home directory:
 
Make a copy of it in your home directory:
  # cp /usr/lib/mozilla/plugins/libflashplayer.so ~/
+
# cp /usr/lib/mozilla/plugins/libflashplayer.so ~/
  
[[Pacman|Install]] {{Pkg|wine}} from the [[official repositories]].
+
Install {{Pkg|wine}} from the official repositories.
  
 
Download {{ic|Flash Fullscreen Patcher.zip}} from [http://forum.videohelp.com/threads/304807-How-to-remove-annoying-Press-Esc-to-message-in-Flash-Video this page], extract and execute with {{ic|wine}}:
 
Download {{ic|Flash Fullscreen Patcher.zip}} from [http://forum.videohelp.com/threads/304807-How-to-remove-annoying-Press-Esc-to-message-in-Flash-Video this page], extract and execute with {{ic|wine}}:
  
  $ wget http://forum.videohelp.com/attachments/16250-1360745667/Flash%20Fullscreen%20Patcher.zip
+
$ wget http://forum.videohelp.com/attachments/16250-1360745667/Flash%20Fullscreen%20Patcher.zip
  $ unzip Flash\ Fullscreen\ Patcher\ 2.0.zip
+
$ unzip Flash\ Fullscreen\ Patcher\ 2.0.zip
  $ wine Flash\ Fullscreen\ Patcher\ 2.0.exe
+
$ wine Flash\ Fullscreen\ Patcher\ 2.0.exe
  
 
Patch {{ic|libflashplayer.so}} (the one from your home directory) using the GUI.
 
Patch {{ic|libflashplayer.so}} (the one from your home directory) using the GUI.
 
Copy the patched Flash Player back to the plugins directory:
 
Copy the patched Flash Player back to the plugins directory:
  # cp ~/libflashplayer.so /usr/lib/mozilla/plugins/
+
# cp ~/libflashplayer.so /usr/lib/mozilla/plugins/
  
==== Fullscreen Fix for Flash & Firefox in Gnome 3 ====
+
==== Fullscreen fix for GNOME 3 ====
  
Install devilspie from AUR
+
If you have problems with Flash's fullscreen-mode (video freezes but audio keeps playing), then it's probably because the fullscreen flash window is displayed ''behind'' the browser window. This is a [https://bugzilla.gnome.org/show_bug.cgi?id=722743 known upstream bug in mutter]. You can easily fix this by using [[Wikipedia:Devil's Pie (software)|devilspie]]:
Create the config directory and file
+
 
Create the .devilspie directory and the relevant config:
+
Install {{Pkg|devilspie}} from the official repositories.
 +
 
 +
Create the {{ic|~/.devilspie}} directory:
  
 
  # mkdir ~/.devilspie
 
  # mkdir ~/.devilspie
# touch flash-fullscreen-firefox.ds
 
  
Then create populate that file with this:
+
Now you have to create a config file for each browser you use (see below)
  
{{hc|~/.devilspie/flash-fullscreen-firefox.ds|<nowiki>
+
Finally, add devilspie to your list of startup items (usually in gnome-session-properties).  
  
 +
===== Firefox =====
 +
 +
{{hc|~/.devilspie/flash-fullscreen-firefox.ds|<nowiki>
 
(if
 
(if
 
(is (application_name) "plugin-container")
 
(is (application_name) "plugin-container")
Line 102: Line 114:
 
)
 
)
 
)
 
)
 +
</nowiki>}}
  
 +
===== Chrome / Chromium =====
 +
 +
{{hc|~/.devilspie/flash-fullscreen-chrome.ds|<nowiki>
 +
(if
 +
(is (application_name) "exe")
 +
(begin
 +
(focus)
 +
)
 +
)
 
</nowiki>}}
 
</nowiki>}}
  
Finally, add devilspie to your list of startup items (usually in gnome-session-properties).
+
===== Epiphany / GNOME Web =====
  
==PDF viewer==
+
{{hc|~/.devilspie/flash-fullscreen-epiphany.ds|<nowiki>
 +
(if
 +
(is (application_name) "WebKitPluginProcess")
 +
(begin
 +
(focus)
 +
)
 +
)
 +
</nowiki>}}
 +
 
 +
== PDF viewer ==
  
 
=== PDF.js ===
 
=== PDF.js ===
Line 113: Line 144:
 
{{Wikipedia|Pdf.js}}
 
{{Wikipedia|Pdf.js}}
  
[https://mozillalabs.com/en-US/pdfjs/ PDF.js] is a PDF renderer created by Mozilla and built using HTML5 technologies. It is currently only available as a Firefox [https://addons.mozilla.org/en-US/firefox/addon/pdfjs/ plugin].
+
[https://mozillalabs.com/en-US/pdfjs/ PDF.js] is a PDF renderer created by Mozilla and built using HTML5 technologies. It is currently available as a Firefox [https://addons.mozilla.org/en-US/firefox/addon/pdfjs/ plugin]. For Chrome there is an experimental version in the  [https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm Chrome web store] or alternatively can be built from the source of [https://github.com/mozilla/pdf.js Pdf.js]
  
 
=== External PDF viewers ===
 
=== External PDF viewers ===
Line 119: Line 150:
 
To use an external PDF viewer you need [[#MozPlugger]] or [[#kpartsplugin]].
 
To use an external PDF viewer you need [[#MozPlugger]] or [[#kpartsplugin]].
  
If you want to use MozPlugger with Evince, for example, you have to find the lines containing {{ic|pdf}} in the {{ic|/etc/mozpluggerrc}} file and modify the corresponding line after {{ic|GV()}} as below:  
+
If you want to use MozPlugger with Evince, for example, you have to find the lines containing {{ic|pdf}} in the {{ic|/etc/mozpluggerrc}} file and modify the corresponding line after {{ic|GV()}} as below:
 
  repeat noisy swallow(evince) fill: evince "$file"
 
  repeat noisy swallow(evince) fill: evince "$file"
 
(replace {{ic|evince}} with something else if it is not your viewer of choice).
 
(replace {{ic|evince}} with something else if it is not your viewer of choice).
Line 131: Line 162:
 
=== Adobe Reader ===
 
=== 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 [https://aur.archlinux.org/packages.php?ID=16980 comment] for an explanation.
+
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]].
  
 
Also, there are [https://aur.archlinux.org/packages.php?O=0&K=acroread-&do_Search=Go localizations] available in many languages.
 
Also, there are [https://aur.archlinux.org/packages.php?O=0&K=acroread-&do_Search=Go localizations] available in many languages.
Line 154: Line 185:
 
== Citrix ==
 
== Citrix ==
  
{{Box||See the main article: [[Citrix]]|#E5E5FF|#FCFCFC}}
+
See the main article: [[Citrix]].
  
 
== Java (IcedTea) ==
 
== Java (IcedTea) ==
  
To enable [[Java]] support in your browser, you have two options: use either Oracle's non-free JRE or the [[Wikipedia:Openjdk|OpenJDK]] environment (recommended). For details about why OpenJDK is recommended see [https://mailman.archlinux.org/pipermail/arch-general/2011-August/021671.html this].
+
To enable [[Java]] support in your browser, you have two options: the open-source [[Wikipedia:OpenJDK|OpenJDK]] (recommended) or Oracle's proprietary version. For details about why OpenJDK is recommended see [https://mailman.archlinux.org/pipermail/arch-general/2011-August/021671.html this].
  
 
To use OpenJDK, you have to install the [http://icedtea.classpath.org/wiki/Main_Page IcedTea] browser plugin:
 
To use OpenJDK, you have to install the [http://icedtea.classpath.org/wiki/Main_Page IcedTea] browser plugin:
 
* {{Pkg|icedtea-web-java7}} for version 7 of the Java environment.
 
* {{Pkg|icedtea-web-java7}} for version 7 of the Java environment.
  
If you want to use Oracle's JRE you have to install the {{AUR|jre}} or {{AUR|jre6}} package, available in the [[AUR]].
+
If you want to use Oracle's JRE, install the {{AUR|jre}} (or {{AUR|jre6}}) package, available in the [[AUR]].
  
 
See [[Java#OpenJDK JVM]] for additional details and references.
 
See [[Java#OpenJDK JVM]] for additional details and references.
Line 169: Line 200:
 
{{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 ==
  
 
* {{App|Gecko Media Player|Mozilla browser plugin to handle media on websites, using MPlayer.|https://sites.google.com/site/kdekorte2/gecko-mediaplayer|{{Pkg|gecko-mediaplayer}}}}
 
* {{App|Gecko Media Player|Mozilla browser plugin to handle media on websites, using MPlayer.|https://sites.google.com/site/kdekorte2/gecko-mediaplayer|{{Pkg|gecko-mediaplayer}}}}
Line 196: Line 227:
 
{{hc|/etc/mozpluggerrc|
 
{{hc|/etc/mozpluggerrc|
 
...
 
...
### OpenOffice
+
### LibreOffice/OpenOffice
 
define([OO],[swallow(VCLSalFrame) fill: libreoffice --nologo --norestore --view $1 "$file"
 
define([OO],[swallow(VCLSalFrame) fill: libreoffice --nologo --norestore --view $1 "$file"
 
     swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
 
     swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
Line 227: Line 258:
  
 
For a list of available devices with their respective numbers, run:
 
For a list of available devices with their respective numbers, run:
$ aplay -l
+
{{hc|$ aplay -l|
 
  **** List of PLAYBACK Hardware Devices ****
 
  **** List of PLAYBACK Hardware Devices ****
 
  card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
 
  card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Line 238: Line 269:
 
   Subdevices: 1/1
 
   Subdevices: 1/1
 
   Subdevice #0: subdevice #0
 
   Subdevice #0: subdevice #0
 
+
}}
 
In this case, the HDMI output is {{ic|card 0}} and the sound card is {{ic|card 1}}. To make your sound card the default for ALSA, create the file {{ic|.asoundrc}} in your home directory, with the following content:
 
In this case, the HDMI output is {{ic|card 0}} and the sound card is {{ic|card 1}}. To make your sound card the default for ALSA, create the file {{ic|.asoundrc}} in your home directory, with the following content:
 
{{hc|~/.asoundrc|
 
{{hc|~/.asoundrc|
Line 262: Line 293:
 
=== Flash Player: bad (choppy) sound on the 64-bit version ===
 
=== Flash Player: bad (choppy) sound on the 64-bit version ===
  
There is a problem with Flash plugin 11 on 64-bit systems and a new {{ic|memcpy}} routine in {{Pkg|glibc}} (for more details see [https://bugzilla.redhat.com/show_bug.cgi?id&#;638477 this Fefora bug report]), which makes the sound choppy on MP3 streams. Current workarounds are:
+
There is a problem with Flash plugin 11 on 64-bit systems and a new {{ic|memcpy}} routine in {{Pkg|glibc}} (for more details see [https://bugzilla.redhat.com/show_bug.cgi?id&#;638477 this Fedora bug report]), which makes the sound choppy on MP3 streams. Current workarounds are:
 
* replacing the {{ic|memcpy}} routine as suggested in [http://forums.fedoraforum.org/showthread.php?t=258346 this thread].
 
* replacing the {{ic|memcpy}} routine as suggested in [http://forums.fedoraforum.org/showthread.php?t=258346 this thread].
 
* installing {{AUR|flashplugin-square}} from the [[AUR]] (this is a version of the Flash plugin with working hardware acceleration).
 
* installing {{AUR|flashplugin-square}} from the [[AUR]] (this is a version of the Flash plugin with working hardware acceleration).
Line 268: Line 299:
 
=== Flash Player: performance ===
 
=== Flash Player: 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]]
+
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|Cpufrequtils]]
  
 
=== Flash Player: low webcam resolution ===
 
=== Flash Player: low webcam resolution ===
Line 276: Line 307:
  
 
=== Flash Player: black bars in full screen playback on multi-headed setups ===
 
=== Flash Player: black bars in full screen 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.
 
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.
  
Line 284: Line 316:
 
{{Note|While the author mentions using NVDIA's TwinView, the hack should work for any multi-monitor setup.}}
 
{{Note|While the author mentions using NVDIA's TwinView, the hack should work for any multi-monitor setup.}}
  
=== Flash Player: Blue tint on videos with NVIDIA ===
+
=== Flash Player: blue tint on videos with NVIDIA ===
  
 
An issue with {{Pkg|flashplugin}} versions 11.2.202.228-1 and 11.2.202.233-1 causes it to send the U/V panes in the incorrect order resulting in a blue tint on certain videos. Version 0.5 of {{Pkg|libvdpau}} includes a workaround to fix this, see the [http://lists.x.org/archives/xorg-announce/2012-September/002066.html official announcement].
 
An issue with {{Pkg|flashplugin}} versions 11.2.202.228-1 and 11.2.202.233-1 causes it to send the U/V panes in the incorrect order resulting in a blue tint on certain videos. Version 0.5 of {{Pkg|libvdpau}} includes a workaround to fix this, see the [http://lists.x.org/archives/xorg-announce/2012-September/002066.html official announcement].
  
=== Flash Player: Leaking overlay with NVIDIA ===
+
=== Flash Player: leaking overlay with NVIDIA ===
  
 
This bug is due to the incorrect color key being used by the {{Pkg|flashplugin}} version 11.2.202.228-1 (see [http://www.nvnews.net/vbulletin/showpost.php?p=2514210&postcount=102 this post] on the NVIDIA forums) and causes the Flash content to "leak" into other pages or solid black backgrounds. To avoid this issue simply export {{ic|1=VDPAU_NVIDIA_NO_OVERLAY=1}} within either your shell profile (e.g. {{ic|~/.bash_profile}} or {{ic|~/.zprofile}}) or {{ic|~/.xinitrc}}
 
This bug is due to the incorrect color key being used by the {{Pkg|flashplugin}} version 11.2.202.228-1 (see [http://www.nvnews.net/vbulletin/showpost.php?p=2514210&postcount=102 this post] on the NVIDIA forums) and causes the Flash content to "leak" into other pages or solid black backgrounds. To avoid this issue simply export {{ic|1=VDPAU_NVIDIA_NO_OVERLAY=1}} within either your shell profile (e.g. {{ic|~/.bash_profile}} or {{ic|~/.zprofile}}) or {{ic|~/.xinitrc}}
Line 303: Line 335:
 
You need to copy {{ic|libflashplayer.so}} to the folder {{ic|/usr/lib/mozilla/plugins/}}
 
You need to copy {{ic|libflashplayer.so}} to the folder {{ic|/usr/lib/mozilla/plugins/}}
  
Older {{Pkg|flashplugin}} packages can be downloaded from the [https://wiki.archlinux.org/index.php/Downgrading_Packages#ARM ARM]: http://arm.konnichi.com/search/index.php?a=32&q=flashplugin
+
Older {{Pkg|flashplugin}} packages can be downloaded from the [[AUR]] e.g. {{AUR|flashplugin-nosse2}}. Alternatively you can install {{AUR|flashplugin-sse2-nosse2}} which can be used on CPUs with and without SSE2.
 +
 
 
The most recent package without SSE2 is {{ic|flashplugin-11.1.102.63-1-i686.pkg.tar.xz}}. If you use the packaged version, you have to add {{ic|IgnorePkg &#61; flashplugin}} to {{ic|/etc/pacman.conf}}.
 
The most recent package without SSE2 is {{ic|flashplugin-11.1.102.63-1-i686.pkg.tar.xz}}. If you use the packaged version, you have to add {{ic|IgnorePkg &#61; flashplugin}} to {{ic|/etc/pacman.conf}}.
  

Revision as of 12:28, 30 January 2014

These plugins work in Firefox, Opera and WebKit derivatives.

Flash Player

Shumway

Shumway is an HTML5 technology experiment that explores building a faithful and efficient renderer for the SWF file format without native code assistance. As of 2013-01-01, the plugin may be installed directly from Mozilla's github.io site. According to the Shumway wiki, "Integration with Firefox is a possibility if the experiment proves successful."

Warning: As of 2013-10-23, the AUR package is no longer being maintained.

Shumway is available as a plugin, as firefox-extension-shumwayAUR in the AUR or embedded in Firefox Nightly/Aurora builds.

Gnash

Template:Wikipedia

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.

Note: If you find that Gnash doesn't work properly right out of the box, then you may also need to install gstreamer0.10-ffmpeg from the official repositories.

Lightspark

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 lightsparkAUR or lightspark-gitAUR, available in the AUR.

Adobe Flash Player

Install flashplugin from the official repositories.

Note:
  • Adobe Flash Player for Linux using the NPAPI was discontinued by Adobe, although security updates for version 11.2 will be provided for another 5 years by Adobe (i.e. 2017). Adobe will, however, release new versions of PPAPI version of the plugin, shipped with Google Chrome. See Chromium#Adobe Flash Player (Pepper plugin API) for more information.
  • For hardware acceleration, see VDPAU.
  • Some Flash apps may require ttf-ms-fontsAUR from the AUR in order to properly render text.

Configuration

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 Adobe 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:

/etc/adobe/mms.cfg
# 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/16250-1360745667/Flash%20Fullscreen%20Patcher.zip
$ unzip Flash\ Fullscreen\ Patcher\ 2.0.zip
$ wine Flash\ Fullscreen\ Patcher\ 2.0.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/

Fullscreen fix for GNOME 3

If you have problems with Flash's fullscreen-mode (video freezes but audio keeps playing), then it's probably because the fullscreen flash window is displayed behind the browser window. This is a known upstream bug in mutter. You can easily fix this by using devilspie:

Install devilspie from the official repositories.

Create the ~/.devilspie directory:

# mkdir ~/.devilspie

Now you have to create a config file for each browser you use (see below)

Finally, add devilspie to your list of startup items (usually in gnome-session-properties).

Firefox
~/.devilspie/flash-fullscreen-firefox.ds
(if
(is (application_name) "plugin-container")
(begin
(focus)
)
)
Chrome / Chromium
~/.devilspie/flash-fullscreen-chrome.ds
(if
(is (application_name) "exe")
(begin
(focus)
)
)
Epiphany / GNOME Web
~/.devilspie/flash-fullscreen-epiphany.ds
(if
(is (application_name) "WebKitPluginProcess")
(begin
(focus)
)
)

PDF viewer

PDF.js

Template:Wikipedia

PDF.js is a PDF renderer created by Mozilla and built using HTML5 technologies. It is currently available as a Firefox plugin. For Chrome there is an experimental version in the Chrome web store or alternatively can be built from the source of Pdf.js

External PDF viewers

To use an external PDF viewer you need #MozPlugger or #kpartsplugin.

If you want to use MozPlugger with Evince, for example, you have to find the lines containing pdf in the /etc/mozpluggerrc file and modify the corresponding line after GV() as below:

repeat noisy swallow(evince) fill: evince "$file"

(replace evince with something else if it is not your viewer of choice).

If this isn't enough, you may need to change 2 values in about:config:

  • Change pdfjs.disabled's value to true;
  • Change plugin.disable_full_page_plugin_for_types's value to an empty value.

Restart and it should work like a charm!

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.

Also, there are localizations available in many languages.

32-bit

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).

64-bit

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 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 package 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.

Citrix

See the main article: Citrix.

Java (IcedTea)

To enable Java support in your browser, you have two options: the open-source OpenJDK (recommended) or Oracle's proprietary version. 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, 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 — Mozilla browser plugin to handle media on websites, using MPlayer.
https://sites.google.com/site/kdekorte2/gecko-mediaplayer || gecko-mediaplayer
  • Totem Plugin — Browser plugin based on the Totem media player for Gnome which uses Gstreamer.
http://projects.gnome.org/totem/ || totem-plugin
  • Rosa Media Player Plugin — Qt-based browser plugin also based on MPlayer.
https://abf.rosalinux.ru/uxteam/ROSA_Media_Player || rosa-media-player-pluginAUR
  • VLC Plugin — NPAPI-based plugin that uses VLC technologies.
http://git.videolan.org/?p=npapi-vlc.git;a=summary || npapi-vlc-gitAUR

Other

MozPlugger

MozPlugger can be installed with the mozpluggerAUR package, respectively mozplugger-chromiumAUR, available in the AUR.

MozPlugger is a Mozilla plugin which can show many types of multimedia inside your browser. To accomplish this, it uses external programs such as MPlayer, xine, Evince, OpenOffice, TiMidity, etc. To modify or add applications to be used by MozPlugger just modify the /etc/mozpluggerrc file.

For example, MozPlugger uses OpenOffice by default to open doc files. To change it to use LibreOffice instead, look for the OpenOffice section:

/etc/mozpluggerrc
...
### OpenOffice
define([OO],[swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: ooffice -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: soffice -nologo $1 "$file"])
...

and add LibreOffice at the beginning of the list:

/etc/mozpluggerrc
...
### LibreOffice/OpenOffice
define([OO],[swallow(VCLSalFrame) fill: libreoffice --nologo --norestore --view $1 "$file"
    swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: ooffice -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: soffice -nologo $1 "$file"])
...
Note: Be sure to also choose LibreOffice as your preferred application to open doc files.

As another simple example, if you want to open cpp files with your favorite text editor (we will use Kate) to get syntax highlighting, just add a new section to your mozpluggerrc file:

/etc/mozpluggerrc
text/x-c++:cpp:C++ Source File
text/x-c++:hpp:C++ Header File
    repeat noisy swallow(kate) fill: kate -b "$file"

For a more complete list of MozPlugger options see this page.

kpartsplugin

The KParts plugin is a plugin that uses KDE's KPart technology to embed different file viewers in the browser, such as Okular (for PDF), Ark (for different archives), Calligra Words (for ODF), etc. It cannot use applications that are not based on the KPart technology.

The KParts plugin can be installed with the package kpartsplugin, available in the official repositories.

Troubleshooting

Flash Player: no sound

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 the video card), then your preferred device may have a different number.

For a list of available devices with their respective numbers, run:

$ 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, the HDMI output is card 0 and the sound card is card 1. To make your sound card the default for ALSA, create the file .asoundrc in your home directory, with the following content:

~/.asoundrc
pcm.!default {
    type hw
    card 1
}
 
ctl.!default {
    type hw
    card 1
}

Flash Player: blocking sound for other applications or delayed playback

If sound is delayed within Flash videos or 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.

Flash Player: bad (choppy) sound on the 64-bit version

There is a problem with Flash plugin 11 on 64-bit systems and a new memcpy routine in glibc (for more details see this Fedora bug report), which makes the sound choppy on MP3 streams. Current workarounds are:

  • replacing the memcpy routine as suggested in this thread.
  • installing flashplugin-squareAUR from the AUR (this is a version of the Flash plugin with working hardware acceleration).

Flash Player: 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

Flash Player: low webcam resolution

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 [broswer]

Flash Player: black bars in full screen 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 available in the AUR and can be installed with the fullscreenhackAUR package.
Note: While the author mentions using NVDIA's TwinView, the hack should work for any multi-monitor setup.

Flash Player: blue tint on videos with NVIDIA

An issue with flashplugin versions 11.2.202.228-1 and 11.2.202.233-1 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.

Flash Player: leaking overlay with NVIDIA

This bug is due to the incorrect color key being used by the flashplugin version 11.2.202.228-1 (see this post on the NVIDIA forums) 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 Player: 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:

$ grep sse2 /proc/cpuinfo

If no results are returned, then you need to install an older version of Flash (for example 10.3, or 11.1). Older versions possibly will have vulnerabilities. You should then consider sandboxing Firefox using sandfoxAUR, available in the AUR. See the sandfox homepage for usage information.

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/

Older flashplugin packages can be downloaded from the AUR e.g. flashplugin-nosse2AUR. Alternatively you can install flashplugin-sse2-nosse2AUR which can be used on CPUs with and without SSE2.

The most recent package without SSE2 is flashplugin-11.1.102.63-1-i686.pkg.tar.xz. If you use the packaged version, you have to add IgnorePkg = flashplugin to /etc/pacman.conf.

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:

echo $MOZ_PLUGIN_PATH

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

source /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)