We can install the input method first: You can choose to install FCITX or install SCIM
SCIM:
$ Sudo apt-get install scim scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh scim-input-pad $ sudo sh -c "echo 'export XMODIFIERS = @ im = SCIM; export GTK_IM_MODULE =" SCIM "; scim -d '> /etc/x11/xsession.d/95xinput" $ sudo chmod 755 /etc/x11/xsession.d/95xinputfcitx: $ sudo apt-get install fcitx $ sudo sh -c "echo' Export XModifiers = @ im = fcitx; export gtk_im_module = "fcitx"; fcitx '> /etc/x11/xsession.d/95xInput "$ sudo chmod 755 /etc/x11/xsession.d/95xInput restart XWindow completion. press
Ctrl space key activation input method.