注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

My Unix World

不要迷恋Unix,Unix只是计算世界很小的一部分!

 
 
 

日志

 
 

转:GDM and XDMCP configuration for remote graphical Linux desktop access  

2009-06-07 21:45:41|  分类: graphics-x-servi |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
from:http://www.yolinux.com/TUTORIALS/GDM_XDMCP.html

Linux configuration for a GUI login:

Typically Linux configures the choice of a text console login or a graphical GUI login in the init script configuration file /etc/inittab. In order to allow remote a GUI login, the system itself must be configured for a X11 GUI login.

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
(Partial file listing)

Note that this shows a run level of "5" for a Red Hat / Fedora / CentOS based configuration.

Ubuntu:

  • Start GDM manually with the command: /etc/init.d/gdm
    (This can be added to the system init process: ln -s /etc/init.d/gdm /etc/rc2.d/S13gdm)
    or
  • add to /etc/inittab or /etc/rc.local
    x:2:respawn:/usr/sbin/gdm
    Ubuntu uses runlevel 2-5 as regular multi-user mode.

Also see the YoLinux.com Linux init process tutorial.


Granting MS/Windows users remote GUI access to your system:

XDM login manager:

  • Edit file:
    • Red Hat: /etc/X11/xdm/Xaccess
    • Suse: /usr/X11R6/lib/X11/xdm/Xaccess

    Change from:
    # *                                       #any host can get a login window
    To:
    *                                       #any host can get a login window

  • Edit file: /etc/X11/xdm/xdm-config
    Change last line from:
    !DisplayManager.requestPort:    0
    To:
    DisplayManager.requestPort:    0
    System default for RHEL4/FC3.

GDM login manager:

  • Edit file:
    • Red Hat Enterprise 5, CentOS 5: /etc/gdm/custom.conf
      Note: RHEL5 only uses this file as XDM is no longer supported.
      Add two enties to the existing categories:
      [xdmcp]
      Enable=true

      [security]
      DisallowTCP=false
      One can also use the GUI config tool /usr/sbin/gdmsetup.

    • Red Hat Enterprise 3/4, CentOS 3/4, Fedora 1-6: /etc/X11/gdm/gdm.conf
      Change last line from:
      [xdmcp]
      Enable=false
      To:
      [xdmcp]
      Enable=true
      One can also use the GUI config tool gdmsetup.

  • Restart X-Windows:
    • [root]# init 3
    • [root]# init 5

Note:

  • You can use the config tool /usr/sbin/gdmsetup to configure GDM.
  • You can test the GDM login screen locally: X -query localhost :1
gdmsetup: This GUI will edit the configuration GDM configuration file.
  • Red Hat Enterprise 5, CentOS 5: /etc/gdm/custom.conf
  • Red Hat Enterprise 3/4, CentOS 3/4, Fedora 1-6: /etc/X11/gdm/gdm.conf

Select the check box "Enable XDMCP":

  转:GDM and XDMCP configuration for remote graphical Linux desktop access - liqi xie - My Unix World
  转:GDM and XDMCP configuration for remote graphical Linux desktop access - liqi xie - My Unix World


Remote X server access for MS/Windows:

Open Source MS/Windows PC X-Windows server software:

Commercial MS/Windows PC X-Windows server software:


Remote X server access for Linux:

Use the X-Windows Xnest command to connect.

/usr/bin/X11/Xnest -query computer-node-name -geometry 1280x1024 :1
Xnest image
Example using option "-geometry 850x680".

[Potential Pitfall]: If your get the following error message:

Fatal server error:
Server is already active for display 0
This means you forgot the ":1" at the end of the command and it defaulted to :0 which is your current desktop window thus causing a conflict.

Red Hat / Fedora / CentOS distributions require package xorg-x11-Xnest


Configuration Pitfalls:

  • Make sure the system firewall rules allow XDMCP protocol to pass.
    • List firewall rules: iptables -L
    • Flush all firewall rules: iptables -F
    The following ports and protocols must be able to pass through the firewall:
    • UDP: 177 (XDMCP)
    • TCP: 6000-6005 (X11 protocol)
    • TCP: 7100 (xfs: X font server)
  评论这张
 
阅读(826)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017