debian安装备忘

感谢同事Alex的指点,随写一下备忘。
1、/etc/apt/sources.list
------------------增加---------------------
deb http://debian.cn99.com/debian/ testing main contrib non-free
deb-src http://debian.cn99.com/debian/ testing main contrib non-free

deb http://debian.cn99.com/debian/ sid main contrib non-free
deb-src http://debian.cn99.com/debian/ sid main contrib non-free
--------------------------------------------
apt-get update、apt-get dist-upgrade、apt-get install xxxx都需要这个。

2、dpkp-reconfigure locales设定locale
要不然中文不能显示,哭死~~

3、/etc/X11/Xsession.d/25xchinput-start
------------------修改---------------------
export G_FILENAME_ENCODING=@GB2312
export LANG=zh_CN.GB2312
export XMODIFIERS=@im=fcitx
fcitx
--------------------------------------------
不但要显示中文,还要输入中文。
PS:别忘了装fcitx

4、/etc/environment
------------------修改---------------------
LANG=zh_CN.GB2312
export G_FILENAME_ENCODING=@GB2312
export LC_ALL=zh_CN.GBK
export G_BROKEN_FILENAMES=1
--------------------------------------------
大环境也要是中文。

5、~/.bashrc
------------------增加---------------------
export G_BROKEN_FILENAMES=1
--------------------------------------------
不知道为什么,但是要跟大环境一致嘛。

6、/etc/vim/vimrc
------------------增加---------------------
syntax on
--------------------------------------------
在shell下面花花绿绿的玩意。

7、/etc/ssh/sshd_config
------------------修改---------------------
PasswordAuthentication yes
--------------------------------------------
SSH就可以登陆了。

8、~/.bashrc
------------------修改---------------------
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias la='ls $LS_OPTIONS -a'
--------------------------------------------
ls也是彩色的了,而且有更多的list的简便写法。

posted on 2005-05-20 17:45  mikespook  阅读(881)  评论(0)    收藏  举报

导航