Make RedHat 7.0's Chinese to the end Unicon 3.0 Chinese display

zhaozj2021-02-11  197

Carry the redhat 7.0 in the end (1)

-------------------------------------------------- ------------------------------

Pig pig 2000-12-21 14:23:27

Author: Bigluo (bigluo@china.com)

http://www.linuxorb.net

First, machine configuration

Before you start, I must first be self-reported: PIII 450 128M Ram 20g

HardDisk Dimond V770 Dimond S90. The entire configuration compiled in the compilation process for 24 hours, including Kernel, the whole QT KDE, Unicon Source looked at 22 hours. Therefore, if the fans' machines are still below this configuration, they should imagine the time to compile these Sources.

Second, about this article

I am a successful Chinese in my own machine, but I don't guarantee that any friends who have finished reading this article can. This article is just a reference. The packages and patches required for this article, you can go to my homepage http://www.linuxorb.net download.

Third, what is the way?

With Turbolinux, Unicon 3.0 coupled with the GBK code page provided by the kernel, we can get a kernel that supports Chinese encoding, a thorough Chinese terminal, and the support of Chinese file name under XWindows.

With GLIBC-2.2, we can get better Chinese Locale support.

With Xfree86 4.01, we can get more graphics support and support of TrueType fonts.

The QT-2.2.2 CODEC PATCH VIM PATCH enables KDE to relatively support Chinese display and Chinese input.

With KDE-2.01, we can get a desktop environment that is still beautiful than Win 98.

Use CXTERM to get Chinese XTERM.

Fourth, Redhat 7.0 Chinese Locale problem

The GLIBC-2.1.96 adopted by Redhat 7.0 is very good for Chinese support. We just need to modify / usr / lib / gconv / gconv-modules, join a line:

Alias ​​GB2312-1980 // EUC-CN //

Simplified Chinese can support the LC_all environment variable export as zh_cn, zh_cn.gb2312, and zh_cn.gbk can support Simplified Chinese. If you have made the above modification, start to the GNOME environment, see if gnome can support Chinese. The most obvious is the clock of the GNOME desktop turns to Chinese.

V. Re-compile the kernel

The kernel used by Redhat 7.0 is 2.2.16, Unicon 3.0 has a patch of Kernel 2.2.17 and kernel 2.4.0 Test10, I am using Kernel 2.2.16 kernel 2.2.17-patch. If you use Kernel 2.4 Test10 Kernel 2.4 Test10-Patch, the last effect may be better. Installation method and similar in this article.

1, download unicon-3.0release.tar.gz, and unpack.

# cp unicon-3.0release.tar.gz / TMP

# tar -zxvf unicon-3.0Release.tar.gz

2, determine that kernel-source is installed, if not, install it.

# rRPM -UVH KERNEL-SOURCE * 3, take out the corresponding kernel patches and give the kernel patch.

#CP / TMP/unicon-3.0/kernel-patch/kernel-2.2.17.patch.gz / usr / src

#CD / USR / SRC

#gunzip kernel-2.2.17.patch.gz

#patch -p0

4, compile the kernel

#CD / USR / SRC / Linux

#make mrproperty

#make menuconfig

Code Maturity Level Options

-Prompt for development and / or incomplete code / drivers

Console Driver

-Support frame buffer defices

-Unicon support

-Vesa VGA Graphics Console

File System-> Native Language Support

-Code Page 936 (GBK)

In most cases, our machines are running in a stand-alone manner, so when compiling the kernel, I suggest it is enough, such as USB, SCSI, ISDN these devices If you have no, you can not choose, NetWork Driver, in most cases, we only need to select PCI N2K or ISA N2K, and other other can not be.

#make dep

#make bzimage

#make modules

#make modules_install

If there is no problem, the / usr / src / linux / arch / i386 / boot / below will generate a BZImage, which is the new kernel.

5, boot using the new kernel

#CP / USR / SRC / Linux / Arch / i386 / Boot / Bzimage / Boot

Edit /etc/lilo.conf, join:

Image = / boot / bzimage

VGA = 771

Label = zhlinux

Note: VGA = 771, 771 represents the use of frame buffer mode: 256 colors, 800x600 resolution. See the table below for other display modes:

640x480 800x600 1024x768 1280x1024

256 769 771 773 775

32K 784 787 790 793

64K 785 788 791 794

16m 786 789 792 795

#lilo

#reboot

Then select the new kernel boot.

6. Compilation and installation Unicon 3.0

1. I don't sure Unicon 3.0 is not supported by PTH. Anyway, when you install chinput, you need it to say it again. For a few more time, some netizens came to the letter to ask about compilation PTH, I met this problem, and now I have finally have PTH's RPM4 package. Install PTH-1.37-2.i386.rpm:

# rpm -UVH PTH-1.37-2.i386.rpm

2. Since Unicon contains the core component, you have to make a backup of the kernel. Otherwise, when you compile some third-party kernel module programs, you will have problems.

# cd / usr / include

# mv Linux Linux.old

# ln -s / usr / src / linux / include / linux linux

3. We also need some original code for Unicon 3.0 because some compile marks and header files. In the Unicon / Unicon directory, you need to add statements on the header of IMMHzinput.cpp and uniKey.cpp: #include

In the Tools directory, in makefile.in, with CFLAGS = -V2.96 -I, the original CFLAGS tag is replaced.

4, then start compiling Unicon.

# cd /tmp/unicon-3.0

# ./confugre --PREFIX = / usr / local

# Make

# make install

# Make Data <- This step takes some time

# Make Data-INSTALL

5, test

# InSmod UniKey

# insmod encode -gb

# loadingunimap /usr/local/lib/unicon/direct.uni

# unicon --GB

If there is no problem, you can see the following input strips.

#export lc_all = zh_cn.gbk

#date

You should see the Chinese dates!

6. Automatically start Unicon when booting

Modify /etc/rc.d/rc.local, add the following code to the last:

#Start Unicon Support

Insmod uniKey

Insmod Encode-GB

Loadunimap /usr/local/lib/unicon/direct.uni

/ usr / local / bin / unicon - GB

In this case, you will start automatically every time you boot.

7. Use Chinese Man Pages

1. Cman is a Chinese Man Pages program launched by China Linux, now there is 0.2

The version. But he is still quite incomplete. If you want to join this plan, you can go to: http://www.cmpp.net.

2, unpack

#CP cman-0.0.2-alpha.tar.gz / TMP

#TAR -ZXVF CMAN-0.0.2-alpha.tar.gz

3, install CMAN

#CD / TMP / CMAN

#. / install.sh

4, re-landing

# Ctrl D

5, test CMAN

#cman socket

Take a look at the Chinese Socket Man Page. (to be continued)

转载请注明原文地址:https://www.9cbs.com/read-3683.html

New Post(0)