操作環(huán)境介紹
本次操作環(huán)境如下
系統(tǒng)版本:Ubuntu 20.04 LTS 64 位
GNOME 版本:3.36.1
安裝deepin-wine
原博主https://blog.csdn.net/zzq997/article/details/105779935/
在根據(jù)原博主的教程操作之后
發(fā)現(xiàn)有稍許錯(cuò)誤
在安裝微信的的時(shí)候
因?yàn)閐eepin-wine版本較低造成依賴錯(cuò)誤
在仔細(xì)閱讀過deepin-wine-for-ubuntu之后發(fā)現(xiàn)作者已經(jīng)提供了新的shell腳本
我們只需要把下面這段代碼保存為腳本運(yùn)行
就可以自動(dòng)下載安裝deepin-wine環(huán)境了
其中有兩條下載鏈接是https的
我這邊下載會(huì)出現(xiàn)證書校驗(yàn)問題
我自行在后面加了--no-check-certificate
#!/bin/bash
mkdir ./deepintemp
cd ./deepintemp
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb --no-check-certificate
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb --no-check-certificate
echo '準(zhǔn)備添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功删咱,準(zhǔn)備刷新apt緩存信息...'
sudo apt update
echo '即將開始安裝...'
sudo dpkg -i *.deb
echo '安裝完成笨忌,正在自動(dòng)安裝依賴...'
sudo apt install -fy
rm -vfr ./deepintemp
運(yùn)行完不出現(xiàn)任何報(bào)錯(cuò)就是成功了
安裝微信
下載微信安裝包
(建議選擇最新的版本):https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.wechat/
命令行安裝 (注意后邊跟自己的文件名)
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
這一步很順利 沒有什么錯(cuò)誤
微信亂碼問題
登陸的時(shí)候會(huì)有中文亂碼
這個(gè)原博主也貼出了他找到的解決方案
有兩種方法 我用第二種解決了 各位自行嘗試
-
修改 run.sh 和 run_v2.sh 文件(操作都是一樣的)
這兩個(gè)文件默認(rèn)應(yīng)該是在/opt/deepinwine/tools路徑下
修改 WINE_CMD公浪,并添加三個(gè) export 語句嚣潜,內(nèi)容如下#WINE_CMD="deepin-wine" WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine" #added by user export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus"
此時(shí)可嘗試打開Wehat嘱吗,若中文顯示和輸入均正巢ζ耄可不進(jìn)行下一步
-
添加字體文件支持
1.下載字體msyh.ttc https://www.lanzous.com/i5wivmd
解壓之后復(fù)制到字體庫cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
2.修改注冊表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
找到以下兩行修改
"MS Shell Dlg"="msyh" "MS Shell Dlg 2"="msyh"
其實(shí)最好把原來的兩行注釋掉以作備份
然后把上面的復(fù)制過去3.字體注冊
新建文件msyh_config.reg
寫入以下內(nèi)容REGEDIT4 [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"
輸入以下命令使其生效
deepin-wine regedit msyh_config.reg
感謝
開發(fā)者:https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu
原博主:https://blog.csdn.net/zzq997/article/details/105779935/
亂碼解決博主:https://blog.csdn.net/hymanjack/article/details/100168300
以及適配微信的deepin大神們