sources.list (/etc/apt/sources.list)
deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 CD Binary-1 20090214-16:29]/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
#以下是后来添加的
deb ftp://ftp.debian.org/debian/ lenny main contrib non-free
deb-src ftp://ftp.debian.org/debian/ lenny main contrib non-free
修改后执行:
#apt-get update
#apt-get upgrade
IP Address (/etc/network/interfaces)
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.18.4
netmask 255.255.255.0
gateway 192.168.18.1
DNS (/etc/resolve.conf)
domain localdomain
search localdomain
nameserver 192.168.18.1
修改好后可能需要执行:
#/etc/init.d/networking restart
甚至是重启。
posted on 2009-06-10 16:03
聂文龙 阅读(3184)
评论(2) 编辑 收藏 引用