From eb79d17cd50c7039025e63369856e34a555686e7 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Sat, 27 Jan 2024 14:00:27 +0800 Subject: [PATCH] ATRP @wxy https://linux.cn/article-16588-1.html --- ...elease Adds Experimental Wayland Driver.md | 116 ++++++++++++++++ ...elease Adds Experimental Wayland Driver.md | 126 ------------------ 2 files changed, 116 insertions(+), 126 deletions(-) create mode 100644 published/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md delete mode 100644 sources/news/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md diff --git a/published/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md b/published/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md new file mode 100644 index 0000000000..775ec329cb --- /dev/null +++ b/published/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md @@ -0,0 +1,116 @@ +[#]: subject: "Wine 9.0 Release Adds Experimental Wayland Driver" +[#]: via: "https://news.itsfoss.com/wine-9-0-release/" +[#]: author: "Sourav Rudra https://news.itsfoss.com/author/sourav/" +[#]: collector: "lujun9972/lctt-scripts-1700446145" +[#]: translator: "ChatGPT" +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-16588-1.html" + +Wine 9.0 发布,实验性地加入了 Wayland 驱动 +====== + +![][0] + +> Wine 的这个新版本正在为未来做好准备! + +Wine 是一款广受欢迎的开源兼容性层,可以轻松地 [在 Linux 上运行 Windows 应用][1],而这在几年前还非常困难。 + +即使 [Vaas][2] 也认可,Wine 的出现,以一种深具影响力的方式推动了 Linux 的发展。 + +去年,我们关注到 [Wine 8.0 版][3],它的目标是沿袭所有 7.x 系列的改变。但现在是 2024 年了,我们又迎来了 Wine 的一次新版本发布。 + +### 🆕 Wine 9.0:有哪些新鲜出炉的内容? + +这次 Wine 的新版本带来了一个**试验性的 Wayland 图形驱动**,引入了**高 DPI 缩放**、**多显示器支持**,**基本的窗口管理**等功能。 + +然而,这并不是完整的实施,也因此**默认是禁用的**。你可以通过运行以下命令来启用它: + +``` +wine reg.exe add HKCU\\Software\\Wine\\Drivers /v Graphics /d x11,wayland +``` + +这并不让人感到惊讶,因为 **我们已经看到 Wayland 的应用在稳步增长**,而 Wine 只是加入这个行列的众多软件之一。接下来的几年对 [Wayland][5] 将至关重要,我期待它能够实现其所做的承诺。 + +**从图形方面来看**,Wine 现在已经支持到 Vulkan 规范的 1.3.272 版本,而 PostScript 驱动已被重构,可以使用 Windows 格式的打印文件,并且避免了直接从 Unix 进行调用。 + +在将模块转换为 PE 格式的工作基础上,现在,**在 WoW64 上**,所有从 Windows 到 Unix 代码的转换现都通过 NT 系统调用接口完成。 + +新版本还提供了 **对 macOS 上 32 位应用程序的支持**,这要归功于 **新的 WoW64 模式**,它通过从 32 位 PE 代码调用 64 位 Unix 库来实现。 + +最后,我们在 Wine 9.0 中有了 **对输入设备支持的改进**,现在实现了 _DirectInput 动作映射_,提升了很多老游戏的兼容性。 + +关于 Wine 9.0 发布的详细信息,你可以阅读 [更新日志][6]。 + +### 📥 如何获取 Wine 9.0 + +可以在 [官方网站][7] 上找到 Wine 的二进制包,那里提供了包括 **Ubuntu**、**Debian**、**Fedora** 和 **macOS** 在内的多个版本。 + +> **[Wine 9.0][7]** + +另外还有一些由 **SUSE**、**Slackware** 和 **FreeBSD**等提供的其他二进制包。如果你对它们不感兴趣,你也可以访问其 [GitLab 仓库][8] 来从源码中构建。 + +#### ⚙️ 从旧版本升级 + +如果你正在使用旧版本的 Wine,那么**按照以下步骤获取 Ubuntu 的最新发行版**,或者是装备有基于 Ubuntu 派生系统的硬件。 + +首先运行以下命令启用 32 位架构的支持(如果尚未启用): + +``` +sudo dpkg --add-architecture i386 +``` + +下载 Wine 的官方仓库密钥并添加它: + +``` +sudo mkdir -pm755 /etc/apt/keyrings +sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key +``` + +然后运行以下命令**之一**获取适合你的 Ubuntu 版本的 WineHQ 源文件: + +``` +sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/mantic/winehq-mantic.sources #Ubuntu 23.10 + +sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources #Ubuntu 23.04 + +sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources #Ubuntu 22.04 + +sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources #Ubuntu 20.04 +``` + +最后,执行以下命令(分开运行)来安装 Wine 9.0: + +``` +sudo apt update +sudo apt install --install-recommends winehq-stable +``` + +在我撰写这篇文章时,我正在运行 Ubuntu 22.04 LTS 的系统中的 Wine 稳定分支还停留在旧版本 Wine 8.x。开发分支已经有了更新的 Wine 9.0 版本,我建议你可以稍微等待一会再进行升级。 + +💬 你对 Wine 9.0版本的看法是什么?欢迎分享你的观点。 + +*(题图:DA/d8042d74-5719-413a-a1fc-4b5a3be581e9)* + +-------------------------------------------------------------------------------- + +via: https://news.itsfoss.com/wine-9-0-release/ + +作者:[Sourav Rudra][a] +选题:[lujun9972][b] +译者:[ChatGPT](https://linux.cn/lctt/ChatGPT) +校对:[wxy](https://github.com/wxy) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://news.itsfoss.com/author/sourav/ +[b]: https://github.com/lujun9972 +[1]: https://itsfoss.com/use-windows-applications-linux/ +[2]: https://en.wikipedia.org/wiki/Vaas_Montenegro +[3]: https://news.itsfoss.com/wine-8-0-release/ +[4]: https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png +[5]: https://wayland.freedesktop.org/ +[6]: https://gitlab.winehq.org/wine/wine/-/releases/wine-9.0 +[7]: https://wiki.winehq.org/Download +[8]: https://gitlab.winehq.org/wine/wine/ +[0]: https://img.linux.net.cn/data/attachment/album/202401/27/135710uz5az55e9qj5mgc6.jpg \ No newline at end of file diff --git a/sources/news/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md b/sources/news/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md deleted file mode 100644 index 4faa7b327e..0000000000 --- a/sources/news/20240117 Wine 9.0 Release Adds Experimental Wayland Driver.md +++ /dev/null @@ -1,126 +0,0 @@ -[#]: subject: "Wine 9.0 Release Adds Experimental Wayland Driver" -[#]: via: "https://news.itsfoss.com/wine-9-0-release/" -[#]: author: "Sourav Rudra https://news.itsfoss.com/author/sourav/" -[#]: collector: "lujun9972/lctt-scripts-1700446145" -[#]: translator: " " -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -Wine 9.0 Release Adds Experimental Wayland Driver -====== -Wine's new release is getting ready for the future! -Wine is a popular open-source compatibility layer used to [run Windows applications on Linux][1] with ease; something that was a far cry a few years back. - -Even [Vaas][2] would agree that Wine is a very neat piece of software that has **taken Linux forward** in a very meaningful way. - -Last year, we took a look at the [Wine 8.0 release][3] that aimed to unify all the changes from the 7.x series of releases. But, it is now 2024, and we have yet another Wine release to take a look at. - -**Suggested Read** 📖 - -![][4] - -## 🆕 Wine 9.0: What's New? - -Debuting with this Wine release is **an experimental Wayland graphics driver** that brings about things like **High-DPI scaling** , **support for multiple monitors** , **basic window management** , and more. - -However, this is not a complete implementation, and naturally is **disabled by default**. You can enable it by running the following command: - -``` - - wine reg.exe add HKCU\\Software\\Wine\\Drivers /v Graphics /d x11,wayland - -``` - -This comes as no surprise, as **we have been seeing a steady growth in the adoption of Wayland** , and Wine is just among the many to join the club. The coming years will be crucial for [Wayland][5], and I hope it makes good on its promises. - -**On the graphics side of things** , Wine now supports up to version _1.3.272_ of the Vulkan spec and the _PostScript_ driver was reimplemented to work using Windows-format spool files and to avoid any direct calls from Unix. - -Building on the work done to convert modules into the PE format, now, **on WoW64,** all transitions from Windows to Unix code now go through the _NT syscall interface_. - -There is also **support for 32-bit applications on macOS** thanks to the **new WoW64 mode** , which works by making calls to the 64-bit Unix library from the 32-bit PE code. - -And finally, we have **improvements to the input device support** with Wine 9.0 that now implements _DirectInput action maps_ to improve compatibility with many old games. - -For details of the Wine 9.0 release, you may go through the [changelog][6]. - -## 📥 Get Wine 9.0 - -The binary packages for Wine can be found on the [official website][7], where you can find packages for **Ubuntu** , **Debian** , **Fedora** , and **macOS**. - -[Wine 9.0][7] - -There are some other binary packages maintained by distros such as **SUSE** , **Slackware** and **FreeBSD**. If that doesn't interest you, then you could build from source by visiting its [GitLab repo][8]. - -### ⚙️ Upgrade from Older Release - -If you are running an older release of Wine, then **follow these steps to get the latest release of Ubuntu** , or systems equipped with Ubuntu-based derivatives. - -Enable support for 32-bit architecture (if not enabled already) by running the following command: - -``` - - sudo dpkg --add-architecture i386 - -``` - -Download the official Wine repo key and add it: - -``` - - sudo mkdir -pm755 /etc/apt/keyrings - sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key - -``` - -Then run **one** of the following commands to get the WineHQ sources file for your Ubuntu version: - -``` - - sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/mantic/winehq-mantic.sources #Ubuntu 23.10 - - sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources #Ubuntu 23.04 - - sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources #Ubuntu 22.04 - - sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources #Ubuntu 20.04 - -``` - -And finally, to install Wine 9.0, run the following commands (separately): - -``` - - sudo apt update - - sudo apt install --install-recommends winehq-stable - -``` - -At the time of writing, **the stable branch had the older Wine 8.x release for my system running Ubuntu 22.04 LTS**. The development branch had the newer Wine 9.0 release, so I suggest you wait it out a bit before upgrading. - -_💬 What do you think about the Wine 9.0 release? Feel free to share your thoughts on it._ - -* * * - --------------------------------------------------------------------------------- - -via: https://news.itsfoss.com/wine-9-0-release/ - -作者:[Sourav Rudra][a] -选题:[lujun9972][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://news.itsfoss.com/author/sourav/ -[b]: https://github.com/lujun9972 -[1]: https://itsfoss.com/use-windows-applications-linux/ -[2]: https://en.wikipedia.org/wiki/Vaas_Montenegro -[3]: https://news.itsfoss.com/wine-8-0-release/ -[4]: https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png -[5]: https://wayland.freedesktop.org/ -[6]: https://gitlab.winehq.org/wine/wine/-/releases/wine-9.0 -[7]: https://wiki.winehq.org/Download -[8]: https://gitlab.winehq.org/wine/wine/