FreeBSD 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:
  • For KDM:
    Open /etc/X11/xdm/xdm-config comment out the "requestPort" option as following:

    DisplayManager.requestPort: 0 ==>
    !DisplayManager.requestPort: 0


    Open /etc/X11/xdm/Xaccess and remove the initial "#" character for the following line:

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

2. Firewall (TCP/UDP Ports) Configuration

  • 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.


3. Reboot the remote host and start Xmanager

# init 3; init 5