Ubuntu 22.04 Chinese input method

Minyakonga
2 min readSep 26, 2022

--

Background

I need work under Ubuntu Linux, also need communicate with others in Chinese, thus need Chinese input method workable in Ubuntu. previous Ubuntu versions can easily install sogoupinyin. but in 22.04, it is a little different. this article will guide you through config sogoupinyin in Ubuntu 22.04.

Language Dependency

Install basic language dependencies for Chinese-Simplified

Select [Install/Remove Languages]

Select [Chinese(simplified)] and [apply]

Install fcitx4

sudo apt update
sudo apt install fcitx
sudo cp /usr/share/applications/fcitx.desktop /etc/xgd/autostart
sudo apt remove --purge ibus

Install sogoupinyin

Download sogoupinyin for Linux from https://shurufa.sogou.com/

sudo dpkg -i sogoupinyin_4.0.1.2800_x86_64.deb
sudo apt install -f
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2 libgsettings-qt1

Configure

set [Keyboard input method system] to Fcitx 4

Logout current session and Login, then configure Chinese input method in fcitx as following:

Add following to /etc/environment to enable auto use fcitx

# add following lines into /etc/environment
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS="@im=fcitx"

Restart

now restart system, and you can trigger sogou pinyin input by pressing [Ctrl+Space]

Reference:

--

--

Minyakonga
Minyakonga

Written by Minyakonga

0 Followers

software engineer(Tencent,Shopee), Python lover, hiker lover

No responses yet