DISPLAY=:0.0 vs DISPLAY=localhost:0.0
I'm trying to learn more about X11. Omitting the hostname from the DISPLAY variable should imply the server is running locally, yes?
From a terminal running in Ubuntu: Code:
$ echo $DISPLAY Code:
$ DISPLAY=localhost:0.0 xeyes Code:
$ DISPLAY=127.0.0.1:0.0 xeyes |
With DISPLAY=localhost:0.0 you are asking to connect to an X11 server via TCP. Your X server is most likely not listening on a TCP socket.
|
I never did get what the OP was asking.
echo something is you telling the system to report. In the first case it is the name of the terminal but that may be that hostname file is not set. Set it and your terminal ought to then say the name and the ending such as myscreen:0 or on some systems myscreen:0.0 Then run xeyes -diaplay myscreen:0 |
Quote:
|
Run 'xhost +localhost' first. Be careful with xhost..as eeekster eluded to it's generally not a good idea to listen for X connections on TCP.
|
Quote:
Quote:
|
should be hostfile not host file.
the echo $DISPLAY :0 proves that there is no name on that terminal. I assumed that the OP has a gui running such as kde or gnome or such. That may be wrong. |
I actually did have /etc/hostname set (if that's what you meant), but that doesn't seem to affect whether $DISPLAY contains the hostname or not. This, however:
Quote:
Thanks very much! |
All times are GMT -5. The time now is 10:12 PM. |