Enable XDMCP in Linux
Release:
RedHat Enterprise Linux 5
SUSE Linux 10
Problem:
Need to enable the xdmcp protocol in the Linux server for getting remote using XBrowser.
Solution:
In RHEL Server:
1) Install the gdm package
# yum install gdm
2) Enable the xdmcp protocol by adding the below entries in the custom.conf file.
# vi /etc/gdm/custom.conf
[security]
AllowRemoteRoot=true
DisallowTCP=false
[xdmcp]
Enable=true
Note: Here “AllowRemoteRoot=true” used to allow root access.
3) Restart the gdm service
# gdm-restart
4) Check weather xdmcp port is opened or not, using netstat command
# netstat –an | grep 177
udp 0 0 0.0.0.0:177 0.0.0.0:*
In SUSE Server:
5) Install the required 2 packages
# yum install gdm xorg-x11
6) Set the default display manager by editing the displaymanager file
# vi /etc/sysconfig/displaymanager
DISPLAYMANAGER="gdm"
DISPLAYMANAGER_REMOTE_ACCESS="yes"
7) Enable the xdmcp protocol by editing the gdm.conf file
# vi /etc/opt/gnome/gdm/gdm.conf
[security]
AllowRoot=true
AllowRemoteRoot=true
[xdmcp]
Enable=true
8) To make xdmcp listening on xdm by edit the xdm-config file
# vi /etc/X11/xdm/xdm-config
!DisplayManager.requestPort: 0
Note: Comment out this line for xdmcp listen on xdm
9) Restart the service and check with netstat
# rcxdm restart
# netstat –an | grep 177
udp 0 0 0.0.0.0:177 0.0.0.0:*
10) Verify from the Windows client using Xbrowser as root.
No comments:
Post a Comment