RedHatLinux7.1 in the language of the total introduction (iii) _unix Linux

Source: Internet
Author: User
Tags wubi

Linux has two kinds of general-purpose input software chinput and xcin, installation is very troublesome. For the sake of simplicity, we use copycat, borrow Redflag (red flag) Linux Rfinput Input method to achieve Redhat 7.1 under the Chinese input.
User Popwander will redflag Linux under the input method to the Redhat 7.1, we can go to http://go3.163.com/~popwander/software/ rf-xim-input-2.1-2.i386.rpm download, and then perform the following instructions to install:
RPM-IVH--force rf-xim-input-2.1-2.i386.rpm
Rfinput with Chinese dot matrix font, and automatically set the environment variable, in Redhat 7.1 without any other settings, it starts with the Kde/gnome startup, you need to enter Chinese when you only need to press the ctrl+space can be brought up Chinese input method, for KDE users, You can also select the input method directly by clicking on the icon in the lower right corner of the desktop.
Rfinput including intelligent ABC, Wubi and other input methods, you can directly input the phrase, but also with Windows Input Method of association and memory functions, it is very convenient to use. If you are a Wubi user, you can also edit the rfinput in the Wubi Input Code table file, this is a text file, you can add your own phrase, each phrase for a row, format please check the file/USR/LOCAL/RFINPUT/LIB/WBX.MB.
Note: Download Redflag at Http://www.redflag-linux.com/business/downloadmain.po Linux Input Method version 2.0.1, and the latest version of the CD version is 2.2-2, neither can be directly used under Redhat 7.1, if you want to compile your own, please download the source file.
Migration of Windows fonts
XFREE86 4.0 has been able to support TrueType fonts very well. TrueType fonts can be scaled without scale, rendering the effect naturally non-dot matrix font comparable. If you want to achieve a beautiful font effect under Windows, you must install the Chinese TrueType fonts. Of course, the easiest thing to do is to borrow the Chinese TrueType fonts from Windows. For the sake of convenience, here we only take simsun one font as an example.
Note: XFree86 3.x has problems with TrueType support, so before installing fonts, you first need to make sure that you are using XFree86 4.03 and xdpyinfo to view the XFREE86 version number:
Xdpyinfo | grep release
Please ensure that the number shown is 4003.
1, the installation of fonts
I installed TrueType fonts in the/usr/share/fonts/zhfonts directory, and you can set them according to your preferences. It should be noted that many Web sites have been introduced to install TrueType fonts under/usr/share/fonts/default/truetype, which already exists under Redhat 7.1 and have TrueType fonts installed, so please choose a different directory Action steps are as follows:
Mkdir/usr/share/fonts/zhfonts
Cp/mnt/dosc/windows/simsun.ttf/usr/share/fonts/zhfontscd/usr/share/fonts/zhfonts
Ttmkfdir >fonts.dir
Ttmkfdir is not very well recognized for Windows TrueType fonts, and we need to edit fonts.dir to modify it to the following:
4
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-p-0-ascii-0
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-p-0-gbk-0
Simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
The Fonts.dir is then copied separately as Fonts.scale (set the scalable font):
Cat Fonts.dir >fonts.scale
2. Set TrueType font support
We already have the TrueType fonts that XFREE86 can use, and now we want to edit the XFree86 4.03 profile xf86config-4 and add the SimSun font path (in section "Files") as follows:
section "Files"
Fontpath "Unix/:7100"
Fontpath "/usr/share/fonts/zhfonts"
Endsection
Also add the TrueType Font support module in the modules segment Xtt (the FreeType module also supports TrueType fonts, but displays less speed than XTT and cannot be used at the same time), as follows:
section "Module"
......
Load "Xtt"
......
Endsection
3. Use TrueType fonts
With the above settings, the use of TrueType fonts is a very easy thing to do.
(1) KDE environment
"KDE control Center" → "Impressions" → "font", all the fonts are set to SimSun, size 16, the interface is more beautiful (each person may be different, please set the size).
(2) GNOME Environment
The use of TrueType Chinese fonts in gnome is a bit tricky, and we have to manually modify Gnome's resource profile.
Edit the/etc/gtk/gtkrc.zh_cn file and set Fontset as follows:
Fontset = "-misc-simsun-medium-r-normal--16-0-0-0-p-0-*-*"
Edit the/etc/gnome/gtkrc.zh_cn file at the same time and set all Fontset to:
Fontset = "-misc-simsun-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0"
Now start Kde/gnome, you can definitely see the beautiful TrueType fonts ...
4, Konqueror display of Chinese problems
Konqueror is the KDE resource Manager and browser of the two in one, but a lot of friends reflect that in Konqueror browsing Chinese web page can not be normal display, this is because Konqueror use GBK font, remember that we have such a line above in the Fonts.dir? :

simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-p-0-gbk-0
This is used to provide support for the GBK font, with this line, your konqueror should be able to display the Chinese web page normally.
Chinese language environment in character mode
Just like under Windows 9x we also have a pdos95 to support Chinese, in the character mode we also need a Chinese environment, in contrast to the built-in Chinese support in the window mode, character mode may only be through some third-party software to provide Chinese support.
The common Chinese console software is CCE, Wzole and Unicon. The first two is the Chinese platform of the plug-in operation, no need to recompile the kernel, Unicon need to patch the kernel, recompile. Recommended use of Wzole, although this is a commercial software, but for our individual users is free.
Download two software wzole-4[1].1n.linux.x86.tgz and wzole-4[1].1n to http://www.floppycenter.com/Guest.asp?shrid=280145322. Gb.tgz (the former is the Chinese support environment, the latter is input method), and then to http://wzis.xoasis.com/applic.html to apply for personal license (via e-mail sent to your mailbox), perform the following steps to install:
Tar xzpf wzole-4[1].1n.linux.x86.tgz
Tar xzpf wzole-4[1].1n. Gb.tgz
./wzole_config
Finally, the license issued to you in the/usr/lib/wzole.lic file, the implementation of GCE into the character mode of the Chinese environment.
At this point, RedHat 7.1 under the Chinese support has been completed, I hope this article can help you ...

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.