Cygwin/x xdmcp connects to centos
Display Manager usually has three types of xdm, em, and KDM. The specific working methods of Display Manager can be found in Wikipedia and Linux XDMCP howto. Among the three types, KDM is the easiest, so KDM is used in this article.
By default, centos uses gnome/TPD. This is not surprising. RedHat is a gnome system. In fact, Kde is really better than gnome. I have been using her since the kde3 era.
To enable XDMCP, follow these steps:
- Disable iptables. Whether you use Setup/ntsysv/chkconfig... Or iptables-F, you can close it first.
- Use KDM as the default display Manager:
# Echo "displaymanager = KDE">/etc/sysconfig/desktop
- Modify KDM Configuration
# Cd/etc/KDE/KDM # vi kdmrc
Enable = false in the [XDMCP] Section to enable = true
# Vi xaccess
Set
# * # Any host can get a login window
Comments before the row # removed:
* # Any host can get a login window
- Change the startup level to 5
VI/etc/inittab
- Restart or init 3; init 5
How to enable XDMCP for xdm/TPD you can go online to search for or refer to the official documents. I have tried a few times that the XDMCP for the gestational disease is not very good, and there is always such a problem, finally, KDM is used.
There are many kinds of X Server implementations on Windows, such as X-Win32, exceed, xmanager ...... Cygwin/X, xming, and xming are free of charge. Unfortunately, the Versions later than 07 will also be charged in disguise, therefore, the best choice for free is cygwin/X. cygwin has powerful functions and can be installed according to official documents.
Start cygwin terminal and add the centos to be connected to 192.168.0.101. In cygwin terminal, enter xwin-query 192.168.0.101. The following figure shows the connection to KDM:
I use windowmaker, so I chose windowmaker here. Of course, it is also possible to use KDE directly.
Test performance:
Graphics performance is really not very high, but not 3D, usually enough.
========================================================== ========================================
Configuration
Server Settings
1. Modify/etc/TPD/custom. conf to allow XDMCP
[XDMCP]
Enable = 1
You can add
[Security]
Allowremoteroot = true
2. Enable Firewall settings
Open the XDMCP port: UDP 177
Open TCP ports 6000 to 6010
You can directly modify/etc/sysconfig/iptables.
-A RH-Firewall-1-INPUT-M state -- state new-m udp-p udp -- dport 177-J accept
-A RH-Firewall-1-INPUT-M state -- state new-m tcp-p tcp -- dport 6000: 6010-J accept
Restart iptables.
/Etc/init. d/iptables restart
3. Start to the graphic interface runlevel
# Init 5
If you have already entered the graphic interface, restart
# Init 3; init 5
Client settings
4. Connect with a x-win32
Open X-config, create an XDMCP in the wizard in the session, and query the input server IP address.
Select the session to start.
Chenlong