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

Source: Internet
Author: User

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

/********************************************************************* * 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.



In linux, how does one switch from an English input environment to a Chinese Input environment?

First, you have installed the Chinese input method. If you have installed the method, you can run a command in the terminal. This command depends on what input method you have installed.
The installation package is usually described.
If you are the default one, ctrl + space is the same as windows.

How to change the linux Chinese environment to English

1. Bash environment edit the/etc/bashrc environment file and add a line of export LC_ALL = en_US.UTF-82. Csh environment edit/etc/csh. cshrc environment file, add a line setenv LC_ALL = en_US.UTF-8 Note: centos is more troublesome, don't eat the above set. When logging on to the graphic interface, a window will pop up, whether to change all the Chinese directory name owners (such as desktop, Chinese as "desktop") to English, select Yes, then OK

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.