免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 947 | 回复: 0
打印 上一主题 下一主题

Ubuntu 中文 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-31 18:27 |只看该作者 |倒序浏览

                                1.firefox中文化
   sudo apt-get install firefox mozilla-firefox-locale-zh-cn
2.man page中文化
                                                1、 安装源里的中文man
                                                    $sudo apt-get install manpages-zh
                                                2、把cman的格式从gb2312转换为utf8
                                                    1)、$ vi change.sh
                                                    2)、复制下面代码到change.sh
                                                           代码:
                                                             #!/bin/bash
                                                
                                                            cd /usr/share/man/zh_CN/
                                                            for k in *
                                                            do
                                                            cd $k
                                                            for i in *.gz
                                                            do
                                                            j=`echo ${i%\.gz}`
                                                           gunzip $i
                                                           iconv -f gb18030 -t utf8 $j >tmp
                                                           mv tmp $j
                                                           gzip $j
                                                           done
                                                           cd ..
                                                           done
                                                    3)、$ chmod 777 change.sh
                                                    4)、$ ./change.sh
                                                3、更改manpath.config文件
    如果安装了sed运行下面两个命令
    $ sudo sed 's/\(.*\/usr\/share\/man\)\(.*\)/\1\/zh_CN\2\n\1\2/g' /etc/manpath.config > manpath.config.tmp
    $ sudo mv -f manpath.config.tmp /etc/manpath.config
    如果没有安装sed需要手工修改文件
                                                    $ sudo vi /etc/manpath.config
                                                    在里面所有的有 /usr/share/man的前面加上/usr/share/man/zh_CN
                                                    保存退出。
                                                现在试试$ man find
修改方法参见:http://unix-cd.com/vc/www/22/2007-06/1455.html
manpath.config配置文件参见:http://forum.ubuntu.org.cn/about11115.html&sid=ebe3d0f4a491410780b72d24ef4c59f8
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32692/showart_351107.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP