Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6523747
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: LINUX

2011-11-22 17:20:56

RedHat Linux As 4 下的配置
步骤1:
编辑/etc/X11/xdm/Xaccess,将下面的行: 
  1. #* # any host can get a login window

改为:
  1. * # any host can get a login window

步骤2:
修改/etc/X11/gdm/gdm.conf,找到下面的信息:
  1. [xdmcp]
  2. Enable=0 或Enable=false
修改为:
  1. [xdmcp]
  2. Enable=1 或Enable=true

并确保以下信息存在:
  1. Port=177
步骤3:
修改/etc/inittab,将
  1. id:3:initdefault:
修改为:
  1. id:5:initdefault:
重启动即可.
RedHat Linux As 5 下的配置:
 
步骤1:修改/usr/share/gdm/defaults.conf的权限
  1. chmod 700 /usr/share/gdm/defaults.conf
步骤2: vi /usr/share/gdm/defaults.conf,找到如下配置项,然后修改相应的值如下:
  1. # the security of XDMCP
  2. Enable=true
  3. DisplaysPerHost=2
  4. Port=177
  5. AllowRoot=true
  6. AllowRemoteRoot=true

步骤3: vi /etc/inittab
确保默认启动级别是5,最后一行修改为 x:5:respawn:/usr/sbin/gdm,我的配置是x:5:respawn:/etc/X11/prefdm -nodaemon,最后连接好像也没问题.

步骤4: vi /etc/gdm/custom.conf

在[xdmcp]下面添加 Enable=true

步骤5:使配置生效,重启动服务(reboot),或是重启动gdm

  1. [root@rac1 ~]#/usr/sbin/gdm-restart

备注:检查177端口是否已经启动

  1. [root@rac1 ~]# lsof -i:177
    COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
    gdm-binar 3577 root    3u  IPv4  10483       UDP *:xdmcp
    gdm-binar 3824 root    3u  IPv4  10483       UDP *:xdmcp


步骤5:打开Xbrowser,在Address栏输入需要连接的ip地址后回车,即可看到需要连接的主机.





RedHat Linux As 6 下的配置
1.确保inittab的配置文件中默认配置的是X11启动,然后再最后添加id:5:respawn:/usr/sbin/gdm,
配置完成的文件内容如下:
[oracle@node1 /]$ more /etc/inittab
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used 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:
id:5:respawn:/usr/sbin/gdm


2.编辑如下的custom.cong文件,在[xdmcp]下添加Enable=1,如下所示:
[oracle@node1 gdm]$ more /etc/gdm/custom.conf
# GDM configuration storage


[daemon]


[security]


[xdmcp]
Enable=1
[greeter]


[chooser]


[debug]


3.重启机器
最不喜欢重启机器了,记得AS 5之前是不用重启机器的.

CentOS 7下的配置
http://blog.csdn.net/name_kongkong/article/details/53261626

-- The End --

阅读(8695) | 评论(1) | 转发(0) |
0

上一篇:shell练习

下一篇:如何配置telnet

给主人留下些什么吧!~~

zengmuansha2012-08-29 11:43:37

Xmanger 做什么用的?