Streaming on Linux 07-27-2014, 12:37 PM
#1
Those of you who use Linux as a daily OS may be aware that streaming video from services such as Netflix and Amazon is not supported by them. This is because they use Microsoft's silverlight plugin to handle the DRM. After spending months arguing with the support and technical staff about their refusal to support Linux I decided to take matters into my own hands and see if I could get this to work natively (I know you could use a VM with Windows installed but I wanted this to work with my existing browser).
The first issue is that silverlight is not available for Linux and the Linux community has refused to allow an official port but there is a way to get it. We will be using pipelight which uses a patched wine version to provide a windows environment to the plugins. I will go through the installation of pipelight under Ubuntu/Mint since this is the most popular distro here but will link to installation page at the end of this tutorial for those running a different distro.
First pipelight is not in the standard repo's so we will have to add it (you should run all of these commands as root so either add sudo to the beginning of the command or log into the terminal as root)
This will install the software and ensure all of the plugins are up to date, next we need to enable the silverlight plugin so again as root
You will be met with an EULA which you should read and then hit 'y' to accept, pipelight will then download and install the plugin for your browser (I use Firefox but should work with Chrome and most other common browsers)
OK that's the hard part and we're almost there, I tried to view Netflix after this step but got an error message telling me my device was not supported and so playback would not continue. We need to spoof the user agent of the browser to trick the service into thinking we're using Windows I used this Firefox plugin and found this for Chrome after a little experimentation (considering the version of sliverlight we are using I found FF 15 for Windows gave the best results so that's the one I'll provide but feel free to play around and see what else works.
Select this as your user agent and then go to the streaming service you wish to use and it should now stream. It's long winded but as far as I can tell this is the best method to get these services to stream natively under Linux. One more thing this method does not work with all services, so far I have tested this with Amazon instant, Netflix and NowTV, and only NowTV is refusing to play nice I might play around with different user agents and plugin versions to see if I can get this to work but will be at a later date.
For those of you not using Ubuntu/Mint see this page for pipelights installation instructions
Also I should mention you should disable the silverlight plugin when not in use
as the plugin will cause your browser to lag on launch due to having to start wine and inject the plugin.
The first issue is that silverlight is not available for Linux and the Linux community has refused to allow an official port but there is a way to get it. We will be using pipelight which uses a patched wine version to provide a windows environment to the plugins. I will go through the installation of pipelight under Ubuntu/Mint since this is the most popular distro here but will link to installation page at the end of this tutorial for those running a different distro.
First pipelight is not in the standard repo's so we will have to add it (you should run all of these commands as root so either add sudo to the beginning of the command or log into the terminal as root)
Code:
add-apt-repository ppa:pipelight/stable
apt-get update
apt-get install --install-recommends pipelight-multi
pipelight-plugin --updateThis will install the software and ensure all of the plugins are up to date, next we need to enable the silverlight plugin so again as root
Code:
pipelight-plugin --enable silverlight5.1You will be met with an EULA which you should read and then hit 'y' to accept, pipelight will then download and install the plugin for your browser (I use Firefox but should work with Chrome and most other common browsers)
OK that's the hard part and we're almost there, I tried to view Netflix after this step but got an error message telling me my device was not supported and so playback would not continue. We need to spoof the user agent of the browser to trick the service into thinking we're using Windows I used this Firefox plugin and found this for Chrome after a little experimentation (considering the version of sliverlight we are using I found FF 15 for Windows gave the best results so that's the one I'll provide but feel free to play around and see what else works.
Code:
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:15.0) Gecko/20121011 Firefox/15.0.1
App Code Name: Mozilla
App Name: Netscape
App Version: 5.0 (X11)
Platform: WindowsSelect this as your user agent and then go to the streaming service you wish to use and it should now stream. It's long winded but as far as I can tell this is the best method to get these services to stream natively under Linux. One more thing this method does not work with all services, so far I have tested this with Amazon instant, Netflix and NowTV, and only NowTV is refusing to play nice I might play around with different user agents and plugin versions to see if I can get this to work but will be at a later date.
For those of you not using Ubuntu/Mint see this page for pipelights installation instructions
Also I should mention you should disable the silverlight plugin when not in use
Code:
sudo pipelight-plugin --disable silverlight
(as root)If you need help feel free to PM me
![[Image: klfpJD]](http://goo.gl/klfpJD)
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: V2NMLjp.png]](http://i.imgur.com/V2NMLjp.png)
![[Image: iQ3pcQu.png]](http://i.imgur.com/iQ3pcQu.png)