Summary of solving centos5.5 Chinese garbled method

Source: Internet
Author: User
Tags i18n pack ssh centos

Today, with VMware installation CentOS 5.5 Run all the way, found that Chinese are all small boxes, special to record:
1. Download Chinese font pack first
1 #yum Install Fonts-chinese.noarch
2 # Yum Install Fonts-iso8859-2.noarch
2. Modify the/etc/sysconfig/i18n file
#LANG = "en_US." UTF-8 "

For
Lang= "ZH_CN. GB18030 "

Restart or display garbled, is very depressed, and later found that the lack of Chinese fonts (we can download a font Baidu)


Some say seven steps online, in fact, only two steps:

The code is as follows Copy Code
Tar zxvf Wqy-bitmapsong-bdf-1.0.0-rc1.tar.gzsudo
Mkdir-p/usr/share/fonts/wenquanyi/
sudo mv Wqy-bitmapsong/usr/share/fonts/wenquanyi

Then add the </fontconfig> before the/etc/fonts/fonts.conf:

The code is as follows Copy Code
<dir>/usr/share/fonts/wenquanyi/wqy-bitmapsong/</dir>

Finally, do not forget to perform the FC-CACHE-FV update cache.

But I installed the font or display garbled ah, and then search, the site has been analyzed CentOS 5.5 after the Chinese (Chinese garbled) is the following reasons

Symptoms:
When using the CentOS system, you may encounter an English CentOS system when you install it, in which case installing the CentOS system is the default installation (ie English). After installation, the internet appears is the Chinese garbled.

Workaround:

Go to the CentOS resource website to find fonts-chinese-3.02-12.el5.noarch.rpm (Chinese font pack) and fonts-iso8859-2-75dpi-1.0-17.1.noarch.rpm (font display package)

The following is the 5.5 version of the package address (I installed the 5.5 i386)

The code is as follows Copy Code

ftp://ftp.muug.mb.ca/mirror/centos/5.5/os/i386/CentOS/fonts-chinese-3.02-12.el5.noarch.rpm

ftp://ftp.muug.mb.ca/mirror/centos/5.5/os/i386/CentOS/fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

If you are in the other version, please ftp://ftp.muug.mb.ca/mirror/centos/this below to find it.

After downloading, install at the command line:

The code is as follows Copy Code
#rpm-IVH xxxx (xxxx represents the full name of the above two packages, RPM will not be used to go to google it)

After the CentOS system installation is complete, reboot can be done.


terminal, gedit display garbled

The code is as follows Copy Code

#vi/etc/sysconfig/i18n
Will lang= "en_US." UTF-8 "
Sysfont= "Latarcyrheb-sun16"
Modify the original content to
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"

Install Chinese fonts with Yum

The code is as follows Copy Code
#yum Install Fonts-chinese.noarch
System-> Logout Logoff

When you log back into the CentOS system, you will find that all interfaces have changed from English to Chinese. Enter the date command test at the terminal
#date

In SSH, Telnet terminal Chinese display garbled solution

The code is as follows Copy Code
#vi/etc/sysconfig/i18n
Lang= the original content to "en_US." UTF-8 "
Sysfont= "Latarcyrheb-sun16"
Amended to
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"

Install Chinese fonts with Yum
#yum Install Fonts-chinese.noarch
Disconnect ssh, reconnect
Enter the date command test at the terminal
#date

By the way, Linux Chinese garbled

Method a modified/root/.bash_profile file to increase

The code is as follows Copy Code
Export LANG=ZH_CN. GB18030


For other users, you must modify the file accordingly putty can display Chinese when using this method, but the desktop system is in English, and all the pages in Chinese are garbled

Method Two:

Reference:

modifying/etc/sysconfig/i18n files

  code is as follows copy code

#LANG = "En_ US. UTF-8 "
#SUPPORTED =" en_US. Utf-8:en_us:en "
#SYSFONT = Latarcyrheb-sun16


to

lang=" zh_cn.gb18030 "
language=" Zh_ CN.GB18030:zh_CN.GB2312:zh_CN "
supported=" Zh_CN.GB18030:zh_CN:zh "
sysfont=" Lat0-sun16 "
sysfontacm=" 8859-15 "

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.