Many Linux users reboot into Windows to watch Netflix, but you can watch Netflix on Linux without rebooting. Unfortunately, the solution here is inefficient – while Linux geeks have explored a variety of other clever solutions, none of them work.
许多Linux用户重新引导进入Windows观看Netflix,但是您可以在Linux上观看Netflix而无需重新引导。 不幸的是,这里的解决方案效率低下-尽管Linux极客们探索了其他各种聪明的解决方案,但它们都不起作用。
A Windows virtual machine is your best bet for Netflix on Linux at the moment. Until Netflix acknowledges Linux users and gives us a solution, we’re stuck dual-booting or making due with a virtual machine.
Windows虚拟机是目前在Linux上Netflix的最佳选择。 在Netflix承认Linux用户并为我们提供解决方案之前,我们一直无法使用虚拟机进行双启动或强制启动。
Update: Netflix now officially supports Linux. Just download Google Chrome for Linux and visit Netflix. It won’t work in Mozilla Firefox, Chromium, or other web browsers — just Google Chrome.
更新: Netflix现在正式支持Linux。 只需下载适用于Linux的Google Chrome浏览器,然后访问Netflix。 它不适用于Mozilla Firefox,Chromium或其他网络浏览器-仅适用于Google Chrome。
Silverlight问题 (The Silverlight Problem)
Netflix is frustrating because it seems like something that should work on Linux — it’s just playing videos in a browser. Netflix runs on everything from Android and Chrome OS (both based on Linux) to game consoles, DVD players, and home entertainment systems like the Roku. So why not Linux?
Netflix感到沮丧,因为它似乎应该可以在Linux上运行-它只是在浏览器中播放视频。 Netflix可以在从Android和Chrome OS(均基于Linux)到游戏机,DVD播放器以及家庭娱乐系统(如Roku)的所有内容上运行。 那么为什么不使用Linux呢?
Netflix doesn’t work on Linux because the standard web player uses Silverlight — Microsoft’s ill-fated and seemingly abandoned competitor to Adobe Flash — instead of the Flash plugin. As no official version of Silverlight is available for Linux, Netflix won’t work on Linux. Netflix could create a solution for Linux users, but they have so far declined to do so — their help page doesn’t even acknowledge that Linux exists.
Netflix无法在Linux上运行,因为标准的网络播放器使用的是Silverlight(而不是Flash插件,它是Microsoft命运不佳且看似已成为Adobe Flash的竞争对手)。 由于没有适用于Linux的Silverlight正式版,因此Netflix无法在Linux上运行。 Netflix可以为Linux用户创建解决方案,但是到目前为止,他们拒绝这样做-他们的帮助页面甚至不承认Linux存在。
什么不起作用 (What Doesn’t Work)
Before we get into the gory details, here are some clever ideas that could theoretically allow us to watch Netflix on Linux — none of which actually work:
在深入探讨细节之前,这里有一些巧妙的想法,从理论上讲可以使我们在Linux上观看Netflix,但实际上没有一个可行:
-
Use Moonlight, an Open-Source Silverlight Implementation for Linux — Moonlight was supposed to bring support for Silverlight web content to Linux, but Microsoft refuses to license Silverlight’s DRM (digital rights/restrictions management) implementation to Moonlight. As Moonlight lacks DRM support, Netflix will not play in Moonlight.
使用Moonlight,这是Linux的开源Silverlight实现 。Moonlight应该为Linux提供对Silverlight Web内容的支持,但是Microsoft拒绝将Silverlight的DRM(数字版权/限制管理)实现授权给Moonlight。 由于Moonlight缺乏DRM支持,因此Netflix将无法在Moonlight中播放。
-
Install the Chrome OS Netflix Plugin — Chrome OS is based on Linux and the Netflix app allows video streaming on Chrome OS. As the Chrome browser is available for Linux, you might think it’s possible to install the Chrome OS plugin on Linux somehow. Unfortunately, the Netflix app for Chrome OS requires a special Netflix Video Player plugin that only appears to function on Chrome OS — copying these files to a Linux desktop will result in an error when trying to play Netflix.
安装Chrome操作系统Netflix插件 -Chrome操作系统基于Linux,而Netflix App允许在Chrome操作系统上流式传输视频。 由于Chrome浏览器可用于Linux,因此您可能会认为可以以某种方式在Linux上安装Chrome OS插件。 不幸的是,适用于Chrome OS的Netflix App需要一个特殊的Netflix Video Player插件,该插件似乎只能在Chrome OS上运行-将这些文件复制到Linux桌面时会在尝试播放Netflix时导致错误。
-
Run the Netflix Android App — You could try to run the Netflix Android app in the Android SDK emulator, but it would be extremely slow. Even if it worked at a high enough speed, the app fails when attempting to play a video, according to users who’ve tried.
运行Netflix Android应用程序 —您可以尝试在Android SDK仿真器中运行Netflix Android应用程序,但这会非常慢。 据尝试过的用户称,即使它以足够高的速度工作,该应用在尝试播放视频时也会失败。
-
Use Wine to Run the Windows Version of Silverlight — Silverlight doesn’t yet function properly in Wine, as the Wine AppDB tells us.
使用Wine运行Windows版本的Silverlight-正如Wine AppDB告诉我们的那样,Silverlight在Wine中仍无法正常运行。
什么有效 (What Does Work)
The only method that will work is running Windows itself in a virtual machine — definitely not an ideal solution, as you’re still running Windows, but it’s a method you can use to run Netflix on your Linux desktop without restarting your system.
唯一可行的方法是在虚拟机中运行Windows本身-绝对不是理想的解决方案,因为您仍在运行Windows,但这是一种无需重新启动系统即可在Linux桌面上运行Netflix的方法。
The Windows virtual machine will function as an extremely inefficient video player. You’ll need powerful enough hardware to run a virtual machine that can play back high-definition videos without stuttering, but there are some tricks you can use to boost performance.
Windows虚拟机将充当效率极低的视频播放器。 您将需要足够强大的硬件来运行虚拟机,该虚拟机可以播放高清视频而不会停顿,但是您可以使用一些技巧来提高性能。
This method will require a legitimate copy of Windows, but the virtual machine software itself is free.
此方法需要Windows的合法副本,但虚拟机软件本身是免费的。
准备虚拟机 (Preparing a Virtual Machine)
First, you’ll need to install a virtual machine program. VirtualBox is a good one — it’s available in Ubuntu’s software repositories. You could also try VMware Player if VirtualBox gives you trouble.
首先,您需要安装虚拟机程序。 VirtualBox是一个很好的工具-可在Ubuntu的软件存储库中找到。 如果VirtualBox给您带来麻烦,您也可以尝试VMware Player。
After installing the virtual machine program, launch it and create a new virtual machine using its wizard. Ideally, you should create a Windows XP virtual machine if you have an old Windows XP disc lying around — Windows XP takes less hardware power to virtualize, freeing up system resources for the intensive task of streaming HD video in a virtual machine.
安装虚拟机程序后,启动它并使用其向导创建一个新的虚拟机。 理想情况下,如果周围有旧的Windows XP光盘,则应创建Windows XP虚拟机-Windows XP使用较少的硬件功能进行虚拟化,从而释放了系统资源来完成在虚拟机中传输高清视频的繁重任务。
If you don’t have a copy of Windows XP, you can download a free Release Preview copy of Windows 8 and install it in a virtual machine — Microsoft provides free preview versions of Windows 8 until it’s officially released. Bear in mind that Windows 8 will take more power to virtualize than XP.
如果您没有Windows XP的副本,则可以下载Windows 8的免费Release Preview副本并将其安装在虚拟机中-Microsoft会提供Windows 8的免费预览版本,直到正式发布为止。 请记住,Windows 8将比XP具有更多的虚拟化功能。
After installing Windows in your virtual machine, make sure you install Guest Additions (in VirtualBox) or VMware Tools (in VMware Player). These packages include optimized video drivers that will speed up video playback. To install Guest Additions in VirtualBox, click the Devices menu and select Install Guest Additions. Once you have, install Microsoft’s Silverlight plugin and your favorite web browser, and then fire up Netflix.
在虚拟机中安装Windows之后,请确保安装来宾添加(在VirtualBox中)或VMware Tools(在VMware Player中)。 这些软件包包括优化的视频驱动程序,可加快视频播放速度。 要在VirtualBox中安装Guest Additions,请单击“设备”菜单,然后选择“安装Guest Additions”。 安装完后,安装Microsoft的Silverlight插件和您喜欢的Web浏览器,然后启动Netflix。
You can also run the virtual machine in seamless mode (use the View menu and select Switch to Seamless Mode in VirtualBox). In seamless mode, the Netflix browser will appear to be just another window on your Linux desktop, although it’s still running the virtual machine in the background. The equivalent feature in VMware Player is referred to as “Unity.”
您也可以在无缝模式下运行虚拟机(使用“查看”菜单,然后在“ VirtualBox”中选择“切换到无缝模式”)。 在无缝模式下,尽管Netflix浏览器仍在后台运行虚拟机,但它似乎只是Linux桌面上的另一个窗口。 VMware Player中的等效功能称为“ Unity”。
虚拟机性能提示 (Virtual Machine Performance Tips)
Here are some things you can do to improve performance in the virtual machine:
您可以采取以下措施来提高虚拟机的性能:
-
Reduce Netflix’s Video Bitrate – Use the Manage Video Quality page on Netflix’s website to reduce the streaming bitrate. At a lower bitrate, image quality will be worse but performance should improve.
降低Netflix的视频比特率 –使用Netflix网站上的“ 管理视频质量”页面降低流式比特率。 在较低的比特率下,图像质量会较差,但性能应提高。
-
Reduce Virtual Machine Resolution – Try decreasing the Windows virtual machine’s display resolution. At smaller resolutions, the virtual machine should require less hardware power to play back video.
降低虚拟机分辨率 –尝试降低Windows虚拟机的显示分辨率。 在较小的分辨率下,虚拟机将需要较少的硬件功能来播放视频。
-
Optimize Virtual Machine Software – Ensure no unnecessary software is running in the background inside your virtual machine for optimal performance. You could also try changing browsers inside the virtual machine or using a dedicated browser – for example, using Google Chrome’s “Create Application Shortcuts” menu option to create a Netflix-only browser window.
优化虚拟机软件 –确保虚拟机内部没有任何不必要的软件在后台运行,以实现最佳性能。 您也可以尝试更改虚拟机内部的浏览器或使用专用的浏览器-例如,使用Google Chrome的“创建应用程序快捷方式”菜单选项创建仅Netflix的浏览器窗口。
-
Install VirtualBox Guest Additions or VMware Tools – Install the Guest Additions in VirtualBox or VMware Tools in VMware if you haven’t already. The optimized video drivers will speed up playback.
安装VirtualBox Guest Additions或VMware Tools –如果尚未安装,请在VirtualBox或VMware Tools中安装Guest Additions。 经过优化的视频驱动程序将加快播放速度。
-
Choose a Less-Demanding Operating System – Use Windows XP in the virtual machine instead of Windows Vista or Windows 7. Windows XP takes less power to virtualize.
选择需求较少的操作系统 –在虚拟机中使用Windows XP,而不是Windows Vista或Windows7。WindowsXP进行虚拟化的功能较少。
-
Try Another Virtual Machine Program – VMware Player may perform better than VirtualBox on your system, or vice versa
尝试其他虚拟机程序 – VMware Player在您的系统上可能比VirtualBox表现更好,反之亦然
-
Adjust Virtual Machine Settings – You may also want to go into your virtual machine’s configuration and try tweaking its settings — for example, allocating additional video memory or system memory to the virtual machine may improve performance.
调整虚拟机设置 –您可能还需要进入虚拟机的配置并尝试调整其设置-例如,为虚拟机分配额外的视频内存或系统内存可能会提高性能。
要求Linux支持 (Demanding Linux Support)
Is this a silly, inefficient solution that shouldn’t be necessary? Absolutely — but it’s the best one available at the moment.
这是一个愚蠢的,低效的解决方案吗? 绝对如此-但这是目前最好的一种。
Want an official way to watch Netflix on Linux? You can always call Netflix’s customer service number and ask for Linux support — hopefully customer demand will one day force their hand.
想要以正式方式在Linux上观看Netflix吗? 您可以随时拨打Netflix的客户服务电话并寻求Linux支持-希望有一天客户的需求能帮助他们解决问题。
There’s also a Netflix on Linux petition you can sign to express your support.
您还可以签署一份关于Linux的Netflix请愿书 ,以表达对您的支持。
翻译自: https://www.howtogeek.com/119204/how-to-watch-netflix-on-linux/