Red Hat Enterprise Linux 6使用 XDMCP (Xmanager)的一些設定

shilei1發表於2012-09-29

 Enterprise Linux 6 is different from Red hat Enterprise Linux 5.X

1. Open /etc/gdm/custom.conf and edit the security and xdmcp section like the followings:

[security] 
DisallowTCP=false

[xdmcp] 

Enable=true   ;其實只新增這行也可以 

Port=177


2. Add UDP port 177 to the Allow list on firewall.


防火牆關閉的就不用修改 

/etc/sysconfig/ipchains檔案中加入以下語句: 

-A input -p udp -s 0/0 -d 0/0 177 -j accept


3. As an admin, do 'init 3' and then, 'init 5'


修改/etc/inittab,將 

id:3:initdefault: 

修改為: 

id:5:initdefault:


If you have enabled XDMCP and open UDP 177 on the server, make sure gdm is running. Use 'ps -aef | grep dm' and it should give you the display manager that is running on the server.


If it it not running, please make sure the display manager such as gdm or kdm is installed on the machine. Red Hat 6 does not install display manager by default.


如果改完了不好用請重起一下機器就OK了



-------------關閉防火牆

/etc/init.d/iptables status

會得到一系列資訊,說明防火牆開著。

/etc/init.d/iptables stop

永久關閉:

chkconfig --level 35 iptables off

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-745425/,如需轉載,請註明出處,否則將追究法律責任。

相關文章