参考地址: https://wiki.archlinux.org/index.php/Tencent_QQ_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
之前花了很多时间在kali linux 安装QQ 网上找了很多wineQQ安装包都没有成功,今天无意看到上面的参考地址, 突然灵光一现,安装成功.
首先,安装32位的wine , 然后安装winetricks, 再去QQ官网下载最新的QQ.exe安装包.
安装QQ.exe之前要进行需要安装 宋体(新宋体)simsun.ttc 字体如果linux不能识别'.ttc'格式直接改成'.ttf',点击即可安装,不安装这字体,QQ字体看起来很别扭.
以下就是具体的安装步骤:
一.创建wine下的安装环境
(a)创建 qqlight.verb 如下,
w_metadata qqlight apps \(b)运行 winetricks 安装
title="QQ Light" \
publisher="Tencent" \
year="2015" \
media="download" \
file1="QQ6.7Light.exe" \
installed_exe1="$W_PROGRAMS_X86_WIN/Tencent/QQ/Bin/QQ.exe" \
homepage="http://www.qq.com" \
unattended="no"
load_qqlight()
{
w_download http://dldir1.qq.com/qqfile/qq/QQ6.7Light/13466/QQ6.7Light.exe e1e1ff2bf6461c08047d0a01927a43c5a0746bdf
if w_workaround_wine_bug 29636 "Installing native riched20 to work around crash bug"
then
w_call riched20
fi
if w_workaround_wine_bug 34566 "Installing native ctf to work around crash"
then
w_call msctf
fi
# Make sure chinese fonts are available
w_call fakechinese
# uses mfc42u.dll
w_call mfc42
cd "$W_CACHE/$W_PACKAGE"
w_try "$WINE" "$file1"
# fix crash after login
mkdir -p ~/.local/share/wineprefixes/qqlight/drive_c/users/$LOGNAME/Application\ Data/Tencent/QQ/Misc/com.tencent.wireless/SDK
chmod 000 ~/.local/share/wineprefixes/qqlight/drive_c/users/$LOGNAME/Application\ Data/Tencent/QQ/Misc/com.tencent.wireless/SDK
w_declare_exe "$W_PROGRAMS_X86_WIN\\Tencent\\QQ\\Bin" QQ.exe
}
$ winetricks qqlight.verb
出现以上安装提示时,取消安装.
(c)运行我们下载的最新版的QQ.exe 安装
最后99%差不多等个三分钟.即安装成功.
QQ 已安装成功.
二. 创建桌面快捷方式.
将qq小图标放入'~/.wine/drive_c/Program Files/Tencent/QQ/'下
在'/usr/share/applications'下创建文件 vim QQ.desktop
[Desktop Entry]
Encoding=UTF-8
Name=QQ
Comment=The Smarter Way to Code
Exec=wine "/root/.wine/drive_c/Program Files/Tencent/QQ/Bin/QQ.exe"
Icon=/root/.wine/drive_c/Program Files/Tencent/QQ/qq.png
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0
即生成启动QQ的快捷方式
刚刚开机的时候启动有点慢,不要心急,等个两分钟就好, 已知bug不能记住密码