Meaningless Drivel is fun!*
The moose likes Linux / UNIX and the fly likes DISPLAY issue - xhost - Cygwin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "DISPLAY issue - xhost - Cygwin" Watch "DISPLAY issue - xhost - Cygwin" New topic
Author

DISPLAY issue - xhost - Cygwin

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
Using Cygwin started the startxwin.
DISPLAY varaible set in the local windows $ DISPLAY=localhost:0.0 and $ export DISPLAY
Also remote host added to xhost $ xhost remote-host-name

on the Remote machine (LINUX), added DISPLAY=remote-host:0.0

Still getting display issue - not able to run Installer GUI from remote machine.
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 964
    
  10

kri shan wrote:
on the Remote machine (LINUX), added DISPLAY=remote-host:0.0


Surely that should be
DISPLAY=TheHostNameOfTheMachineHostingTheXServert:0.0
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
on the Remote machine (LINUX), added DISPLAY=remote-host:0.0


It is typo. It is DISPLAY=local-host:0.0

Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 964
    
  10

kri shan wrote:
on the Remote machine (LINUX), added DISPLAY=remote-host:0.0


It is typo. It is DISPLAY=local-host:0.0



That still has to be wrong. The first part of DISPLAY environment variable value indicates the machine name/IP address of the X Server which in your case is not 'localhost' since the X Server is on the Windows box. You need the machine name/IP address of the Windows box.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
getting following error.

>>> Could not execute auto check for display colors using command /usr/X11R6/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 964
    
  10

kri shan wrote:getting following error.

>>> Could not execute auto check for display colors using command /usr/X11R6/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<


I've never met that one but it suggests that either you still have not specified the DISPLAY environment variable properly or the X server is not responding correctly. I haven't run an X Server on Cygwin for some time; when I have to run one on Windows I use Xming. Google is your friend.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11280
    
  59

I just tried the following

In one terminal, I typed 'X' - nothing else, just a call to start the basic X server. This started, and opened a blank window with nothing in it, and no way to interact with it.

In another terminal, I ran the following:


The xeyes application started in the X Server window.

Perhaps you could try that version of setting the DISPLAY?


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15647
    
  15

Just to clarify what Richard said:

X Windows is completely contrariwise to what most people think of as client and server. In X, the "server" is your terminal machine and the "client" is the machine on which the application is actually running.

In the case where you are running an X server on a Windows machine, that machine must be logged in as an OS user to the client machine. If you use a clear-text connection (NOT RECOMMENDED!), you need an open firewall port 6000 on the client machine for the X server to talk to. If you are using an ssh login, the "-X' option will provide an encrypted tunnel for X.

On the server, "localhost:0.0" is the norm, or more briefly, just "0.0", indicating that the current machine will be the GUI interface and the primary display screen will present the app. On the client, you have to do the appropriate enabling for that server, and at that point, I have to aim you in the direction of the manual, since I'm out of practice.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DISPLAY issue - xhost - Cygwin
 
Similar Threads
How to connect to X11 server
Installation error in Oracle's Universal Installer
shutdown remote JBoss server
Need help to install Eclipse on AIX-Unix
I know program works but problem with display