redhat中文字体的安装

之前说过公司需要安装文件服务器,我选择了hfs, 但在安装之后又出现了新的问题,领导说想要看中文的字体,不想要看英文(鄙视他不学好英文,呵呵),领导要求就是我的工作,先找到hfs的***,然后在安装,发现选项都是乱码,寻找问题,发现我的系统是rhas 4,字体是英文的,所以需要安装中文字体,具体的安装过程如下:

1、先进入系统的安装包里(如果没有挂载,先挂载)


  1. [[email protected] ~]# mount /dev/cdrom /mnt  
  2. mount: block device /dev/cdrom is write-protected, mounting read-only  
  3. You have new mail in /var/spool/mail/root  
  4. [[email protected] ~]# cd /mnt/CentOS/ 

安装相关的中文字体包


  1. [[email protected] CentOS]# rpm -ivh fontconfig-2.4.1-7.el5.i386.rpm   
  2. Preparing...                ########################################### [100%]  
  3.     package fontconfig-2.4.1-7.el5.i386 is already installed  
  4. [[email protected] CentOS]# rpm -ivh fontconfig-devel-2.4.1-7.el5.i386.rpm   
  5. Preparing...                ########################################### [100%]  
  6.     package fontconfig-devel-2.4.1-7.el5.i386 is already installed  
  7. [[email protected] CentOS]# rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm   
  8. Preparing...                ########################################### [100%]  
  9.    1:fonts-chinese          ########################################### [100%] 

然后重启xfs


  1. [[email protected] ~]# service xfs restart Restarting xfs: Shutting down xfs: [ OK ] Starting xfs:

之后进入图形界面,选择System-Administration-Language

redhat中文字体的安装

然后选择中文(简体)

redhat中文字体的安装

然后重新启动或者重新登录就生效了,如果想简单点就重新登录,选择System-Log Out root,之后选择Log Out

redhat中文字体的安装

之后你就发现字体修改为中文了

redhat中文字体的安装

这样redhat的中文字体的安装与配置就完成了,此方法对于其他的linux发行版本同样生效。

 



 本文转自 dl528888 51CTO博客,原文链接:http://blog.51cto.com/dl528888/769179,如需转载请自行联系原作者