How to type non latin 「CJK」 characters on Linux

Tags: linux japanese tutorial video

【 multiple distro covered 】


➖ enter root environment ➖
  • sudo -i
➖ install package manager ➖
  • apt update
  • apt install synaptic
➖ search and mark for installation ➖
  • fcitx-mozc (japanese)
  • fcitx-sunpinyin (chinese)
  • fcitx-hangul (korean)

optionally, search for fonts i.e.: japanese, chinese, korean, cjk fonts

➖ initialize fcitx ➖
  • open fcitx
➖ configure fcitx ➖
  • open fcitx configuration
  • add input method using the “+” icon
  • uncheck “show only current language”
  • select mozc, sunpinyin or hangul
  • configure a shortcut to trigger the IM on the “Global Config” tab

enjoy it (๑˘︶˘๑)

COMMAND LINE ONE SHOT (for japanese)

  • sudo apt update && sudo apt install fcitx-mozc -y

to set fcitx as default input method we need to set the Pluggable Authentication Modules.

create the file .pam_environment on your home and append these lines:


single commmand:

  • echo -e "GTK_IM_MODULE=fcitx\nQT_IM_MODULE=fcitx\nXMODIFIERS=@im=fcitx" >> ~/.pam_environment
➖ autostart at every login ➖

For Xubuntu / XFCE4

  • just go on the Settings > Session and Startup > Application Autostart > + Add >
Name: fcitx
Command: /usr/bin/fcitx

For other distributions

  • Same concept but the location of the autostart configuration really varies from distribution to distribution…
  • see bottom


it doesn't seem to work with multiple latin and non latin im, just 1 at a time.


In addition to fcitx also install:

  • fcitx-gtk2
  • fcitx-gtk3
  • fcitx-qt5

or just install the group: fcitx-im.


You'll probably already have the .pam_environment file so just append the code to the bottom or use the single command.
(don't forget the double direction signs >> using only one would override your file.)

The autostart is located into “Startup Applications” you can reach it starting to type on the menu.
But still, this won't be necessary since you can easily swap the input method and it will be auto started by default:

  • open the “Input Method” menu item.
  • answer “Yes” at the question “Do you explicitly select the user configuration?"
  • select fcitx and give ok.

you are now good to go :)


Francesco Yoshi Gobbo | HomePage
self-taught freelancer.
Nov 29, 2019

© 2019 Francesco Yoshi Gobbo - P.IVA / VAT: IT-01572520052