Console
Get the Chinese version of the console first. Although there are many choices, I still like cce, which is easy to install and use. It runs cce and has Chinese characters. Lynx started to work normally after turning around.
X
X is much easier to output in Chinese. Change export LC_ALL = POSIX to/etc/profile.
# Export LC_ALL =
# Export LC_LANG = zh_CN.GB2312
Then startx has some text.
Then change/etc/X11/XF86Config and add
Section "InputDevice"Identifier "Mouse1"Driver "mouse"Option "Protocol" "IMPS/2"Option "Device" "/dev/input/mice"Option "ZAxisMapping" "4 5"Option "Buttons" "5"EndSection |
Change the Mouse in ServerLayout
InputDevice "Mouse1" "CorePointer"
Start X again. As a result, X indicates that the mouse cannot be found. A little demon. After some crazy searches, I found that there is another module to start:
Modprobe mousedev
OK. You can add the three modprobe statements to/etc/rc. d/rc. modules.
This notebook has a built-in mouse that can be used simultaneously under windows. It would be nice to use it at the same time under X. Define another mouse (Mouse1) in the InputDevice section ),
Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device"/dev/input/mice "Option" ZAxisMapping "" 4 5 "Option" Buttons "" 5 "EndSection add InputDevice" Mouse1 "" CorePointer "InputDevice" Mouse1 "" SendCoreEvents "to the ServerLayout Section" |
Then start X. Well, this time the mouse is used.
TTF
Although Chinese characters are in array X, they are ugly. Make it TrueType. Find the ttf font file, put it in/usr/X11/lib/X11/font/ttf, and add it to the fontpath of XF86Config. Then I tried to install freetype1.3 and ttmkfdir. I wanted to play ft2. As a result, I couldn't compile the ttmkfdir. I didn't plan to spend too much time tossing it. I had to return the 1.3, but it was quite smooth. Then, go to the ttmkfdir> fonts. dir, go in and copy each line out *-iso8859-1, *-ascII-0, *-gb2312.1980-0 three types, of course, the total number of fonts in the first line naturally needs to multiply by 3. Then cp fonts. dir fonts. scale. Start X again and sacrifice xfontsel, and use kaiti_gb2312 and other fonts.
Finally, I found that freetype in XFree86 4.1.0 does not support Chinese ttf, so I had to change xtt. Fortunately, xtt went smoothly. later I found that the newly installed freetype1.3 can process Chinese characters. I need to use the newly compiled library file for calling libfreetype * under/usr/X11/lib. However, since xtt works, why bother yourself?
The next step is to replace the default GNome font with ttf, so I found that/etc/opt/gnome had something I wanted in my hard drive, put the following gtk/gtkrc. put KaiTi_GB2312 in front of all fontsets in zh_CN. Find another one under/opt/gnome/etc/gtk, and change it naturally. Let's look at it again. There are also under/opt/gnome/share, and change it again, although this actually has no impact. Startx again, good. It's all vector words.
Related Articles]
- Linux Chinese environment topics