通过xmanager远程连接redhat linux as 5

本文介绍如何配置 RedHat Enterprise Linux 5 的 GDM 服务以实现远程桌面登录,包括修改配置文件和设置防火墙等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

通过 xmanager 远程连接 redhat linux as 5
 
rhel5rhel4 不同的地方是, rhel5 里没有 /etc/X11/gdm/ 这个目录, rhel5gdm 的配置文件放在这里 /usr/share/gdm/defaults.conf
需要修改的地方如下:
修改 /usr/share/gdm/defaults.conf 文件,确保里面有以下几行:
Enable=true
DisplaysPerHost=10
Port=177
再修改 /etc/inittab 文件,把默认级别改为 5,
id:5:initdefault:
  再加入以下行:
x:5:respawn:/usr/sbin/gdm
本人沒這樣添加
而是
默認配置下面有這樣的話
 
x:5:respawn:/etc/X11/prefdm -nodaemon
 
这样修改后, 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
注意dport前面是2个横杠

gdm-binary -daemon 启动 , 177 端口

本文出自 “沟通&交流 ” 博客,请务必保留此出处http://hcwl001.blog.51cto.com/161642/141052

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值