Connecting to Xdm with a Mac

bigdweeb

Registered
I have a server that I connect to through Xdm from a Windows box with Hummingbird Exceed. This allows me to display the whole desktop remotely on my PC. I am trying to figure out a way to do this with my Powerbook as well. Does anyone know of a way to achieve this with Mac's builtin X11 server?
 
Yes. Run the X11 server, and bring up an xterm terminal window. Then, ssh across to the server you want to connect to and once you're in any X11 application you run will appear on your Mac's desktop (this is called "piping"). I recommend you run whatever window-manager you like to use, such as KDE or gnome.

With a little tweaking, you can even use shell scripts and so on to automate the whole task of connecting.
 
Well, yes this would allow individual X applications to display on your Macintosh X server. Although it's not really "piping" but "tunnelling X". However, what if you want to connect to the remote X server via XDMCP such that you'll get a full-screen login (similar to what you would get if you sat the system console)? Well, turns out you can do that too.

Ideally, you would do:

sudo X -query server_name_or_IP_address

however when I tried this to connect to a Linux box, no dice. I got a "XDMCP fatal error: Manager unwilling Host unwilling" even though I can connect just fine from a Win2k PC with Cygwin. But you can do this:

sudo X -indirect server_name_or_IP_address -terminate

[edit] You probably want to use the "-terminate" flag to prevent cycling when you logout (i.e. another XDMCP Host Window popping up)[/edit]

After a moment, the familiar XDMCP Host Window pops up. You can add the IP address into the Host window and click "Add". It then shows up in the list of hosts, and even though it reports (for me anyway) "Display not authrorized to connect" alongside the remote X server name, when you clik on it and hit "Accept", a moment later you've got your remote desktop login window.

One caveat - my tests of this don't allow custom sizes (i.e. as in Linux where you could say "X -screen 0 800x600+0+0") so it's full-screen. Hence the friendly OS X Dock will get in the way. So you might want to shift it, or your KDE or Gnome taskbar, to the sides so they don't get in each others' way.

Tested this on OS X 10.4.2, remote system SuSE Linux 9.3 Professional.
 
Back
Top