xmanager 远程桌面管理 linux

以RHEL 4为例:
使用 vi 编辑器编辑以下配置文件:
以下配置都用root用户

1、修改 /etc/X11/xdm/Xaccess 文件,修改内容
#    *        #any host can get a login window
去掉 # 号,变为
*        #any host can get a login window
保存,退出

2、修改 /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=false
改为 Enable=true
 
在同一配置文件中找到语句

# The port.  177 is the standard port so better keep it that way
#Port=177
去掉端口前面的 # 号,改为
Port=177
(177端口是要配置的 xdmcp 服务监听端口)
保存,退出。

3、修改 /etc/inittab文件,修改内容
id:3:initdefault:
改为
id:5:initdefault:

同时修改下列语句
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
为:
# Run xdm in runlevel 5
x:5:respawn:/usr/bin/gdm
保存,退出

4、修改 /etc/X11/xdm/xdm-config 文件:
    DisplayManager.requestPort:     0
为:
    !DisplayManager.requestPort:     0
保存,退出

5、修改配置文件 /etc/X11/xdm/Xservers 权限为 444
      修改配置文件 /etc/X11/xdm/Xserup_0 权限为 755
    chmod 444 /etc/X11/xdm/Xservers
    chmod 755 /etc/X11/xdm/Xsetup_0 
    查看修改后的配置文件权限:ls -l
-r--r--r--  1 root root   487 2005-05-14  Xservers
-rwxr-xr-x  1 root root   935 2004-10-21  Xsetup_0

6、配置linux防火墙端口
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
完成
(有时候会出现防火墙端口没有开启,在终端运行 setup 配置防火墙端口:选择防火墙,在其他端口填写 177:udp ,保存退出)
7、重新启动
init 6

(over 收工)



posted on 2007-11-08 22:08 prince 阅读(630) 评论(1)  编辑  收藏 所属分类: 硬件网络

评论

# re: xmanager 远程桌面管理 linux[未登录] 2009-02-10 13:37 ^_^

试着看了一下,但是看不懂,呵呵。  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
<2009年2月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

导航

统计

常用链接

留言簿(4)

随笔分类(72)

相册

blog友人

搜索

最新评论

阅读排行榜