Preparation: 1,centos 6.5 minimal Desktop
2, configure CentOS to access the Internet
Starting: 1, using the command yum install XDM installation XDm
Manage X-Monitor collection with XDMCP support
2, modify the/etc/x11/xdm/xaccess file and find the following statement: # * #any host can get a login window,
Remove the front # of this line and become: * #any host can get a login window
3, modify the/etc/gdm/custom.conf file.
Locate the following statement: [XDMCP], add the following two lines under this sentence:
Enable=true
port=177
Add under [Security]
Allowremoteroot=true
After modifying the custom.conf, you must restart GDM before it can take effect. The practice is GDM in the kill process and then restart GDM:
#/usr/sbin/gdm-restart
4, open 177 ports in the firewall, modify the/etc/sysconfig/iptables file,
Add the following two lines under the line-a input-m state--state new-m tcp-p TCP--dport 22-j Accept
-A input-m state--state new-m tcp-p TCP--dport 6000:6010-j ACCEPT
-A input-m state--state new-m udp-p UDP--dport 177-j ACCEPT
Small work success, finally restart the firewall (service iptables restart) can experience the remote connection Linux desktop.
Original from: http://www.linuxidc.com/Linux/2014-03/98548.htm