Ubuntu 12.10 ~ 17.10 XDMCP Configuration

The above versions of Ubuntu's default user environment, Gnome(Ubuntu), use hardware acceleration to render the graphics. Therefore, when remotely connecting with Xmanager, you may not be able to access the the desktop user environment or if you are able to connect, it will run very slowly.

As such, if you are using the above Ubuntu versions, you will have to use a different desktop user environment.

Use the following instructions to install Xfce as the desktop user environment so you may connect to Ubuntu. These instructions require root privileges or the sudo command. Be extra careful when making configurations with root privileges.


XDMCP Configuration


  1. LightDM Configuration
    Configure the /etc/lightdm/lightdm.conf file as follows. If the file does not exist, create it.

    [XDMCPserver]
    enabled=true
  2. Firewall 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


    If you wish to temporarily remove the firewall to identify an issue, you can use the 'iptables -F' command. By default, iptables is not enabled on Ubuntu. Use the iptables -L command to verify whether or not it is running. For more information on the firewall consult your Ubuntu manual or contact Ubuntu technical support.

  3. Restart XDMCP service daemon
    Reboot your Linux machine or run the following command:

    $ sudo service lightdm restart
  4. Create Xmanager session
    When using LightDM, there may not be a response to an XDMCP broadcast. Therefore, depending on the Xmanager version, the sessions may not appear on Xmanager's list. If this is the case, try creating a new XDMCP session through the File menu or directly inputting the IP Address or Host Name in the address bar.



Installing the Xfce Desktop Environment

  1. Install a new user desktop environment (Xfce)

    $ sudo apt-get update
    $ sudo apt-get install xubuntu desktop
  2. Apply the new user desktop environment by restarting the XDMCP daemon

    $ sudo service lightdm restart
  3. After connecting with Xmanager, select the Xfce or Xubuntu session from the login screen