Chinaunix首页 | 论坛 | 博客
  • 博客访问: 308553
  • 博文数量: 321
  • 博客积分: 10055
  • 博客等级: 上将
  • 技术积分: 3780
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-29 13:03
文章分类

全部博文(321)

文章存档

2012年(1)

2010年(7)

2009年(1)

2008年(312)

我的朋友

分类: LINUX

2008-09-14 10:22:34

SERVER SETUP(Linux):
第一步,我们在Linux系统下,修改/etc/X11/xdm/Xaccess文件,找到下面的语句:
# * #any host can get a login window
去掉最前面的#号,成为:
#vi /etc/X11/xdm/Xaccess
* #any host can get a login window
第二步,我们修改/etc/X11/gdm/gdm.conf文件
# vi /etc/X11/gdm/gdm.conf
[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
#Enable=false
Enable=true
将其中的Enable=false 改为Enable=true 或 Enable=1
同时我们要确保存在下面的语句,因为177端口是我们要配置的xdmcp服务的监听端口,我们在后面配置xmanager将看到
# The port. 177 is the standard port so better keep it that way
Port=177
第三步,我们要修改/etc/inittab文件,修改運行級別
# vi /etc/inittab
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
同時還要修改:
# Run xdm in runlevel 5
#x:5:respawn:/etc/X11/prefdm -nodaemon
x:5:respawn:/usr/bin/gdm
第四步,我们修改/etc/X11/xdm/xdm-config的最后一行
# vi /etc/X11/xdm/xdm-config
在displayManager.requestPort:0前面加上一个!号,结果如下
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
!DisplayManager.requestPort: 0
此项设置未被注释(最前面没有!字符),如果注释将XDMCP将不侦听
第五步,修改文件屬性為:
/etc/X11/xdm/Xservers的属性为444
/etc/X11/xdm/Xsetup_0的属性为755
[root@test227 etc]# chmod 444 /etc/X11/xdm/Xservers
[root@test227 etc]# chmod 755 /etc/X11/xdm/Xsetup_0
第六步,配置防火墻
# iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
第七步,reboot主機

Client SETUP(Windows):
客戶端軟件下載(英文正式版):
安装后,在安装目录下,我们点击xconfig,选择xdm,选择”XDM Indirect”,在 host,后面填上我们已经配置好的Linux系统的ip,注意下面的XDMCP Port:177, 这就是我们在配置Linux服务器时必须保证 port=177的原因
然后我们双击xmanager安装目录里的xmanager,选择图中的linux机器,然后点击“连接”即可以连接到我们的redhat登陆桌面,输入用户名,确定后系统会提示让你输入密码,验证成功后就可以使用我们的redhat桌面了。
阅读(242) | 评论(0) | 转发(0) |
0

上一篇:umask如何設置

下一篇:SAMBA for linux4.0 U5

给主人留下些什么吧!~~