设置slackware 11 中文显示和输入
http://tech.ddvip.com 2007年02月25日 社区交流
本文详细介绍设置slackware 11 中文显示和输入
设置slackware 11 中文显示和输入
[configure your slackware 11 to surpport the display and input of Chinese characters]
这种方法并不汉化你的系统界面,只是让它支持中文的显示和输入。
[this method will not change the language of your system interface; it only enable your system to display and input Chinese characters]
1)添加中文字体显示:
[add a Chinese font file for normaly display of Chinese characters]
找一个免费中文字体tif文件来,比如 东文宋体,复制到/usr/X11/lib/fonts/TIF下面
[download a free Chinese font file, e.g. Dongwen Songti, and copy it to /usr/X11/lib/fonts/TIF]
在这个目录下执行下面三个命令:
[then excute the fellowing 3 commands:]
mkfontscale
cp fonts.scale fonts.dir
fc-cahe
注销X,再重新进入,中文就可以显示了
[logout X and enter it again, you'll find Chinese character can be normaly display now.]
2)添加中文输入
[add input program for Chinese characters]
下载fcitx并安装
[download fcitx and install it]
按照如下步骤,修改/etc/profile.d/lang.sh
[modofy /etc/profile.d/lang.sh as fellow:]
把lang=en_US注释掉,
[comment lang=en_US]
把lang=C前面的#号去掉,然后在它在下面加上这样一行:
[uncomment lang=C and add the fellowing line after the uncommented line :]
export LC_CTYPE=zh_CN.UTF-8
在/etc/profile里面加上下面三行:
[add the fellowing 3 line to /etc/profile]
export GTK_IM_MODULE=xim
export XMODIFIERS="@im=fcitx"
fcitx & <--也可以不加入这一行,在需要时在fcitx命令来加载中文输入法·[omit this line is also okay, you can load the input program by command "fcitx" when necessary]
这样启动时就会自动加载输入法。
[so far, the input program can be loaded automaticly when started ]
3)鼠标滚轮的设置
[setup the wheel for 3 button mouse]
修改xconf
[modify /etc/X11/xorg.conf]
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2" <==修改这里[modify here]
Option "Device" "/dev/mouse"
Option "Buttons" "5" <==添加这里 [add this line]
Option "ZAxisMapping" "4 5" <==添加这里 [add this line]
这样就挺好用了。
[your slakware is convinent to diskplay and input Chinese characters now]
我不确定那些对lang.sh的修改是不是必要的。
[Iom not sure whether the changes made to lang.sh is nessary or not]
来源:linuxsir.org 责编:豆豆技术应用
- Linux/Unix 新闻
- Linux/Unix 入门
- Linux/Unix 命令
- Linux/Unix 安装
- Linux 嵌入式系统
- Linux/Unix 编程
- Linux/Unix 管理
- Linux/Unix 桌面
- Linux/Unix 内核
- Linux/Unix 软件
- SCO Unix
- NetBSD
- OpenBSD
- Redhat/Fedora Linux
- 手机
- Linux/Unix find 搜索命令
- Linux/Unix vi 命令
- Linux/Unix kde 桌面环境
- Linux/Unix GNOME 桌面环境
- Linux/Unix Make 命令
- Linux/Unix crontab 命令
- Linux/Unix ext3 文件系统
- Linux/Unix 文件系统详解
- Linux/Unix ADSL 拨号设置
- Linux/Unix GRUB 配置及应用
- Linux/Unix nfs配置
- Linux/Unix 硬件信息查看及管理
- Linux/Unix 优化
- Linux/Unix 交换分区Swap管理及应用
- Linux/Unix 用户管理
- Linux/Unix Ramdisk
- Linux/Unix 密码恢复管理
- Linux/Unix 文件删除恢复
- Linux/Unix fdisk分区
- Linux/Unix lvs负载均衡管理
- Linux/Unix root用户
- Linux/Unix 集群
- Linux/Unix 日志
- 更多Linux/Unix专题……