| |

How to Configure the Latest Version of Flash on Firefox for Linux: by the Fresh Player Plugin

As you may know, Adobe stopped supporting the NPAPI version of Flash on Linux and the latest NPAPI version of Flash player at version 11.2 released back in 2012 will only receive security fixes. Even the security fixes to the 11.2 version of the Flash Plugin your Firefox is using will end on May 4, 2017, five years from the release date. I am sure your latest Firefox is complaining to you that your installed Flash plugin is outdated and Firefox is preventing it from running if you are using the NPAPI based 11.2 version of the Flash Plugin.

Adobe points Linux users to the PPAPI or Pepper Plugin API version of Flash Plugin included in Chrome. The Pepper Flash plugin can also be installed in Chromium and Opera supporting the PPAPI. For various reasons, Firefox developers are not interested in implementing PPAPI in Firefox by current.

However, that does not mean Firefox users on Linux can not use latest versions of Flash. The open-source [[
https://github.com/i-rinat/freshplayerplugin|freshplayerplugin]] which is a PPAPI-host NPAPI-plugin adapter for the Flash plugin comes in and allows you to use the latest Flash plugin from Chrome in Firefox on Linux.

This post will introduce how to use the latest version of Flash Plugin on Firefox for Fedora Linux. For Ubuntu users, I also provide a quick note.

The very first step is, of course, to install Google Chrome as the Flash Plugin we will use is from Chrome. Please check How to install Chrome on Fedora Linux to install Chrome first.

Quick method: install pre-built Fresh Player Plugin

Get the pre-built freshplayerplugin library from this repository.

For Fedora 22 x86-64 users, you can download libfreshwrapper-flashplayer.so by this direct link.

Then save the downloaded libfreshwrapper-flashplayer.so to

~/.mozilla/plugins/

Restart Firefox and you will see that the latest version of Flaush Plugin is detected and used by Firefox by trying the Flash about page (version 19.0 as shown in the following picture).

You can also check the version detected by Firefox by browsing “about:plugins”.

Manual method: download source code of the Fresh Player Plugin and build it

Following is the instructions for those who would like to build the fresh player plugin by yourselves.

Install needed packages:

$ sudo dnf install cmake gcc gcc-c++ pkgconfig ragel alsa-lib-devel openssl-devel \
           glib2-devel pango-devel mesa-libGL-devel libevent-devel gtk2-devel         \
           libXrandr-devel libXrender-devel libXcursor-devel libv4l-devel             \
           mesa-libGLES-devel  ffmpeg-devel libva-devel libvdpau-devel libdrm-devel   \
           pulseaudio-libs-devel

Clonse the freshplayerplugin source code:

$ git clone https://github.com/i-rinat/freshplayerplugin
Cloning into 'freshplayerplugin'...
remote: Counting objects: 9977, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 9977 (delta 2), reused 0 (delta 0), pack-reused 9965
Receiving objects: 100% (9977/9977), 5.69 MiB | 77.00 KiB/s, done.
Resolving deltas: 100% (6819/6819), done.
Checking connectivity... done.

Prepare to build the freshplayerplugin:

$ cd freshplayerplugin/
$ mkdir build
$ cd build/
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
-- The C compiler identification is GNU 5.1.1
-- The CXX compiler identification is GNU 5.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for modules 'alsa;glib-2.0;gio-2.0;x11;xrandr;xrender;xcursor;gl;libdrm;libevent;libevent_pthreads;cairo;pango;pangocairo;pangoft2;freetype2;openssl'
--   found alsa, version 1.0.29
...
-- Looking for av_frame_free - found
-- Looking for avcodec_free_context
-- Looking for avcodec_free_context - found
-- checking for module 'libv4l2'
--   found libv4l2, version 1.6.2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zma/project/3rd-party/freshplayerplugin/build

Build the freshplayerplugin:

$ make
Scanning dependencies of target parson-obj
[  1%] Building C object 3rdparty/parson/CMakeFiles/parson-obj.dir/parson.c.o
[  1%] Built target parson-obj
Scanning dependencies of target stringify_images
[  2%] Building C object resources/CMakeFiles/stringify_images.dir/stringify_images.c.o
[  4%] Linking C executable stringify_images
[  4%] Built target stringify_images
Scanning dependencies of target img-resource-srcs
[  5%] Generating img_resources.h, img_resources.c
[  5%] Built target img-resource-srcs
Scanning dependencies of target img-resources
[  6%] Building C object resources/CMakeFiles/img-resources.dir/img_resources.c.o
[  8%] Linking C static library libimg-resources.a
[  8%] Built target img-resources
Scanning dependencies of target stringify_text
...
[ 97%] Building C object src/CMakeFiles/freshwrapper-flashplayer.dir/config_pepperflash.c.o
[ 97%] Linking C shared library ../libfreshwrapper-flashplayer.so
[ 97%] Built target freshwrapper-flashplayer
Scanning dependencies of target dep_check
[ 98%] Building C object src/CMakeFiles/dep_check.dir/dep_check.c.o
[100%] Linking C executable dep_check
[100%] Built target dep_check

The libfreshwrapper-flashplayer.so file is built successfully. And you can copy it to your plugin directory:

$ cp libfreshwrapper-flashplayer.so ~/.mozilla/plugins/

Restart Firefox and you will see that the latest version of Flaush Plugin is detected by the Flash about page.

Quick note for installing freshplayerplugin for Ubuntu Users

You may check the pre-compiled freshplayerplug from third party PPA by following commands.

$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install freshplayerplugin

Similar Posts

  • |

    How to Change Windows User Name on Windows 10 Using Computer Management

    The Windows user name can be changed according to the user’s needs and requirement. The Windows 10 Windows Settings tool interface keeps changing after updates. It is a little hard to find out the tool to do the user name changing. One way to change Windows user name is to do it through the Computer…

  • Chinese Charactor Configuration on Fedora 11

    最新的更新版本请看: Fedora 中文字体设置. 使用Linux时我个人倾向使用英文环境系统,而Fedora11在英文环境下中文字体有时会不太好看,经常遇到需要字体优化美化的问题。 以下是我的配置方案,经测试效果还算不错,解决了Fedora 11 中文字体难看的问题: 方案1:使用uming和ukai字体,即AR PL UMing CN等。 关键是使用的字体包如下: 首先要安装这两个字体: cjkuni-ukai-fonts cjkuni-uming-fonts 然后配置一下~/.fonts.conf文件. 使sans-serif serif monospace字体中文使用uming/ukai即可. 我的.fonts.conf文件可以从这里下载(两种选择, 我喜欢前者): https://github.com/zma/config_files 使用Liberation和uming/ukai字体: .fonts.cofn.liberation 使用dejavu和uming/ukai字体: .fonts.conf.dejavu 下载后放到自己的$HOME下改名为.fonts.conf就可以了。 使用uming字体效果如下(请放大后看效果): 方案2:安装文泉驿字体,这个非常简单,安装相应包即可了。 如果喜欢其它的字体选择性的安装上就可以了,只要注意只安装自己需要的就行了。有人使用微软雅黑字体,首先这是侵权的,其次开源的字体做得其实已经很不错了。 最后将字体平滑选项打开, KDE和gnome都有相关设置方法。 以上内容只是针对使用xft字体系统的设置。对于使用核心字体系统的X程序来说字体依然会出现很丑的情况。 下面是针对emacs的设置方法: 首先需要安装这个字体包: xorg-x11-fonts-misc 注意到在中文系统下emacs的中文显示非常好,而在英文环境中去非常差,我们可以利用这一点,在运行emacs前首先将系统环境设为中文即可。 在~/bin/下建立一文件ema 内容如下: #!/bin/bash rm -f ~/.emacs ln -s ~/.emacs.x ~/.emacs LANG=zh_CN.UTF-8 emacs –fullheight -r $* 然后加入执行权限即可: chmod +x…

  • ALSA Problem of Fedora 11 on Compaq Presario CQ35-240TX

    When I get my new Compaq Presario CQ35-240TX, of course, the first thing is to install Fedora ;) But unfortunately, after installation there is no sound! It seems there is something wrong with the driver configuration. Here is a solution to this: Add these two line at the end of /etc/modprobe.d/dist.conf options snd-hda-intel model=hp-m4 enable=1…

  • |

    Xen DomU’s I/O Performance of LVM and loopback Backed VBDs

    This posts list benchmark (using bonnie++) result of I/O performance of Xen LVM and loopback backed VBDs. The configuration of machines Dom0 VCPU: 2 (Intel(R) Xeon(R) CPU E5520  @ 2.27GHz) Memory: 2GB Xen and Linux kernel: Xen 3.4.3 with Xenified 2.6.32.13 kernel DomU VCPU: 2 Memory: 2GB Linux kernel: Fedora (2.6.32.19-163.fc12.x86_64) DomU’s profile: name=”10.0.1.200″ vcps=2…

3 Comments

  1. That’s nice and all, but Google has stopped supporting Chrome for 32-bit systems. Those of us still using 32-bit are left in the dark because there is no available downloads for Chrome. Chromium is an alternative; however, I don’t believe Flash works in Chromium for Ubuntu 16.04 “Xenial” based OS’s (i.e. Linux Mint 18). I know that Silverlight doesn’t work for streaming Netflix in Chromium. It takes manipulation of Firefox to get Silverlight to work for the 32-bit systems (Netflix streams fine in Chrome on my 64-bit machine).

    There is a very easy workaround, which also works for 64-bit machines (and is a lot simpler than your method above). Install pipelight-plugin, which incorporates Flash, Silverlight, and modifications of Firefox to emulate running in other modes (Win IE11, Win Edge, Mac OSX Safari, Android, iOS etc). No offense, but your way is incredibly complex. Installing Pipelight and then typing “sudo pipelight-plugin –enable flash” will enable Firefox to install the most up to date Flash for Windows on your Linux machine the first time you visit a page that uses Flash. Quick, easy, and painless. No need to install Google Chrome or do anything else (other than enter command lines). As I am typing this, my machine has Adobe Flash 22.0.0.209 and I don’t have Chrome installed. Not only that, but it keeps itself up-to-date. No need to constantly run upgrades or anything of the sort. Set and forget. :) I know it works for Facebook games that didn’t work prior to me installing Pipelight that require an up-to-date Flash Player. http://pipelight.net/cms/

  2. I like the way suggested by Jeff. But please how is possible to keep pipelight plugins updated? Cheers

Leave a Reply

Your email address will not be published. Required fields are marked *