陈小冬的技术 2016-01-19
今天在Xmanager下配置远程Oracle Linux 5.9连接,遇到了一些问题。
1.没有/etc/X11/xdm/xdm-config文件
这个是因为缺少 xorg-x11-xdm包,用yum进行安装
[root@11grac1 Server]# yum install xorg-x11-xdm
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-xdm.x86_64 1:1.0.5-7.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================
Package Arch Version Repository Size
======================================================================================================================
Installing:
xorg-x11-xdm x86_64 1:1.0.5-7.el5 el5 122 k
Transaction Summary
======================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 122 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xorg-x11-xdm 1/1
Installed:
xorg-x11-xdm.x86_64 1:1.0.5-7.el5
Complete!
配置步骤如下:
1.vi /etc/inittab
id:5:initdefault:
2.vi /etc/gdm/custom.conf
[security]
AllowRoot=true
AllowRemoteRoot=true
[xdmcp]
Enable=true
Port=177
3.vi /etc/X11/xdm/xdm-config
!DisplayManager.requestPort: 0
4.vi /etc/X11/xdm/Xaccess
去掉前面的#
#* #any host can get a login window
#* CHOOSER BROADCAST #any indirect host can get a chooser
5.关闭防火墙