Using Mac OS X as an X-Windows display

Posted by: rob

Using Mac OS X as an X-Windows display - 07/03/2006 17:12

Does anyone know how to display X apps (running on a Linux box) on a Mac? There seems to be an X11 application which I ran, and I did an xhost + unixhost but the app can't connect. It connects fine to a PC running Cygwin.

There's probably some Mac magic to do!

Ta

Rob
Posted by: DWallach

Re: Using Mac OS X as an X-Windows display - 07/03/2006 17:21

Have you checked your firewall settings?
Posted by: wfaulk

Re: Using Mac OS X as an X-Windows display - 07/03/2006 19:34

I don't know if this is feasible in your situation, but have you tried using ssh to connect to the remote host? SSH X tunnels work quite well and don't require any xhost nonsense. You'll probably have to give the ssh command a "-X" (or maybe "-Y") option, and it has to be enabled in the ssh server's config file, but it works a charm barring all that. (Of course, I haven't done it under MacOS. I'll try when I get home.)
Posted by: gbeer

Re: Using Mac OS X as an X-Windows display - 08/03/2006 00:41

Quote:
Does anyone know how to display X apps (running on a Linux box) on a Mac? There seems to be an X11 application which I ran, and I did an xhost + unixhost but the app can't connect. It connects fine to a PC running Cygwin.

There's probably some Mac magic to do!

Ta

Rob


Is your Mac actually setup to display X? I was under the impression that the desktop was Aqua and it didn't do X11 unless the relevant installs are done.

Glenn
Posted by: drakino

Re: Using Mac OS X as an X-Windows display - 08/03/2006 00:46

My only experience with X11 on the Mac worked fine. Opened the X11 app, ran the xhost command, and then set the display variable on the server. After that, windows started appearing like I expected. The firewall would be the only thing I can think of as well.
Posted by: gbeer

Re: Using Mac OS X as an X-Windows display - 08/03/2006 01:18

Quote:
Does anyone know how to display X apps (running on a Linux box) on a Mac? There seems to be an X11 application which I ran, and I did an xhost + unixhost but the app can't connect. It connects fine to a PC running Cygwin.

There's probably some Mac magic to do!

Ta

Rob


Oh! Oh! After a reread of the above and drakino's post - You have to set the display variable on the remote machine and it has to be set before launching the app that is desired to show on the mac.
Posted by: rob

Re: Using Mac OS X as an X-Windows display - 08/03/2006 11:37

DISPLAY was set correctly, and X11 is installed. The firewall sounds like a good candidate - will take a look at it today.

Thanks

Rob