Solve the problem of being unable to input Linux
using fcitx5
the input method
① Download and install the corresponding software
Use Linux
the software management tool to download fcitx5
the corresponding dependent software of the input method:
Install on Debian
your system and its derivatives:
$ sudo apt-get install fcitx5-frontend-qt5 fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-pinyin fcitx5-chinese-addons fcitx5-chewing fcitx5-module-lua fcitx5-module-lua-common fcitx5-modules unicode-cldr-core
Install on Arch Linux
your system and its derivatives:
$ sudo pacman -S fcitx5-im fcitx5-qt fcitx5-gtk fcitx5-chinese-addons fcitx5-lua unicode-cldr
……
Dependency explanation:
fcitx5-frontend-qt5
/ fcitx5-qt
- Provides modules for fcitx5
input methods Qt5
IM
.
fcitx5-frontend-gtk2
/ fcitx5-gkt
- Provides modules for fcitx5
input methods GTK2
IM
.
fcitx5-frontend-gtk3
/ fcitx5-gtk
- Provides modules for fcitx5
input methods GTK3
IM
.
fcitx5-pinyin
- fcitx5
Provide pinyin support for input method framework.
fcitx5-chinese-addons
- fcitx5
Provide Chinese related plug-ins for input methods.
fcitx5-chewing
- Provides Traditional Chinese input engine for fcitx5
input method .chewing
fcitx5-module-lua
/ fcitx5-lua
- Provides support for fcitx5
input methods lua
.
fcitx5-module-lua-common
/ fcitx5-lua
- Generic files providing support for fcitx5
input methods .lua
fcitx5-modules
-The fcitx5
core module of the input method framework.
unicode-cldr-core
/ unicode-cldr
- Unicode CLDR
Core common data from.
② Configure corresponding files
Configuration /etc/environment
file or ~/.pam_environment
file.
-
If the configuration
/etc/environment
file is configured, enter the following content in the file:XIM=fcitx5 XIM_PROGRAM=fcitx5 GTK_IM_MODULE=fcitx5 QT_IM_MODULE=fcitx5 XMODIFIERS=@im=fcitx5 SDL_IM_MODULE=fcitx5 GLFW_IM_MODULE=fcitx5
-
If the configuration
~/.pam_environment
file is configured, enter the following content in the file:export XIM=fcitx5 export XIM_PROGRAM=fcitx5 export GTK_IM_MODULE=fcitx5 export QT_IM_MODULE=fcitx5 export XMODIFIERS=@im=fcitx5 export SDL_IM_MODULE=fcitx5 export GLFW_IM_MODULE=fcitx5
warn:
Read
~/.pam_environment
has been deprecated and no longer works.
③ Make the configuration file effective:
Use the following command to make the file just configured take effect:
If the configured /etc/environment
file is configured, root
use the following command under the user:
# source /etc/environment
If configured ~/.pam_environment
file, use the following command:
$ source ~/.pam_environment
④ The configuration is complete, enjoy it~
You can enjoy the input method after restarting your computer fcitx5
.
hint:
fcitx5-material-color
-fcitx5
Provides a theme similar to the Microsoft Input Method theme for the input methodmaterial color
.