@ HuangCheng: fedora 9 running XDMCP

Source: Internet
Author: User

@ HuangCheng: fedora 9 running XDMCP

 

Http://yuanbor.blog.163.com/blog/static/5667462020099297351678/

To configure XDMCP, you can access the Linux desktop using tools such as xmanager in Windows. The function is similar to the Remote Desktop in windows. After my actual experiment, the configuration method is as follows:
1:
# Vi/etc/X11/xdm-config
Add "displaymanager. requestport: 0" to the last row! Comment out this line.
2:
# Chmod + w/etc/X11/xdm/xservers
# Vi/etc/X11/xdm/xservers
Comment out this line with # In front of the last line: 0 local/usr/x11r6/bin/X.
3:
# Vi/etc/X11/xdm/xaccess
Find # * # Any host can get a login window
Remove the # sign before this line and change it:
* # Any host can get a login window
Note:
In RHEL4/fedora, if there is no xservers File
Because the xorg-x11-xdm package is installed less, you can find in the third disc RHEL4, fedora can also be installed through the yum install xorg-x11-xdm.
4:
Modify the/etc/X11/TPD. conf file
Note that this file may also be/etc/TPD/custom. conf
In the [XDMCP] section, add
Enable = 1 or enable = true
5:
Modify the/etc/inittab File
Change ID: 3: initdefault to ID: 5: initdefault (in some Linux versions, ID: 5: initdefault is not required)
6:
Modify the firewall. If the firewall is disabled, you do not need to modify it:
Iptables-A input-M state -- state new-m udp-p udp -- dport 177-J accept
7:
Enter the xdm command to start the xdm service.
Now you can remotely log on to RHEL4/Fedora using xmanager and other tools in windows.
[The above green part is a revised part of the text on April 9, 7th. It is not omitted before step 1. Although the machine can connect normally after the machine restarts, but for important network servers (such as website hosts) for example, restarting is a terrible thing. Therefore, you must add this part so that you can connect to the ECS instance through XDMCP without restarting the ECS instance. In addition, it should be noted that, there is no Yum component in RHEL4, And the fedora 9 used by the author is installed with Yum by default, which is hereby noted]
8:
If you want to automatically start xdm at each startup, go to/etc/rc. d/RC. add the local file tail. /etc/x11r6/bin/xdm (execute the xdm script and the path may be different. Use which xdm to find the path)

[Color = # 0000ff] 9:
In addition, I am a newbie, so SELinux is switched off in the test system (to solve the problem later, but it is not recommended that the Internet or online servers do this, please google on your own, so there is no SELinux problem. How to set it when SELinux is turned on? The younger brother is studying it. Please kindly advise me !!

Windows client settings
10:
Connect with xmanager enterprise 3, open xbrowser, create a new xmanager session, and select xdm query in the method option box under XDMCP in new xmanager session properties, enter the IP address of the Linux host, port number (Port Number) is 177, and keep the default value for others. Click "OK. Note that the local port 6000 must be enabled in the Windows Client Firewall.
[Color = # 0000ff] 11:
Double-click the new xmanager session connection. Then, you can see the logon box and password input box, as shown in.

[The above blue part is the revised part of the text on April 9, December 12]
[The following Blue section is also the revised text of April December 12]
In fact, XDMCP is really easy to set up, but many articles on the Internet are either incomplete or too professional (for me to wait for cainiao ), as a result, I also Google for N days to collect the information and complete this test. However, it is important to note that it is difficult to use and run on the internet because X Window executes a large amount of data, it is more suitable for applications in LAN (this sentence is referenced in page 311st of "laruence's Linux private kitchen server (second edition)". I have actually tested it, BTW's test environment is as follows: X client is the Linux host of the controlled end 2 m Shenzhen Telecom adsl OS is fedora 9 (sulphur ); X Server is a Windows host on the master side. 2 m Shenzhen Great Wall Broadband lan OS is Windows XP Server pack3, and the control software is xmanager enterprise 3 ).

 

Special thanks
Zhu Yi (Andrew)'s column: Remote Desktop control RHEL4 in Windows
Success,
There are no articles that are so easy to understand. As a Linux dish, I cannot complete such an experiment!

References
1. Zhu Yi (Andrew)'s column: Using xmanager Remote Desktop to control RHEL4 in Windows
Http://blog.csdn.net/ilovemilk/archive/2007/08/22/1753951.aspx

2. Red link Linux: remotely connect to the fedora graphic desktop
Http://www.linuxdiyf.com/viewarticle.php? Id = 89050
Note that the original article is incorrect. In this article, iptable should be iptables.

3. Auspicious: xmanger configuration in Linux
Http://blog.chinaunix.net/u1/59675/showart_471048.html

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.