Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run a gui from unix box on my pc.

 
mike weister
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to figure out how to bring up a gui (you know, jframe, jpanels) on my pc, but with with code on a unix box.
I think I need to set the DISPLAY variable on unix to my pc ip. Is there anything else?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure--are Unix Java programs automagically X-aware?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to have an x-server running, which you then refer to with the DISPLAY setting.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like this one: http://www.straightrunning.com/XmingNotes/
 
mike weister
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys , so I will d/l that xserver on the pc, then set DISPLAY var on the unix box to <PC IP ADDRESS>:0 , does that sound correct?
 
Campbell Ritchie
Sheriff
Pie
Posts: 48957
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you have started an X-Server on your Windows box, you can from a windows command prompt connect to your Unix box with telnet or ssh - when connected via the command prompt, set DISPLAY to your windows host/IP-adr., so that your Unix box know where - and which - X-server to use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic