Wine + QQInit

据 Wine 官方介绍:

Wine (“Wine Is Not an Emulator” 的首字母缩写)是一个能够在多种 POSIX-compliant 操作系统(诸如 Linux,macOS 及 BSD 等)上运行 Windows 应用的兼容层。Wine 不是像虚拟机或者模拟器一样模仿内部的 Windows 逻辑,而是將 Windows API 调用翻译成为动态的 POSIX 调用,免除了性能和其他一些行为的内存占用,让你能够干净地集合 Windows 应用到你的桌面。

QQ 即可运行在 Wine 之上,理论上大多数 Windows 应用都行。

Wine 支持很多 Linux 发行版,诸如 Debian/Ubuntu、Fedora 、OpenSUSE 等。

安装 Wine

诸如 Ubuntu 18.04 安装过程如下:

64 bit 开启 32 bit 架构支持:

sudo dpkg --add-architecture i386

添加仓库:

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

更新:

sudo apt-get update

安装稳定版:

sudo apt-get install --install-recommends winehq-stable

安装 QQInit

下载 QQInit,运行 winecfg,配置 QQ.exe,添加如下库以保证正常消息显示和文字输入:

中文字体使用 simsun(宋体),配置可参考:http://www.linuxdiyf.com/linux/27953.html

具体如下:

拷贝字体

simsun.ttc 文件复制到~/.wine/drive_c/windows/Fonts

修改 ~/.wine/system.reg

"LogPixels"=dword:00000060

改为

"LogPixels"=dword:00000070

"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"

改为:

"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2″="SimSun"

修改 ~/.wine/drive_c/windows/win.ini

[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13

新建 zh.reg

REGEDIT4
[HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"

使用 regedit 载入即可。

参考:

  1. https://wiki.winehq.org/Main_Page
  2. http://www.linuxdiyf.com/linux/27953.html
  3. https://phpcj.org/wineqq/

作者: YanWen

Web 开发者

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s