We usually use SecureCRT, PUTTY, and other client tools to remotely manage Linux servers in Windows. I also often use this method, which is fast and efficient. However, in some software development environments, sometimes we need to remotely use some window programs, and then using these tools is not reliable. What should I do?
Let's show you how to configure XDM to remotely connect to RHEL6 on the desktop!
What is XDM, XDM is the abbreviation of X display manager. xdm uses the X display Management Control Protocol of x, that is, XDMCP, used to communicate with X servers. It allows the X server to obtain the session service from the server running the xdm service. If you use GNOME or KDE on your Linux server, you are using the X system. It is defined and maintained by the x.org (www.X.org. Many Linux users use the X Window System provided by the XFree86 project www.xfree86.org.
Let's talk about the X Window System), referred to as X or X11, is a graphical interface that allows Linux to complete some Shape processing and multimedia application functions, is a very important software in Linux.
The X Window System is based on the C/S architecture and can be used across platforms and networks.
1) X Server receives data from X Client and draws the data to the user's screen. In addition, X Server is also responsible for transmitting data from some input devices, such as mouse movement and keyboard input, to X Client over the network, and then the X Client computes and draws the corresponding data. Similar to canvas
2) X Client is mainly responsible for data calculation, which is equivalent to a painter.
Configuration Phase 1: configure the XDM Service
First, confirm the installation of the software for running the running agent on the gnome Desktop]
[Root @ shixun desktop] # vi/etc/TPD/gdm M. conf, add the following statement
[Security]
AllowRemoteroot = true # Allow the root user to log on. Set this parameter to true.
[Xdmcp]
Enable = 1 # Enable xdm
After saving and restarting, check that port 177 is enabled
650) this. width = 650; "title =" image "style =" border-left-0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/231S4A95-0.png "width =" 792 "height =" 217 "/>
[Root @ shixun desktop] # iptables-F. Disable the firewall or add the following rules to open port 177.
Iptables-a input-p udp-s 0/0-d 0/0 -- dport 177-j ACCEPT
Configuration Phase 2: Configure Xmanager
Xmanager is a high-performance X Windows server running on Windows platform. It can control Linux desktops from Windows.
Open Xbrowser and create a new session
650) this. width = 650; "title =" image "style =" border-left-0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/231S41214-1.png "width =" 595 "height =" 487 "/>
This is the result after the connection.
650) this. width = 650; "title =" image "style =" border-left-0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/231S41416-2.png "width =" 616 "height =" 364 "/>