Display Chinese Characters in Linux text mode

Source: Internet
Author: User
Linux text mode displays Chinese characters-general Linux technology-Linux technology and application information. The following is a detailed description. Take Fedora as an example. After Entering X Window, use Ctrl + Alt + F1 ~ F6 can enter the console (text mode) (X Window is still running, non-plain text mode), Ctrl + Alt + F7 can return to the X Window Interface.

To enter the plain text mode, enter the following command as ROOT:
# Init 3

Alternatively, after starting X Window as the ROOT user, you can use Ctrl + Alt + BackSpace to enter the plain text mode. Normal users can use this shortcut key to return to the logon interface.

No matter how you enter the text mode, Fedora cannot display Chinese characters by default. For example, when we want to enter the ROOT identity and run the su command, the prompt text "password" is displayed as several small blocks. Ls does not display files and folders with Chinese names.

At this time, we need to launch zhcon.

Zhcon is an ultra dual-byte medium/daily/Korean (CJK) virtual terminal running on the Linux console, just like UCDOS in the DOS environment) the environment provides a complete dubyte environment.

You can download it to version 0.2.6 at zhcon of SourceForge.

The source code package of version 0.2.5 and the patch file of version 0.2.6 are downloaded here.

Decompress the 0.2.5 package, add the 0.2.6 patch file, and install the trilogy.

# Tar zxvf zhcon-0.2.5.tar.gz
# Gzip-d zhcon-0.2.5-to-0.2.6.diff.gz
# Patch-p0 <zhcon-0.2.5-to-0.2.6.diff
#./Configure
# Make
# Make install

Copy the zhcon configuration file to/etc
# Cp src/zhcon. conf/etc

If Configure appears
Libggi support: no
Unicon support: no

Install libggi and unicon; otherwise, Make will fail.

Users of Fedora Core 6 can download the RPM package of version 0.2.6 from Fedora Extra, or directly install the package in yum.

# Yum install zhcon

Run in text mode
# Zhcon -- utf8

The Chinese characters are displayed normally. If you do not use UTF8, some Chinese file names will be garbled (because the default zhcon encoding is gb2312), which can be found in/etc/zhcon. conf modifies the configuration, but it seems that the screen resolution and color depth settings only support FreeBSD.

Most of the shortcut keys cannot be used, probably because I am not using the ROOT account.

View help and shortcut keys:
# Man zhcon

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.