kali linux 安装 qq (deepin-wine)

添加deeepin-wine 依赖

/etc/apt/sources.list:

# Generated by deepin-installer
deb http://mirrors.aliyun.com/deepin panda main contrib non-free
deb-src http://mirrors.aliyun.com/deepin panda main contrib non-free

更新

apt update

签名验证错误

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF

安装deepin-wine

 apt install deepin-wine --fix-missing

安装 wine qq

下载:https://www.lulinux.com/archives/1319

 dpkg -i deepin.com.qq.im.light_7.9.14308deepin8_i386.deb

如果报错,安装依赖:

apt install -f

安装中文字体:

apt-get install xfonts-intl-chinese
apt-get install ttf-wqy-microhei

其他问题:

  • 最小化之后找不到
  • 字体发虚

微信黑块

参考:Espylapiza https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/72

这里ubuntu18.10,我暂时写了一个脚本
先安装xdotool
$ sudo apt install xdotool
创建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh
$ 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
	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

修改desktop文件
$ sudo vim /usr/share/applications/deepin.com.wechat.desktop
找到Exec那一行,替换为
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"
sleep的值是在自己电脑上调的,如果失败,尝试增大sleep的值

第二天开机发现还是有黑块,解决方法:

修改 runrun.sh:

#!/bin/bash
cd /opt/deepinwine/apps/Deepin-WeChat/
./run_main.sh

run_main.sh 的内容是之前runrun.sh 的内容

安装 TopIcons Redux 效果如下:

简化的安装流程

参考:https://bbs.deepin.org/forum.php?mod=viewthread&action=printable&tid=183464

  • /etc/apt/source.list 添加deepin 的源
deb [trusted=yes] https://mirrors.huaweicloud.com/deepin stable main contrib non-free

sudo apt update
sudo apt install deepin.com.wechat -y
sudo apt install deepin.com.qq -y

如果不希望安装其他默认的应用,不要 -y

posted @ 2019-08-02 10:26  懒企鹅  阅读(6736)  评论(0编辑  收藏  举报