Article Title: installation and configuration of Chinese Input Methods in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Today, the Chinese Input Method is installed on linuxc55.3. The process is as follows:
1. install the chinese font library yum install "font-chinese"
2. install scim Input Method yum install "scim *"
3. install scim-lang-chinese, scim-pinyin yum install scim-lang-chinese scim-pinyin // It is not clear whether this step is required, but it should be installed in case of errors.
Everything went smoothly. After the installation is successful, restart. You can choose to enter a Chinese font for Crtl + space, or enter a Chinese font correctly in vi. The cat file can display Chinese characters and the Chinese webpage can display them normally.
However, when I remotely log on using Xshell, Chinese characters in vi file and file are garbled and cannot be entered correctly. Cat file can be displayed normally. I searched a lot on the Internet and tried to modify the. bash_profile,/etc/sysconfig/i18n file to solve the garbled problem. Then I found the correct solution in a blog post:
In windows, the default value is gb encoding, while in vim, the default value is UTF-8 encoding. (gedit is also UTF-8 by default. Add a configuration file as follows: (root User)
$ Vi ~ /. Vimrc
Let & termencoding = & encoding
Set fileencodings = UTF-8, gbk
$: Wq
After saving the file, open vi again to display and input the file normally. You can also set syntax on in the configuration file, set tabstop = 4, and set number. Specific reference blog: http://happysuky.blog.sohu.com/132535161.html
Thanks to the bloggers, It's really useful!