CentOS 4.x, 5.x, 6.x XDMCP Configuration

1. Display manager configuration

  • Change runlevel to 5
    Open/etc/inittab and set the initial runlevel to 5 as following:

    id:5:initdefault:
  • Configure GDM
    If you are using kdm, skip this section and go to 'Configure KDM' section below.
    Open the following GDM configuration file and set the Enable entry to true in the [xdmcp] section:

    /etc/X11/gdm/gdm.conf (CentOS 4)
    /etc/gdm/custom.conf (CentOS 5, 6, If the file does not exists, create one)

    [xdmcp]
    Enable=1
  • Configure KDM
    If you are using gdm, you can skip this step.

    Open /etc/X11/xdm/Xaccess and remove the # character in front of the line:

    #* #any host can get a login window ==>
    * #any host can get a login window


    Then, find the [xdmcp] section in the /etc/kde/kdm/kdmrc file and set Enable to true like the following example:

    [xdmcp]
    Enable=1 (or 'true')


2. Reboot the remote host


# init 3; init 5


3. Firewall (TCP/UDP Ports) Configuration and start Xmanager

  • Open UDP port 177 from the PC to the remote host direction.

  • Open incoming TCP ports 6000~6010 from the remote host to your PC.