Cygwin/x xdmcp connects to centos

Source: Internet
Author: User
Tags xming windowmaker
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:

      1. Disable iptables. Whether you use Setup/ntsysv/chkconfig... Or iptables-F, you can close it first.
      2. Use KDM as the default display Manager:
 
# Echo "displaymanager = KDE">/etc/sysconfig/desktop
      1. 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
      1. Change the startup level to 5
 
VI/etc/inittab
    1. 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.