staging.inyokaproject.org

Keine Verbindung mehr zu x11vnc VNC

Status: Ungelöst | Ubuntu-Version: Ubuntu 18.04 (Bionic Beaver)
Antworten |

luziva

Avatar von luziva

Anmeldungsdatum:
14. August 2005

Beiträge: 56

Guten Tag zusammen,

auf meinem Server habe ich mir einmal testweise 18.04 in der Desktopversion installiert. Leider schaffe ich es nicht mehr dort einen VNC-Server zu installieren. Der bisherige Weg führt nicht zum Ziel. Bisher war dies recht einfach möglich:

1
2
sudo apt install x11vnc
sudo x11vnc -storepasswd /etc/x11vnc.pass

Systemd (/etc/systemd/system/x11vnc.service) anlegen:

[unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess \
  -localhost -forever -loop -noxdamage -repeat \
  -rfbauth /etc/x11vnc.pass \
  -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

Systemd aktivieren:

1
systemctl enable x11vnc.service

Wenn ich nun neu starte und versuche lokal mit remmina auf den eigenen Desktop (localhost, localhost:5900, [localhost]:5900) zuzugreifen, dann kommt nur: Verbindung zum VNC-Server fehlgeschlagen

Inhalt von /var/log/x11vnc.log:

20/05/2018 09:11:26 passing arg to libvncserver: -rfbauth
20/05/2018 09:11:26 passing arg to libvncserver: /etc/x11vnc.pass
20/05/2018 09:11:26 passing arg to libvncserver: -rfbport
20/05/2018 09:11:26 passing arg to libvncserver: 5900
20/05/2018 09:11:26 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 4747
/tmp/fd.VIirGe: 1: /tmp/fd.VIirGe: netstat: not found
xauth:  unable to generate an authority file name
/tmp/fd.VIirGe: 1: /tmp/fd.VIirGe: netstat: not found
20/05/2018 09:11:26 -auth guess: failed for display='unset'
20/05/2018 09:11:26 -auth guess: since we are root, retrying with FD_XDM=1
/tmp/fd.U0JnPi: 1: /tmp/fd.U0JnPi: netstat: not found
20/05/2018 09:11:26 -auth guess: failed for display='unset'

sebix Team-Icon

Ehemalige

Anmeldungsdatum:
14. April 2009

Beiträge: 5584

luziva schrieb:

Inhalt von /var/log/x11vnc.log:

20/05/2018 09:11:26 passing arg to libvncserver: -rfbauth
20/05/2018 09:11:26 passing arg to libvncserver: /etc/x11vnc.pass
20/05/2018 09:11:26 passing arg to libvncserver: -rfbport
20/05/2018 09:11:26 passing arg to libvncserver: 5900
20/05/2018 09:11:26 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 4747
/tmp/fd.VIirGe: 1: /tmp/fd.VIirGe: netstat: not found
xauth:  unable to generate an authority file name
/tmp/fd.VIirGe: 1: /tmp/fd.VIirGe: netstat: not found
20/05/2018 09:11:26 -auth guess: failed for display='unset'
20/05/2018 09:11:26 -auth guess: since we are root, retrying with FD_XDM=1
/tmp/fd.U0JnPi: 1: /tmp/fd.U0JnPi: netstat: not found
20/05/2018 09:11:26 -auth guess: failed for display='unset'

Eine Vermutung: Es scheint als wuerde netstat benoetigt. Falls nicht installiert, ist das Programm im Paket net-tools.

dirkolus

Anmeldungsdatum:
17. Mai 2011

Beiträge: 2180

Läuft ein XServer (bzw. grafische Oberfläche)? Wenn ja, muss Du dem VNC noch eine Umgebungsvariable DISPLAY (normalerweise ${hostname}:0) beibringen.

Dirk

luziva

(Themenstarter)
Avatar von luziva

Anmeldungsdatum:
14. August 2005

Beiträge: 56

Danke für die Antworten schon einmal.

Installation von net-tools hat mich nicht richtig weiter gebracht.

Es scheint am fehlenden Dsiplay zu liegen. Ein hinzufügen von -display :0 oder auch 1 oder 2 bringt die gleichen Fehlermeldungen.

Hat jemand anderes x11vnc am laufen unter 18.04?

04/06/2018 21:33:54 passing arg to libvncserver: -rfbauth
04/06/2018 21:33:54 passing arg to libvncserver: /etc/x11vnc.pass
04/06/2018 21:33:54 passing arg to libvncserver: -rfbport
04/06/2018 21:33:54 passing arg to libvncserver: 5900
04/06/2018 21:33:54 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 3170
xauth:  unable to generate an authority file name
04/06/2018 21:33:54 -auth guess: failed for display=':0'
04/06/2018 21:33:54 -auth guess: since we are root, retrying with FD_XDM=1
04/06/2018 21:33:54 -auth guess: failed for display=':0'

dirkolus

Anmeldungsdatum:
17. Mai 2011

Beiträge: 2180

Konntest Du Dich mal an Deinem 'Server' grafisch anmelden und x11vnc per Hand starten? Da tut man sich leichter, die Display-Variable zu setzen. Evtl. gibt's da noch ein Xauth-Thema

xauth:  unable to generate an authority file name

Dirk

luziva

(Themenstarter)
Avatar von luziva

Anmeldungsdatum:
14. August 2005

Beiträge: 56

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.

amiba

Anmeldungsdatum:
22. Januar 2008

Beiträge: 126

Bei mir ist es nicht möglich auf einem PC unter Ubuntu 18.04 per x11vnc zuzugreifen, weil ich das Display nicht verwalten kann.

Weiß nicht wem das gelingt, aber ich habe teilweise 400km eine Richtung zu den Rechnern, die ich supporte und wenn ich einem Kunden nicht auf den Rechner sehen kann, ärgert mich das, vor allem dann, wenn es bisher einfach ging. Gnome scheint völlig unbrauch bar zu sein, was das betrifft oder man hat es einfach so versteckt, daß man es kaum sieht. Wem das etwas bringt weiß ich nicht aber könnte sein, daß die NSA überall dazu will und man gezwungen wird Teamviewer zu installieren, was bei mir auf Grund der Datengeschwindigkeit kaum geht, da meine Internetverbindung dafür zu langsam ist.

Antworten |