Chinaunix

标题: Ubuntu 中文 [打印本页]

作者: zome    时间: 2007-07-31 18:27
标题: Ubuntu 中文

                                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




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2