2 让Debian以root登录
Debian默认不允许root登录,所以修改之。
修改gdm3的登录pam文件
#vi
/etc/pam.d/gdm3
将auth required
pam_succeed_if.so user != root quiet_success注释掉
//本行前加#
重启即可
让Debian以root自动登录。
首先修改gdm3的设定文件
#vi
/etc/gdm3/deamon.conf
AutomaticLogin
= false //改为true
AutomaticLogin
= root //以root自动登录
如果想等几秒再登录,那么用以下的
TimedLoginEnable
= true
TimedLogin =
root
TimedLoginDelay
= 5 //延迟5秒登录,可修改
最后gdm3的自动登录pam文件
#vi
/etc/pam.d/gdm3-autologin
将auth required
pam_succeed_if.so user != root quiet_success注释掉。
//在本行前加#,取消 Debian不让root登录的限制。
重启即可。
3修改Debian的网络配置
修改 /etc/network/interfaces
gedit
/etc/network/interfaces
在
auto lo
iface lo inet loopback
这两行后加入
auto eth0
iface eth0 inet dhcp
//意思是让eth0口自动获取ip
现在输入ipconfig
会发现eth0没有显示ipv4 的IP ,系统默认是使用ipv6,所以我让ipv4优先
让ipv4优先于ipv6
一些系统中是ipv4和ipv6并存,而且ipv6优先于ipv4。但机房可能并暂时没有实际分配ipv6,所以我们也可以不要关闭ipv6,记ipv4优先于ipv6即可。输入如下命令:
echo "precedence ::ffff:0:0/96 100">>/etc/gai.conf
当然也可以直接修改
/etc/gai.conf
找到
#precedence ::ffff:0:0/96 100
把前面的"#"去掉即可。
更改网卡MAC地址
1. vim
/etc/network/interfaces(选择你自己喜欢的编辑软件)
2.找到下面这句,一般来说默认第一块网卡叫做eth0,这个一句你实际情况改变而改变
auto eth0
iface eth0 inet dhcp
3.加入一行你要更新的MAC地址
auto eth0
iface eth0 inet dhcp
hwaddress ether 01:02:03:04:05:06
4.重启网络服务就好了
/etc/init.d/networking restart
4 更新软件源
# 香港主站
deb
http://ftp.hk.debian.org/debian squeeze main contrib
non-free
deb-src
http://ftp.hk.debian.org/debian squeeze main contrib
non-free
# 网易镜像
deb
http://mirrors.163.com/debian squeeze main contrib
non-free
deb-src
http://mirrors.163.com/debian squeeze main contrib
non-free
# 台湾主站
deb
http://ftp.tw.debian.org/debian squeeze main contrib
non-free
deb-src
http://ftp.tw.debian.org/debian squeeze main contrib
non-free
# 搜狐镜像
deb
http://mirrors.sohu.com/debian squeeze main contrib
non-free
deb-src
http://mirrors.sohu.com/debian squeeze main contrib non-free
保存后,apt-get update即可