Installation of Chinese input method under Linux

Source: Internet
Author: User

Today, the Chinese input method is installed on the LinuxSLC5.3 and the process is as follows:
Original from the "Bit network", reproduced please keep the original link: http://soft.chinabyte.com/os/102/11459102.shtml

1. Install the Chinese font library yum install "Font-chinese"

2. Install Scim Input Method yum Install "scim*"

3. Installing Scim-lang-chinese,scim-pinyin Yum Install Scim-lang-chinese scim-pinyin//It is not clear if this step is necessary, but in case of error, it is loaded.

Everything went well. After the installation has been successfully restarted, crtl+ space can choose to enter the Chinese font, you can also enter the correct Chinese font in VI, CAT file can display Chinese, Chinese web page can be displayed normally.

However, when I telnet with Xshell, the Chinese characters in VI file,file are garbled and cannot be entered correctly. Cat file can be displayed normally. Search on the Internet a lot, try to modify the. bash_profile,/etc/sysconfig/i18n file does not solve the garbled problem, and later found the correct solution in a blog post:

Original from the "Bit network", reproduced please keep the original link: http://soft.chinabyte.com/os/102/11459102.shtml

Because the default is GB encoding under Windows, and Vim is the default UTF-8 encoding (gedit default is also Utf-8), so remote VI will be garbled after opening. You need to add a configuration file yourself, as follows: (Root user)

$vi ~/.VIMRC

Let &termencoding=&encoding

Set FILEENCODINGS=UTF-8,GBK

$:wq

Once saved, the VI can be displayed and entered normally. In addition, you can set the syntax highlighting (syntax on) in the configuration file, the TAB key (set tabstop=4), the line number (set numbers), and so on. Specific Reference blog: http://happysuky.blog.sohu.com/132535161.html

Original from the "Bit network", reproduced please keep the original link: http://soft.chinabyte.com/os/102/11459102.shtml

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.