I am connecting to a Linux CentOS 2.6 computer via SSH wit the display deported on my screen (using MobaXterm). It is also possible to access to this computer "physically".
However, I would like a way to inform people that may want to access "physically" to the computer that I am currently using it via SSH.
One way would be for them to make who
in a terminal and see whether someone is connected from another computer. However, I don't want them to have to check this manually each time (they may - and will - forget this check).
Thus, I would like a way to open a window on THEIR display (i.e. the screen plugged to the computer) with a message for them. Somthing like a text into gedit would do the work.
Can I do that? Can I open an application on a different display than mine?
xterm -display :0.0
instead ofxterm -display 0:0
you answered. I'm not sure if it is a typo or if there is a difference (looks like a typo to me). – Laurent C. Apr 08 '14 at 15:20-display 0:0
works for me on a local console -- and in fact,:0.0
fails with a "No protocol" error. Lo and behold, it's actually a network address...there's a great discussion of that here; I've edited a link to that into the answer too. – goldilocks Apr 08 '14 at 15:44