华佗 發表於 2019-8-2 10:26:00

kali linux 安装 qq (deepin-wine)

<h2 id="添加deeepin-wine-依赖">添加deeepin-wine 依赖</h2>
<p>/etc/apt/sources.list:</p>
<pre><code># 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

</code></pre>
<p>更新</p>
<pre><code>apt update
</code></pre>
<p>签名验证错误</p>
<pre><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF
</code></pre>
<p>安装deepin-wine</p>
<pre><code> apt install deepin-wine --fix-missing
</code></pre>
<h2 id="安装-wine-qq">安装 wine qq</h2>
<p>下载:https://www.lulinux.com/archives/1319</p>
<pre><code> dpkg -i deepin.com.qq.im.light_7.9.14308deepin8_i386.deb

</code></pre>
<p>如果报错,安装依赖:</p>
<pre><code>apt install -f
</code></pre>
<p>安装中文字体:</p>
<pre><code>apt-get install xfonts-intl-chinese
apt-get install ttf-wqy-microhei
</code></pre>
<p><img src="https://img2018.cnblogs.com/blog/1226359/201908/1226359-20190802102514482-2013798139.png" alt="" loading="lazy"></p>
<p><img src="https://img2018.cnblogs.com/blog/1226359/201908/1226359-20190802102520476-1541792671.png" alt="" loading="lazy"></p>
<h2 id="其他问题">其他问题:</h2>
<ul>
<li>最小化之后找不到</li>
<li>字体发虚</li>
</ul>
<h2 id="微信黑块">微信黑块</h2>
<p>参考:Espylapiza https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/72</p>
<blockquote>
<p>这里ubuntu18.10,我暂时写了一个脚本<br>
先安装xdotool<br>
$ sudo apt install xdotool<br>
创建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh<br>
$ sudo vim /opt/deepinwine/apps/Deepin-WeChat/runrun.sh</p>
</blockquote>
<pre><code>#!/bin/bash

"/opt/deepinwine/apps/Deepin-WeChat/run.sh"&gt;/dev/null 2&gt;&amp;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 ] &amp;&amp; ([ "$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
</code></pre>
<blockquote>
<p>修改desktop文件<br>
$ sudo vim /usr/share/applications/deepin.com.wechat.desktop<br>
找到Exec那一行,替换为<br>
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"<br>
sleep的值是在自己电脑上调的,如果失败,尝试增大sleep的值</p>
</blockquote>
<h3 id="第二天开机发现还是有黑块解决方法">第二天开机发现还是有黑块,解决方法:</h3>
<p>修改 runrun.sh:</p>
<pre><code>#!/bin/bash
cd /opt/deepinwine/apps/Deepin-WeChat/
./run_main.sh
</code></pre>
<p>run_main.sh 的内容是之前runrun.sh 的内容</p>
<h2 id="安装-topicons-redux-效果如下">安装 TopIcons Redux 效果如下:</h2>
<p><img src="https://img2018.cnblogs.com/blog/1226359/201908/1226359-20190817233935221-237324760.png" alt="" loading="lazy"></p>
<h2 id="简化的安装流程">简化的安装流程</h2>
<p>参考:https://bbs.deepin.org/forum.php?mod=viewthread&amp;action=printable&amp;tid=183464</p>
<ul>
<li>/etc/apt/source.list 添加deepin 的源</li>
</ul>
<pre><code>deb https://mirrors.huaweicloud.com/deepin stable main contrib non-free

</code></pre>
<pre><code>sudo apt update
</code></pre>
<pre><code>sudo apt install deepin.com.wechat -y
</code></pre>
<pre><code>sudo apt install deepin.com.qq -y
</code></pre>
<p><img src="https://img2018.cnblogs.com/blog/1226359/201910/1226359-20191015100831943-1764453498.png" alt="" loading="lazy"></p>
<p>如果不希望安装其他默认的应用,不要 -y</p><br><br>
来源:https://www.cnblogs.com/lanqie/p/11287057.html
頁: [1]
查看完整版本: kali linux 安装 qq (deepin-wine)