UbuntuServer System Language modification tutorial

Source: Internet
Author: User
In the previous article, we used the U disk to install Ubuntu and installed the latest Ubuntu tuserver11.04. Because & ldquo; Chinese & rdquo; is selected by default during installation, the vim editor is quite unavailable! The main cause is that it cannot be edited normally when vim is used for remote ssh login. There is no way, mainly because ssh has poor language control. In addition, UbuntuServer11.04 does not support Chinese characters at the moment. However, for Ub

The latest Ubuntu Server 11.04 is installed using the USB flash drive installed in the previous article.
Because "Chinese" is selected by default during installation, the vim editor is quite unavailable!
The main cause is that the remote ssh logon fails to be edited normally when vim is used.
There is no way, mainly because ssh has poor language control.
Ubuntu Server 11.04 does not currently support Chinese characters.
However, for Ubuntu Server, the system language is better than Chinese.
To switch the system language to English, there are two ways:
1. Temporary switch (not recommended ):
Run the following command under root:

export LANG=en_USexport LC_ALL=en_US

This method only temporarily modifies the system language. After the system is restarted or logged on again, the system will be restored.

2. Permanent switch (recommended, directly on the keyboard of the device ):
Edit locale as the root user:

sudo vi /etc/default/locale

Modify locale as follows:

LANG="en_US.UTF-8″LANGUAGE="en_US:en”

But there is a problem. As mentioned above, remote logon via ssh cannot be edited normally using vim,
Therefore, you must modify locale directly on the terminal and restart it.
No problem with using ssh remote (character encoding can be set to UTF-8 In the SSH tool ).

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.