作者: reistlin
来源: http://www.reistlin.com/blog/5
更新时间: 2010.12
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

debian.gif

Debian 5.04 安装常用软件包:

# 编译工具
apt-get install gcc make
 
# 系统工具
apt-get install vim aptitude locales lrzsz sudo rcconf modconf psmisc sysstat locate tofrodos patch convmv tree mutt
 
# 远程管理
apt-get install openssh-server openssh-client openssl
 
# 压缩/解压缩工具
apt-get install bzip2 rar unrar zip unzip 
 
# 网络工具
apt-get install curl dnsutils tcpdump vnstat iperf iftop dnstop snmp ntpdate strace mtr-tiny ethtool whois iptraf

附注: 持续更新中...

Debian 5.04 系统初始化配置:

设置系统时区和时间:

# 北京时间
cp -a /usr/share/zoneinfo/Asia/Taipei /etc/localtime
 
# 小时:分钟
date -s HH:MM

显示硬件时间(BIOS/CMOS).将系统时间写入硬件时间:

hwclock --show
显示硬件时间
 
hwclock --systohc
将系统时间写入硬件
 
hwclock --hctosys
将硬件时间写入系统时间

重新设置系统时区:

dpkg-reconfigure tzdata

关闭系统UTC同步:

vim /etc/default/rcS
 
# off UTC syn
UTC=no

关闭Linux System Beep声音:

vim /etc/profile
 
# off system beep
setterm -blength 0

vimrc 配置文件:

vim /etc/vim/vimrc
 
# 语法高亮
syntax on
 
# 搜索关键字高亮
set hlsearch
 
# 显示行号
set number
 
# UTF-8 + GBK 编码支持
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,cp936

.bashrc 配置文件:

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls=''ls --color=auto''
    alias dir=''dir --color=auto''
    alias vdir=''vdir --color=auto''
 
    alias grep=''grep --color=auto''
    alias fgrep=''fgrep --color=auto''
    alias egrep=''egrep --color=auto''
fi
 
# some more ls aliases
alias ll=''ls -l''
alias la=''ls -A''
alias l=''ls -CF''
 
# history time
# 增加命令行历史记录2000行, 并且记录命令行执行时间
HISTFILESIZE=2000
HISTFILESIZE=2000
HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
export HISTTIMEFORMAT

标签: debian