分类: LINUX
2009-07-01 10:36:28
Centos英文系统转换成中文系统
1. 安装中文字体
# yum install fonts-chinese.noarch
2. 指定中文字体路径
# vim /etc/X11/fs/config
catalogue = /usr/share/X11/fonts/misc:unscaled,
/usr/share/X11/fonts/75dpi:unscaled,
/usr/share/X11/fonts/100dpi:unscaled,
/usr/share/X11/fonts/Type1,
/usr/share/X11/fonts/TTF,
/usr/share/fonts/default/Type1,
,
/usr/share/fonts/chinese/misc:unscaled,
/usr/share/fonts/chinese/misc,
/usr/share/fonts/chinese/TrueType
3. 从一个字体文件目录中创建 fonts.dir
# mkfontscale /usr/share/fonts/chinese/misc/
# mkfontdir /usr/share/fonts/chinese/misc/
# mkfontscale /usr/share/fonts/chinese/ TrueType/
# mkfontdir /usr/share/fonts/chinese/TrueType/
4. 查看locale
# locale -a |grep zh
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
zh_HK
zh_HK.big5hkscs
zh_HK.utf8
zh_SG
zh_SG.gb2312
zh_SG.gbk
zh_SG.utf8
zh_TW
zh_TW.big5
zh_TW.euctw
zh_TW.utf8
5. 设置loacle为中文环境
# vim /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
6. 重启X window
# gdm-restart
7. 设置此服务器为X字体服务器
# vim /etc/X11/fs/config
具体请参考相关文档