PDA

View Full Version : a "xhost +" like command for Mac os X apps (not X11)?


mikilon
02-21-2003, 10:23 AM
I wonder if there is a way to allow other users to open Mac OS X application on my display not X11.

For example: suppose I 'su admin' from terminal, and then try:
> /Applications/TextEdit.app/Contents/MacOS/TextEdit

I get the error:
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port

I wonder if there is a way like in X11 to map the display. Clearly
setenv DISPLAY
and xhost+
are not enough in this case.

Any clues?

Thanks,
Mickey

UltraNurd
02-22-2003, 01:13 AM
Sounds like you need a VNC server/client combo. Run the server on your source machine, and use a client (on any platform) to view and interact with your screen. I think you can even ssh tunnel your VNC connections.

sao
02-22-2003, 01:41 AM
Yes, VNC allows you to view a virtual desktop not only from the machine on which it is running, but from anywhere on the internet. If you use VNC for MacOS X you can run X-windows apps on your Mac and view them locally inside the MacOS X Aqua GUI, or from any computer on with a TCP/IP connection to the internet.

But, VNC or TightVNC can only serve X11 applications, not native MacOS X applications. If you want to display remotely the MacOS X Aqua desktop, use OSXVnc.

Check OSXVnc FAQs:

http://www.redstonesoftware.com/osxvnc/OSXvnc.html

or

http://www.RedstoneSoftware.com/osxvnc/