Ok,
wenn ich mich über die Benutzeroberfläche anmelde und dann einfach x11vnc von Hand starte (ohne sudo), dann wird der Bildschirm :0 eingerichtet und ich kann mich über einen VNC-Client verbinden.
Fragt sich jetzt, wieso dies nicht (mehr) vor der Anmeldung über systemd funktioniert.
Gruß
Benjamin
ich@040-ubuntu-gui:~$ x11vnc -auth guess
###############################################################
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@ @#
#@ ** WARNING ** WARNING ** WARNING ** WARNING ** @#
#@ @#
#@ YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!! @#
#@ @#
#@ This means anyone with network access to this computer @#
#@ may be able to view and control your desktop. @#
#@ @#
#@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@ @#
#@ You can create an x11vnc password file by running: @#
#@ @#
#@ x11vnc -storepasswd password /path/to/passfile @#
#@ or x11vnc -storepasswd /path/to/passfile @#
#@ or x11vnc -storepasswd @#
#@ @#
#@ (the last one will use ~/.vnc/passwd) @#
#@ @#
#@ and then starting x11vnc via: @#
#@ @#
#@ x11vnc -rfbauth /path/to/passfile @#
#@ @#
#@ an existing ~/.vnc/passwd file from another VNC @#
#@ application will work fine too. @#
#@ @#
#@ You can also use the -passwdfile or -passwd options. @#
#@ (note -passwd is unsafe if local users are not trusted) @#
#@ @#
#@ Make sure any -rfbauth and -passwdfile password files @#
#@ cannot be read by untrusted users. @#
#@ @#
#@ Use x11vnc -usepw to automatically use your @#
#@ ~/.vnc/passwd or ~/.vnc/passwdfile password files. @#
#@ (and prompt you to create ~/.vnc/passwd if neither @#
#@ file exists.) Under -usepw, x11vnc will exit if it @#
#@ cannot find a password to use. @#
#@ @#
#@ @#
#@ Even with a password, the subsequent VNC traffic is @#
#@ sent in the clear. Consider tunnelling via ssh(1): @#
#@ @#
#@ http://www.karlrunge.com/x11vnc/#tunnelling @#
#@ @#
#@ Or using the x11vnc SSL options: -ssl and -stunnel @#
#@ @#
#@ Please Read the documention for more info about @#
#@ passwords, security, and encryption. @#
#@ @#
#@ http://www.karlrunge.com/x11vnc/faq.html#faq-passwd @#
#@ @#
#@ To disable this warning use the -nopw option, or put @#
#@ 'nopw' on a line in your ~/.x11vncrc file. @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
###############################################################
05/06/2018 15:53:29 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 18427
xauth: file /home/ich/.Xauthority does not exist
05/06/2018 15:53:29 -auth guess: using default XAUTHORITY for display='unset'
05/06/2018 15:53:29 XOpenDisplay("") failed.
05/06/2018 15:53:29 Trying again with XAUTHLOCALHOSTNAME=localhost ...
05/06/2018 15:53:29
05/06/2018 15:53:29 *** XOpenDisplay failed. No -display or DISPLAY.
05/06/2018 15:53:29 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
05/06/2018 15:53:29 *** 1 2 3 4
05/06/2018 15:53:33 *** XOpenDisplay of ":0" successful.
05/06/2018 15:53:33
05/06/2018 15:53:33 Using X display :0
05/06/2018 15:53:33 rootwin: 0x2bd reswin: 0x2400001 dpy: 0xe41d39a0
05/06/2018 15:53:33
05/06/2018 15:53:33 ------------------ USEFUL INFORMATION ------------------
05/06/2018 15:53:33 X DAMAGE available on display, using it for polling hints.
05/06/2018 15:53:33 To disable this behavior use: '-noxdamage'
05/06/2018 15:53:33
05/06/2018 15:53:33 Most compositing window managers like 'compiz' or 'beryl'
05/06/2018 15:53:33 cause X DAMAGE to fail, and so you may not see any screen
05/06/2018 15:53:33 updates via VNC. Either disable 'compiz' (recommended) or
05/06/2018 15:53:33 supply the x11vnc '-noxdamage' command line option.
05/06/2018 15:53:33
05/06/2018 15:53:33 Wireframing: -wireframe mode is in effect for window moves.
05/06/2018 15:53:33 If this yields undesired behavior (poor response, painting
05/06/2018 15:53:33 errors, etc) it may be disabled:
05/06/2018 15:53:33 - use '-nowf' to disable wireframing completely.
05/06/2018 15:53:33 - use '-nowcr' to disable the Copy Rectangle after the
05/06/2018 15:53:33 moved window is released in the new position.
05/06/2018 15:53:33 Also see the -help entry for tuning parameters.
05/06/2018 15:53:33 You can press 3 Alt_L's (Left "Alt" key) in a row to
05/06/2018 15:53:33 repaint the screen, also see the -fixscreen option for
05/06/2018 15:53:33 periodic repaints.
05/06/2018 15:53:33
05/06/2018 15:53:33 XFIXES available on display, resetting cursor mode
05/06/2018 15:53:33 to: '-cursor most'.
05/06/2018 15:53:33 to disable this behavior use: '-cursor arrow'
05/06/2018 15:53:33 or '-noxfixes'.
05/06/2018 15:53:33 using XFIXES for cursor drawing.
05/06/2018 15:53:33 GrabServer control via XTEST.
05/06/2018 15:53:33
05/06/2018 15:53:33 Scroll Detection: -scrollcopyrect mode is in effect to
05/06/2018 15:53:33 use RECORD extension to try to detect scrolling windows
05/06/2018 15:53:33 (induced by either user keystroke or mouse input).
05/06/2018 15:53:33 If this yields undesired behavior (poor response, painting
05/06/2018 15:53:33 errors, etc) it may be disabled via: '-noscr'
05/06/2018 15:53:33 Also see the -help entry for tuning parameters.
05/06/2018 15:53:33 You can press 3 Alt_L's (Left "Alt" key) in a row to
05/06/2018 15:53:33 repaint the screen, also see the -fixscreen option for
05/06/2018 15:53:33 periodic repaints.
05/06/2018 15:53:33
05/06/2018 15:53:33 XKEYBOARD:
05/06/2018 15:53:33 Switching to -xkb mode to recover these keysyms:
05/06/2018 15:53:33 xkb noxkb Keysym ("X" means present)
05/06/2018 15:53:33 --- ----- -----------------------------
05/06/2018 15:53:33 X 0x40 at
05/06/2018 15:53:33 X 0x5b bracketleft
05/06/2018 15:53:33 X 0x5d bracketright
05/06/2018 15:53:33 X 0x7b braceleft
05/06/2018 15:53:33 X 0x7d braceright
05/06/2018 15:53:33 X 0x7c bar
05/06/2018 15:53:33 X 0x5c backslash
05/06/2018 15:53:33
05/06/2018 15:53:33 If this makes the key mapping worse you can
05/06/2018 15:53:33 disable it with the "-noxkb" option.
05/06/2018 15:53:33
05/06/2018 15:53:33
05/06/2018 15:53:33 X FBPM extension not supported.
05/06/2018 15:53:33 X display is capable of DPMS.
05/06/2018 15:53:33 --------------------------------------------------------
05/06/2018 15:53:33
05/06/2018 15:53:33 Default visual ID: 0x21
05/06/2018 15:53:33 Read initial data from X display into framebuffer.
05/06/2018 15:53:33 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
05/06/2018 15:53:33
05/06/2018 15:53:33 X display :0 is 32bpp depth=24 true color
05/06/2018 15:53:33
05/06/2018 15:53:33 Autoprobing TCP port
05/06/2018 15:53:33 Autoprobing selected TCP port 5900
05/06/2018 15:53:33 Autoprobing TCP6 port
05/06/2018 15:53:33 Autoprobing selected TCP6 port 5900
05/06/2018 15:53:33 listen6: bind: Address already in use
05/06/2018 15:53:33 Not listening on IPv6 interface.
05/06/2018 15:53:33
05/06/2018 15:53:33 Xinerama is present and active (e.g. multi-head).
05/06/2018 15:53:33 Xinerama: number of sub-screens: 1
05/06/2018 15:53:33 Xinerama: no blackouts needed (only one sub-screen)
05/06/2018 15:53:33
05/06/2018 15:53:33 fb read rate: 2301 MB/sec
05/06/2018 15:53:33 fast read: reset -wait ms to: 10
05/06/2018 15:53:33 fast read: reset -defer ms to: 10
05/06/2018 15:53:33 The X server says there are 12 mouse buttons.
05/06/2018 15:53:33 screen setup finished.
05/06/2018 15:53:33
05/06/2018 15:53:33 WARNING: You are running x11vnc WITHOUT a password. See
05/06/2018 15:53:33 WARNING: the warning message printed above for more info.
05/06/2018 15:53:33
The VNC desktop is: 040-ubuntu-gui:0
PORT=5900
******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?
The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval. It should work with any VNC viewer. Try it by running:
x11vnc -ncache 10 ...
One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching
05/06/2018 15:53:49 Got connection from client 192.168.111.8
05/06/2018 15:53:49 other clients:
05/06/2018 15:53:49 Normal socket connection
05/06/2018 15:53:49 Disabled X server key autorepeat.
05/06/2018 15:53:49 to force back on run: 'xset r on' (3 times)
05/06/2018 15:53:49 incr accepted_client=1 for 192.168.111.8:53926 sock=11
05/06/2018 15:53:49 Client Protocol Version 3.8
05/06/2018 15:53:49 Protocol version sent 3.8, using 3.8
05/06/2018 15:53:49 rfbProcessClientSecurityType: executing handler for type 1
05/06/2018 15:53:49 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
05/06/2018 15:53:49 Pixel format for client 192.168.111.8:
05/06/2018 15:53:49 32 bpp, depth 24, little endian
05/06/2018 15:53:49 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
05/06/2018 15:53:49 no translation needed
05/06/2018 15:53:49 Enabling X-style cursor updates for client 192.168.111.8
05/06/2018 15:53:49 Enabling full-color cursor updates for client 192.168.111.8
05/06/2018 15:53:49 Enabling cursor position updates for client 192.168.111.8
05/06/2018 15:53:49 Enabling KeyboardLedState protocol extension for client 192.168.111.8
05/06/2018 15:53:49 Enabling NewFBSize protocol extension for client 192.168.111.8
05/06/2018 15:53:49 Enabling SupportedMessages protocol extension for client 192.168.111.8
05/06/2018 15:53:49 Enabling SupportedEncodings protocol extension for client 192.168.111.8
05/06/2018 15:53:49 Enabling ServerIdentity protocol extension for client 192.168.111.8
05/06/2018 15:53:49 Using hextile encoding for client 192.168.111.8
05/06/2018 15:53:49 client 1 network rate 7359.9 KB/sec (166607.2 eff KB/sec)
05/06/2018 15:53:49 client 1 latency: 0.5 ms
05/06/2018 15:53:49 dt1: 0.0180, dt2: 0.0068 dt3: 0.0005 bytes: 181012
05/06/2018 15:53:49 link_rate: LR_LAN - 1 ms, 7359 KB/s
05/06/2018 15:53:50 client useCopyRect: 192.168.111.8 -1
05/06/2018 15:53:50 client_set_net: 192.168.111.8 0.0010
05/06/2018 15:53:50 created xdamage object: 0x240002c
05/06/2018 15:53:52 client_count: 0
05/06/2018 15:53:52 Restored X server key autorepeat to: 1
05/06/2018 15:53:52 viewer exited.
05/06/2018 15:53:52 deleted 40 tile_row polling images.