Quote:
Also, why does a client need to set it's DISPLAY on server as pointed by you.
|
the client when logged on via ssh has to set the display env. var. on the server to point anything executed in that shell to be forwarded to the clients machine. so if you were just using a local shell you could set DISPLAY to be localhost:0.0 and it would make not impact because thats the notmal behaviour.
Quote:
really i saw people working here on their SPARC m/c s setting DISPLAY by w.x.y.z:0.0
|
i've never seen it done like this but i'll take your word for it. the first 0 is the display number for sure
well. linux has 'virtual' displays. i'm not even going to attempt to explain this because it makes sense in my head but i can't put it into words!!
have a look at this tho
http://support.objectplanet.com/esup..._i=22&type=yes
Quote:
Why you need to set DISPLAY variable in UNIX/LINUX environmet always?
|
don't know what you mean by this. sorry
Quote:
Is it always there that every device on linux network and having capability of expressing Input/Output through GUI must have env. variable DISPLAY ?
|
not necessarily. its not essential. for example i might want to log into a server and just execute a couple of copy commands. i wouldn't need to forward the xserver output to my own display in that case. only if you want to use X forwarding do you need to set the DISPLAY variable
Quote:
4. Last but very silly question, why DISPLAY is ever put up as env. variable in
|
errm. good question. i believe all the enviroment variables are loaded into memory and therefore more quickly accessible than being put in a config file.
if i was to log into a box somewhere on the net then set the DISPLAY variable to point back to me. you could then log in with the same account from a different account with a different ip address and set the DISPLAY enviroment variable to point back to you.
this would work because each session will have its own set of enviroment variables.
this means that we could both work on the same machine with no conflict.
not such a silly question after all!!
hope i've cleared some things up. i can't really explain the whole display number thing. when you use VNC you have to specify which display you want to connect to and its the same sort of thing