centos-Language Settings

Source: Internet
Author: User

View all locale languages

# locale-a

# Locale-a|grep EN

View the language used by the current operating system

# echo $LANG

Set system locale language to Chinese environment (permanent)

# vi/etc/sysconfig/i18n

Lang= "ZH_CN. UTF-8 "

Set system locale language to English environment (permanent)

Lang= "en_US. UTF-8 "

Temporarily change the System locale language (exit this login is immediately invalid)

# Export LANG=ZH_CN. UTF-8

Install Chinese fonts

# yum Install Fonts-chinese.noarch

Specify the Chinese font path

# Vi/etc/x11/fs/config

      1. Catalogue =/usr/x11r6/lib/x11/fonts/misc:unscaled,
      2. /usr/x11r6/lib/x11/fonts/75dpi:unscaled,
      3. /usr/x11r6/lib/x11/fonts/100dpi:unscaled,
      4. /usr/x11r6/lib/x11/fonts/type1,
      5. /usr/share/fonts/default/type1,
      6. ,
      7. /usr/share/fonts/zh_cn/truetype,
      8. /usr/share/fonts/zh_tw/truetype


        Method 2

        Modifying the default locale variable values for the CentOS runtime environment

        [Email protected] ~]# Vi/etc/profile

        Locate the export statement and precede the statement by adding

        Lang= "en_US. Utf-8″

        and add lang behind the export.

        Export PATH USER LOGNAME MAIL HOSTNAME histsize INPUTRC LANG

        Save the configuration and modify the CentOS language to complete.

centos-Language Settings

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.