原來內訂裝好的Cent OS6並沒有把桌面環境安裝完成,如果在/usr/sbin/下找不到gdm-start,表示未安裝完成,請先安裝好相關套件。

# sudo yum install -y xdm gdm

# yum groupinstall -y "Desktop" "X Window System"

修改相關設定:

# vi /etc/inittab
:id:5:initdefault:

# vi /etc/gdm/custom.conf
[Security]
AllowRemoteRoot=true
[xdmcp]
Enable=true  //或是1
Port=177

# vi /etc/X11/xdm/Xaccess
*               #any host can get a login window   //前面的#拿掉。
*               CHOOSER BROADCAST       #any indirect host can get a chooser    //前面的#拿掉。

# vi /etc/kde/kdm/kdmrc         //在Centos5.11和6.8上測試,不需要這段設定。
[xdmcp]
Enable = true
Port = 177

# vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6000:6010 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 177 -j ACCEPT

# reboot (或是重開iptables)

只要直接打開XBrowser就可以看到新增的CentOS6了。

 

開機時關閉防火牆:CentOS, Redhat都是一樣的用法。

# chkconfig iptables off      //開機時關閉防火牆。若是要開啟,off改成on。
# service iptables stop      //立刻關閉防火牆。若是要啟動,stop改成start。

 

 

參考文獻:http://www.centoscn.com/CentOS/config/2013/0823/1440.html

http://blog.xuite.net/camelchen/Linux/307271466-Centos%206%20%E5%A6%82%E4%BD%95%E5%95%9F%20XDMCP?

防火牆設定參考:http://www.it610.com/article/1895588.htm

arrow
arrow
    文章標籤
    Xmanager CentOS Remote Control
    全站熱搜

    貓熊麗麗 發表在 痞客邦 留言(0) 人氣()