# 通信与远程连接

> 微信、TIM、SSH 客户端、远程终端及相关兼容性记录。

---

LLMS index: [llms.txt](/llms.txt)

---

1. 聊天工具
    1. TIM，微信
    下载对应的包

        ```bash
        # 前置条件:
        # 1. 需要安装[deepin-wine环境](https://github.com/wszqkzqk/deepin-wine-ubuntu)
        # 2. 然后去[Deepin-wine 容器的存档](https://gitee.com/wszqkzqk/deepin-wine-containers-for-ubuntu/)
        git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
        cd deepin-wine-for-ubuntu
        yes | ./install.sh
        wget -qO- https://deepin-wine.i-m.dev/setup.sh | sudo sh

        # 支持安装的软件列表
        https://deepin-wine.i-m.dev/
        ```

    1. wine-微信:

        ```bash
        # version: 
        # sudo apt install -y deepin.com.wechat
        # version: 3.4.0.38deepin16(deepin-wine6) https://com-store-packages.uniontech.com/appstore/pool/appstore/c/com.qq.weixin.deepin/com.qq.weixin.deepin_3.4.0.38deepin16_i386.deb
        # version: 3.7.0.30deepin13(deepin-wine6) https://com-store-packages.uniontech.com/appstore/pool/appstore/c/com.qq.weixin.deepin/com.qq.weixin.deepin_3.7.0.30deepin13_i386.deb 目前有问题
        sudo apt install -y com.qq.weixin.deepin
        
        sudo apt install xdotool
        设置键盘快捷键，自定义快捷键
        先准备一个shell脚本，添加执行权限，内容如下:
        #!/bin/sh
        #在当前运行的应用中找到名为WeChat.exe的应用程序，并向它发送按键事件&#34;ctrl&#43;alt&#43;W&#34;
        #WeChat的可执行文件名为WeChat.exe，如果是其它应用程序就修改成其它应用程序的可执行文件名, 应用名称大小写敏感, 一个字母都不能错!
        xdotool key --window $(xdotool search --limit 1 --all --pid $(pgrep WeChat.exe)) &#34;ctrl&#43;alt&#43;W&#34;

        快捷键指定命令: /绝对路径/脚本的名字
        键盘绑定: Ctal&#43;Alt&#43;W
        ```

    2. wine-TIM: `sudo apt install -y deepin.com.qq.office`
    3. Tencent QQ
        
        ```bash
        wget -Nc https://qd.myapp.com/myapp/qqteam/linuxQQ/linuxqq_2.0.0-b1-1024_amd64.deb
        sudo dpkg -i linuxqq_2.0.0-b1-1024_amd64.deb
        ```

    4. 腾讯会议:

        ```bash
        wget -Nc https://updatecdn.meeting.qq.com/cos/249fc9a44733d846162296934bbf52fa/TencentMeeting_0300000000_3.10.0.401_x86_64_default.publish.deb
        sudo dpkg -i TencentMeeting_0300000000_3.10.0.401_x86_64_default.publish.deb
        ```

2. ssh工具
    1. Remmina:
        
        ```bash
        sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
        sudo apt update
        sudo apt install -y remmina remmina-plugin-rdp remmina-plugin-secret remmina-plugin-spice
        ```

        Usage
        ```
        提供了 RDP、VNC、XDMCP、SSH 等远程连接协议的支持
        启动软件后，有可视化界面，可以保存 ssh rdp 信息，方便下次快速连接
        ```

    2. 深度终端: 
        
        ```bash
        # deepin-terminal 2.9.2
        sudo apt-get --fix-broken install
        sudo apt install -y deepin-menu expect lrzsz zssh
        wget -Nc http://kr.archive.ubuntu.com/ubuntu/pool/universe/d/deepin-terminal/deepin-terminal_2.9.2-1_amd64.deb
        sudo dpkg -i deepin-terminal_2.9.2-1_amd64.deb

        # deepin-terminal 5.0.0 --mint 20 --pass
        sudo apt-get --fix-broken install
        sudo apt upgrade -y deepin-menu expect lrzsz zssh
        wget -Nc http://kr.archive.ubuntu.com/ubuntu/pool/universe/d/deepin-terminal/deepin-terminal_5.0.0&#43;ds1-2_amd64.deb
        sudo dpkg -i deepin-terminal_5.0.0&#43;ds1-2_amd64.deb

        # deepin-terminal 3.0以上版本依赖libc6 (&gt;= 2.29)
        ```

    3. electerm:
       
       ```bash
       wget -Nc https://github.com/electerm/electerm/releases/download/v1.4.2/electerm-1.4.2-linux-amd64.deb
       sudo dpkg -i electerm-1.4.2-linux-amd64.deb
       ```

    4. Tabby:
       
       ```bash
       wget --content-disposition https://packagecloud.io/eugeny/tabby/packages/ubuntu/focal/tabby-terminal_1.0.169_amd64.deb/download.deb
       sudo dpkg -i tabby-terminal_1.0.169_amd64.deb
       ```

    5. [WindTerm](https://github.com/kingToolbox/WindTerm):
       
       ```bash
       wget --content-disposition https://github.com/kingToolbox/WindTerm/releases/download/2.5.0/WindTerm_2.5.0_Linux_Portable_x86_64.tar.gz
       tar -zxf WindTerm_2.5.0_Linux_Portable_x86_64.tar.gz
       # 去掉 自动锁定 -- 进入会话-首选项-设置,修改锁屏超时为0
       sed -i &#39;s/&#34;application.lockScreenTimeout&#34; : 30/&#34;application.lockScreenTimeout&#34; : 0/g&#39; ~/.wind/profiles/default.v10/user.config
       # 去掉 主密码(修改此配置需要重启，并且之前存储的密码需要重新键入 --次次要键入)
       sed -i &#39;s/&#34;application.masterPassword&#34; : true/&#34;application.masterPassword&#34; : false/g&#39; ~/.wind/profiles/default.v10/user.config
       ```
