Change the default supported language for display in Linux

Source: Internet
Author: User
Article Title: Change the default Supported languages displayed in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Method 1: Use VI

First back up your/etc/sysconfig/i18n file:

Command:

Cp/etc/sysconfig/i18n/etc/sysconfig/i18n. bak

Run the "ls/etc/sysconfig/" command to check whether there is an i18n and an i18n. bak file at the same time in the Start path (confirm that you have backed up)

Then, use the vi editor to edit i18n. Initially, the file is shown as follows, but there may be only one or two of them;

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

Then you need to find the LANG and SUPPORTED lines and replace the following content.

        
         LANG="en_US.UTF-8"SUPPORTED="eu_ES.UTF-8:eu_ES:eu:zh_HK.UTF-8:zh_HK:zh:zh_CN.UTF-8:zh_CN:zh:zh_SG.UTF-8:zh_SG:zh:zh_TW.UTF-8:zh_TW:zh:en_AU.UTF-8:en_AU:en:en_HK.UTF-8:en_HK:en:en_US.UTF-8:en_US:en"
        

The above is the default English system, which supports Chinese Simplified, traditional, and English settings

Below are Chinese settings

        
         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"
        

Method 2: Use SSH

1. Use SSH to connect to the server, then drag the i18n file under/etc/sysconfig/to a windows computer (remember to copy a backup) and then use the UltraEdit-32 tool to open the change file

2. What you need to do is find the LANG and SUPPORTED lines and replace the following content.

        
         LANG="en_US.UTF-8"SUPPORTED="eu_ES.UTF-8:eu_ES:eu:zh_HK.UTF-8:zh_HK:zh:zh_CN.UTF-8:zh_CN:zh:zh_SG.UTF-8:zh_SG:zh:zh_TW.UTF-8:zh_TW:zh:en_AU.UTF-8:en_AU:en:en_HK.UTF-8:en_HK:en:en_US.UTF-8:en_US:en"
        

3. After saving the file, it will be overwritten to the linux path, so that the original file will be overwritten.

Method 3:

After modifying the file, I will send it to you. You will drag it to the/etc/sysconfig/path of linux to overwrite the original file.

The Chinese text box is displayed on the graphic interface: the Chinese text is not displayed when the system is installed.

Solution:

Put the third Disk of the installation disk into the optical drive, find a ttfont_zh_CN file, and reinstall it to solve this problem.

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.