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.
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.