Tying the knot between Pepper Flash and SRWare Iron

1 Comment

Update on 2015-07-04: GNU/Debian users may follow a different path - there is now a package called pepperflashplugin-nonfree, which automates and bundles my tutorial into one small script. Not done by me, so kudos to whoever created it! ;)

More info at: https://wiki.debian.org/PepperFlashPlayer

Note: For Firefox users, there is also something called Fresh Player plugin which works like a wrapper plugin, and enables you to use Pepper Flash (und thus the latest version of Flash) as well.

Back to the original tutorial:

After nearly a year, the work on getting Pepperflash to work in SRWare Iron (under Linux) continues. Had to reinstall Firefox, and while trying to update the local Flash player installation as well, something went awry. Got it working, but couldn't disable the hardware accelleration in SRWare Iron anymore (menu would open up, but not respond).

So I decided to look again into this topic - and my findings are basically the same as before, so the logical next step was to get working on all those options I mentioned in my first article. Please note that this article focuses on Linux Mint, which is a Ubuntu derivate (which again is a GNU/Debian derivate). Directory locations may differ on non-GNU/Debian systems.

TL;DR: How to set up Pepperflash .. Consists of two seperate parts.

Part #1: Getting your hands on the Pepperflash library

  1. Download the latest (developer) version of Google Chrome: https://www.google.com/chrome/intl/en/eula_dev.html?dl=unstable_amd64_deb
  2. Open a terminal and unpack the debian archive into an appropriate directory (using ar and tar)
  3. Change into the directory opt/google/chrome/Pepperflash/
  4. Copy the Pepperflash library libpepflashplayer.so into your SRWare Iron program directory (in Ubuntu/Linux Mint: /usr/share/iron/); of corpse this requires Superuser rights, so its eg. sudo cp /path/to/Pepperflash/libpepflashplayer.so /usr/share/iron/
  5. Now open the file manifest.json inside the original Pepperflash directory and copy the value after "Version", so we have it at hands for the next few steps ;)

Part #2: Making Iron work with Pepperflash

Now let's give this a test run - the correct calling parameters require two values, one is the beforementioned version of Pepperflash, the other is its current location, ie. path, which looks like this:

/path/to/iron/iron  --ppapi-flash-path=/path/to/libpepflashplayer.so --ppapi-flash-version=(version_number)

Example:

/usr/share/iron/iron --ppapi-flash-path=/usr/share/iron/plugins/libpepflashplayer.so --ppapi-flash-version=11.8.800.115

Browse over to Youtube, open up eg. http://www.youtube.com/watch?v=98ew0VtHmik, and if you all works (in my example you should see and hear a Death Metal cover version of the Super Mario Castle background music), then let's continue! ;)

Getting things nailed down

Instead of hacking around in the chromium-wrapper.sh, which isn't being called anyway, we go straight to the .desktop application files, which in most cases is the only file being called all the time, eg. from the "start" menu of your desktop environment (Gnome, KDE, XFCE, etc.). In my case, its good ole XFCE 4. Since I've been using it, I've actually got no use for the desktop itself anymore (aside for some lazy unmount actions) - just right-click anywhere or click on the XFCE menu entry in one of your panels - off you go... AND THERE sits your SRWare Iron menu entry as well ;)

  1. Change to the directory /usr/share/applications
  2. Next, backup the Iron desktop file iron.desktop, eg. as iron_desktop.bak
  3. Note: If you want this change just to work for your own user account, copy the desktop file into /home/your_user_name/.local/share/applications/
  4. Open the file in an appropriate editor, eg. nano, search for the Exec line and replace it with the following one:
    Exec=sh -c "/usr/share/iron/iron --ppapi-flash-path=/usr/share/iron/libpepflashplayer.so --ppapi-flash-version=(your_flash_version)"
    
    With this Iron is being called via a shell session (usually dash on Ubuntu derivates, and bash on GNU/Debian systems), because the Exec parameter doesn't allow for / support the use of parameters.
  5. Save your changes - and you're done!

Now give it another test run by simply opening your start menu, locating the SRWare Iron menu entry and selecting it. Open the internal url chrome://plugins and locate the "Adobe Flash Player" section - if it's there and showing the correct version number, then all is well. ;)

Screenshot in my case:

Screenshot of the SRWare Iron browser plugin page, displaying the Adobe Flash Player section

Ressources:

  • How to extract RPM / DEB packages: http://www.g-loaded.eu/2008/01/28/how-to-extract-rpm-or-deb-packages/
  • Chromium Flash Pepper on precise, how?: http://ubuntuforums.org/showthread.php?t=1976503&page=2&p=12307769#post12307769
  • .desktop Standard Definitions: http://standards.freedesktop.org/desktop-entry-spec/latest/
  • Nylithia
  • Super Mario Castle cover (Bonus Track): http://www.youtube.com/watch?v=98ew0VtHmik
  • "Issue 169986: PepperFlash: Alternate distribution method needed for Chromium users": http://code.google.com/p/chromium/issues/detail?id=169986
  • PPA: Pepper Flash installer: https://launchpad.net/~skunk/+archive/pepper-flash/?field.series_filter=precise

Short URL:

Saw the backlink to this article in the official SRWare Iron forum - and it was broken, thanks to overzealous phpBB. Thus I decided to add a nifty short URL to my very own URL shortener - w/o further addo:

http://f2w.de/tying-the-knot (aliases: tyingtheknot and srware-iron) ;)

Alex

Followed all the steps and still no flash showing up, nor working on the bbc website, yet youtube works?!

Can you make it a bit clearer?

12.01.2016 09:16