Ubuntu18.04 安装QQ、Tim、微信与win无差异 | 您所在的位置:网站首页 › ubuntu卸载微信 › Ubuntu18.04 安装QQ、Tim、微信与win无差异 |
一、安装deepin-wine环境:
桌面下打开终端,依次输入以下命令 git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git //将github中文件夹克隆到本地,若报错请看注意内容 cd deepin-wine-for-ubuntu //进入存储后的文件夹目录 sudo sh install.sh //运行安装wine的脚本文件注意:运行第一行代码时若电脑上未安装git则无法将文件夹存储到本地,安装方法 sudo apt-get update -y //保证系统和包列表更新 sudo apt-get upgrade -y sudo apt install git //在ubuntu18.04上安装git二、下载对应的qq、微信等容器 QQ: wget https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.qq.im/deepin.com.qq.im_9.1.8deepin0_i386.deb sudo dpkg -i deepin.com.qq.im_9.1.8deepin0_i386.deb sudo apt-get install -f微信: 点击下载 sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb sudo apt-get install -f更多软件:安装方法与微信相同 TIM QQ轻聊版 Foxmail 百度网盘 360压缩 WinRAR 迅雷极速版 千牛卖家工作台安装效果: 注意:默认情况下qq最小化后图标不会显示在状态栏中,安装优化软件后即可 三、将图标最小化到状态栏 1、安装拓展 sudo apt-get install gnome-shell-extension-top-icons-plus gnome-tweaks2、重启电脑 3、依次打开优化-》拓展-》勾选Topicons plus 完成以上步骤即可在ubuntu18.04上使用qq、微信等软件。 四、卸载已安装的程序 sudo apt-get remove deepin.com.按tab键后,根据提示的软件名称补全后可直接卸载。 注意:该方法只能卸载软件,若想卸载wine环境,桌面下进入终端: cd deepin-wine-for-ubuntu sudo sh uninstall.sh五、已知bug及解决方法 1、微信不能发图片,解决方法: sudo apt install libjpeg62:i3862、qq的设置无法打开:无解,欢迎留言 3、微信使用一段时间后屏幕出现黑点 解决方法:感谢 Espylapiza ①先安装xdotool $ sudo apt install xdotool ②创建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh //手动创建即可 ③$ sudo vim /opt/deepinwine/apps/Deepin-WeChat/runrun.sh //若没有vim,需要先安装 sudo apt-get install vim ④将下面脚本的代码拷进runrun.sh文件内(需要vim基础,不懂自行百度) #!/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 sleep 1 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注意:若无效,继续增大sleep的值。 ⑤修改desktop文件 $ sudo vim /usr/share/applications/deepin.com.wechat.desktop 找到Exec那一行,替换为 Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh" ⑥在runrun.sh文件的文件夹下打开终端,修改runrun.sh的权限: sudo chmod 777 runrun.sh⑦重启电脑即可解决该问题,亲测可用! 4、微信不能发送图片: sudo apt insatall libjpeg62:i3865、建议安装tim+微信,修复bug后和win完全无区别 感谢: GitHub:https://github.com/wszqkzqk/deepin-wine-ubuntu 撸linux:https://www.lulinux.com/archives/1319 |
CopyRight 2018-2019 实验室设备网 版权所有 |