脚踏实地、勇往直前!
全部博文(1005)
分类: LINUX
2011-11-22 17:20:56
步骤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
备注:检查177端口是否已经启动
步骤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 --