「Wine」- Wine Is Not an Emulator

认识

官网:https://www.winehq.org

Wine (originally an acronym for “Wine Is Not an Emulator”) is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop. 简而言之,通过 Wine 工具,能够在 Unix-like 中运行 Windows 程序。

组成

https://wiki.winehq.org/Gecko
https://wiki.winehq.org/Mono
https://wiki.winehq.org/Winetricks
https://www.winehq.org/

命令程序 and 配置文件

wine-stable
msiexec-stable
regedit-stable
regsvr32-stablels

wineboot-stable
winecfg-stable
wineconsole-stable
winedbg-stable
winefile-stable
winepath-stable
wineserver-stable
wine64-stable
winexe

配置目录:~/.wine

构建

安装 Wine 服务

从仓库中直接安装

# Kali GNU/Linux Rolling
apt-get install wine wine64 libwine:amd64 fonts-wine winexe

应用

常见问题处理

场景 | 安装应用

Using Wine https://gitlab.winehq.org/wine/wine/-/wikis/Wine-User’s-Guide#using-wine

系统图盘(Systemtray)

How to Hide Wine System Tray – ibndias

默认会自动启动 Wine System Tray 悬浮窗口。

如果想要合并到 GNOME 桌面环境的系统托盘中,需要安装 TopIcons 插件:
TopIcons – GNOME Shell Extensions
TopIconsFix – GNOME Shell Extensions

配置字体抗锯齿、解决字体模糊

How do I enable font anti-aliasing in Wine?

2018-04-09 PM 03:46

The easiest way is through winetricks

mkdir ~/bin
cd ~/bin
wget http://winetricks.org/winetricks
chmod +x ./winetricks

winetricks fontsmooth-rgb

In newer version of winetricks the command to use is

winetricks settings fontsmooth=rgb

There are other LCD pixel orders available. You can read about them and the rest of the impressive winetricks feature list on its WineHQ site.

改进

Wine Application Database (AppDB)
https://appdb.winehq.org/index.php

CodeWeavers CrossOver
CrossOver allows you to install your favorite Windows productivity applications in Linux, without needing a Microsoft Operating System license. CrossOver includes an easy to use, single click interface, which makes installing a Windows application simple and fast.

参考

维基百科中有关 Wine 的介绍