HOWTO: Enable Remote XDMCP connections under Ubuntu 8.04
Posted: 7/1/2008 5:07:19 PM
By: Comfortably Anonymous
Times Read: 1,681
0 Dislikes: 0
Topic: Linux
Parent Message

Since I've been making these Ubuntu XDMCP HowTos for a while, I figured I'd better make one for the new 8.04 version.

I wrote the stuff at the bottom yesterday, and since then the bug in GDM has been fixed and there is a fix in the latest Ubuntu Updates that fixes this issue. So ignore the stuff about replacing GDM with KDM, no longer needed! :)

OK, to get it to work, make sure you're running the latest version of GDM, as the version that shipped with the release version of Ubuntu 8.04 DID NOT WORK!!!  If you've done an update since todays date [2008/07/02], you should have it. If not, go to System|Administration|Update Manager, click Check, then click Install Updates to get it.

To Configure GDM to allow XDMCP connections:

Go to System | Administration | Login Window. Once that's open, there's a few tabs:

  • General tab:

    - Make sure "Default Session" is checked, and Run Xclient script is selected.
    - Another setting to think about is the "Disable multiple logins for a single user" -It is checked by default. Depending on your needs you may wish to uncheck it. But as far as simply getting XDMCP connections working, it doesn't matter.
  •  Local tab:

    - Nothing here really matters, it's only for local logins, not XDMCP logins.
  • Remote tab:

    - By default, the Style is set to "Remote login disabled" - gotta change that for sure! Set for either "Same as Local" or "Plain with face browser". (I'm a little shy of the "Same as Local", simply because an earlier version of GDM had problems with that, but it's probably not a problem anymore.)
    - The rest of the settings are pretty much your choice. Under "Configure XDMCP" I enabled "Honor Indirect Requests" and increased my "Displays per host" (Which is easier to think of just as "Displays per User" for the most part, unless you have multiple people ) to 4 just because I sometimes log in more than once.
    - Under Logo, I picked ubuntu-screensaver.svg for the Image, instead of the default Debian logo, since this is Ubuntu. Just seems to make more sense that way. ;)
  • Accessibility tab:

    - This is your choice, based on your needs. Nothing here specifically affects XDMCP connections.
  • Security tab:

    - I'm not sure if it was needed, as the X Window protocol normally uses UDP packets, but I unchecked "Deny TCP connections to Xserver", I also unchecked "Never place cookies on NFS" simply because I don't use any NFS file systems.
    - Clicking "Configure X Server..." brings up a dialog for tweaking how you want things to work. I didn't change anything here. But take a look so you know what's configurable.
  • Users tab:

    - Once again, nothing here to modify unless you want to add/exclude certain users from access. You can set things like which face image to show as a default in the face browser

Click the Close button, which also saves the new settings. (You can look at /etc/gdm/gdm.conf-custom to see the new config file that was created.)

At this point, everything should be ready to go with just one last easy step - resetting GDM to pick up the new settings. You can look at previous posts to see several different ways to do this, but the absolute easiest way is to just hit CTRL-ALT-Backspace and it instantly kills your login and restarts GDM. Make sure you have anything else saved before doing this, because there is no conformation prompt, it just kills the session.

---------  Original Message for dealing with broken GDM -----------------

 I've spent way too much time lately trying to get XDMCP to work with the default GDM (Gnome Display Manager) that comes with Ubuntu 8.04. After doing a lot of research and experimentation, I'm finding that it seems that XDMCP support in the version of GDM provided with Ubuntu 8.04 just simply doesn't work. (I haven't found anyone out there that can get it to work either, there's a bug opened with Ubuntu, but it's only been assigned a low priority for some reason. Sure, I understand that not everyone needs XDMCP but for the people who do need it, it's pretty much a deal-breaker if you can't get XDMCP working!)

The solution I found: Install the KDE Display Manager, KDM. It worked perfectly the first time. Although it "ruins" a pristine Gnome-only environment since it has some KDE dependencies, but that's just techno-religious fanboyism anyway. You can still run Gnome just fine with KDM.

To Install KDM:

Easiest way (among many) is to just open the Synaptic Package Manager (Under System|Administration), click the Search button to search for KDM, put a checkmark next to KDM, and then click the Apply button. During the install, a dialog will pop up asking you which display manager should be set as the default - set it to KDM.

(Bad directions completely removed)

At this point, everything should be ready to go with just one last easy step - resetting KDM to pick up the new settings. You can look at previous posts to see several different ways to do this, but the absolute easiest way is to just hit CTRL-ALT-Backspace and it instantly kills your login and restarts KDM. Make sure you have anything else saved before doing this, because there is no conformation prompt, it just kills the session.

Hope this helps! Enjoy!

Rating: (You must be logged in to vote)