Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Unix Problem - Exporting display to a Virtual Machine


  • Please log in to reply

#1
funtmachine

funtmachine

    Member

  • Member
  • PipPip
  • 69 posts
Hi all,

I have a machine running solaris 9 (192.168.0.2), and a Windows PC on the same subnet.

On the windows PC (192.168.0.3) is a copy of vmware player, running a Solaris 10 appliance (i have Dual monitor, the applicance runs on the second screen).

The solaris 10 virtual machine gets its own IP address (192.168.0.5). It is pingable from the solaris 9 machine and vice versa.
I have also used `xhost +` to allow traffic in from any machine.

Does anyone know how to export the $DISPLAY variable in a console on the solaris 9 machine, to the virtual machine running solaris 10?

I wish to be able to run X- applications from the console on the solaris 9 machihne, and have them appear on my display

I have tried export DISPLAY=192.168.0.5:0.0 and it doesn't work.


TIA,

Dave.

Edited by funtmachine, 08 April 2008 - 08:57 PM.

  • 0

Advertisements


#2
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,727 posts
You don't "export" the variable to the other machine. You set the display, then when you open a new program, it will use that display. How you set the DISPLAY variable in the shell depends on which shell you are using. Try setting the variable and then run "xterm" and see if it opens where it should.

If you want to see the whole screen, you might want to look at VNC (I think that is it). You can remotely connect to the other machine and access the console or another screen device.
  • 0

#3
funtmachine

funtmachine

    Member

  • Topic Starter
  • Member
  • PipPip
  • 69 posts
Kemasa,

Thanks for your reply :)

I meant set the $DISPLAY environment variable on the remote machine to the IP address of the vmware host.

The reason i need to do it this way is that The remote machine running solaris 9 is a server that I have console access to, and wish to run a gui program (IntelliJ) from that machine.

I can successfully make this work on another solaris terminal, but I want to do it using a virtual machine running inside of my windows machine.

I guess my question is more like "Is it possible to set my display on one machine to a vmware virtual machine, and then open a GUI app?"

btw i have tried zsh and bash on the remote machine.


Thanks,


Dave.

Edited by funtmachine, 10 April 2008 - 01:06 AM.

  • 0

#4
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,727 posts
I have not personally tried that, but it should work if you can access the machine, assuming that the network routing is correct and that there are no firewall issues on the remote machine (could be blocking).
  • 0

#5
ZiggyFish

ZiggyFish

    New Member

  • Member
  • Pip
  • 1 posts
if you have a ssh server running on this machine, you can use X forwarding. first you must enable it from the client. Client is done with the -X switch to SSH, Putty has a gui for this type of thing, you shouldn't need to put anything into the X display location box, but if that doesn't work try localhost:0 (also make sure on a windows machine you have a XServer running). For example try

ssh -X 192.168.0.2




Also VNC can do the same type of thing. Google for more information.

Edited by ZiggyFish, 14 April 2008 - 01:39 AM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP