1、基本安装过程不再赘述
参考文档:http://www.debian.org/
注:由于是网络服务器,不需要安装图形界面。只需安装ssh服务(ssh server)和基本的系统服务(standard system utilities)
2、配置debian源
配置163的镜像源
a、备份原有源
root@dnnp:~# cp /etc/apt/sources.list /etc/apt/sources.list.bak
b、下载并更新源
root@dnnp:~# wget http://mirrors.163.com/.help/sources.list.squeeze
--2012-08-10 09:08:32-- http://mirrors.163.com/.help/sources.list.squeeze
Resolving mirrors.163.com... 123.58.173.89, 123.58.173.106
Connecting to mirrors.163.com|123.58.173.89|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 684 [application/octet-stream]
Saving to: `sources.list.squeeze'
100%[======================================>] 684 --.-K/s in 0.006s
2012-08-10 09:08:32 (119 KB/s) - `sources.list.squeeze' saved [684/684]
root@dnnp:~# cp sources.list.squeeze /etc/apt/sources.list
root@dnnp:~#
c、修改源
3、更新并升级系统
root@dnnp:~# aptitude update
root@dnnp:~# aptitude upgrade
root@dnnp:~# aptitude dist-upgrade
4、安装vim
5、安装gcc开发&编译环境