Installation and configuration of Chinese Input Methods in Linux

Source: Internet
Author: User
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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.