XDMCP连接OEL6.4_X64

来源:互联网 发布:教育培训行业数据分析 编辑:程序博客网 时间:2024/06/03 23:38

前些日子,应客户要求配置Xmanager,从网上搜索了很多相关资料,一步一步的做,都没有成功。最后我按照自己的想法,测试了一下。发现有些配置是不需要的。

一、实验环境为OEL6.4

二、客户端版本为:Xmanager Enterprise 4

三、服务器操作

1、修改运行级别

打开/etc/inittab并设置初始运行级5如下:
id:5:initdefault:

2、使用XDMCP,配置GDM与KDM

#su - root

For GDM

#vi /etc/gdm/custom.conf
[security] 
AllowRemoteRoot=true 
[xdmcp] 
Enable=1 
Port=177
For KDM: 
Open /usr/share/config/kdm/Xaccess and remove the initial “#” character for the 
following line: 
#* #any host can get a login window 改为
* #any host can get a login window 
Open /usr/share/config/kdm/kdmrc and set the Enable entry to true in the [xdmcp]
section as following. 
[xdmcp] 
Enable=true
 

3、防火墙的配置

#su - root

清除防火墙配置

#iptables -F

保存防火墙配置

#iptables -L

停掉防火墙服务

#service iptables stop

查看防火墙的状态

#service iptables status

禁止开机自启动

#chkconfig iptables off

4、关闭selinux

查看SELinux状态:

a、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态

SELinux status:                 enabled

b、getenforce                 ##也可以用这个命令检查

关闭SELinux:

a、临时关闭(不用重启机器):

setenforce 0                  ##设置SELinux 成为permissive模式

                              ##setenforce 1 设置SELinux 成为enforcing模式

b、修改配置文件需要重启机器:

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器即可

5、重启操作系统或相关服务,启动Xmanager

#reboot或者gdm-restart

推荐重新启动操作系统,从而也验证一下防火墙是否会开机自启动。

6、重启完成后,便可以在Xbrowser中看到你想要连接的服务器。但是前提是两者都必须在一个网段中。若服务端与客户端没有在一个网段中,可以进行手动添加即新建。


0 0
原创粉丝点击