diff --git a/sources/tech/20200525 Now You Can Run Linux Apps in Windows (Thanks to WSL).md b/sources/tech/20200525 Now You Can Run Linux Apps in Windows (Thanks to WSL).md deleted file mode 100644 index 77e3ba785a..0000000000 --- a/sources/tech/20200525 Now You Can Run Linux Apps in Windows (Thanks to WSL).md +++ /dev/null @@ -1,103 +0,0 @@ -[#]: collector: (lujun9972) -[#]: translator: (lnrCoder) -[#]: reviewer: ( ) -[#]: publisher: ( ) -[#]: url: ( ) -[#]: subject: (Now You Can Run Linux Apps in Windows (Thanks to WSL)) -[#]: via: (https://itsfoss.com/run-linux-apps-windows-wsl/) -[#]: author: (Ankush Das https://itsfoss.com/author/ankush/) - -Now You Can Run Linux Apps in Windows (Thanks to WSL) -====== - -Microsoft’s recent “[Build 2020][1]” developer conference involved some interesting announcements. I’m not sure if it’s something to be excited about or skeptical about — but Microsoft you have our attention now more than ever. - -And, among all the announcements, the ability to run GUI apps on WSL (Windows Subsystem for Linux) gained the spotlight. - -Not to forget the [fiasco with Xamrin.Forms rebranding as MAUI][2] which conflicts with an existing open-source project ([Maui Project][3]) by Uri Herrera of [Nitrux Linux.][4] - -In case you didn’t know, WSL is an environment that lets you have a console-only Linux experience from within Windows 10. It is also one of the [best ways to run Linux commands in Windows.][5] - -While the announcement through a blog post ([DirectX ❤ Linux][6]) may have been a PR bait as [Liam Dawe thinks][7]. But, it’s still something worth talking about. - -### Support for Linux GUI Apps On WSL - -![][8] - -Recently, Microsoft announced a bunch of new features coming to WSL (a.k.a. WSL 2) during the online developer conference. - -The introduction of [Windows Package Manager][9], [Windows Terminal 1.0][10], and a couple others were some its highlights. - -But, the support for GPU hardware acceleration to **Windows Subsystem for Linux 2** was something significant. - -So, does this mean that you can run Linux apps on Windows using WSL? Looks like it… - -Microsoft plans to make it happen using a brand-new Linux kernel driver **dxgkrnl**. To give you a technical brief, I’d quote the description from their announcement here: - -![Linux Kernel Driver Wsl][11] - -> Dxgkrnl is a brand-new kernel driver for Linux that exposes the **/dev/dxg** device to user mode Linux. **/dev/dxg** exposes a set of IOCTL that closely mimic the native WDDM D3DKMT kernel service layer on Windows. Dxgkrnl inside the Linux kernel connects over the VM Bus to its big brother on the Windows host and uses this VM bus connection to communicate with the physical GPU. - -I’m no expert here but it means that the **Linux applications on WSL will have the same access to the GPU as native Windows applications do**. - -The support for GUI apps will be coming later this fall (not with May 2020 update) — so we’ll have to see when that happens. - -Microsoft is specifically targeting the developers who want the comfort of using their Linux IDE on Windows. Google is also targeting the same user base by [bringing GUI Linux apps to Chromebook][12]. - -Well, that’s good news for users who want to stick with Windows. But, is it really? - -### Microsoft Loves Linux — Do They Really? - -![Microsoft Loves Linux][13] - -It is definitely a good thing that they are embracing Linux and its benefits through their efforts of incorporating a Linux environment on Windows. - -But, how is it really going to help the **desktop Linux users**? I don’t see any real-word benefits from it as of now. - -You’re free to have a different opinion here. But, I think there’s no real value to the desktop users of Linux through the development of WSL. At least, none so far. - -It was interesting to notice that someone on [Linux Unplugged podcast][14] highlighted Microsoft’s move as something in the line of EEE (Embrace, extend, and extinguish) for which they’re known for. - -Maybe, who knows? Of course, the effort they’ve put to pull this off is worth appreciating — but it’s exciting and mystifying at the same time. - -### Does this mean Windows users will no longer switch to Linux? - -The reason why Microsoft is embracing Linux on its platform is that they know what it’s capable of and why developers (or users) prefer using. - -But, with the updates to WSL 2, I tend to agree to what Abhishek thinks if this continues: - -> Eventually, desktop Linux will be confined to become a desktop application under Windows… - -Well, of course, the native experience is still superior for the time being. And, it’ll be rare to see that the existing Linux desktop users will use Windows over it. But, that’s still something to worry about. - -What do you think about all this? I’m not ruling the advantages of WSL for users forced to use Windows — but do you think Microsoft’s progress with WSL is going to be something hostile in nature or something that will help Linux in the long run? - -Let me know your thoughts in the comments! - --------------------------------------------------------------------------------- - -via: https://itsfoss.com/run-linux-apps-windows-wsl/ - -作者:[Ankush Das][a] -选题:[lujun9972][b] -译者:[lnrCoder](https://github.com/lnrCoder) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://itsfoss.com/author/ankush/ -[b]: https://github.com/lujun9972 -[1]: https://news.microsoft.com/build2020/ -[2]: https://itsfoss.com/microsoft-maui-kde-row/ -[3]: https://mauikit.org/ -[4]: https://itsfoss.com/nitrux-linux/ -[5]: https://itsfoss.com/run-linux-commands-in-windows/ -[6]: https://devblogs.microsoft.com/directx/directx-heart-linux/ -[7]: https://www.gamingonlinux.com/2020/05/microsoft-build-directx-and-linux-plus-more -[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/Linux-GUI-app-Windows-WSL.png?ssl=1 -[9]: https://devblogs.microsoft.com/commandline/windows-package-manager-preview/ -[10]: https://devblogs.microsoft.com/commandline/windows-terminal-1-0/ -[11]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/linux-kernel-driver-wsl.png?ssl=1 -[12]: https://itsfoss.com/linux-apps-chromebook/ -[13]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/microsoft-loves-linux.jpg?ssl=1 -[14]: https://linuxunplugged.com/354 diff --git a/translated/tech/20200525 Now You Can Run Linux Apps in Windows (Thanks to WSL).md b/translated/tech/20200525 Now You Can Run Linux Apps in Windows (Thanks to WSL).md new file mode 100644 index 0000000000..61334d55c0 --- /dev/null +++ b/translated/tech/20200525 Now You Can Run Linux Apps in Windows (Thanks to WSL).md @@ -0,0 +1,104 @@ +[#]: collector: (lujun9972) +[#]: translator: (lnrCoder) +[#]: reviewer: ( ) +[#]: publisher: ( ) +[#]: url: ( ) +[#]: subject: (Now You Can Run Linux Apps in Windows (Thanks to WSL)) +[#]: via: (https://itsfoss.com/run-linux-apps-windows-wsl/) +[#]: author: (Ankush Das https://itsfoss.com/author/ankush/) + +现在您可以在 Windows 中运行 Linux 应用(多亏了 WSL) +====== + +微软最近的 “[Build 2020][1]” 开发者大会公布了一些有趣的公告。 我不确定这该令人兴奋还是该令人怀疑 — 但是微软,你现在比以往任何时候都受到我们的关注。 + +同时,在所有公告中,能够在 WSL(Windows Subsystem for Linux)上运行 GUI 应用程序的功能备受关注。 + +别忘了 [Xamrin.Forms 更名为 MAUI 的尴尬结局][2],它与 [Nitrux Linux.][4] 的 Uri Herrera 的现有开源项目([Maui Project][3])相冲突。 + +以为防止你不不清楚,WSL 是一种环境,可让你在 Windows 10 中获得纯控制台 Linux 的体验。它也是在 [Windows 中运行 Linux 命令的最佳方法][5]之一。 + +正如 [Liam Dawe][7] 认为的那样,通过博客文章([DirectX ❤ Linux][6])发布的公告可能是只是个诱饵。但是,仍然值得一提。 + +### WSL 上对 Linux GUI 应用程序的支持 + +![][8] + +最近,Microsoft 在在线开发者大会上宣布了 WSL(又名 WSL 2)的一系列新功能。 + +[Windows Package Manager][9],[Windows Terminal 1.0][10],以及其他一些功能的引入是其亮点。 + +但是,支持 GPU 硬件加速的 Windows 的 Linux 2 子系统非常重要。 + +那么,是否意味着你可以使用 WSL 在 Windows 上运行 Linux 应用程序呢?看起来像是。 + +微软计划通过使用全新的 Linux 内核驱动程序 **dxgkrnl** 来实现。 +Microsoft plans to make it happen using a brand-new Linux kernel driver **dxgkrnl**。 为了给你一个技术简报, 我在这里引用他们的公告中的描述: + +![Linux Kernel Driver Wsl][11] + +> Dxgkrnl 是 Linux 的全新内核驱动程序,它将 **/dev/dxg** 设备暴露给用户模式的 Linux。 **/dev/dxg** 暴露了一组 IOCTL,他们与 Winodws 上的原生 WDDM D3DKMT 内核服务层非常相似。Linux 内核中的 Dxgkrnl 通过 VM 总线连接到 Windows 主机上,并使用此 VM 总线连接与物理 GPU 进行通讯。 + +我不是这方面的专家,但这以为蛇 WSL 上的 Linux 应用程序将具有与本机 Windows 应用程序相同的 GPU 访问权限。 + +针对 GUI 应用程序的支持将在今年秋季的晚些时候提供 (而不是 2020 年 5 月的更新) — 所以我们跌看看什么时候提供。 + +微软专门针对的是那些系统在 Windows 上轻松使用 Linux IDE 的开发人员。Google 还通过 [将 GUI Linux 应用程序引入 Chromebook ][12] 来针对相同的用户群。 + +好吧,对于想要使用 Windows 的用户来说,这是个好消息。但是,这是真的吗? + +### 微软爱上了 Linux — 真的吗? + +![Microsoft Loves Linux][13] + +他们通过努力在 Windows 上整合 Linux 环境来拥抱 Linux 及其优势,绝对是一件好事。 + +但是,如何真正帮助 **Linux 桌面用户**呢?到目前为止,我还没有看到任何实际的好处。 + +你可以在这里随意发表不同意见。但是,我认为 WSL 的开发对于 Linux 桌面用户来说没有实际的价值。至少目前为止没有。 + +有趣的是,[Linux Unplugged podcast][14] 上有人强调了微软的举动,以其闻名的 EEE (Embrace, extend, and extinguish) 为代表。 + +可能,谁知道呢?当然,他们为实现这一目标而付出的努力值得赞赏 — 同时又令人感到兴奋和神秘。 + +### 这是否以为着 Windows 用户将不必再切换到 Linux? + +微软之所以在其平台上集成 Linux,是因为他们知道 Liunx 的功能以及开发人员(或用户)喜欢使用的原因。 + +但是,随着 WSL 2 的更新,如果这种情况持续下去,我倾向于同意 Abhishek 的看法: + +> 最终,桌面 Linux 将被限制为 Windows 下的桌面应用程序。 + +好吧,当然,原生的体验暂时还是比较好的。而且,很难看到现有的 Linux 桌面用户会使用 Windows 来将其替代。但是,这仍然是值得担心的。 + +你如何看待这一切? 我不认为 WSL 对于被迫使用 Windows 的用户有什么好处 — 但是,从长远来看,你认为微软在 WSL 方面的进展本质上是敌意还是对 Linux 有帮助? + +在评论中让我知道你的想法! + +-------------------------------------------------------------------------------- + +via: https://itsfoss.com/run-linux-apps-windows-wsl/ + +作者:[Ankush Das][a] +选题:[lujun9972][b] +译者:[lnrCoder](https://github.com/lnrCoder) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://itsfoss.com/author/ankush/ +[b]: https://github.com/lujun9972 +[1]: https://news.microsoft.com/build2020/ +[2]: https://itsfoss.com/microsoft-maui-kde-row/ +[3]: https://mauikit.org/ +[4]: https://itsfoss.com/nitrux-linux/ +[5]: https://itsfoss.com/run-linux-commands-in-windows/ +[6]: https://devblogs.microsoft.com/directx/directx-heart-linux/ +[7]: https://www.gamingonlinux.com/2020/05/microsoft-build-directx-and-linux-plus-more +[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/Linux-GUI-app-Windows-WSL.png?ssl=1 +[9]: https://devblogs.microsoft.com/commandline/windows-package-manager-preview/ +[10]: https://devblogs.microsoft.com/commandline/windows-terminal-1-0/ +[11]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/linux-kernel-driver-wsl.png?ssl=1 +[12]: https://itsfoss.com/linux-apps-chromebook/ +[13]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/microsoft-loves-linux.jpg?ssl=1 +[14]: https://linuxunplugged.com/354