CGSL V5 版本默认不能使用 XManager 工具远控,通过修改/etc/gdm/custom.conf 来启用:
1.[xdmcp]段的 Enable 选项,需要设置 Enable 为 1 或 true。配置后如下所示:
[xdmcp]
Enable=1
2.如果需要允许 root 用户连接,则需要设置[security]段中的 AllowRomoteRoot 为 1 或 true。正确配置后如下所示。
[security]
AllowRemoteRoot=1
3.修改配置后需要执行下面的命令重启图形环境,请注意当前有无运行在图形界面下的程序,以免受到图形环境重启的影响。
# systemctl restart gdm.service
11.2.2 注意事项
GNOME 3 使用了 OpenGL,需要直接访问图形硬件。而 Xorg使用 DR(Direct Rendering Interface)作为默认渲染技术,将无法运行 Xserver 上面。所以 Window 上面使用的 XManager 客户端不能用于连接 XDMCP。
11.2.3 在 xinetd 上配置 VNC 与 XDCMP
1. 安装 thgervnc-server,xorg-x11-fonts-Type1,xinetd 包:
#rpm –ivh thgervnc-server xorg-x11-fonts-Type1 xinetd
2. 创建 xinetd 服务
使修改/etc/xinetd.d/vncserver 文件(若不存在此文件就创建),添加如下内容:
|
service vncserver
{
disable = no
socket_type = stream
protocol = tcp
group = tty
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp
/usr/share/X11/fonts/misc -securitytypes=none
}
|
4. 重启 xinetd 服务:
5. 在 Windows 上通过 vnc 客户端连接: