All Products
Document Center

:How to install Chinese font in ECS instances of the Liunx system

Last Updated:Jan 06, 2021

Disclaimer: This article may contain information about third-party products. Such information is for reference only. Alibaba Cloud does not make any guarantee, express or implied, with respect to the performance and reliability of third-party products, as well as potential impacts of operations on the products.


By default, ECS instances that use Liunx system do not support Chinese characters. You must install the Chinese language pack so that the system supports Chinese characters.


Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • If you modify the configurations and data of instances including but not limited to ECS and RDS instances, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted security information such as the logon account and password in the Alibaba Cloud Management console, we recommend that you modify such information in a timely manner.

This topic uses CentOS 6.8 and PuTTY as an example to describe how to display Chinese characters on an SSH client. Relevant configuration and instructions apply only to CentOS 6.8 systems. For the configuration and command lines for other versions of CentOS or other releases (such as Redhat, Debian, and Ubuntu), see the corresponding official documentation.

  1. Follow these steps to install the Chinese language pack in the ECS instance.
    1. Log on to the ECS instance and run the following command to install the Chinese language pack:
      yum -y groupinstall chinese-support
    2. Run the following command to edit the /etc/sysconfig/i18n file.
      vi /etc/sysconfig/i18n
    3. Press i to enter the edit mode. Change the contents of LANG=en_US.UTF-8 and sysfont=latarcyryeb-sun16ner as follows:
      LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN SUPPORTED=zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en
    4. Enter : WQ, save and exit, and modify the content, as shown in the following figure.
  2. Start PuTTY and follow these steps to modify the character settings:
    1. In the left-side toolbar, choose Window > Appearance, and in the Fontsettings section, click Change.
    2. Select font or another Chinese font as the new, set the script to Chinese GB2312, and click OK.
    3. In the left-side toolbar, choose Window > Translation, and set Remote character set to UTF-8.
      Note: For more information about other SSH client configurations, see their official documentation.
  3. Upload a test file that contains a Chinese name to the instance, and remotely connect to the instance to check whether the file name can be displayed properly.

Application scope

  • Elastic Compute Service