Unix Problem - Exporting display to a Virtual Machine, This is a tricky one |
![]() ![]() |
Unix Problem - Exporting display to a Virtual Machine, This is a tricky one |
Apr 8 2008, 08:55 PM
Post
#1
|
|
![]() Geek In Training ![]() ![]() Posts: 67 From: Tasmania, Australia OS: Windows XP Pro |
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. This post has been edited by funtmachine: Apr 8 2008, 08:57 PM |
|
|
Apr 9 2008, 07:44 PM
Post
#2
|
|
![]() Trusted Tech Posts: 929 From: Plateau OS: Linux, DSL OS,Win95, 98, XP |
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. |
|
|
Apr 10 2008, 01:05 AM
Post
#3
|
|
![]() Geek In Training ![]() ![]() Posts: 67 From: Tasmania, Australia OS: Windows XP Pro |
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. This post has been edited by funtmachine: Apr 10 2008, 01:06 AM |
|
|
Apr 10 2008, 06:42 PM
Post
#4
|
|
![]() Trusted Tech Posts: 929 From: Plateau OS: Linux, DSL OS,Win95, 98, XP |
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).
|
|
|
Apr 14 2008, 01:35 AM
Post
#5
|
|
|
New Member ![]() Posts: 1 OS: Linux |
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. This post has been edited by ZiggyFish: Apr 14 2008, 01:39 AM |
|
|
![]() ![]() |
|
Time is now: 20th July 2008 - 04:12 PM |
| Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk. |