1) edit/etc/TPD/custom. conf with the following content:
[Daemon]
[Security]
Allowremoteroot = true
[XDMCP]
Port = 177
Enable = 1
[GUI]
[Greeter]
[Chooser]
[Debug]
[Servers]
Copy custom. conf
> CP custom. conf TPD. conf
Then, restart the desktop, such as running the machine-Restart command.
Init 3
Init 5
Or restart the system.
2) set the firewall and add it to the/etc/sysconfig/iptables file:
-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
Restart firewall: Service iptables restart
3) install xmanager in windows, open xbrowser, create XDMCP session, and then you can see centos.
Note: When the firewall blocks access, you can use service iptables stop to disable the firewall. Or use the command system-config-firewall to disable the firewall.
====================================
After the xrdp service is installed in Linux, you can use the remote desktop program that comes with windows to remotely log on to Windows.