cancel
Showing results for 
Search instead for 
Did you mean: 

X11 on an Apple

Brad Marks
Super Advisor

X11 on an Apple

I don't know if this is a Mac qusetion or an HP question. Any help would be appreciated, though.

Running X11 windows on an Apple running os 10 (unix!).
Here's what I do on my PC to run glance in a motif (Hummingbird) window:
Telnet to H/P (hp-ux 10.20) and log on as root.
"export DISPALY=1.2.3.4:0"
gpm

When the same thing is tried from the Apple, gpm issues the following error messages:
Connection to display...
Xlib: connection to "1.2.3.4:0.0" refused by server.
Xlib: No protocol specified
Error: Cant open display: 1.2.3.4:0
Error: Couldn't find per display information.

X11 is new to Apple and has practically no documentation.

If anyone has an idea of what I'm up against here, I'd appreciate and award points.

Thanks,
Brad
It's not impossible -- it'll just cost more...
4 REPLIES
John Poff
Honored Contributor

Re: X11 on an Apple

Hi Brad,

I don't know anything about Macs or os 10, but when you get that message on a Unix/Linux system, it means that your local system [in this case, your Mac] has not authorized the remote system to export the display and run Xwindows on it. In Unix/Linux, you use the 'xhost' command to allow the remote system access to your machine. You can do:

xhost +somehost

or you can open it up for everybody:

xhost +

If the Mac os 10 is Unix underneath, you might just have an 'xhost' command you can run. Otherwise, you might poke around in your X Windows configuration on the Mac and see if there is a similar setting.

Have fun!

JP
Jeff Schussele
Honored Contributor

Re: X11 on an Apple

Hi Brad,

Agree with John.
Usually means you're workstation - the Apple in this case - has refused the session.

You need to run
xhost +
on it to allow it to accept the session. On HP it's in
/usr/bin/X11

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Shannon Petry
Honored Contributor

Re: X11 on an Apple

From everything I read, Max OS 10.X is freeBSD with a Modified X.

If this is the case, you should be able to run xhost + and enable open connections from outside terminals.

Now, whether or not this is the case is another story.

If you have a xhost command, then from a prompt

which xhost

should return the path and executable. If it's not found, then try find

find / -name "xhost" -print

If it returns nothing, then your SOL.

Regards,
Shannon
Microsoft. When do you want a virus today?
Brad Marks
Super Advisor

Re: X11 on an Apple

John, Jeff & Shannon,

Much thanks for your help today. The combination of xhost and a preference setting in X11 got thing to work. You've made my directory happy. Thus, you've made me happy.

Regards,
Brad
It's not impossible -- it'll just cost more...