Debian5.0安装后的配置

1 source.list

#
# deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official i386 xfce+lxde-CD Binary-1 20090628-15:51]/ lenny main

deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official i386 xfce+lxde-CD Binary-1 20090628-15:51]/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

deb http://ftp.tw.debian.org/debian lenny main
deb-src http://mirrors.cn99.com/debian/ lenny main non-free contrib
deb http://mirrors.163.com/debian stable contrib main non-free
deb-src http://mirrors.163.com/debian stable contrib main non-free

2 更新
apt-get update
apt-get upgrade


3 生产中文locales
dpkg-reconfigure locales


选定所需的locales即可,所选如下:
zh_CN GB2312 - 简体中文,使用 GB2312-80
zh_CN.GBK GBK - 简体中文,使用 GBK
zh_CN.UTF-8 UTF-8 - 简体中文,使用 GB1803

4 安装中文字体
apt-get install ttf-arphic-uming xfonts-intl-chinese xfonts-wqy

5 安装中文输入法fcitx
apt-get install fcitx

6 配置fcitx
/etc/X11/Xsession.d/目录下创建一个名为25xchinput的文件,其内容如下:

export LAGN=zh_CN.utf8
export LC_CTYPE=zh_CN.utf8
export LC_ALL=
export XMODIFIERS=@im=fcitx
fcitx &

保存退出。(可以根据我们的locale设置进行相应的更改。)
重启X后就可以使用了。

posted on 2009-08-07 23:22  ddper  阅读(322)  评论(0编辑  收藏  举报

导航