How can I figure out the right value for the DISPLAY variable?
Hi,
Here is my Linux version ... Code:
Linux qa1234c 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux Code:
Caused by: java.lang.Exception: java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable. |
try typing:
Code:
xhost + What xhost+ does is it grants access to everyone trying to access X server. If you want to limit it to localhost do a: Code:
xhost + localhost |
I tried this on a command line, but didn't get very far ...
Code:
ccqavob02c:/home/e18538 $ export DISPLAY=10.0 |
Most times, DISPLAY is
Code:
:0.0 Code:
localhost:0.0 There are different versions for the syntax. On my system, it is Code:
xhost + Code:
xhost +local: For all of these versions, you need the x server to be up and running. I'm not sure if xvfb is sufficient. |
Why "10.0"? The current one is usually ":0.0". Maybe ":10.0"? It's still weird, though.
Maybe you should check the google web toolkit docs and try to figure this out. Maybe you need to open a xnest or a xephyr on DISPLAY :10.0 . |
I think I'm missing what "xhost" is supposed to do. My question is how do I figure out what the valid values of DISPLAY should be? I'm still getting these errors ...
Code:
[e18538@qa3398c ~]$ export DISPLAY="localhost:0.0" Code:
[e18538@qa3398c ~]$ export DISPLAY=":0.0" |
It most likely depends on where you want to display. For instance -- you have a server and a client --
On server use: Code:
xhost + Code:
export DISPLAY=ServerIP:0.0 The above code will run xprogram from client on display 1 of server. So Same concept for doing this locally - Instead of there being two machines just do both steps on a single machine. Code:
xhost + |
All times are GMT -5. The time now is 08:52 PM. |