**Notice: **
下面的步驟全部在Ubuntu 18.04 環(huán)境下安裝驗(yàn)證過,不保證其他Linux發(fā)行版有無bug。Enjoy Yourself !
[toc]
Step 1 Install Deep-wine-ubuntu:
- clone repo 到本地,跟隨repo內(nèi)readme 的“(1) 安裝教程”進(jìn)行下載安裝。請(qǐng)不要在線安裝。
git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git
or
git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
切換到clone文件目錄,在終端中運(yùn)行相應(yīng) install.sh / uninstall.sh shell 命令 進(jìn)行安裝和卸載。 (安裝目錄在 /opt/deepinwine)
若系統(tǒng)語言非中文時(shí),執(zhí)行以下方式,解決中文顯示為方塊問題。
vim /opt/deepinwine/tools/run.sh || vim /opt/deepinwine/tools/run_v2.sh
#WINE_CMD="deepin-wine"
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"
Step 2 安裝deepin-wine 容器:
- 務(wù)必在終端下使用dpkg -i安裝容器,否則容易誤報(bào)依賴錯(cuò)誤
Step 2.1 install 微信:
選擇下載最新版本 “deepin.com.wechat_2.6.8.65deepin0_i386.deb”進(jìn)行安裝。
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
已知bug 解決辦法:
雙顯示器時(shí),微信無法啟動(dòng),先但顯示器啟動(dòng)后,在鏈接雙顯示器。
微信無法發(fā)送圖片
sudo apt install libjpeg62:i386
- 微信fcitx 中文輸入法輸入亂碼
找一個(gè)好友隨便輸入中文,退出再找一個(gè)好友輸入中文時(shí)就不會(huì)在亂碼
- 微信登錄后界面一直有一個(gè)黑色的方框
1. 安裝xdotool
sudo apt install xdotool
2. 創(chuàng)建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh 并寫入以下腳本內(nèi)容
repo 內(nèi)issue 腳本并沒有通用性, 不同機(jī)器的sleep 參數(shù)需要嘗試進(jìn)行枚舉。修改如下
sudo vim /opt/deepinwine/apps/Deepin-WeChat/runrun.sh
#!/bin/bash
"/opt/deepinwine/apps/Deepin-WeChat/run.sh">/dev/null 2>&1
start_succ=false
for i in {1..5}
do
xdotool search --onlyvisible --classname "wechat.exe"
if [ $? == 0 ]
then
start_succ=true
break
fi
for z in {1..10}
do
sleep z
done
done
if [ $start_succ == false ]
then
exit 1
fi
windowclose=false
while :
do
retval=$(xdotool search --onlyvisible --classname "wechat.exe")
if [ $? != 0 ]
then
exit 0
fi
login=true
for id in $retval
do
windowname=$(xdotool getwindowname $id)
if [ "$windowname" == "Log In" ]
then
login=false
fi
if [ $windowclose == true ] && ([ "$windowname" == "" ] || [ "$windowname" == "ChatContactMenu" ])
then
xdotool windowclose $id
fi
done
if [ $windowclose == true ]
then
exit 0
fi
if [ $login == true ]
then
windowclose=true
fi
sleep 0.5
done
3. 修改desktop文件,找到Exec那一行,替換為
sudo vim /usr/share/applications/deepin.com.wechat.desktop
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"
Step 2.2 install QQ:
選擇下載最新版本 “deepin.com.qq.im_9.1.8deepin0_i386.deb”進(jìn)行安裝。
sudo dpkg -i deepin.com.qq.im_9.1.8deepin0_i386.deb
已知bug 解決辦法:
- QQ無法接收?qǐng)D片(關(guān)閉ipv6)
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
- QQfcitx 中文輸入法輸入亂碼
找一個(gè)好友隨便輸入中文,退出再找一個(gè)好友輸入中文時(shí)就不會(huì)在亂碼
Step 2.3 install 企業(yè)微信:
選擇下載最新版本 “deepin.com.weixin.work_2.8.10.2010deepin0_i386.deb”進(jìn)行安裝。
sudo dpkg -i deepin.com.weixin.work_2.8.10.2010deepin0_i386.deb
已知bug 解決辦法:
Step3 圖標(biāo)放入Topbar 托盤
- 安裝 Gnome shell 插件TopIcons Plus