ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 通过xmanager远程连接redhat linux as 5

通过xmanager远程连接redhat linux as 5

原创 Linux操作系统 作者:great_li 时间:2010-07-24 20:01:53 0 删除 编辑
 
 
rhel5与rhel4不同的地方是,rhel5里没有/etc/X11/gdm/这个目录,rhel5的gdm的配置文件放在这里/usr/share/gdm/defaults.conf。
需要修改的地方如下:
修改/usr/share/gdm/defaults.conf文件,确保里面有以下几行:
Enable=true
DisplaysPerHost=10
Port=177
再修改/etc/inittab文件,把默认级别改为5,再加入以下行:
x:5:respawn:/usr/sbin/gdm
这样修改后,root用户还不能登录,还要继续修改/usr/share/gdm/defaults.conf文件,具体如下(红色部分):
[security]
# Allow root to login.  It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP.  This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
AllowRemoteRoot=true
如果防火墙打开了,使用以下命令打开177端口:
iptables -A INPUT -p udp --dport 177 -j ACCEPT
用gdm-binary -daemon 启动, 177端口
 

one

open terminal and set as follow...

vi /etc/gdm/custom.conf

[xdmcp]
Enable=ture

[security]
AllowRemoteRoot=true

second

reboot computer.

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

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

注册时间:2010-03-27

  • 博文量
    59
  • 访问量
    85700