如何在 Linux 上安装微软 Windows 计算器
微软 计算器
![](/data/attachment/album/202010/17/212236jkctltljj0cllxbe.jpg)


微软不再是 Linux 或开源社区的敌人。不管你信不信，Windows 的制造商现在是一个盟友。我知道这很令人震惊，但完全是事实。多亏了 WSL，Linux 现在已经内置于 Windows 中，而微软也有几款应用可供 Linux 使用。


该公司甚至将一些应用程序也开源了。例如，早在 2019 年，微软就[在 GitHub 上发布了 Windows 计算器的源代码](https://betanews.com/2019/03/06/microsoft-windows-calculator-open-source-github/)。而现在，该计算器应用已经被 Uno Platform 移植到 Linux 上。最重要的是，它的安装超简单，因为它是以 Snap 格式打包的。


“Uno Platform 社区的好人们已经将开源的 Windows 计算器移植到了 Linux 上。而且做得比微软把他们的浏览器带到 Linux 上还快。这个计算器发布在 Snap 商店中，可以马上下载。”Canonical 产品经理 Rhys Davies [解释](https://snapcraft.io/blog/the-windows-calculator-on-linux-with-uno-platform)道。


Davies 进一步解释说：“在 UnoConf 2020 期间，Uno Platform 将他们的支持带到了 Linux。Uno Platform 允许你使用 C# 和 XAML 从单一代码库中构建本地移动、桌面和 WebAssembly 应用程序。你可以使用 Visual Studio 和 Ubuntu 在 WSL 上使用 Uno Platform 构建 Linux 应用程序。你可以在 Snap 商店中抓取它们，然后在从 Linux 桌面到树莓派等各种系统上运行你的应用程序。”






那么，在 Linux 上安装 Windows 计算器有多容易呢？如果你有一个现代的操作系统，内置 Snap 支持，比如 Ubuntu 20.04，你可以从[这里的 Snap 商店](https://snapcraft.io/uno-calculator)安装它。喜欢使用命令行吗？只需在终端中输入 `snap install uno-calculator` 即可。


请注意：如果你的发行版没有原生的 Snap 支持，你可以按照[这里的说明](https://snapcraft.io/docs/installing-snapd)进行设置。


当然，你可能想知道为什么你应该在 Linux 上安装 Windows 计算器。嗯……只是因为你可以，当然！但说真的，它实际上是一个设计得非常好的应用程序，你可能会发现它比其他计算器程序更优秀 —— 包括任何预装在你的操作系统上的程序。试试吧，伙计们 —— 你可能会喜欢它。




---


via: <https://betanews.com/2020/10/15/how-to-install-windows-calculator-linux/> 


作者：[Brian Fagioli](https://betanews.com/author/brianfagioli/) 选题：[wxy](https://github.com/wxy) 译者：[wxy](https://github.com/wxy) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](/article-12726-1.html) 荣誉推出


OK
# How to install Microsoft Windows Calculator on Linux

![](/wp-content/themes/betanews/images/authors/bfagioli_smallthumb.png)

![](https://betanews.com/wp-content/uploads/2020/10/WinCalcLinux-600x338.png)

Microsoft is no longer an enemy of the Linux or Open Source communities. Believe it or not, the Windows-maker is an ally these days. Shocking, I know, but totally true. Linux is now built into Windows thanks to WSL, and Microsoft has several apps available for Linux.

The company has even made some of its apps open source as well. For instance, back in 2019, Microsoft [released the source for Windows Calculator on GitHub](https://betanews.com/2019/03/06/microsoft-windows-calculator-open-source-github/). And now, that calculator app has been ported to Linux by [Uno Platform](https://platform.uno/). Best of all, its insanely easy to install as it is packaged in Snap format.

**ALSO READ:** [Ubuntu Linux 20.10 'Groovy Gorilla' Beta available for download](https://betanews.com/2020/10/02/ubuntu-linux-2010-groovy-gorilla-beta/)

"The good folks in the Uno Platform community have ported the open-source Windows Calculator to Linux. And they’ve done it quicker than Microsoft could bring their browser to Linux. The calculator is published in the snapstore and can be downloaded right away," [explains](https://snapcraft.io/blog/the-windows-calculator-on-linux-with-uno-platform) Rhys Davies, Product Manager, Canonical.

Davies further explains, "The Uno Platform brought their support to Linux during UnoConf 2020. Uno Plaform allows you to build native mobile, desktop, and WebAssembly apps with C# and XAML from a single code base. You can build Linux applications with Uno Platform using Visual Studio and Ubuntu on WSL. You can snap them up in the snap store and then run your apps on anything from the Linux desktop to a Raspberry Pi."

So, how easy is it to install Windows Calculator on Linux? If you have a modern operating system with baked-in Snap support, such as Ubuntu 20.04, you can install it from the Snap store [here](https://snapcraft.io/uno-calculator). Prefer to use the command line? Just enter **snap install uno-calculator** into terminal.

**Please note:** If your distro doesn't have native Snap support, you can follow instructions [here](https://snapcraft.io/docs/installing-snapd) to set it up.

Of course, you are probably wondering *why *you should install the Windows Calculator on Linux. Well... because you can, of course! But seriously, it is actually a very well-designed app that you may find to be superior to other calculator programs -- including whatever came pre-installed with your operating system. Give it a try, folks -- you just might like it.