redhat 5的中文包安装

中文包文件名.在iso文件的/server/文件夹下
fonts-chinese-3.02-9.6.el5.noarch.rpm
fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
双击运行他们
修改 /etc/sysconfig/i18n 文件,如
LANG="en_US",xwindow会显示英文界面,
LANG="zh_CN.GB18030",xwindow会显示中文界面。
或者点击系统工具栏->系统->管理->语言,更改为chinese(PRC)

安装中文输入法 ,要找到以下文件(也在/server文件夹下):
scim-libs-1.4.4-41.el5.i386.rpm
scim-1.4.4-41.el5.i386.rpm

scim-chinese-standard-0.0.2-1.el5.i386.rpm
scim-tables-0.5.6-7.i386.rpm

scim-tables-chinese-0.5.6-7.i386.rpm
scim-pinyin-0.5.91-16.el5.i386.rpm

双击运行他们,记住按以上顺序依次运行,因为他们之间上下存在依赖关系。

中文显示的问题

将Windows/fonts/simsun.ttc(宋体/新宋体的字体文件)放到ftp上,然后用ftp命令下载下来(偶在公司用的虚拟机,米有办法,要不然用U盘就好了)
cd 到/usr/share, mkdir fontstruetype, cd fontstruetype, mkdir simsun
将simsun.ttc放到simsun下,重新登录系统。中文支持已经搞定了。


中文输入法的安装

于是下载小企鹅输入法,官网:http://www.fcitx.org/
刚开始下载了fcitx-3.6.2.tar.bz2,但貌似解压了米有成功。
于是改用rpm包fcitx-3.0.2-1.rpm.i386。
# rpm -ivh fcitx-3.0.2-1.i386.rpm
# cd /usr/bin
# ln -sf fcitx chinput

再修改.bashrc文件 vi ~/.bashrc(不需要为root用户)
找到这个地方:
if [ -f /etc/bashrc ];then
    . /etc/bashrc
在其后加入下面的几句:
export LANG=zh_CN.UTF-8
export LC_CTYPE=zh_CN.UTF-8
export LC_ALL=
export XMODIFIERS=@im=fcitx
fcitx&
------------------------------------------------------------------------------RedHat Enterprise Linux 5的中文乱码
1,cd /usr/share/fonts
2,mkdir windows
3,将windows下的simsun.ttc文件传到/usr/share/fonts/windows目录中 改名这simsun.ttf
4,在当前目录执行 mkfontscale   生成fonts.scale文件
5,再执行 mkfontdir   生成fonts.dir文件
6,chkfontpath --add /usr/share/fonts/windows
7,service xfs reload    语言选择中文,即可正确显示中文了。

输入法安装:
[root@localhost Server]#cd /mnt/cdrom/Server
[root@localhost Server]# rpm -ivh scim-libs-1.4.4-39.el5.x86_64.rpm
[root@localhost Server]# rpm -ivh scim-1.4.4-39.el5.x86_64.rpm
[root@localhost Server]# rpm -ivh scim-chinese-standard-0.0.2-1.el5.x86_64.rpm
[root@localhost Server]# rpm -ivh scim-pinyin-0.5.91-15.el5.x86_64.rpm

分享:http://blog.163.com/zhaoliping0736@126/blog/static/555076112010469569196/

原文地址:https://www.cnblogs.com/yanzhi123/p/3274441.html