Debian Linux 4 是我们推荐的VPS操作系统,我们在VPS上按照如下方式配置Debian Linux
安装常用软件包
apt-get install rcconf openssh-server less psmisc locales vim lftp
apt-get install bc bzip2 ntpdate sudo python curl ftp unzip
配置vim
cp /usr/share/vim/vim70/vimrc_example.vim /etc/vim/vimrc.local
cat >> /etc/vim/vimrc.local < set fileformats=unix
set nobackup
set nu
set ignorecase
set tabstop=4
set shiftwidth=4
set noexpandtab
set noautoindent
set fileencodings=utf-8,euc-cn
EOF
注意:如果在ubuntu804下要把vimrc.local里面的set mouse=a注释掉,否则putty上没有办法选择
配置bash
vi /etc/bash.bashrc /root/.bashrc /etc/skel/.bashrc #去掉相应的注释
echo ". /etc/bash.bashrc" >> /root/.bashrc