Ubuntu install QQ wechat WeWork

**Notice: **

下面的步驟全部在Ubuntu 18.04 環(huán)境下安裝驗(yàn)證過,不保證其他Linux發(fā)行版有無bug。Enjoy Yourself !

[toc]

Step 1 Install Deep-wine-ubuntu:

Github Deep-wine-ubuntu

Gitee 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 容器:

Deepin-wine Download

  • 務(wù)必在終端下使用dpkg -i安裝容器,否則容易誤報(bào)依賴錯(cuò)誤

Step 2.1 install 微信:

Wechat Download

選擇下載最新版本 “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:

QQ Download

選擇下載最新版本 “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è)微信:

wework Download

選擇下載最新版本 “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 托盤

End

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容