Centos Startup Mode and language settings

Source: Internet
Author: User
# Vi/etc/sysconfig/i18n
Lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16"

 

 

The default language is English. If you change the first line"Lang = zh_CN.UTF-8"", Then the shell on the local machine can see the normal Chinese, but connected through SSH will find all Chinese characters become garbled; then changed"Lang = "zh_cn.gb18030"", Re-login to find everything OK.

 

 

 

 

Linux: what is the role of the/etc/sysconfig/i18n file?

 

 

 
What does each line in/etc/sysconfig/i18n under Red Hat mean?
 
Lang = "zh_cn.gb18030"
Supported = "zh_cn.gb18030: zh_cn: Zh: en_US.UTF-8: en_us: en"
Sysfont = "latarcyrheb-sun16"

 

 

++ +

 

 
/Etc/sysconfig/i18nThe region language settings of the system are stored here,I18nIs internationalizedInternationalizationThe first line of the 18-letter abbreviation between I and N indicates the language environment variable settings of your current system. Here isZh_cn.gb18030 the second line indicates that the system has preset language support. If the language is not in the project, the third line defines the console terminal font. This is the font displayed when you log on to the text.Latarcyrheb-sun16

 

 

 

 

 

 

Centos Startup Mode and language settings

1. Set the text Startup Mode
The graphic interface requires a large amount of memory and CPU resources. For servers, high efficiency is the most important. Therefore, centos is started by default and changed to the text mode. Edit/Etc/inittabFile, find the statement"ID: initdefault: ".5Change3, After the restart, centos will automatically enter the character interface.

2. Set language Parameters
The default centos language encoding is"Zh_CN.UTF-8", The" terminal "window operation in the X-window desktop environment can correctly display Chinese characters, but if it is remotely managed through SSH or telnet, all Chinese characters are garbled.

1>. To solve this problem, edit the file/Etc/sysconfig/i18nIn the following example,Lang = "zh_CN.UTF-8"" To"Lang = "zh_cn.gb18030".

2>. Log On again and check that all Chinese characters are properly displayed. Change to English:

Lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16 ""

 

 

 

 

 

# Vi/etc/sysconfig/i18n
Lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16"

 

 

The default language is English. If you change the first line"Lang = zh_CN.UTF-8"", Then the shell on the local machine can see the normal Chinese, but connected through SSH will find all Chinese characters become garbled; then changed"Lang = "zh_cn.gb18030"", Re-login to find everything OK.

 

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.