slk10.2汉化小记
时间:2006-02-22
来源:互联网
安装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/sof.../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 "Protocol" "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<[email protected]> 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,就好了。
第一步: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/sof.../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 "Protocol" "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<[email protected]> 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,就好了。
作者: pipehappy 发布时间: 2006-02-22
不错,兄弟继续努力
作者: AMD-K6 发布时间: 2006-02-23
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28