日期:2014-05-16  浏览次数:20477 次

linux 5 配置xmanager

0 关闭防火墙或者打开177端口

iptables -A INPUT -p udp --dport 177 -j ACCEPT 

1、vi /etc/inittab

id:5:initdefault:  //设置系统运行级为5,如果本来就是5就无需修改

id:5:respawn:/usr/sbin/gdm    //添加到最后一行

然后重启X11

init 3

init 5

2.做如下配置---编辑
root] chmod 660 /usr/share/gdm/defaults.conf
vi /usr/share/gdm/defaults.conf
[xdmcp]
Enable=true

DisplaysPerHost=10

Port=177

[security]
AllowRoot=true

AllowRemoteroot=true

AllowRemoteAutoLogin=false
3.做如下配置---编辑 /etc/gdm/custom.conf

[xdmcp]

Enable=1

4 启动GDM
/usr/sbin/gdm-restart
/usr/sbin/gdm-stop
lsof -i:177