|
Preparation: 1, CentOS 6.5 minimal Desktop
2, configuration CentOS can access the Internet
Start: 1. Install XDM using the command yum install xdm
The X Display Collection is managed through XDMCP support
2, modify / etc / X11 / xdm / Xaccess file, find the following statement: # * #any host can get a login window,
Remove the front of the line #, as: # # host host can get a login window
3. Modify the /etc/gdm/custom.conf file.
Find the following statement: [xdmcp], add the following two lines to the following line:
Enable = true
Port = 177
Under [security], add
AllowRemoteRoot = true
After modifying custom.conf, gdm must be restarted to take effect. The specific approach is to kill the gdm process, and then restart gdm:
# / Usr / sbin / gdm-restart
4, in the firewall to open 177 ports; modify / 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
Successful, and finally restart the firewall (service iptables restart) can experience the remote connection linux desktop. |
|
|
|