Am 09.03.2017 um 17:28 schrieb cagsm:
I have once looked up some very basic way to grab some remotely running opensuse machine and see its real console pixels via vnc via vncviewer or similar.
The machines are running leap 42.2 and basically I am ssh-ing into them and running as root (or via sudo) the following line:
sudo x11vnc -localhost -nolookup -nopw -display :0 -auth guess
One machine works perfectly, prints out all sort of stuff that it is grabbing the local :0 session of X or vnc and those display and screen names and all that technical stuff.
But this other machine never managed to do that. It quits and comes with a mere output of four error lines:
09/03/2017 14:27:54 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 2028 xauth: file /root/.Xauthority does not exist 09/03/2017 14:27:54 -auth guess: failed for display=':0' 09/03/2017 14:27:54 -auth guess: since we are root, retrying with FD_XDM=1 09/03/2017 14:27:54 -auth guess: failed for display=':0'
What is wrong here and how can I make it work?
Is an X server running on the failing machine? Is X running on display 0? Try to figure out which user is logged in, tell them what you're doing, and use -auth /home/<user>/.Xauthority instead of -auth guess
The other machines it runs flawlessly detecting some of those settings automatically, and I can then vnc into it via an ssh-forwarded tcp port to the 5900 tcp port of that linux machine.
That .Xauthority file doesnt exist on the working machines either, just as a remark. Weird. Whats up here?
The .Xauthority file is created when a user logs in via a display manager. The file contains information to secure the communication between X server and clients. Without this, other users would be able to spy on a running session. root is the exception because it can read .Xauthority files of other users. Note: Forwarding a display as root without knowledge and consent of the user using the machine at the time is at least morally questionably. In many countries, it's illegal even with the consent of the user (in the same way as you can't "consent" to torture). Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org