geek ('gēk), noun.
1. Obsessive Computer User: somebody who enjoys or takes pride in using computers or other technology, often to what others consider an excessive degree
2. Someone with greater than normal computer skills.

Geeks To Go - Free Computer Help
Welcome Guest ( Log In | Register ) to Geeks to Go Computer Help Forum! Here you'll find free, friendly help and support for all your computing questions. Once registered - you'll have the ability to post your question in the appropriate category below. Additionally, if you can assist another member by sharing your computing knowledge, please feel free to post a reply! Best of all - Registration and all assistance, is FREE! Once you've completed registration, simply click the appropriate category below, click on the "new topic" button, and post your question! What are you waiting for? (registering removes advertising)
Recommended: Click Here for a Free Registry Scan [Sponsored Link]
      
 
Reply to this topicStart new topic
> Unix Problem - Exporting display to a Virtual Machine, This is a tricky one
funtmachine
post Apr 8 2008, 08:55 PM
Post #1


Geek In Training
**

Group: GeekU Freshman
Posts: 66
Joined: 31-May 05
From: Tasmania, Australia
Member No.: 60,261
Operating System:
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
Go to the top of the page
 
+Quote Post
Kemasa
post Apr 9 2008, 07:44 PM
Post #2


Trusted Tech
Group Icon

Group: Tech Staff
Posts: 895
Joined: 20-November 05
From: Plateau
Member No.: 141,127
Operating System:
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.
Go to the top of the page
 
+Quote Post
funtmachine
post Apr 10 2008, 01:05 AM
Post #3


Geek In Training
**

Group: GeekU Freshman
Posts: 66
Joined: 31-May 05
From: Tasmania, Australia
Member No.: 60,261
Operating System:
Windows XP Pro



Kemasa,

Thanks for your reply smile.gif

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
Go to the top of the page
 
+Quote Post
Kemasa
post Apr 10 2008, 06:42 PM
Post #4


Trusted Tech
Group Icon

Group: Tech Staff
Posts: 895
Joined: 20-November 05
From: Plateau
Member No.: 141,127
Operating System:
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).
Go to the top of the page
 
+Quote Post
ZiggyFish
post Apr 14 2008, 01:35 AM
Post #5


New Member
*

Group: Member
Posts: 1
Joined: 25-February 08
Member No.: 240,450
Operating System:
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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


RSS Time is now: 16th May 2008 - 02:15 AM
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.

© Geeks To Go, Inc. | All Rights Reserved | Link to Us!