Install Sogou Pinyin input method on ubuntu 18.04 (no pit)

Reference for this article: https://blog.csdn.net/weixin_44497198/article/details/126133691
I recently found that the built-in Chinese input method was too difficult to use when using ubuntu18.04, so I thought of installing a Sogou Pinyin input method, but according to Sogou The installation of the official tutorial failed, and the installation was successful, but it was also unstable and could not be used from time to time. Finally, refer to the installation experience of the big guys, and finally the installation is successful. Record the installation process and leave it for reference by those who need it.
Ubuntu version: 18.04 (Chinese)

1. Download Sogou Pinyin Linux version
Sogou Pinyin official website directly: https://shurufa.sogou.com/linux?r=pinyin
Download the latest version this time, file name: sogoupinyin_4.0.1.2800_x86_64.deb

2. Preparation before installation

It is recommended to update the domestic source, and recommend the source of Alibaba Cloud;

//1、更新源
sudo apt-get update
sudo apt-get upgrade

//2.通过命令行安装aptitude
sudo apt-get install aptitude

//3、通过命令行利用aptitude 安装fcitx、qt(这里可能会安装Qt creator,等安装完毕后可以卸载掉)
sudo aptitude install fcitx-bin fcitx-table fcitx-config-gtk fcitx-config-gtk2 fcitx-frontend-all
sudo aptitude install qt5-default qtcreator qml-module-qtquick-controls2

//4、安装依赖
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install libgsettings-qt1

3. Configure fcitx
Enter on the command line:


im-config

A dialog box will pop up, click "ok" or "confirm" in the pop-up dialog box until the following dialog box, select the fcitx option, and then confirm: 4. Install the Sogou Pinyin input method
insert image description here
:

Prepare the downloaded Sogou software package, and enter the following command on the command line to install:

sudo dpkg -i sogoupinyin_4.0.1.2800_x86_64.deb

Restart the system after the installation is complete;

5. Configure Sogou Pinyin input method

After restarting, click the keyboard icon in the upper right corner, select "Configure Current Input Method" in the drop-down box:
insert image description here
select "Sogou Input Method Personal Edition" in the new dialog box, and then click the "^" below to move up to the first One, this is to set Sogou as the default input method, press "Ctrl" + "Spacebar" to wake up Sogou input method next time you use it.
insert image description here
At this point, the installation of Sogou Input is complete.

About uninstalling Qt creator:
If Qt creator is installed when the above command is executed, you can uninstall it: find the software icon of Qt creator, right-click, select "Show Details", and then find the uninstall button to uninstall.

The installation is successful, complete! ! !

Guess you like

Origin blog.csdn.net/qq_19693355/article/details/128293128