下载的是debian-500-i386-netinst.iso,安装好后,默认可以root登录,尝试过用普通用户登录,但输入sudo时说没有这个命令,先用root登录吧
IP是DHCP得到的,不方便,想改为静态的
改IP
# vi /etc/network/interfaces
将iface eth0 inet dhcp
修改为:
iface eth0 inet static
address 192.168.0.13
netmask 255.255.255.0
gateway 192.168.0.159
auto eth0
保存退出
重启网络
# /etc/init.d/networking restart