Linux系统安装中文环境,中文帮助,中文输入法的实现

     在工作中和一些同事常常抱怨自己的英文不是很好,阅读一些错误信息和配置文档往往不是随心随手,现在我就将把一些主要的英文文档设置成中文,希望在此过程中对大家有帮助。

 

1.系统是英文的,现在将英文变为中文

[root@node1 ~]# locale -a | grep -i zh_cn.utf8    --查看系统是否安装中文环境
[root@node1 ~]# yum grouplist |grep -i chinese    --查看仓库是否有中文包
[root@node1 ~]# yum groupinstall Chinese-support  --安装中文语言包

 

2.更改系统语言环境

[root@node1 ~]# echo $LANG     --查看当前的语言环境
[root@node1 ~]# /etc/init.d/httpd restart    --重启任意服务,现在是英文
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 2.2.2.27 for ServerName
[  OK  ]
[root@node1 ~]# LANG=zh_CN.utf8     --设置中文环境(临时的)
[root@node1 ~]# echo $LANG     --检查语言环境
zh_CN.utf8
[root@node1 ~]# /etc/init.d/httpd restart    --重启任意服务,变成中文了
停止 httpd:                                               [确定]
正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 2.2.2.27 for ServerName
[确定]
[root@node1 ~]# vim /etc/sysconfig/i18n     --永久生效(修改配置文件)
LANG="zh_CN.utf8"            --修改配置文件

 

3.下载中文帮助软件并安装测试

[root@node1 cheng]# wget http://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gz
--2014-01-16 16:27:39--  http://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gz
Resolving manpages-zh.googlecode.com... 173.194.72.82, 2404:6800:4008:c01::52
Connecting to manpages-zh.googlecode.com|173.194.72.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1965336 (1.9M) [application/x-gzip]
Saving to: “manpages-zh-1.5.1.tar.gz”
100%[=========================================================================>] 1,965,336    400K/s   in 4.8s
2014-01-16 16:27:44 (400 KB/s) - “manpages-zh-1.5.1.tar.gz” saved [1965336/1965336]
[root@node1 cheng]# tar xvf manpages-zh-1.5.1.tar.gz    --解开软件包
[root@node1 cheng]# cd manpages-zh-1.5.1
[root@node1 manpages-zh-1.5.1]# ./configure  --prefix=/usr/local/zhman --disable-zhtw
[root@node1 manpages-zh-1.5.1]# make && make install   --安装软件
[root@node1 manpages-zh-1.5.1]# vim ~/.bash_profile
alias cman='man -M /usr/local/zhman/share/man/zh_CN'      --添加这一行
[root@node1 manpages-zh-1.5.1]# source  ~/.bash_profile   --使配置文件生效
[root@node1 manpages-zh-1.5.1]# cman iptables   --可以看到中文帮助了

 

4.在系统中安装中文输入法

(1).用root用户登陆
(2).yum install "@Chinese Support" -y
(3).exit
(4).回到桌面,system->preferences->input method
(5).如果没有,先注销一下
(6).按照提示添加输入法
(7).最后再次注销,登录即可

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值