Ceontos6.X配置XDMCP远程调用图形化

  Linux一般不需要图形化,但是偶尔也是需要的,基于X11协议的图形化XDMCP很受推广,VNC也是很不错的。。。

前提:

关闭防火墙,不关闭需要配置177端口放行

关闭selinux,不关闭自己配置selinux上下文

00、服务端图形化组件检测

yum   groupinstall   -y   ‘X Window System‘ ‘Desktop‘    #根据平台不同自己选择安装图形化组件包

yum   install -y gdm  xdm      #安装xdmcp依赖包

01、调整配置文件

vim  /etc/X11/xdm/Xaccess

去掉这一行最前面的#号

*    #any host can get a login window

[[email protected] gdm]# cat /etc/X11/xdm/Xaccess
# $XdotOrg: Xaccess,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
# $Xorg: Xaccess,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
# $XFree86: xc/programs/xdm/config/Xaccess,v 1.4 2003/07/09 15:27:40 tsi Exp $
#
# Access control file for XDMCP connections   #xdmcp访问控制
#
# To control Direct and Broadcast access:
#
#    pattern
#
# To control Indirect queries:
#
#     pattern        list of hostnames and/or macros ...
#
# To use the chooser:
#
#    pattern        CHOOSER BROADCAST
#
# or
#
#    pattern        CHOOSER list of hostnames and/or macros ...
#
# To define macros:
#
#       %name        list of hosts ...
#
# To control which addresses xdm listens for requests on:
#
#    LISTEN        address [list of multicast groups ... ]
#
# The first form tells xdm which displays to respond to itself.
# The second form tells xdm to forward indirect queries from hosts matching
# the specified pattern to the indicated list of hosts.
# The third form tells xdm to handle indirect queries using the chooser;
# the chooser is directed to send its own queries out via the broadcast
# address and display the results on the terminal.
# The fourth form is similar to the third, except instead of using the
# broadcast address, it sends DirectQuerys to each of the hosts in the list
# The fifth form tells xdm which addresses to listen for incoming connections
# on.  If present, xdm will only listen for connections on the specified
# interfaces and/or multicast groups.
#
# In all cases, xdm uses the first entry which matches the terminal;
# for IndirectQuery messages only entries with right hand sides can
# match, for Direct and Broadcast Query messages, only entries without
# right hand sides can match.
#

*                    #any host can get a login window  任何主机都可以登录

#
# To hardwire a specific terminal to a specific host, you can
# leave the terminal sending indirect queries to this host, and
# use an entry of the form:
#

#terminal-a    host-a

#
# The nicest way to run the chooser is to just ask it to broadcast
# requests to the network - that way new hosts show up automatically.
# Sometimes, however, the chooser can‘t figure out how to broadcast,
# so this may not work in all environments.
#

#*        CHOOSER BROADCAST    #any indirect host can get a chooser

#
# If you‘d prefer to configure the set of hosts each terminal sees,
# then just uncomment these lines (and comment the CHOOSER line above)
# and edit the %hostlist line as appropriate
#

#%hostlist    host-a host-b

#*        CHOOSER %hostlist    #

#
# If you have a machine with multiple network interfaces or IP addresses
# you can control which interfaces accept XDMCP packets by listing a LISTEN
# line for each interface you want to listen on.  You can additionally list
# one or more multicast groups after each address to listen on those groups
# on that address.
#
# If no LISTEN is specified, the default is the same as "LISTEN *" - listen on
# all unicast interfaces, but not for multicast packets.  If any LISTEN lines
# are specified, then only the listed interfaces will be listened on.
#
# IANA has assigned FF0X:0:0:0:0:0:0:12B as the permanently assigned
# multicast addresses for XDMCP, where X in the prefix may be replaced
# by any valid scope identifier, such as 1 for Node-Local, 2 for Link-Local,
# 5 for Site-Local, and so on.  The default is equivalent to the example shown
# here using the Link-Local version to most closely match the old IPv4 subnet
# broadcast behavior.
#
# LISTEN        * ff02:0:0:0:0:0:0:12b

# This example shows listening for multicast on all scopes up to site-local
#
# LISTEN    * ff01:0:0:0:0:0:0:12b ff02:0:0:0:0:0:0:12b ff03:0:0:0:0:0:0:12b ff04:0:0:0:0
:0:0:12b ff05:0:0:0:0:0:0:12b

vim /etc/gdm/custom.conf

