How to install WeChat and QQ in Ubuntu 20.04

1. Introduction

Linux is a free and open source operating system kernel that is widely used in various computer systems. It is known for its stability, security, and flexibility, and has become the operating system of choice in servers, embedded devices, and personal computers.

The main features and functions of Linux include:

Open source code: Linux adopts an open source code model, which means that users can freely view, modify and distribute source code, which makes Linux highly customizable and flexible. At the same time, open source code also promotes the participation of developers and promotes the development and innovation of the Linux community.

Multi-user and multi-task support: Linux supports multiple users logging in at the same time and can run multiple tasks at the same time. It uses a multi-process and multi-thread mechanism to allow multiple programs to run in parallel at the same time, improving system utilization and efficiency.

Highly stable and reliable: Linux is known for its high stability and reliability. It can run for a long time without restarting, reducing the possibility of system interruption and data loss. It is suitable for scenarios that require high system stability, such as servers and industrial control systems.

Security: Linux focuses on security and adopts a variety of security mechanisms in design and implementation, such as access control, account management, file permissions, etc. At the same time, a large number of developers in the Linux community actively participate in vulnerability fixes and security updates, responding to and solving security issues in a timely manner.

Virtualization and containerization support: Linux provides powerful virtualization and containerization support, such as KVM, Xen, Docker and other technologies. These technologies allow users to run multiple virtual machines or containers on one physical machine, improving hardware resource utilization and system flexibility.

Community support and ecosystem: Linux has a huge open source community and ecosystem, and users can get free support, documentation, and software from the community. In addition, numerous open source software and tools also provide Linux with a wealth of applications and functional extensions to meet the needs of different users.

2. Installation steps

1. Preparation before installation

Install necessary tools and deepin-wine dependencies

sudo apt install wget g++ git     #如已安装可自行跳过

2. Install deepin-wine

git clone "https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git"
cd deepin-wine                    #切换到下载目录
sudo ./install.sh                 #执行安装

The installation of the deepin-wine container is complete, now proceed with the installation of specific software.

3. Install Deep-wine WeChat and QQ

WeChat

sudo wget "https://mirrors.huaweicloud.com/deepin/pool/non-free/d/deepin.com.wechat/deepin.com.wechat_2.6.2.31deepin0_i386.deb" 
sudo dpkg -i *wechat*deb              #安装微信
sudo apt install libjpeg62:i386       #解决微信无法查看发送图片问题

QQ

sudo 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 *qq.im*deb

TIM

sudo wget https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.qq.office/deepin.com.qq.office_2.0.0deepin4_i386.deb
sudo dpkg -i *qq.office*deb

If you have other software requirements, you can use the latest version of the container installation package released by deepin:

  1. QQ light chat version
  2. Foxmail
  3. Baidu Skydisk
  4. WinRAR
  5. Thunder Express Edition

Other deepin-wine containers:Alibaba Cloud image download

4. Tray suspension

After normal installation, the wine window will be an independent window. For convenience and beauty, it is recommended to install the following plug-ins:

Gnome Shell 插件:TopIcons Plus

Effect picture after installation

5. Software requirements and other auxiliary software installation methods

  1. Download the required software installation package, exe file, such as: flash
  2. Put the downloaded installation file into ~/.deepinwine/<container name (Deepin-WeChat for WeChat, Deepin-TIM for TIM)>/drive_c, which is the root directory of the Wine C drive where the software is located.
  3. Open a Terminal and execute:
WINEPREFIX=~/.deepinwine/<容器名> deepin-wine "c:\\<文件名>"

Then follow the prompts to install and restart the software.

6. Manually change configuration (winecfg)

Execute the following code and make configuration changes as required.

WINEPREFIX=~/.deepinwine/容器名称 deepin-wine winecfg 

7.Uninstallation method

uninstall.sh

8. When the system language environment is not Chinese, the software is set to Chinese

Modify the /opt/deepinwine/tools/run.sh file and change the WINE_CMD line to WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

sudo vim /opt/deepinwine/tools/run.sh       #打开文件进行修改

9. Software updates

wget -qO- https://deepin-wine.i-m.dev/setup.sh | sudo sh
sudo apt-get install deepin.com.qq.office      #安装/更新TIM
sudo apt-get install deepin.com.qq.im          #安装/更新QQ
sudo apt-get install deepin.com.wechat         #安装/更新微信

10. The problem that wine cannot be called after all wine enters the background

Original link:Solution to the problem that global shortcut keys of wine application are invalid

Original author: Seven

1. Install xdotool
sudo apt install --no-install-recommends xdotool
2. Write xdotool script

*Idea: The Wine application cannot receive the shortcut key status in the background. At this time, use xdotool to send simulated key information to the Wine application. *

Create a new script file "open_wechat.sh" in the appropriate location and write the following content:

#!/bin/sh 
#在当前运行的应用中找到名为WeChat.exe的应用程序,并向它发送按键事件"ctrl+alt+W" 
#WeChat的可执行文件名为WeChat.exe,如果是其它应用程序就修改成其它应用程序的可执行文件名, 应用名称大小写敏感, 一个字母都不能错! 
xdotool key --window $(xdotool search --limit 1 --all --pid $(pgrep WeChat.exe)) "ctrl+alt+W"

Give the script executable permissions:

chmod +x open_wechat.sh

If your WeChat happens to be running in the background at this time, executing this script will call it to the foreground. If not, please check the script for errors.

3. Set shortcut keys

Open the graphical interface in sequence from "Settings" -> "Devices" -> "Keyboard Shortcuts", and click the "+" sign at the bottom of the list to add a custom shortcut key.

  • The name is whatever you want, just fill in "Open WeChat";
  • The command fills in the full path of the script just written;
  • Shortcut keys: Just set the shortcut keys you want to use. It is recommended that the shortcut keys within the application be the same;
  • Finally click "Add".
4. Verification

The setting has been successful here. Open WeChat, switch to the background, and then press the shortcut key you just set to summon the application to the foreground. If not, please check whether your previous settings are correct.

11. Application font garbled problem

You can try to use a USB flash drive to copy the fonts on Windows to the Ubuntu system and install them. The Windows fonts are stored in the system disk: \Windows\Fonts, follow the article below to install

 

Supongo que te gusta

Origin blog.csdn.net/weixin_45303602/article/details/134009406
Recomendado
Clasificación