View Single Post
  #2  
Old November 21st, 2005, 06:51 AM
irobot2005 irobot2005 is offline
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
irobot2005 is on a distinguished road
Quote:
Originally Posted by Tom.bEE
Hi there,

A few weeks ago I switched my Desktop OS from Linux to MacOS X (10.4.2). I used Linux (Mandrake, Slakware, Debian, Gentoo etc.) for about 2.5yrs as my preferred Desktop OS.

Now that I've used OS X for a couple of weeks, I really really need to run some X11-programs I am used to (ethereal, NmapFE and maybe Kate).

I tried Fink to have them run on my Mac, but after having some trouble I decided to run all Linux-Apps remotely on my Debian-Server-Box. I think this is a better way, as these apps have been tested and mostly developed for Linux. So no hassle with bad ports and this kind of crap.

After installing X11 (usual Apple-Release) on my Mac, I did a "xhost +" (yes, I do have a firewall and no untrusted computers around ), logged into my Debian-Box and could instantly run any X-Application I wished to.

That was easy, I thought. Actually the easy configuration was it, that let me switch to MacOS.

But unfortunately after this first test, my apps are unable to find my DISPLAY again. Now I'm not able to run any programs using remote X anymore ;( (I do not know why, I didn't change anything. It just didn't work anymore)

I always do the xhost-stuff and I also tried to forward X with ssh. I did turn on forwarding in sshd_config and ssh_config on both sides (each).

No change. $DISPLAY is set in xterm running on the Mac. But when I ssh into my Debian-Box using the -X option the DISPLAY-Variable gets lost.

I also tried to do it without ssh. No chance, no display.

I always get this:

ux-server:~# DISPLAY=192.168.10.22:0.0 ethereal

(ethereal:10099): Gtk-WARNING **: cannot open display:


I googled around the world for this, but all threads I found don't match my case. They all forgot to turn forwarding on or didn't give access using xhost.

I'm really stuck now.

One thing to mention: On Linux the X-Server uses ports 6000+ for remote-x. On my Mac no port 6000 or above is used. Maybe this is the reason why "DISPLAY=192.168.10.22:0.0 ethereal" couldn't connect?

Please help! If I can use fully Remote-X on my Mac I will totally be happy with this gorges thing of computer.

Thank you very much,
Thomas
X stopped working correctly when I upgraded to Tiger, the primary culprit seems to be a new version of ssh (see ssh man page on -X and -Y flags). I did two things to get things to work again. Added trusted X11 forwarding, so I now have:

ForwardX11 yes
ForwardX11Trusted yes

in /etc/ssh_config. I also nuked my X11 preference file, so if I type:

defaults read com.apple.x11

at the prompt, I only see:

{
"NSWindow Frame x11_apps" = "527 546 486 332 0 0 1440 878 ";
"done_xinit_check" = 1;
}
Reply With Quote