全国业务电话:
11.2 XManager
11.2 XManager
 
  XManager 是一种常用的远程桌面控制工具,本节主要介绍使用 XManager 工具需要的相关基本配置。
 
11.2.1 XManager 服务端配置
 
  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
 
  }

 
 




















 
  3.添加 vnc 服务:
 
  在/etc/services 文件中最后加入
 
    vncserver       5900/tcp                # VNC and GDM  
 
  4. 重启 xinetd 服务:
 
    #systemctl restart xinetd.service  
 
  5. 在 Windows 上通过 vnc 客户端连接:
 
  连接地址是“IP:5900”,连接后画面下图
 


 
  • 操作系统微信公众号

  • CPI微信公众号

© 2004-2020 广东中兴新支点技术有限公司  版权所有  (www.gd-linux.com)  粤ICP备15061780号-2

新支点OS业务:

QQ客服