Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2209
  • Last Modified:

X11 Emulation

Hi,

I have a requirement of emulating the UI triggered on the X box (Solaris,AIX) on Mac OS X.

On windows I am using Cygwin to emulate the UI triggered on AIX and Solaris.(using export DISPLAY)

Is there any tool on mac which is similar to cygin using which I can emulate the UI from X box.

Thanks
Rishi
0
RishiBang
Asked:
RishiBang
4 Solutions
 
woolmilkporcCommented:
Hi,

the OpenSource X11 server for OS X should be here:

http://www.opensource.apple.com/source/X11server/

Look here for instructions:

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

wmp
0
 
timshelCommented:
X11 also comes as an option on the Mac OS X install DVD; it does get installed by default on some versions of OS X. Once installed, the X11 server lives at /Applications/Utilities/X11.app
0
 
RishiBangAuthor Commented:
Hi wmp,

I am running Solaris 10 (Java Desktop )inside VMware fusion and I want to display the GUI triggered on Solaris to be displayed on Mac OS X using X11.

I am using NAT settings on Fusion for Solaris VM. But I am unable to ping Mac from Solaris.

I couldn't simulate the X11 as described in the link you have given as I cannot execute export DISPLAY if I unable to ping to he host OS (Screeshot attached).

Pls let me know if I am missing anything here.

Thanks,
Rishi
Picture-1.png
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
alexmay77Commented:
Hi there! Solution is very simple

You need to get access to whole desktop (solaris graphical login to desktop) or only for some Xwindow (Solaris) apps?
There is some ways to access your X desktop.
1st -get an access for an application: here is example:
Starlight - OS X host, 192.168.0.112 - Opensolaris 09/06 host
Open terminal on OSX host

StarLight-2:~ alexander$ ssh -X alex@192.168.0.112 gnome-about
Password:
Xlib:  extension "RANDR" missing on display "localhost:11.0".
[i entered my opensolaris password and gnome-about window appear on osx desktop]

^CKilled by signal 2.
StarLight-2:~ alexander$

or you may use another way - start Xephyr (nested X server for OS X)
here is example:

StarLight-2:~ alexander$ Xephyr -query 192.168.0.112
[in this example 192.168.0.112 - opensolaris host]
remote X (XDMCP) login on solaris must be enabled.

Note, that you must have networking between guest and host OS enabled!!!
Do you have X11.app installed on OS X?

About-the-GNOME-Desktop-1.jpg
Xephyr-on-----ctrl-shift-grabs-m.jpg
0
 
RishiBangAuthor Commented:
Hi alexmay77,

Thanks for the detailed info.

I will try the steps you have mentioned.

Note, that you must have networking between guest and host OS enabled!!!  

Yes I have this enabled (I have the NAT network setting in my Fusion for the VM)

Do you have X11.app installed on OS X?

Yes its installed and available in Applications/Utilities (Screen attached)

Thanks,
Rishi
Picture-1.png
0
 
RishiBangAuthor Commented:
Hi alexmay77,

I have tried the commands you have given to connect to Solaris 10 running inside my VMWare Fusion.

I have used Xephyr -query <mysolaris IP> command. But its not working properly (see the screen attached)

Pls let me know if I am missing anything here.

Thanks,
Rishi
Picture-1.png
0
 
timshelCommented:
You also have to point the Solaris box at the OS X Xephyr display. Start Xephyr on OS X specifying the display number to use, ie:

$ Xephyr :2

will start with display :2.0.

Then log into Solaris; point the DISPLAY variable at your Xephyr instance by running:
export DISPLAY=<mac_ip_address>:2.0

Try running an xterm and see what you get. All being well you will see an xterm window in your Xephyr instance; but if not you may have to do some mucking round with magic cookies to get the Xephyr server to accept the connection from the Solaris X clients...

Next step would be to start your window manager / desktop environment from the terminal session.
0
 
timshelCommented:
However, if you're just wanting to display a particular application in OS X, why don't you just use alexmay77's suggestion of SSH:


1. From OS X terminal session, run: ssh -X <solaris-username>@<solaris-IP-address>
2. Run your X client; eg. xterm. SSH automatically sets up $DISPLAY for you and routes the X traffic through the encrypted SSH session back to Mac OS X's X11 server.

--
Timshel
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now