1.修改/etc/sysconfig/displaymanager
DISPLAYMANAGER_REMOTE_ACCESS="yes"
DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"
2.相应的配置文件/etc/gdm/custom.conf也会更改成如下样子
# GDM configuration storage
[xdmcp]
# SuSEconfig: displaymanager:DISPLAYMANAGER_REMOTE_ACCESS
Enable=true
Port=177
[chooser]
[security]
# SuSEconfig: displaymanager:~DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN
DisallowTCP=false
# SuSEconfig: displaymanager:DISPLAYMANAGER_ROOT_LOGIN_REMOTE
AllowRemoteRoot=true
[debug]
3.然后,更改/etc/X11/xdm/xdm-config,注销掉这一行(在起点加一个!)
! DisplayManager.requestPort: 0
4.重启xdm
# /etc/init.d/xdm restart
#rcxdm restart
DISPLAYMANAGER_REMOTE_ACCESS="yes"
DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"
2.相应的配置文件/etc/gdm/custom.conf也会更改成如下样子
# GDM configuration storage
[xdmcp]
# SuSEconfig: displaymanager:DISPLAYMANAGER_REMOTE_ACCESS
Enable=true
Port=177
[chooser]
[security]
# SuSEconfig: displaymanager:~DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN
DisallowTCP=false
# SuSEconfig: displaymanager:DISPLAYMANAGER_ROOT_LOGIN_REMOTE
AllowRemoteRoot=true
[debug]
3.然后,更改/etc/X11/xdm/xdm-config,注销掉这一行(在起点加一个!)
! DisplayManager.requestPort: 0
4.重启xdm
# /etc/init.d/xdm restart
#rcxdm restart
本文介绍如何通过修改配置文件实现Linux系统的远程桌面访问。主要内容包括:1) 修改/etc/sysconfig/displaymanager以允许远程访问和root登录;2) 调整/etc/gdm/custom.conf以启用XDMCP等功能;3) 更改/etc/X11/xdm/xdm-config来指定端口请求;4) 重启xdm服务使更改生效。

被折叠的 条评论
为什么被折叠?



