Set Linux environment variable Lang

Source: Internet
Author: User
Tags i18n ssh secure shell

Export lang= "zh_cn.gb118030"

In general, it is necessary to set the environment variables of the Linux system only in/etc/profile (global) or ~/.BASHRC (single user). But for the lang variable, sometimes even if you export in all of these initialization scripts, LANG's value remains motionless. In fact, you need to modify the contents of the/etc/sysconfig/i18n file.

vi/etc/sysconfig/i18n

Lang= "ZH_CN. UTF-8 "

Lang= "en_US"

Supported= "ZH_CN. Utf-8:zh_cn:zh:zh_tw. Utf-8:zh_tw:zh:en_us. Utf-8:en_us:en "

Sysfont= "Latarcyrheb-sun16"

SSH login to Linux, SSH terminal sometimes garbled, even if you set Lang=en_us. UTF-8, too. I've tried securecrt,openssh,ssh Secure Shell client, and that's the problem. Sometimes it's fine to change the client's settings, but sometimes you can only run one command at a time after changing the client's settings, and then it becomes garbled.

An accidental opportunity to see on the internet that someone said to change the value of the lang variable to "C" on the line. But really evil, just a lang=c, what problems are solved, do not set the client, it is inexplicable! But I still don't know what that "C" means, It is so strong (in fact, casually set a number of letters, or directly placed empty: Export lang= "", the problem can be resolved, as long as not ZH_CN. UTF-8)

Set Linux environment variable Lang

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.