本文的技术只能在 Ubuntu 18.04 上应用
- 把 Deepin-wine-for-ubuntu Git 仓库的内容克隆到本地:
这里可选择 Github 或者 Gitee,Gitee 的优点是它在国内,速度快,那么相对地, Github 肯定是慢,所以选择 Gitee 仓库:
git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git cd deepin-wine-for-ubuntu # 或者 Github git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git cd deepin-wine-ubuntu
- 安装:
这里有两个选择:1 是运行 install.sh 脚本(Ubuntu 18.04 最好运行这个),2 是运行以下的脚本,此脚本包含 deepin-wine 的官方最新环境。
# 二选一 # 最好选择这个,否则责任自负 chmod +x install.sh sudo ./install.sh # 或者 chmod +x ./install_2.8.22.sh sudo ./install_2.8.22.sh
安装 Deepin 版微信
参考了链接:https://www.chengxuzhilu.com/2247.html
- 下载最新版本的微信 deb 包
到 https://gitee.com/wszqkzqk/deepin-wine-containers-for-ubuntu/ 下载,选择最新版本,目前(截止于 2021 年 4 月 13 日)是 deepin.com.wechat_2.6.8.65deepin0_i386.deb ,点击即可下载。
-
安装微信:
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
如果顺利的话,很快就会安装好。
-
好了,现在可以启动微信。
-
安装好 Deepin 版微信后登录微信发现其显示的中文字体为竖立的方块,根本无法看,于是在网上找到这个解决方案,这个方案的每个步骤缺一不可:
- 下载“微软雅黑”字体
到 https://www.lanzous.com/i5wivmd 下载字体,然后解压,得到字体文件 msyh.ttc 。
-
將字体复制到指定的位置:
cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
- 將字体注册到 Wine:
gedit ~/.deepinwine/Deepin-WeChat/font.reg
键入以下内容,并保存:
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "MS Shell Dlg"="msyh" "MS Shell Dlg 2"="msyh" [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] "Lucida Sans Unicode"="msyh.ttc" "Microsoft Sans Serif"="msyh.ttc" "MS Sans Serif"="msyh.ttc" "Tahoma"="msyh.ttc" "Tahoma Bold"="msyhbd.ttc" "msyh"="msyh.ttc" "Arial"="msyh.ttc" "Arial Black"="msyh.ttc"
- 注册 font.reg:
在终端执行:
WINEPREFIX=~/.deepinwine/Deepin-WeChat/ deepin-wine regedit ~/.deepinwine/Deepin-WeChat/font.reg
- 重新运行微信。
- 將字体注册到 Wine:
- 解决微信不能发送图片:sudo apt-get install -y libjpeg62:i386