Chinaunix首页 | 论坛 | 博客
  • 博客访问: 140451
  • 博文数量: 39
  • 博客积分: 1550
  • 博客等级: 上尉
  • 技术积分: 456
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-14 11:06
文章分类

全部博文(39)

文章存档

2014年(1)

2013年(2)

2011年(21)

2010年(15)

我的朋友

分类: LINUX

2011-03-23 10:39:12

For XDMCP connection to Red Hat 5 EL

1. Change runlevel to 5
change the file /etc/inittab and set the initial runlevel to 5 as following:
id:5:initdefault:

And add one line after the file last line.

x:5:respawn:/usr/sbin/gdm

2. Enable XDMCP
For GDM:

Open /etc/gdm/custom.conf and set the Enable entry to 1 in the [xdmcp] section as following.
[security]
DisabllowTCP=false
AllowRemoteRoot=true //允许root登录


[xdmcp]
Enable=1 //开启
Port=177 //默认UDP端口:177

3. Firewall (TCP/UDP Ports) Configuration
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
Run the setup command in the xshell of xmanager tool.

Firewall config->Enable->Select ssh and type "6003:t177/udp" behind "other ports"

4. Reboot the remote host and start Xmanager
# init 3; init 5    或gdm-restart   //重启桌面生效,不用重启计算机

说明:windows上xmanager监听6003端口

阅读(1312) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~