ITPub博客

首页 > Linux操作系统 > Linux操作系统 > XDMCP connection fails

XDMCP connection fails

原创 Linux操作系统 作者:fjzcau 时间:2015-05-06 13:09:07 0 删除 编辑
XDMCP connection fails 

1)修改文件 /etc/inittab file 设置 runlevel 5
id:5:initdefault:

2)GDM configuration (When the Linux is using gdm)
/etc/X11/gdm/gdm.conf
(rhel 6 修改此文件 /etc/gdm/custom.conf)
设置:
[xdmcp]
Enable=1

3)KDM configuration (When the Linux is using kdm)
Open /etc/X11/xdm/xdm-config file. 
Comment out "requestPort" option as following:
DisplayManager.requestPort: 0
==>
!DisplayManager.requestPort: 0 


Open /etc/X11/xdm/Xaccess file. 
Remove the initial "#" character for the following line:
#* #any host can get a login window
==>
* #any host can get a login window 

4)关闭防火墙 
Firewall configuration (If the firewall has been configured)
Open /etc/sysconfig/ipchains file. 
Add the following lines at the top of the file:
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 telnet -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 ssh -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 login -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 exec -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 shell -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 7100 -j ACCEPT 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22661144/viewspace-1625583/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-04-03

  • 博文量
    208
  • 访问量
    547159