一、修改系統時間
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是不會保存規則的