一、修改系统时间
cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime #时区为亚洲/上海
date 命令查看vim
二、用惯了vim,在debian下你会发现vi中没法使用delete和backspace键。
原来Debian中自带的vi是vim-tiny,程序自己就不支持Backspace删除功能。centos
解决办法:从新安装其余版本的vi
apt-get update
apt-get install -y vim vim-runtime
bash
三、提示-bash: killall: command not found
debian下
apt-cache search killall
apt-get install psmisccurl
centos下
yum search killall
yum install -y psmiscurl
四、安装libc6
在debian 7 x86_64下安装软件时提示错误:
Depends: libc6 (>= 2.14) but 2.13-38+deb7u8 is to be installed
E: Unable to correct problems, you have held broken packages.spa
添加Jessie的源更新就行了
echo "deb ftp://ftp.debian.org/debian/ jessie main
deb-src ftp://ftp.debian.org/debian/ jessie main" >> /etc/apt/sources.list
apt-get update
apt-get upgradeip
五、debian 系统,发现没有libpcap-dev 。解决方法:更新源get
#vi /etc/apt/sources.list 添加下列源
deb http://ftp.debian.org/debian lenny main contrib non-free
deb-src http://ftp.debian.org/debian lenny main contrib non-free
deb http://mirrors.163.com/debian lenny main contrib non-free
deb-src http://mirrors.163.com/debian lenny main contrib non-free
而后# apt-get update
# apt-get upgradetable
六、出现错误提示:
"libcurl.so.4: cannot open shared object file: No such file or directory"ftp
解决办法
apt-get update
apt-get install -y curl
七、得到中国的全部ip
wget http://www.ipdeny.com/ipblocks/data/countries/cn.zone
$IPTABLES -A INPUT -s $ip -j DROP 须要注意的是Debian上iptables是不会保存规则的