Centos Chinese font installation tutorial

Source: Internet
Author: User
After installing centos debugging, you need to browse the web page. at that time, because the installation was minimal in the English version, the text in the web page was garbled. I first searched the internet for the following two articles, but they failed to solve the problem, the solution is at the end. When you use CentOS, you may encounter CentOS in English. in this case, CentOS is installed by default (in English ). After installation, various Chinese characters are garbled. So, how can we solve this problem. 1. CentOS system access

After installing centos debugging, you need to browse the web page. at that time, because the installation was minimal in the English version, the text in the web page was garbled. I first searched the internet for the following two articles, but they failed to solve the problem, the solution is at the end.

When you use CentOS, you may encounter CentOS in English. in this case, CentOS is installed by default (in English ). After installation, various Chinese characters are garbled. So, how can we solve this problem.

1. the CentOS system accesses g.cn and finds Chinese garbled characters.

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.

Fonts-chinese-3.02-12.el5.noarch.rpm later, finally found the following method can solve, need two Chinese support package:

Ftp://ftp.muug.mb.ca/mirror/centos/5.4/ OS /x86_64/CentOS/fonts-chinese-3.02-12.el5.noarch.rpm

Fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

Ftp://ftp.muug.mb.ca/mirror/centos/5.4/ OS /x86_64/CentOS/fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

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.

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.


1. system language modification:
Compile the content in this directory # vi/etc/sysconfig/i18n
English system
LANG = "en_US.UTF-8"
SYSFONT = "latarcyrheb-sun16"
Chinese system
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"

Check whether the Chinese support software package is installed in the system.
Rpm-qa | grep fonts-chinese
2. install Chinese support
Method 1. find the package on the installation disc to install it.
Rpm-ivh fonts-chinese-3.02-9.6.el5.noarch.rpm
Rpm-ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Method 2.
Yum install fonts-chinese
Yum install fonts-ISO8859-2
I like yum first. if there is no package, install it manually.
3. Install scim Chinese input method
Install
Scim-1.4.4-39.el5.i386.rpm
Scim-pinyin-0.5.91-16.el5.i386.rpm
Scim-tables-0.5.6-7.i386.rpm
Scim-tables-additional-0.5.6-7.i386.rpm
Scim-tables-chinese-0.5.6-7.i386.rpm
When I install the first rpm package, I am prompted that a dependency package needs to be installed. Yum install.
Next, install reboot and the Chinese input method.
No configuration required. it feels much better than the Penguin input method.
If Centos is installed in English by default, the selection of Chinese is not normal, firefox can only see the square word. however, there is a way to install these two packages easily, and then you can see Chinese. for this reason, I have been studying it for quite some time. The name of a package that is never remembered
Sometimes it may be used, as I like to minimize installation, and then it is very useful when installing other software.
# Rpm-ivh fonts-chinese-3.02-9.6.el5.noarch.rpm
# Rpm-ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Don't ask me where these bags are.
I found it on a CD. The premise is that you are a DVD disk. don't ask me why your MP3 cannot play videos...
The Chinese input is scim.
Mainly install
Scim-1.4.4-39.el5.i386.rpm
Scim-pinyin-0.5.91-16.el5.i386.rpm
Scim-tables-0.5.6-7.i386.rpm
Scim-tables-additional-0.5.6-7.i386.rpm
Scim-tables-chinese-0.5.6-7.i386.rpm
I installed these five packages, reboot, and then OK. you don't need to set the configuration file Centos as ubuntu does. if the configuration file is installed in English by default, the selection of Chinese is not normal, and firefox can only see square characters. however, there is a way to install these two packages easily, and then you can see Chinese. for this reason, I have been studying it for quite some time. A package name that is not always remembered may be used when it is used. for example, I like to minimize installation and it is very useful when other software is installed.
# Rpm-ivh fonts-chinese-3.02-9.6.el5.noarch.rpm
# Rpm-ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
There are three ways to install the language pack. Two Yum methods, one rpm method.
1. yum-fully supported Chinese environment. The disadvantage of this method is that you need to download the installation package from FTP. although you can select the number of packages to download, it is still a small amount.
Log on as root and run the following command:
Yum groupinstall -Support
In the preceding command, Is one of the following: assamese, bengali, chinese, gujarati, hindi, Japan, kannada, korean, malayalam, marathi, oriya, punjabi, sinhala, tamil, thai, telegu.
If the following error message is displayed:
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory: 15 m rss (27 mb vsz)
Started: Sat Apr 10 13:34:25 2010-ago
State: Sleeping, pid: 3008
You can run the ps-U root and kill commands to end the Yum-consuming program and then run the preceding command again.
Second: The yum method, but the command is:
Yum install fonts-chinese fonts-ISO8859-2-75dpi
The first package in this method seems to be small.
Third: rpm mode. There are various language packs on the installation disk. you only need to find them and install them. In Chinese
Fonts-chinese-3.02-9.6.el5.noarch.rpm
Fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
I use a 6CD installation disk. The first package is on a 4of6 disk, and the second is on a 6of6 disk,
Go to the corresponding directory of each file and run the following command:
# Rpm-ivh fonts-chinese-3.02-9.6.el5.noarch.rpm
# Rpm-ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Install the Chinese input method as follows:
Rpm-ivh scim-1.4.4-41.el5.i386.rpm
Rpm-ivh scim-pinyin-0.5.91-16.el5.i386.rpm
Rpm-ivh scim-tables-0.5.6-7.i386.rpm
Rpm-ivh scim-tables-additional-0.5.6-7.i386.rpm
Rpm-ivh scim-tables-chinese-0.5.6-7.i386.rpm
Note: these are also on the installation disk and still need to run as root. The specific version may change.



There are still problems after the interview. The rpm installation dependency is too serious. Finally, this is done.

1. first install the Chinese package in linux
Install the simplified Chinese package
Rpm-ivh kde-i18n-Chinese-x.x.x-x.noarch.rpm (where x. x. x-x is the version number)
Or
Yum install kde-i18n-Chinese.noarch
Install traditional Chinese package
Rpm-ivh kde-i18n-Chinese-Big5-x.x.x-x.noarch.rpm (where x. x. x-x is the version number)
Or
Yum install kde-i18n-Chinese.noarch

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.