OK. Ich gehe davon aus das du mit der "GUI", die da bei dir läuft, du den lightdm meinst. Und natürlich ohne Anmeldung in einem beliebigen Desktop.
Nur, bist du dann an dem anderen Rechner auch auf keinem Desktop angemeldet oder hast du lediglich eine Shell geöffnet?
Wenn ich ich einer Shell zu root werden möchte gebe ich einfach su ein. Hat es einen bestimmten Grund warum du sudo -s eingibst?
Code:
lap2 login: papa
Password:
Last login Mon May 16 20:29:31 from console
su
Passwort:
Da ich ja das Script gebaut (ausführbar) und keinen Service angelegt habe starte ich wie folgt:Im Script steht dieses:
Code:
#!/bin/sh
/usr/bin/x11vnc -loop -nopw -xkb -repeat -noxrecord -nofixes -noxdamage -forever -rfbport 5900 -display :0 -auth /var/run/lightdm/root/\:0
Jede Menge Ausgaben wegen loop UND eine ganz andere Ausgabe, als die deinige.
Code:
17/05/2022 10:12:06 passing arg to libvncserver: -nofixes
17/05/2022 10:12:06 passing arg to libvncserver: -rfbport
17/05/2022 10:12:06 passing arg to libvncserver: 5900
17/05/2022 10:12:06 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 27613
17/05/2022 10:12:06 Using X display :0
17/05/2022 10:12:06 rootwin: 0x15c reswin: 0xa00001 dpy: 0x1c2a64f0
17/05/2022 10:12:06
17/05/2022 10:12:06 ------------------ USEFUL INFORMATION ------------------
17/05/2022 10:12:06
17/05/2022 10:12:06 Wireframing: -wireframe mode is in effect for window moves.
17/05/2022 10:12:06 If this yields undesired behavior (poor response, painting
17/05/2022 10:12:06 errors, etc) it may be disabled:
17/05/2022 10:12:06 - use '-nowf' to disable wireframing completely.
17/05/2022 10:12:06 - use '-nowcr' to disable the Copy Rectangle after the
17/05/2022 10:12:06 moved window is released in the new position.
17/05/2022 10:12:06 Also see the -help entry for tuning parameters.
17/05/2022 10:12:06 You can press 3 Alt_L's (Left "Alt" key) in a row to
17/05/2022 10:12:06 repaint the screen, also see the -fixscreen option for
17/05/2022 10:12:06 periodic repaints.
17/05/2022 10:12:06
17/05/2022 10:12:06 XFIXES available on display, resetting cursor mode
17/05/2022 10:12:06 to: '-cursor most'.
17/05/2022 10:12:06 to disable this behavior use: '-cursor arrow'
17/05/2022 10:12:06 or '-noxfixes'.
17/05/2022 10:12:06 using XFIXES for cursor drawing.
17/05/2022 10:12:06 GrabServer control via XTEST.
17/05/2022 10:12:06
17/05/2022 10:12:06 Scroll Detection: -scrollcopyrect mode is in effect to
17/05/2022 10:12:06 use RECORD extension to try to detect scrolling windows
17/05/2022 10:12:06 (induced by either user keystroke or mouse input).
17/05/2022 10:12:06 If this yields undesired behavior (poor response, painting
17/05/2022 10:12:06 errors, etc) it may be disabled via: '-noscr'
17/05/2022 10:12:06 Also see the -help entry for tuning parameters.
17/05/2022 10:12:06 You can press 3 Alt_L's (Left "Alt" key) in a row to
17/05/2022 10:12:06 repaint the screen, also see the -fixscreen option for
17/05/2022 10:12:06 periodic repaints.
17/05/2022 10:12:06 X FBPM extension not supported.
17/05/2022 10:12:06 X display is capable of DPMS.
17/05/2022 10:12:06 --------------------------------------------------------
17/05/2022 10:12:06
17/05/2022 10:12:06 Default visual ID: 0x21
17/05/2022 10:12:06 Read initial data from X display into framebuffer.
17/05/2022 10:12:06 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5464
17/05/2022 10:12:06 WARNING: Width (1366) is not a multiple of 4. VncViewer has problems with that.
17/05/2022 10:12:06 *** unrecognized option(s) ***
17/05/2022 10:12:06 [1] -nofixes
17/05/2022 10:12:06 For a list of options run: x11vnc -opts
17/05/2022 10:12:06 or for the full help: x11vnc -help
17/05/2022 10:12:06
17/05/2022 10:12:06 Here is a list of removed or obsolete options:
17/05/2022 10:12:06
17/05/2022 10:12:06 removed: -hints, -nohints
17/05/2022 10:12:06 removed: -cursorposall
17/05/2022 10:12:06 removed: -nofilexfer, now the default.
17/05/2022 10:12:06
17/05/2022 10:12:06 renamed: -old_copytile, use -onetile
17/05/2022 10:12:06 renamed: -mouse, use -cursor
17/05/2022 10:12:06 renamed: -mouseX, use -cursor X
17/05/2022 10:12:06 renamed: -X, use -cursor X
17/05/2022 10:12:06 renamed: -nomouse, use -nocursor
17/05/2022 10:12:06 renamed: -old_pointer, use -pointer_mode 1
--- x11vnc loop: sleeping 2000 ms ---
Diese Ausgabe, wie bei dir:[code]
Jetzt starte ich den einfachen vncviewer und versuche ein Connect zu Lap2
Code:
vncviewer lap2 :0
TigerVNC Viewer 64-bit v1.9.0
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
Tue May 17 10:13:41 2022
DecodeManager: Detected 8 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
CConn: unable connect to socket: Verbindungsaufbau abgelehnt (111)
Ich hoffe es hilft dir mir den Fehler mitzuteilen.
Lesezeichen