Enable xdmcp Remote Desktop login in CentOS 6.7
Preparation: 1, CentOS 6.7 minimal
2. Configure CentOS to access the Internet
Start: 1, yum groupinstall "X Window System"
Yum groupinstall Desktop
Yum groupinstall Chinese-support
Yum install xdm
2. Modify the/etc/X11/xdm/Xaccess file and find the following statement: # * # any host can get a login window,
Remove the # sign at the beginning of this line and become: * # any host can get a login window
3. Modify the/etc/TPD/custom. conf file.
Find the following statement: [xdmcp], and add the following two lines under this sentence:
Enable = true
Port = 177
Under [security], add
AllowRemoteRoot = true
After you modify custom. conf, you must restart the system to make the modification take effect. The specific method is to kill the guid in the process, and then restart the target instance:
#/Usr/sbin/TPD-restart
4. enable port 177 in the firewall; modify the/etc/sysconfig/iptables file,
Add the following two rows to the row-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
After all, restart the firewall (service iptables restart) to remotely connect to the linux Desktop.