July 11, 2014 Leave a comment
I use Gentoo Linux (~amd64) on my main laptop. Although I do not use Netflix or any of the other streaming video services that require the Microsoft Silverlight browser plug-in, I do need to use a browser with the Silverlight plug-in to access an office Intranet site. So I was interested in installing the Pipelight plug-in.
Although Pipelight works with most of the Silverlight test sites I have found on the Web, I cannot get it to work with the above-mentioned office Intranet site, which is why I ended up installing Firefox for Windows and Silverlight in WINE (see my previous post). Anyway, below I explain how I installed and configured Pipelight 0.2.7.1 and Firefox 30.0 for Linux. Even if you use a different Linux distribution to me, almost all of this post will still be relevant; only the package installation commands will differ.
Google Chrome 34 and onwards does not support NPAPI, so Pipelight does not work any more with Chrome. Actually, Mozilla has disabled some NPAPI support by default in Firefox 30: with the exception of the Flash plug-in you have to explicitly give permission for plug-ins to be activated via Click-to-Activate (also known as Click-to-Play). You can configure how Firefox Click-to-Activate behaves via Open menu > Add-ons > Plugins (choose either ‘Ask to Activate’, ‘Always Activate’ or ‘Never Activate’). See ‘Issues related to plugins – 4.1 Click to Play in Mozilla browser versions 23 and above‘ on the mozillaZine Website and ‘How to always activate a plugin for a trusted website‘ on the Mozilla Support Website.
I updated an existing Pipelight ebuild so that it will install the latest version of Pipelight (0.2.7.1) via a Portage local overlay. You can download the new ebuild from Gentoo Bugzilla Bug Report No. 481596 (see Comment 40). I can only get it to merge by using the -binary-pluginloader USE flag.
Install Firefox if it has not already been installed:
Install Pipelight (installation fails unless I disable binary-pluginloader):
Install WINE with the Compholio patches:
As you can see below, I have wine-1.7.21 and pipelight-0.7.2.1 installed.
Now update the dependency-installer script and enable the plug-in:
Applies to AMD ATI GPUs only: My main laptop has an AMD ATI HD 5850 GPU, and hardware acceleration causes Firefox to hang when the Pipelight plug-in is enabled, so I have to disable hardware acceleration:
Edit the Pipelight configuration file:
In order to force GPU acceleration uncomment the line:
overwriteArg = enableGPUAcceleration=true
In order to disable GPU acceleration (even if your graphic driver is probably supported) uncomment the line:
overwriteArg = enableGPUAcceleration=false
Instead of disabling GPU hardware acceleration in the Pipelight configuration file (
pipelight-silverlight5.1), I could have instead done it each time I launch Firefox by entering the following command:
But I prefer to be able to enter just the following command:
or to launch Firefox from the as-installed entry for Firefox in the Desktop Environment's launcher menu.
After launching Firefox for the first time, a series of pop-up windows will show that the Silverlight plug-in is being installed. Once the final pop-up window has closed, install the Firefox extension User Agent Overrider (do not install User Agent Switcher or any other user agent selection extension for Firefox), click on the down-arrow of the User Agent Overrider icon in Firefox and select 'Windows / Firefox 29' from the pull-down menu. I also selected 'Preferences...' and added another user agent string to the end of the list:
Windows / Firefox 15: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1
Check that the plug-in is installed correctly
about:plugins in the Firefox Address bar to check which plug-ins are installed, their version and current state.
Use the Pipelight diagnostic page to check the plug-in is working.
To see what commands the Pipelight plug-in supports, enter the following command in a Konsole/Terminal window:
Below are some links to Silverlight tests and other information regarding Pipelight and Silverlight.
Silverlight test pages
Here is an article on Netflix's intention to dump the awful Silverlight plug-in:
Netflix to dump Silverlight, Microsoft's stalled technology
Background information on the Pipelight project
This presentation was made by the Pipelight developers:
Pipelight - Windows browser plugins on Linux
Useful pages on the Pipelight Web site
This page, about selecting a User Agent String that will work, is important to read if you're having problems:
Pipelight | Installation - User Agent
Background reading on User Agent Strings
You can find out your current user agent string by using the following link:
What's My User Agent?
Alternative to using Pipelight
If you still have trouble viewing Web pages that use Silverlight, you might like to try an alternative approach: use Firefox for Windows and the Silverlight plug-in in WINE. See my previous blog post Installing Firefox for Windows and the Silverlight plug-in in WINE.