Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to Sinicize Linux

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to Sinicize Linux". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to Sinicize Linux".

How to Sinicize Linux

1. Chinese analog terminal chdrv

First of all, you have to let Linux display Chinese! Chdrv is a Chinese analog terminal under the command line, that is, as long as you install it, you can display and enter Chinese characters on the command line of Linux. After chdrv starts, set up a virtual terminal in tty7 (with Ctrl+Alt+F7), and users can use the Chinese support provided by it after logging in on tty7. Tty1 to tty6 will not be affected by it.

If you can find an installation package in RPM format, you can easily install it using the RPM installer. Otherwise you can go to ftp://ftp.ihep.ac.cn/pub/chinese/system to get chdrv's compiled chdrvbin-0.23.gb.tar.gz and font file chdrvfont.tar.gz, respectively. Then log in with root and execute the following command in turn:

Tar xvzf chdrvbin-0.23.gb.tar.gz\\ extract the compiled chdrv to the chdrv-0.23.gb directory mv chdrvfont.tar.gz chdrv-0.23.gb/\\ move the font file to the chdrv-0.23.gb directory cd chdrv-0.23.gb\\ enter this directory. / installbin\\ run the installation file

two。 Chinese input server xcin

If you often use Linux in X-Window, be sure to try XCIN to solve the Chinese input problem. XCIN, which stands for Xwindow Chinese INput, is a Chinese input system running in X-Window mode. After installing it, all terminals of X-Window will provide Chinese services.

You can get the GB code version of the XCIN package from ftp://ftp.ihep.ac.cn/pub/chinese/system/xcingb-2.2.tar.gz. Then log in with root and execute the following command in turn:

Tar xzvf xcingb-2.2.tar.gz\\ extract cd xcingb-2.2\\ enter the directory. / configure\\ modify the installation option make\\ compile make install\\ install

Similarly, if you can find the RPM installation version of the software, you can install it with RPM.

So far, we have introduced how to use Chinese on the command line and in X-Window. However, in the text editing software, it can only display Chinese characters, but cannot input Chinese characters. In order to solve this problem, we must modify two things ourselves:

1) set for different shell

To use Bash Shell: add the following to / etc/profile:

Stty cs8-istrip stty pass8 export LANG=C export LC_CTYPE=iso-8859-1

If you use Tcsh Shell: add the following settings in / etc/csh.login or / etc/csh.cshrc:

Stty cs8-istrip stty pass8 setenv LANG C setenv LC_CTYPE iso-8859-1

2) add the following to the .inputrc file in your home directory:

Set convert-meta off set output-meta on thank you for your reading, the above is the content of "how to Sinicize Linux", after the study of this article, I believe you have a deeper understanding of how to Sinicize Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report