Centos 1, 5.3
Overview
Author:
Zccst
Prerequisites: The system is installed by default (in English ). After installation, various Chinese characters are garbled
I,
Access
G.cn
Chinese characters are garbled.
So we used the previous method:
Yum-y install fonts-Chinese
After installation, the Chinese font still cannot be displayed. I use
Gedit
Edit the source code. The Chinese comments are garbled.
Later, we finally found the following solution and needed two packages supported by Chinese characters:
Fonts-chinese-3.02-12.el5.noarch.rpm
Fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
One is a Chinese font and the other is a font display package.
You can download it at the following address:
Http://ftp.dc.volia.com/pub/CentOS/CentOS/
After the download, install it on the command line:
# Rpm-IVH xxxx
(
Xxxx
Represents the full name of the two packages above,
Rpm
I don't know how to use it, right ?)
After the installation is complete, restart.
Ii. terminals,
Gedit
Show garbled characters
# 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
Install Chinese Fonts
# Yum install fonts-chinese.noarch
System
->
Logout
Cancel
When you log on again, you will find that all interfaces have changed from English to Chinese. Enter
Date
Command Test
# Date
2009
Year
11
Month
24
Day
Monday
12:07:00 CST
3.
SSH
,
Telnet
Terminal Chinese display garbled solution (
Centos 1, 5.3
)
# Vi/etc/sysconfig/i18n
Change 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
Install Chinese Fonts
# Yum install fonts-chinese.noarch
Disconnected
SSH
, Reconnect
Enter
Date
Command Test
# Date
2009
Year
11
Month
24
Day
Monday
12:09:00 CST
4.
Centos 1, 5.3
Use Chinese Input Method
My previous method was to install the Penguin edition.
,
Http://blog.csdn.net/zccst/archive/2009/08/27/4489555.aspx
.
Here, there is a simpler one, as long as you use
Yum
Install
Scim
You can.
Command Line input:
# Yum install scim
# Yum install scim-pinyin
Restart
X
(Press
CTRL + ALT + backpace
) Or cancel (
Logout
).
Now, you can enter Chinese characters.