Ubuntu

Ubuntu install QQ wechat WeWork

2020-04-22  本文已影响0人  sheng_mingkai

**Notice: **

下面的步骤全部在Ubuntu 18.04 环境下安装验证过,不保证其他Linux发行版有无bug。Enjoy Yourself !

[toc]

Step 1 Install Deep-wine-ubuntu:

Github Deep-wine-ubuntu

Gitee Deep-wine-ubuntu


git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git

or

git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git

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

Step 2.1 install 微信:

Wechat Download

选择下载最新版本 “deepin.com.wechat_2.6.8.65deepin0_i386.deb”进行安装。


sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb

已知bug 解决办法:


sudo apt install libjpeg62:i386

找一个好友随便输入中文,退出再找一个好友输入中文时就不会在乱码

1. 安装xdotool


sudo apt install xdotool

2. 创建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh 并写入以下脚本内容

repo 内issue 脚本并没有通用性, 不同机器的sleep 参数需要尝试进行枚举。修改如下


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”进行安装。


sudo dpkg -i deepin.com.qq.im_9.1.8deepin0_i386.deb

已知bug 解决办法:


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

找一个好友随便输入中文,退出再找一个好友输入中文时就不会在乱码

Step 2.3 install 企业微信:

wework Download

选择下载最新版本 “deepin.com.weixin.work_2.8.10.2010deepin0_i386.deb”进行安装。


sudo dpkg -i deepin.com.weixin.work_2.8.10.2010deepin0_i386.deb

已知bug 解决办法:

Step3 图标放入Topbar 托盘

End

上一篇 下一篇

猜你喜欢

热点阅读