Professional Documents
Culture Documents
Configuring XDMCP and GDM On Red Hat Linux
Configuring XDMCP and GDM On Red Hat Linux
Configuring XDMCP and GDM On Red Hat Linux
Contents
1. Overview
2. Configure Linux to use GUI Logins
3. Granting Remote Access to the Login Manager
4. Remote X Server Access from a Linux Client
5. Troubleshooting
Overview
Most users installing Linux today choose to install and configure the X Windows System. This allows
those users to access their Linux environment using a graphic (GUI) console connected to the
workstation or server. An X Windows environment provides users to run X programs like xterm,
OpenOffice, Mozilla Firefox and a host of other useful graphical software packages.
There are times, however, when users need to log in to a Linux machine using the graphical X Windows
System from a remote computer, like a Windows PC for example. The remote Windows PC would first
need to have an X Windows Server installed like Xming, Exceed Hummingbird, or my personal favorite
X-Win 32.
When installing Red Hat Enterprise Linux, the system defaults to a secure configuration which does not
allow remote graphical logins or remote desktop access. This article explains the configuration changes
required to allow remote access to a Red Hat Enterprise Linux system (RHEL) using the X Display
Manager Control Protocol (XDMCP) or GDM (GUI login).
One of the first steps is to make certain the Red Hat Linux environment is configured to use a graphical
(GUI) login. A Linux environment allows for either a text login or a graphical (GUI) login. This option
is specified in the init script configuration file /etc/inittab. In order to allow remote graphical (GUI)
logins, the environment itself must be configured for a X11 GUI login. Make certain the system is
configured with the correct X11 runlevel (which in this case is runlevel 5):
/etc/inittab
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHat... 20/02/2011
Configuring XDMCP and GDM on Red Hat Linux Page 2 of 6
The next step is to grant MS Windows users remote GUI access to the Red Hat Linux system. More
specifically, we need to grant access to the RHEL Login Manager.
The XDM login manager is used for older releases of Red Hat Linux. For example:
Use the following steps to enable the services and modify the files necessary to configure
the XDMCP:
1. To do this, edit the /etc/X11/xdm/Xaccess file and open the connection to hosts by
un-commenting the line:
2. Next, open the file /etc/X11/xdm/xdm-config and comment out the line:
DisplayManager.requestPort: 0
3. Make sure to run the program xdm as the "root" user account.
# xdm &
4. If things still do not work, you may need to reboot the server or restart the xdm if it
was already running.
Users running Red Hat Enterprise Linux 5, CentOS 5, or Oracle Enterprise Linux Release 5
will need to use the GDM login manager as XDM is no longer supported.
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHat... 20/02/2011
Configuring XDMCP and GDM on Red Hat Linux Page 3 of 6
First, edit the file /etc/gdm/custom.conf and add the following two entries:
[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRemoteRoot=true
The final step is to configure the GDM login manager using the gdmsetup utility:
After starting the gdmsetup utility, click the Remote tab. Under the Remote tab, change the
Style pull-down menu selection from 'Remote login disabled' to 'Same as Local':
After configuring remote access to the GDM login manager, select the Security tab. Under
the Security tab, I checked the options:
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHat... 20/02/2011
Configuring XDMCP and GDM on Red Hat Linux Page 4 of 6
Exit from the gdmsetup utility and restart the GDM service:
You can test the GDM login screen locally using the following:
So, what if your client workstation is a Linux machine and you want to obtain a graphic login to another
Linux machine? From the client workstation, use the Xnest utility as follows:
For example, if my Linux workstation is named oemprod and I want to remotely access node racdb2:
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHat... 20/02/2011
Configuring XDMCP and GDM on Red Hat Linux Page 5 of 6
Troubleshooting
Probably the most common error when configuring graphic remote login access is the Linux firewall
rules. Make certain the Linux firewall rules allow the XDMCP protocol to pass:
Finally, ensure the following ports and protocols are able to pass through the firewall:
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHat... 20/02/2011
Configuring XDMCP and GDM on Red Hat Linux Page 6 of 6
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHat... 20/02/2011