Xmanager cannot log on to Red Hat Linux-Solution

Source: Internet
Author: User

The newly installed Red Hat Linux, Telent can be used, and SSH can also be used, but xmanager cannot log on. Therefore, I found that the following blog post is still very detailed, follow your own operations

Http://blog.csdn.net/snlying/article/details/6446934

 

The details are as follows:

1. edit/etc/X11/xdm/xaccess

Change the line # * # Any host can get a login window first # Remove, that is

 

* # Any host can get a login window

 2. Modify/etc/X11/TPD. conf.

 

Modify enable = 0 or enable = false in [XDMCP] to [XDMCP] Enable = 1 or enable = true, and ensure that the following information exists: Port = 177

As follows:

 

[XDMCP]

# Distributions: ship with this off. It is never a safe thing to leave

# Out on the net. Alternatively you can set up/etc/hosts. Allow and

#/Etc/hosts. Deny to only allow say local access.

Enable = true

 

 

 

# The port. 177 is the standard port so better keep it that way

Port = 177

3. Modify/etc/inittab

Change ID: 3: initdefault: To: ID: 5: initdefault:

5 indicates starting in graphics mode, 3 indicates starting in command window mode

 

4. Make sure that the attribute of/etc/X11/xdm/xservers is 444 and that of/etc/X11/xdm/xsetup_0 is 755.

As follows:

 

[Root @ localhost root] # ls-L/etc/X11/xdm/xsetup_0

-Rwxr-XR-x 1 Root 563 Feb 6 2003/etc/X11/xdm/xsetup_0

[Root @ localhost root] # ls-L/etc/X11/xdm/xservers

-R -- 1 Root 487 Feb 28 2003/etc/X11/xdm/xservers

If not, use chmod to modify the File Permission.

Chmod 444/etc/X11/xdm/xservers

5. Modify the/etc/X11/xdm-config file.Add the last line of the file: displaymanager. requestport: 0! Comment out this line

6. Modify/etc/X11/xdm/xservers

In the last line: 0 local/usr/x11r6/bin/X, add # To comment out this line [root @ localhost root] # vi/etc/X11/xdm/xservers

7. Run # xdm. In this way, xmanager and other tools can be used to connect to Linux.

The default value is as follows:

[Root @ localhost root] # ps-Ef | grep xdm
Root 3717 3690 0 00:00:00 pts/0 grep xdm

 

[Root @ localhost root] # Which xdm
/Usr/x11r6/bin/xdm
[Root @ localhost root] #/usr/x11r6/bin/xdm

 

The first line is added after xdm is executed. If/usr/x11r6/bin/xdm is not executed, you cannot log on with xmanager.

[Root @ localhost root] # ps-Ef | grep xdm
Root 3724 1 0? 00:00:00/usr/x11r6/bin/xdm
Root 3727 3690 0 00:00:00 pts/0 grep xdm

 

8. Disable the firewall for Linux.

After everything is configured, use xmanager to log on to the system. After half a day, the system prompts "connection failed ".

9. Disable the firewall of the client system.

After suffering for a while, I did not perform this step. Later, I tried to turn off the firewall on my local machine.

 

Note:

1. I didn't find the kdmrc file. It didn't affect it anyway.

2. The content of the/etc/rc. d/rc. Local file is as follows:

 

#! /Bin/sh
#
# This script will be executed * after * all the other init scripts.
# You can put your own initialization stuff in here if you don't
# Want to do the full sys V style init stuff.

Touch/var/lock/subsys/local
I have not added./etc/x11r6/bin/xdm

However, you can still use xmanager to log on.

 

In the end, I was troubled by an unsolved problem related to xmanager.

After I used xmanager to log on to the AIX System (aix5.3), I entered the username and password, and finally thought I could go in. As a result, after logging on, I was too disappointed, there is only one xclock hanging on a gray interface. Right-click the interface to view the menu, but you cannot see the desktop, as shown in:

 

 

 

 

 

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.