|
安装slk10.2有一段时间了,因为没有找到好的方法,所以中文的一些问题没有很好的解决。现在终于搞定了,呵呵,写点,希望有用。
第一步:zzhttp://www.flyzhy.org/interest/zh.html
/etc/profile.d/lang.sh
$sudo vim /etc/profile.d/lang.sh
$cat /etc/profile.d/lang.sh
... ...
export LANG=en_US
export LC_CTYPE=zh_CN
G_BROKEN_FILENAMES=1
... ...
export LC_COLLATE=C
... ...
$wget http://www.flyzhy.org/web/backup/softL/slackfonts/fonts.tar.bz2
其实这里就是那些simsun.ttf,来源大家子集找。
$tar xvfj fonts.tar.bz2
$sudo mv fonts /usr/share/fonts
/etc/X11/xorg.conf
$sudo vim /etc/X11/xorg.conf
$cat /etc/X11/xorg.conf
... ...
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
# FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
# FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath "/usr/share/fonts/"
... ...
#让鼠标滚轮可以滑动,如果你是usb鼠标,那么在安装完的时候必须选择usb鼠标,详细看这里
Identifier "Mouse1"
Driver "mouse"
Option "rotocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
... ...
/etc/fonts/fonts.conf
$sudo vim /etc/fonts/fonts.conf
$cat /etc/fonts/fonts.conf
... ...
<!--
This expression is added by Akito Hirai<akito@kde.gr.jp> for convenience.
It can be used to make artificial bold versions in client libraries/applications.
-->
<match target="font">
<test name="weight">
<const>medium</const>
</test>
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<edit name="weight" mode="assign">
<if>
<more>
<name>spacing</name>
<const>proportional</const>
</more>
<const>demibold</const>
<const>bold</const>
</if>
</edit>
</match>
<match target="font">
<test name="pixelsize" compare="less_eq">
<double>16</double>
</test>
<test name="pixelsize" compare="more_eq">
<double>8</double>
</test>
<edit name="antialias" mode="assign">
<bool>f</bool>
</edit>
</match>
$cd /usr/share/fonts/
$sudo mkfontscale
$sudo mkfontdir
/etc/gtk/gtkrc.zh_CN
$cat /etc/gtk/gtkrc.zh_CN
style "gtk-default-zh-cn" {
fontset = "-bitstream-bitstream vera serif-medium-r-*-*-14-*-*-*-*-*-*-*,\
-misc-*-medium-r-*-*-16-*-*-*-*-*-gbk-0"
}
class "GtkWidget" style "gtk-default-zh-cn"
/etc/gtk-2.0/gtkrc
$cat /etc/gtk-2.0/gtkrc
style "user-font" {
font_name="Bitstream Vera Sans 9"
font_name="simsun 14" }
class "*" style "user-font"
$qtconfig
第二步:fcitx (zz)
./configure
make && and make install
第三步:开机起动fcitx
change run level to 4 in inittab
若是用kde,在konqueror中,go->Autostart,right click mouse button->Create New->link to application,中tab to application,在command中写上fcitx,就好了。 |
|