RedHatEnterpriseLinux for Chinese and font Optimization

Source: Internet
Author: User
Today, when I helped the company configure Linux servers, my colleagues asked me that the RHEL of the original Enlish version ran one of their Web projects using Tomcat, and the Chinese currency symbols all showed the dollar symbols, so I plan to install Chinese characters this time. When I select a language, I am prompted: select the language to install the display; I personally think this sentence means the language displayed during the installation process, and the English is selected, but the "Asia/Chongqing" is selected when the time zone is selected ", as a result, the installation of Linux is still in English. As soon as my colleague releases the project

Today, when I helped the company configure Linux servers, my colleagues asked me that the RHEL of the original Enlish version ran one of their Web projects using Tomcat, and the Chinese currency symbols all showed the dollar symbols, so I plan to install Chinese characters this time. When I select a language, I am prompted: select the language to install the display; I personally think this sentence means the language displayed during the installation process, and the English is selected, but the "Asia/Chongqing" is selected when the time zone is selected ", as a result, after the installation is complete, Linux is still in English. When my colleagues release the project, the problem persists. Therefore, baidu modifies the operating system language as follows, fortunately, Linux does not need to change a language to the same language as windows to install a Language Pack, but only needs to modify a file, so the content of the/etc/sysconf/i18n file is modified as follows, after the restart, the colleague is releasing the project and the solution is successful!

How to change Chinese:
No matter what the original file content is, you only need to change it to the following to display Chinese characters.
LANG = "zh_CN.UTF-8"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh"
SYSFONT = "latarcyrheb-sun16"

Font optimization (baidu has never been used ):
Solution: Modify environment variables related to character sets. Put the content in the/etc/sysconf/i18n file from the original:
Replace:
LANG = "zh_CN"
SUPPORTED = "Maid: zh_CN.UTF-8: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"

In fact, three system environment variables are working. You can also use the i18n file of RHEL3:
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh"
SYSFONT = "lat0-sun16"
SYSFONTTACH = "8859-15"

LANG = "zh_CN.GB2312"
SUPPORTED = "zh_CN.GB2312: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"

LANG = "zh_CN.GB18030"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"

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.