Today, I tried to install fcitx In ubuntu (fcitx is a five-input pinyin method). Here is what I saw on my blog. I have successfully installed fcitx, now I will share it with you.
Install fcitx
1 $sudo apt-get install fcitx
Enter
1 $sudo gedit ~/.bashrc
Add a new line at the end of the opened file. The content is as follows:
1 export XMODIFIERS="@im=fcitx"
Set fcitx as the default input method
1 $im-switch -s fcitx -z default
Click: System -- preferences -- start application select Add button. In the displayed window, enter the fcitx command and enter fcitx-D.
Update the Language Pack. Otherwise, the input method output is garbled.
1 $sudo apt-get install language-pack-zh2 $sudo apt-get install language-pack-gnome-zh
Enter the command: fc-list on the terminal to display the Chinese font in the system. Scroll up to find the Chinese font in my computer is wenquanyi Zen Hei.
Then change the configuration
1 $sudo gedit ~/.fcitx/config
If the file is opened as garbled, refer to this blog post to modify: http://www.cnblogs.com/elect-fans/archive/2012/05/09/2492458.html
Replace the content of the first and second rows under the first [] brackets in the open file with wenquanyi Zen Hei.
This is because sometimes fcitx shows a box instead of a Chinese character.
You can modify other settings.
Save the file and exit.
Uninstall the ibus input method,
1 sudo apt-get remove ibus
After the restart, enter the user name, select Chinese language at the bottom of the welcome page, and enter Ubuntu Desktop with the keyboard China,
Open an editor and press Ctrl + space to switch to the fcitx input method.