Installation and configuration of zhcon and locales-Linux Enterprise Application-Linux server application information. For details, refer to the following section. 1. Because I use Debian, you only need to use apt-get for installation, which is very convenient.
The command is as follows:
Apt-get install zhcon locales
2. Configure locales and run the following command:
Dpkg-reconfigure locales
In the configuration form, we only need to select two locale:
En_US.ISO-8859-1 [*]
Zh_CN.UTF-8 [*]
En_US.ISO-8859-1 is American English, with ISO-8859-1 Western European character set, en_US is American English.
Zh_CN.UTF-8 is a simplified Chinese Environment Based on UTF-8.
3. Configure the Automatic startup of zhcon.
If you do not configure automatic startup of zhcon, enter the following command on the terminal:
Zhcon -- utf8
In this way, the Chinese terminal environment is started.
Because zhcon requires a real terminal, it cannot be in/etc/rc. d/rc. add the startup command (/usr/local/bin/zhcon) to local. If you do so, the following error message will appear:
/Dev/console si not real tty or vc please exit current tty and try again
However, we can add zhcon to the user's variable file. When the user signs in, it will be executed automatically. The method is as follows:
Vi ~ /. Bashrc
Add the following line:
[[$ (Tty) ==\/ dev \/tty [0-9] *] & zhcon
However, this is only useful to the current user, and other users need to set it separately. The method is the same as above.
If you do not want to log on to the shell, you can modify the following in the zhcon. conf file:
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