Open ~/.profile (if there is no such file, create one) and add
export INPUT_METHOD="fcitx"
to this file.
Customize Fcitx
Install input method