Install a Chinese language pack for centos

Source: Internet
Author: User
Tags i18n
1. the CentOS system accesses g.cn and finds Chinese garbled characters. Therefore, the Chinese font cannot be displayed after the yum-yinstallfonts-chineseCentOS system is installed. I used gedit to edit the source code, and its Chinese comments were garbled. Later, finally found the following method can solve, need two Chinese support package: fonts-chinese-3.02-12.el5.noarch.rpm: http:/1, CentOS system access g.cn, found Chinese garbled.

So we used the previous method: yum-y install fonts-chinese.
After the CentOS system is installed, the Chinese font still cannot be displayed. I used gedit to edit the source code, and its Chinese comments were garbled.

Later, we finally found the following solution and needed two packages supported by Chinese characters:
Fonts-chinese-3.02-12.el5.noarch.rpm: http://www.itmop.com/downinfo/15476.html
Fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm: http://www.zhaodll.com/rpm/f/331990.html
One is a Chinese font and the other is a font display package.


After the download, install it on the command line:
# Rpm-ivh XXXX (XXXX indicates the full names of the above two packages. I don't know how to use rpm ?)
After the CentOS system is installed, restart it.
Method 2.
Yum install fonts-chinese
Yum install fonts-ISO8859-2
2. garbled display on terminals and gedit

# Vi/etc/sysconfig/i18n
Set LANG = "en_US.UTF-8"
SYSFONT = "latarcyrheb-sun16"
Modify the original content
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "lat0-sun16"

Use yum to install Chinese fonts
# Yum install fonts-chinese.noarch
System-> logout
When you log on to the CentOS system again, you will find that all interfaces have changed from English to Chinese. Enter the date command on the terminal to test
# Date
Monday, November 24, 2009 12:07:00 CST

III. solutions to garbled Chinese characters on The telnet terminal over ssh (CentOS 5.3)

# Vi/etc/sysconfig/i18n
Set the original content LANG = "en_US.UTF-8"
SYSFONT = "latarcyrheb-sun16"
Change
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "lat0-sun16"

Use yum to install Chinese fonts
# Yum install fonts-chinese.noarch
Disconnect ssh and reconnect
Enter the date command on the terminal to test
# Date
Monday, November 24, 2009 12:09:00 CST

4. use Chinese input methods in CentOS 5.3

My previous method was to install the Penguin edition. see the next page. Here, there is also a simpler one, as long as you use yum to Install SCIM.
Command line input:
# Yum install scim
# Yum install scim-pinyin
Restart X (press Ctrl + Alt + Backpace) or log out (logout ).

Now, you can enter Chinese characters. The problem of Chinese garbled characters in the CentOS system is solved in this way.
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.