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的简便写法。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值