How to directly configure LinuxMint from the Chinese environment to the English environment (one time)

Source: Internet
Author: User

How to directly configure LinuxMint from the Chinese environment to the English environment (one time)

/*************************************** ******************************

 * Author  : Samson * Date    : 10/21/2014 * Test platform: *              Mint 16 *              GNU bash, version 4.2.45 * *******************************************************************/

Sometimes, the Chinese environment cannot be configured directly on the interface of the English language environment. Why? I can only say that others are customized like this, you know ;_*

For a programmer who wants to fix gnome and other programs, This is a TMD environment, because a lot of keywords need to be searched, the English environment is the environment where the problem can be quickly handled. fei is not much to say. What should I do?

That is, when the logon interface is started, you can directly use the shortcut keyboard to jump to the command line mode, ctrl + alt + F1 to switch, and then use root to log on, to modify the LANG environment variable value, you can use the locale command to view the configuration of the current language environment. If it is in a Chinese environment, the values of the following variables are generally:

Locaufo @ ufo :~ $ Locale
LANG = zh_CN.utf-8
LANGUAGE =
LC_CTYPE = "zh_CN.utf-8"
LC_NUMERIC = "zh_CN.utf-8"
LC_TIME = "zh_CN.utf-8"
LC_COLLATE = "zh_CN.utf-8"
LC_MONETARY = "zh_CN.utf-8"
LC_MESSAGES = "zh_CN.utf-8"
LC_PAPER = "zh_CN.utf-8"
LC_NAME = "zh_CN.utf-8"
LC_ADDRESS = "zh_CN.utf-8"
LC_TELEPHONE = "zh_CN.utf-8"
LC_MEASUREMENT = "zh_CN.utf-8"
LC_IDENTIFICATION = "zh_CN.utf-8"
LC_ALL =
 

Run the following command:

Export LANG = POSIX

Enter the GNOME Display Manager startup command used by LinuxMint in the command line: mdm


You can enter the English environment.

After running the system, run the following locale command: ufo @ ufo :~ $ Locale
LANG = POSIX
LANGUAGE =
LC_CTYPE = "POSIX"
LC_NUMERIC = "POSIX"
LC_TIME = "POSIX"
LC_COLLATE = "POSIX"
LC_MONETARY = "POSIX"
LC_MESSAGES = "POSIX"
LC_PAPER = "POSIX"
LC_NAME = "POSIX"
LC_ADDRESS = "POSIX"
LC_TELEPHONE = "POSIX"
LC_MEASUREMENT = "POSIX"
LC_IDENTIFICATION = "POSIX"
LC_ALL =
 

Of course, the above method only applies to one-time language environment modifications. The Chinese environment will be started after the restart.

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.