Ubuntu18.04 install WeChat record

Since WeChat does not support Linux systems, it is necessary to use the Wine tool to use WeChat in the Linux environment.

insert image description here


Install WineHD

For installing Wine, please refer to this article , do not install wine in apt source, it is too old, install it directly through wineHD source:

  • Import the GPG key of the WineHQ repository
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
  • Add WineHD source
sudo apt install software-properties-common
sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'
  • Install WineHD
sudo apt-get install --install-recommends winehq-stable

If you are prompted to lack dependencies during the installation process, wine-stable (= x.0.0~bionic)you need to download wine-stable-amd64and wine-stable-i386. If you use apt to install these two dependencies, you may be prompted to lack libfaudio0dependencies. This dependency needs to be downloaded and installed manually by yourself, corresponding to two debpackages, one is libfaudio0_19.07-0~bionic_i386.deb:
https:// download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/

insert image description here
Another is libfaudio0_19.07-0~bionic_amd64.deb
https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/

insert image description here
After installing these two dependencies, you can install wine-stable-amd64and install through apt wine-stable-i386:

sudo apt install wine-stable-amd64
sudo apt install wine-stable-i386

Then reinstall WineHD again:

sudo apt-get install --install-recommends winehq-stable
  • View the Wine version
wine --version

Currently updated to version 6.0.1

$ wine --version
wine-6.0.1
  • Configure Wine and run the command in the terminal winecfg. This command will install Mono and Gecko and set up the Wine environment. In fact, you can use the default configuration. The main reason is that you will be prompted to download some dependencies when starting, and the download is complete:

insert image description here


Install WeChat

  • Go to the official website to download the installation package corresponding to the Windows version

insert image description here

  • Back key to install WeChat with Wine
    insert image description here

  • After the installation is completed, the default language is English, and it is changed to Simplified Chinese in the general settings:

insert image description here


Solve the problem that the input text cannot be displayed

After installing WeChat, I found that nothing is displayed when entering text in the input box, but it can be sent after hitting Enter. I looked around on the Internet and found a solution:

  • Install firstwinetricks
sudo apt install winetricks
  • then winetricksinstall usingriched20
winetricks riched20

During the installation process, two files will be installed, but during the installation process, I kept being prompted that the file could not be found InstMsiW.exe. After looking for a long time on the Internet, I found that the link to this file was down, and I couldn't download it at all. Then I found this file on the Internet. , you can download it yourself through the link I shared:

Link: https://pan.baidu.com/s/1Clv8HC0Fp4t6Z1nMwA7vVA Password: aack

After downloading , put this file in the folder of InstMsiW.exeyour user root directory~/.cache/winetricks/win2ksp4

insert image description here

  • Use the winetricksinstallation again riched20, and the installation is successful.
winetricks riched20
  • After the installation is complete, restart the computer and open WeChat to enter text normally.

Guess you like

Origin blog.csdn.net/qq_37541097/article/details/119872041