05 November 2006

X11, Mac OS X and Fedora

It took me a while to figure this one out.

What I was trying to do was to run X11 applications from my linux box on my Mac. Here's the docs on how to do it:

http://developer.apple.com/opensource/tools/runningx11.html

The problem was that I was getting an error like this:

X11 connection rejected because of wrong authentication.
X connection to localhost:12.0 broken (explicit kill or server shutdown).


Turns out I has a couple of things going on. First, I guess something in my /etc/ssh/sshrc file was causing problems on my linux box. I moved that file out of the way and then got this error:

/usr/bin/xauth: error in locking authority file


I ran this command on the linux box:


xauth -b quit


Logged out, then back in. Problem solved. Now I can run my linux X apps remotely on my Mac. Pretty cool.

2 comments:

harold said...

I haven't been able to get the ssh -X way of running xterm from an AIX system that I login to. I use the xhost method instead:

On the Mac, run these commands:

$ defaults write com.apple.x11 nolisten_tcp -boolean false
$ defaults write com.apple.x11 no_auth -boolean false

This command will show the new settings:

$ defaults read com.apple.x11

Then, add the system to the permitted list:

$ xhost +boxname

mhatrey said...
This comment has been removed by the author.