[[email protected] gdm]# cat /etc/gdm/custom.conf
# GDM configuration storage

[daemon]

[security]
AllowRemoteRoot=true   #许可root远程登录
[xdmcp]
Enable=true
Port=177
[greeter]

[chooser]

[debug]

02、Server运行方式切换

init 5   # init 3    && init 5

看到监听端口177,说明xdmcp服务没问题

[[email protected] xdm]# lsof -i:177
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
gdm-binar 3780 root   11u  IPv4  26854      0t0  UDP *:xdmcp 

03、xbrowser登录xdmcp

打开测试

时间: 2024-10-23 04:49:15

Ceontos6.X配置XDMCP远程调用图形化的相关文章

使用VNC完成远程调用图形化

原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明以下出处,否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/40979895 实验环境 实验平台 WIN7 旗舰版 64bit 虚拟机软件 VM Virtual Box 4.2 虚拟机操作系统 CentOS 5.6 64bit WIN下使用VNC软件 VNC-Viewer-5.0.5-Windows-64bit 1.LINUX系统

Linux/Centos 解决安装oracle-11g数据库无法远程调用图形化安装界面的办法

解决远程无法调用图形安装的问题远程安装oracle-11g数据库无法调用图形化解决办法,错误如下图:解决方法:切换到root用户,执行命令: #xdpyinfo | grep local //结果如下图 过滤出来是localhost:11.0如果没有这个命令,需要用yum安装桌面 centos6/redhat6:yum groupinstall -y "X Window System" yum groupinstall -y "Desktop" yum groupi

VNC-tigervnc-server远程调用图形化

远程调用Linux图形化,很不错的.. 01.远程Linux须装图形化 yum groupinstall -y    'Desktop'   'X Window System'  #xclock试图形化 02.安装tigervnc-server yum install -y tigervnc-server 03.设置vnc登录密码 [[email protected] ~]# vncserver You will require a password to access your desktop

centos 6.6 配置xdmcp远程桌面

1.首先安装 xdm软件:yum install xdm vi /etc/X11/xdm/Xaccess: * allow  vi /etc/gdm/custom.conf: [security] AllowRemoteRoot=true  [xdmcp] Enable=true Port=177

Spring 配置RMI远程调用

项目中遇到了跨系统调用,当初想的是用webservice或者是hessian.但是这个接口用到的并不多,而且是一个非常简单的方法.所有便想到了RMI.在spring中 实现RMI非常简单. 暴露服务: 引用服务: 在spring中 ,spring已经集成了rmi服务,无需再导入任何jar包.非常方便,简单.

升级_开阔视野之Oracle图形化升级(dbca建库后升级)—10.2.0.1.0升为10.2.0.5.0

***********************************************声明***********************************************************************  原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任. 表述有错误之处,请您留言或邮件([email protected])指明,不胜感激. 本文转载必须保留此处:http://blog.csdn.net

利用Xmanager Enterprise 5的passive显示远程linux主机图形化信息

问题描述: 最初的需求是,安装oracle数据(第一次安装都是图形化linxu进去一步步操作,后续发现可以命令静默安装不调用图形化,学习就是步步入深,方得始终),最初实现window弹出linux主机图形化是vncviewer实现的,然而vncserver设置相对繁琐亦有可能不成功! 行千里,始于足下! 问题解决: 看过经验丰富的操作,才发现调出图形化可以如此简单!利用xshell的企业版Xmanager的passive是远程linux图形化信息通过X11协议传输到互通windows上. 实验背

Spring HttpIvoker实现Java的远程调用

Spring HttpInvoker一种JAVA远程方法调用框架实现,使用的是HTTP协议,允许穿透防火墙,使用JAVA系列化方式,但仅限于Spring应用之间使用,即调用者与被调用者都必须是使用Spring框架的应用.基本原理如下: 在server端,springAOC管理着controller(bean),并暴露出远程调用的接口.在Client端,借助spring产生一个代理对象,通过代理对象实现与服务端的交互. 服务器端配置 1. 加入jar包 2. 在.xml中配置spring远程调用的

spring 远程调用

spring远程调用: ------------------------ -----------server----------- 1.创建web项目 2.添加spring类库 org.springframework.aop-3.1.0.RELEASE.jar org.springframework.asm-3.1.0.RELEASE.jar org.springframework.beans-3.1.0.RELEASE.jar org.springframework.context-3.1.0