XDMCP連接OEL6.4_X64

前些日子,應客戶要求配置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中看到你想要連接的服務器。但是前提是兩者都必須在一個網段中。若服務端與客戶端沒有在一個網段中,可以進行手動添加即新建。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章