RedHat9.0 detailed steps for displaying English on the console

Source: Internet
Author: User
By default, the RedHat9.0 console (also called the character interface or console) displays garbled characters. For example, if you input commands such as mc or chmod, the output is always garbled because it attempts to display Chinese characters, however, zhcon is not installed, and the result is as follows. There are two ways to solve this problem. The first is to directly install zhcon, and the second is ~ /. Add exportLANG = en_US to bashrc. These two methods have disadvantages. Zhcon is a plug-in that cannot run with the system startup and displays Chinese fonts.

By default, the RedHat 9.0 console (also called the character interface and console) displays garbled characters. For example, if you input commands such as mc or chmod, the output is always garbled because it attempts to display Chinese characters, however, zhcon is not installed, and the result is as follows.

There are two ways to solve this problem. The first is to directly install zhcon, and the second is ~ /. Add the export LANG = en_US to bashrc. These two methods have disadvantages. Zhcon is a plug-in that cannot run with the system startup, and the Chinese font is too large. The result of export LANG is that it cannot be displayed in the terminal of X (it is said that this is the case. I verified it just now ~ /. Add export LANGUAGE = en to bashrc. after entering the desktop, all the interfaces will be in English! It is estimated that people who provide this method do not know yet ~ /. I18n usage ).

In/etc/sysconfig/i18n, since the CONSOLE_NOT_LOCALIZED = yes definition is available, why does the console still try to display Chinese characters? According to the experience of mandrake, the system language of the two releases is also/etc/profile. d/lang. sh, and the problem is found. The 10lang. sh of mandrake contains the following lines:

       
        if [ -n "$DISPLAY" ]; then[ "$X11_NOT_LOCALIZED" = "yes" ] && LANGUAGE=Celif [ -z "$DESKTOP" ]; then[ "$CONSOLE_NOT_LOCALIZED" = "yes" ] && LANGUAGE=Cfi[ -n "$LANGUAGE" ] && export LANGUAGE
       

I don't understand scripts and languages, but I have a basic understanding of English. I guess what this means: If X11_NOT_LOCALIZED "=" yes "is defined, the local language of display will become invalid, if CONSOLE_NOT_LOCALIZED "=" yes "is defined, then desktop (?) The local language will become invalid. That is to say, there are few rows,/etc/sysconfig/i18n or ~ /. The CONSOLE_NOT_LOCALIZED = yes definition of i18n does not work. Draw the lines according to the samples and try these lines in/etc/profile. d/lang. sh. Sure enough, the console only displays English and the X environment is Chinese.

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.