Change the system code of ubuntu 8.04 (server x86_64) from English to Chinese, that is, change from en_US.UTF-8 to zh_cn.gbk

Source: Internet
Author: User
1. Run the locale command to view the existing system code. The running result is as follows:
Lang = en_US.UTF-8
Lc_ctype = "en_US.UTF-8"
Lc_numeric = "en_US.UTF-8"
Lc_time = "en_US.UTF-8"
Lc_collate = "en_US.UTF-8"
Lc_monetary = "en_US.UTF-8"
Lc_messages = "en_US.UTF-8"
Lc_paper = "en_US.UTF-8"
Lc_name = "en_US.UTF-8"
Lc_address = "en_US.UTF-8"
Lc_telephone = "en_US.UTF-8"
Lc_measurement = "en_US.UTF-8"
Lc_identification = "en_US.UTF-8"
Lc_all =
We can see that the existing Code of the system is en_US.UTF-8.

2. Run sudo locale-gen zh_cn.gbk to generate zh_cn.gbk support.
3. Modify the/etc/default/locale file and change the zh_CN.UTF-8 to zh_cn.gbk. Restart the file.
4. Run the locale command again. The result is as follows:
Lang = zh_cn.gbk
Language = zh_cn.gbk: zh_cn
Lc_ctype = "zh_cn.gbk"
Lc_numeric = "zh_cn.gbk"
Lc_time = "zh_cn.gbk"
Lc_collate = "zh_cn.gbk"
Lc_monetary = "zh_cn.gbk"
Lc_messages = "zh_cn.gbk"
Lc_paper = "zh_cn.gbk"
Lc_name = "zh_cn.gbk"
Lc_address = "zh_cn.gbk"
Lc_telephone = "zh_cn.gbk"
Lc_measurement = "zh_cn.gbk"
Lc_identification = "zh_cn.gbk"
Lc_all =
Modified successfully.

 

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.