Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-unixpw not work on Kylin(Ubuntu) #233

Open
impl1874 opened this issue Aug 24, 2023 · 5 comments
Open

-unixpw not work on Kylin(Ubuntu) #233

impl1874 opened this issue Aug 24, 2023 · 5 comments
Labels

Comments

@impl1874
Copy link

impl1874 commented Aug 24, 2023

你好,我在Kylin(ubuntu)使用-unixpw时遇到一些问题,它不能正常工作,我在ubuntu18 20运行时它是正常的。

google translate:

Hi, I have some problems with Kylin(ubuntu) using -unixpw, it doesn't work properly, it works fine when I run on ubuntu18 20.

x11vnc version:x11vnc-0.9.16

Linux kylin-pc 5.4.18-85-generic #74-KYLINOS SMP Fri Mar 24 11:20:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
gcc version 9.3.0 (Ubuntu 9.3.0-10kylin2)

run commond:

export DEBUG_UNIXPW=1
export UNIXPW_DISABLE_SSL=1
/root/x11vnc/x11vnc-0.9.16/src/x11vnc -forever -localhost -display :0 -unixpw -alwaysshared -shared -o /var/log/vnc/x11vnc.log

DEBUG LOG:

24/08/2023 09:36:15 passing arg to libvncserver: -alwaysshared

24/08/2023 09:36:15 Skipping -ssl/-stunnel constraint in -unixpw mode,
24/08/2023 09:36:15 assuming your SSH encryption is:
24/08/2023 09:36:15    192.168.56.1 61599 192.168.56.113 22
24/08/2023 09:36:15 If you *actually* want SSL, restart with -ssl on the cmdline
24/08/2023 09:36:17 
24/08/2023 09:36:17 x11vnc version: 0.9.16 lastmod: 2019-01-05  pid: 157435
24/08/2023 09:36:17 Using X display :0
24/08/2023 09:36:17 rootwin: 0x3ac reswin: 0xc00001 dpy: 0x2e7e88c0
24/08/2023 09:36:17 
24/08/2023 09:36:17 ------------------ USEFUL INFORMATION ------------------
24/08/2023 09:36:17 X DAMAGE available on display, using it for polling hints.
24/08/2023 09:36:17   To disable this behavior use: '-noxdamage'
24/08/2023 09:36:17 
24/08/2023 09:36:17   Most compositing window managers like 'compiz' or 'beryl'
24/08/2023 09:36:17   cause X DAMAGE to fail, and so you may not see any screen
24/08/2023 09:36:17   updates via VNC.  Either disable 'compiz' (recommended) or
24/08/2023 09:36:17   supply the x11vnc '-noxdamage' command line option.
24/08/2023 09:36:17 X COMPOSITE available on display, using it for window polling.
24/08/2023 09:36:17   To disable this behavior use: '-noxcomposite'
24/08/2023 09:36:17 
24/08/2023 09:36:17 Wireframing: -wireframe mode is in effect for window moves.
24/08/2023 09:36:17   If this yields undesired behavior (poor response, painting
24/08/2023 09:36:17   errors, etc) it may be disabled:
24/08/2023 09:36:17    - use '-nowf' to disable wireframing completely.
24/08/2023 09:36:17    - use '-nowcr' to disable the Copy Rectangle after the
24/08/2023 09:36:17      moved window is released in the new position.
24/08/2023 09:36:17   Also see the -help entry for tuning parameters.
24/08/2023 09:36:17   You can press 3 Alt_L's (Left "Alt" key) in a row to 
24/08/2023 09:36:17   repaint the screen, also see the -fixscreen option for
24/08/2023 09:36:17   periodic repaints.
24/08/2023 09:36:17 
24/08/2023 09:36:17 XFIXES available on display, resetting cursor mode
24/08/2023 09:36:17   to: '-cursor most'.
24/08/2023 09:36:17   to disable this behavior use: '-cursor arrow'
24/08/2023 09:36:17   or '-noxfixes'.
24/08/2023 09:36:17 using XFIXES for cursor drawing.
24/08/2023 09:36:17 GrabServer control via XTEST.
24/08/2023 09:36:17 
24/08/2023 09:36:17 Scroll Detection: -scrollcopyrect mode is in effect to
24/08/2023 09:36:17   use RECORD extension to try to detect scrolling windows
24/08/2023 09:36:17   (induced by either user keystroke or mouse input).
24/08/2023 09:36:17   If this yields undesired behavior (poor response, painting
24/08/2023 09:36:17   errors, etc) it may be disabled via: '-noscr'
24/08/2023 09:36:17   Also see the -help entry for tuning parameters.
24/08/2023 09:36:17   You can press 3 Alt_L's (Left "Alt" key) in a row to 
24/08/2023 09:36:17   repaint the screen, also see the -fixscreen option for
24/08/2023 09:36:17   periodic repaints.
24/08/2023 09:36:17 
24/08/2023 09:36:17 XKEYBOARD: number of keysyms per keycode 7 is greater
24/08/2023 09:36:17   than 4 and 51 keysyms are mapped above 4.
24/08/2023 09:36:17   Automatically switching to -xkb mode.
24/08/2023 09:36:17   If this makes the key mapping worse you can
24/08/2023 09:36:17   disable it with the "-noxkb" option.
24/08/2023 09:36:17   Also, remember "-remap DEAD" for accenting characters.
24/08/2023 09:36:17 
24/08/2023 09:36:17 X FBPM extension not supported.
24/08/2023 09:36:17 X display is capable of DPMS.
24/08/2023 09:36:17 --------------------------------------------------------
24/08/2023 09:36:17 
24/08/2023 09:36:17 Default visual ID: 0x21
24/08/2023 09:36:17 Read initial data from X display into framebuffer.
24/08/2023 09:36:17 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/3200
24/08/2023 09:36:17 
24/08/2023 09:36:17 X display :0 is 32bpp depth=24 true color
24/08/2023 09:36:17 
24/08/2023 09:36:17 Autoprobing TCP port 
24/08/2023 09:36:17 Autoprobing selected TCP port 5900
24/08/2023 09:36:17 Autoprobing TCP6 port 
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:17 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 09:36:18 Failure autoprobing: Invalid argument
24/08/2023 09:36:18 Listening also on IPv6 port 5900 (socket 9)
24/08/2023 09:36:18 
24/08/2023 09:36:18 Xinerama is present and active (e.g. multi-head).
24/08/2023 09:36:18 Xinerama: number of sub-screens: 1
24/08/2023 09:36:18 Xinerama: no blackouts needed (only one sub-screen)
24/08/2023 09:36:18 
24/08/2023 09:36:18 fb read rate: 1917 MB/sec
24/08/2023 09:36:18 fast read: reset -wait  ms to: 10
24/08/2023 09:36:18 fast read: reset -defer ms to: 10
24/08/2023 09:36:18 The X server says there are 10 mouse buttons.
24/08/2023 09:36:18 screen setup finished.
24/08/2023 09:36:18 

The VNC desktop is:      localhost:0

******************************************************************************
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

24/08/2023 09:36:23 Got connection from client 127.0.0.1
24/08/2023 09:36:23   other clients:
24/08/2023 09:36:23 Normal socket connection
24/08/2023 09:36:23 check_access: client 127.0.0.1 matches host 127.0.0.1
24/08/2023 09:36:23 Disabled X server key autorepeat.
24/08/2023 09:36:23   to force back on run: 'xset r on' (3 times)
24/08/2023 09:36:23 incr accepted_client=1 for 127.0.0.1:48984  sock=10
24/08/2023 09:36:23 DEBUG_UNIXPW: 1
24/08/2023 09:36:23 new client: 127.0.0.1 taking unixpw client off hold.
24/08/2023 09:36:23 Client Protocol Version 3.8
24/08/2023 09:36:23 Protocol version sent 3.8, using 3.8
24/08/2023 09:36:23 rfbProcessClientSecurityType: executing handler for type 1
24/08/2023 09:36:23 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
24/08/2023 09:36:23 Pixel format for client 127.0.0.1:
24/08/2023 09:36:23   32 bpp, depth 24, little endian
24/08/2023 09:36:23   true colour: max r 255 g 255 b 255, shift r 0 g 8 b 16
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type tightPng
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000015)
24/08/2023 09:36:23 Using image quality level 6 for client 127.0.0.1
24/08/2023 09:36:23 Using JPEG subsampling 0, Q79 for client 127.0.0.1
24/08/2023 09:36:23 Using compression level 2 for client 127.0.0.1
24/08/2023 09:36:23 Enabling NewFBSize protocol extension for client 127.0.0.1
24/08/2023 09:36:23 Enabling LastRect protocol extension for client 127.0.0.1
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEFE)
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC8)
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC7)
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECD)
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
24/08/2023 09:36:23 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x574D5664)
24/08/2023 09:36:23 Enabling full-color cursor updates for client 127.0.0.1
24/08/2023 09:36:23 Using tight encoding for client 127.0.0.1
u_cnt: 1 400/171 ks: 0x72  'r'
u_cnt: 2 408/171 ks: 0x6f  'o'
u_cnt: 3 416/171 ks: 0x6f  'o'
u_cnt: 4 424/171 ks: 0x74  't'
unixpw_verify: 'root' '********'
24/08/2023 09:36:27 unixpw_verify: 'root'
24/08/2023 09:36:27 DEBUG_UNIXPW: 1
24/08/2023 09:36:27 su_verify: 'root' for login.
cmd is: (null)
slave is: /dev/pts/3 fd=11
pid: 157480
read from child: 'C'
I"Password:" did not appear: 'i' n=1
24/08/2023 09:36:27 unixpw_verify: su_verify login for 'root' failed.
u_cnt: 1 400/235 ks: 0x72  'r'
u_cnt: 2 408/235 ks: 0x6f  'o'
u_cnt: 3 416/235 ks: 0x6f  'o'
u_cnt: 4 424/235 ks: 0x74  't'
unixpw_verify: 'root' '********'
24/08/2023 09:36:32 unixpw_verify: 'root'
24/08/2023 09:36:32 su_verify: 'root' for login.
cmd is: (null)
slave is: /dev/pts/3 fd=11
pid: 157503
read from child: 'C'
I"Password:" did not appear: 'i' n=1
24/08/2023 09:36:32 unixpw_verify: su_verify login for 'root' failed.
24/08/2023 09:36:32 unixpw_keystroke: bad keysym4: 0xffe9
caught signal: 2
extra[1] signal: 2
extra[2] signal: 2

@impl1874 impl1874 added the bug label Aug 24, 2023
@impl1874
Copy link
Author

/dev/ptmx无论输入什么,总是返回“I”,我觉得问题可能在这里

google translate:

/dev/ptmx always returns "I" no matter what the input is, I think the problem may be here

@impl1874
Copy link
Author

su process becomes defunct

root@kylin-pc:~# ps -ef | grep 155951
root      155951  152059  1 09:30 pts/0    00:00:01 /root/x11vnc/x11vnc-0.9.16/src/x11vnc -forever -localhost -display :0 -unixpw -alwaysshared -shared
root      156021  155951  0 09:30 ?        00:00:00 [su] <defunct>
root      156389  155951  0 09:31 ?        00:00:00 [su] <defunct>
root      156410  156160  0 09:31 pts/1    00:00:00 grep --color=auto 155951

@impl1874
Copy link
Author

impl1874 commented Aug 24, 2023

当我把DEBUG_UNIXPW设置为5,一切都正常了

google translate:

When I set DEBUG_UNIXPW to 5, everything works fine

DEBUG LOG:

24/08/2023 11:39:25 passing arg to libvncserver: -alwaysshared
24/08/2023 11:39:25 Skipping -ssl/-stunnel requirement due to
24/08/2023 11:39:25 UNIXPW_DISABLE_SSL setting.
24/08/2023 11:39:25 
24/08/2023 11:39:25 x11vnc version: 0.9.16 lastmod: 2019-01-05  pid: 3373
24/08/2023 11:39:25 Using X display :0
24/08/2023 11:39:25 rootwin: 0x3ac reswin: 0xc00001 dpy: 0xb381e850
24/08/2023 11:39:25 
24/08/2023 11:39:25 ------------------ USEFUL INFORMATION ------------------
24/08/2023 11:39:25 X DAMAGE available on display, using it for polling hints.
24/08/2023 11:39:25   To disable this behavior use: '-noxdamage'
24/08/2023 11:39:25 
24/08/2023 11:39:25   Most compositing window managers like 'compiz' or 'beryl'
24/08/2023 11:39:25   cause X DAMAGE to fail, and so you may not see any screen
24/08/2023 11:39:25   updates via VNC.  Either disable 'compiz' (recommended) or
24/08/2023 11:39:25   supply the x11vnc '-noxdamage' command line option.
24/08/2023 11:39:25 X COMPOSITE available on display, using it for window polling.
24/08/2023 11:39:25   To disable this behavior use: '-noxcomposite'
24/08/2023 11:39:25 
24/08/2023 11:39:25 Wireframing: -wireframe mode is in effect for window moves.
24/08/2023 11:39:25   If this yields undesired behavior (poor response, painting
24/08/2023 11:39:25   errors, etc) it may be disabled:
24/08/2023 11:39:25    - use '-nowf' to disable wireframing completely.
24/08/2023 11:39:25    - use '-nowcr' to disable the Copy Rectangle after the
24/08/2023 11:39:25      moved window is released in the new position.
24/08/2023 11:39:25   Also see the -help entry for tuning parameters.
24/08/2023 11:39:25   You can press 3 Alt_L's (Left "Alt" key) in a row to 
24/08/2023 11:39:25   repaint the screen, also see the -fixscreen option for
24/08/2023 11:39:25   periodic repaints.
24/08/2023 11:39:25 
24/08/2023 11:39:25 XFIXES available on display, resetting cursor mode
24/08/2023 11:39:25   to: '-cursor most'.
24/08/2023 11:39:25   to disable this behavior use: '-cursor arrow'
24/08/2023 11:39:25   or '-noxfixes'.
24/08/2023 11:39:25 using XFIXES for cursor drawing.
24/08/2023 11:39:25 GrabServer control via XTEST.
24/08/2023 11:39:25 
24/08/2023 11:39:25 Scroll Detection: -scrollcopyrect mode is in effect to
24/08/2023 11:39:25   use RECORD extension to try to detect scrolling windows
24/08/2023 11:39:25   (induced by either user keystroke or mouse input).
24/08/2023 11:39:25   If this yields undesired behavior (poor response, painting
24/08/2023 11:39:25   errors, etc) it may be disabled via: '-noscr'
24/08/2023 11:39:25   Also see the -help entry for tuning parameters.
24/08/2023 11:39:25   You can press 3 Alt_L's (Left "Alt" key) in a row to 
24/08/2023 11:39:25   repaint the screen, also see the -fixscreen option for
24/08/2023 11:39:25   periodic repaints.
24/08/2023 11:39:25 
24/08/2023 11:39:25 XKEYBOARD: number of keysyms per keycode 7 is greater
24/08/2023 11:39:25   than 4 and 51 keysyms are mapped above 4.
24/08/2023 11:39:25   Automatically switching to -xkb mode.
24/08/2023 11:39:25   If this makes the key mapping worse you can
24/08/2023 11:39:25   disable it with the "-noxkb" option.
24/08/2023 11:39:25   Also, remember "-remap DEAD" for accenting characters.
24/08/2023 11:39:25 
24/08/2023 11:39:25 X FBPM extension not supported.
24/08/2023 11:39:25 X display is capable of DPMS.
24/08/2023 11:39:25 --------------------------------------------------------
24/08/2023 11:39:25 
24/08/2023 11:39:25 Default visual ID: 0x21
24/08/2023 11:39:25 Read initial data from X display into framebuffer.
24/08/2023 11:39:25 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/3200
24/08/2023 11:39:25 
24/08/2023 11:39:25 X display :0 is 32bpp depth=24 true color
24/08/2023 11:39:25 
24/08/2023 11:39:25 Autoprobing TCP port 
24/08/2023 11:39:25 Autoprobing selected TCP port 5900
24/08/2023 11:39:25 Autoprobing TCP6 port 
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:25 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 rfbListenOnTCP6Port error in getaddrinfo: Name or service not known
24/08/2023 11:39:26 Failure autoprobing: Invalid argument
24/08/2023 11:39:26 Listening also on IPv6 port 5900 (socket 9)
24/08/2023 11:39:26 
24/08/2023 11:39:26 Xinerama is present and active (e.g. multi-head).
24/08/2023 11:39:26 Xinerama: number of sub-screens: 1
24/08/2023 11:39:26 Xinerama: no blackouts needed (only one sub-screen)
24/08/2023 11:39:26 
24/08/2023 11:39:26 fb read rate: 931 MB/sec
24/08/2023 11:39:26 fast read: reset -wait  ms to: 10
24/08/2023 11:39:26 fast read: reset -defer ms to: 10
24/08/2023 11:39:26 The X server says there are 10 mouse buttons.
24/08/2023 11:39:26 screen setup finished.
24/08/2023 11:39:26 

The VNC desktop is:      localhost:0

******************************************************************************
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

24/08/2023 11:39:53 Got connection from client 127.0.0.1
24/08/2023 11:39:53   other clients:
24/08/2023 11:39:53 Normal socket connection
24/08/2023 11:39:53 check_access: client 127.0.0.1 matches host 127.0.0.1
24/08/2023 11:39:53 Disabled X server key autorepeat.
24/08/2023 11:39:53   to force back on run: 'xset r on' (3 times)
24/08/2023 11:39:53 incr accepted_client=1 for 127.0.0.1:54546  sock=10
24/08/2023 11:39:53 DEBUG_UNIXPW: 5
24/08/2023 11:39:53 new client: 127.0.0.1 taking unixpw client off hold.
24/08/2023 11:39:53 Client Protocol Version 3.8
24/08/2023 11:39:53 Protocol version sent 3.8, using 3.8
24/08/2023 11:39:53 rfbProcessClientSecurityType: executing handler for type 1
24/08/2023 11:39:53 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
24/08/2023 11:39:53 Pixel format for client 127.0.0.1:
24/08/2023 11:39:53   32 bpp, depth 24, little endian
24/08/2023 11:39:53   true colour: max r 255 g 255 b 255, shift r 0 g 8 b 16
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type tightPng
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000015)
24/08/2023 11:39:53 Using image quality level 6 for client 127.0.0.1
24/08/2023 11:39:53 Using JPEG subsampling 0, Q79 for client 127.0.0.1
24/08/2023 11:39:53 Using compression level 2 for client 127.0.0.1
24/08/2023 11:39:53 Enabling NewFBSize protocol extension for client 127.0.0.1
24/08/2023 11:39:53 Enabling LastRect protocol extension for client 127.0.0.1
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEFE)
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC8)
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC7)
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECD)
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
24/08/2023 11:39:53 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x574D5664)
24/08/2023 11:39:53 Enabling full-color cursor updates for client 127.0.0.1
24/08/2023 11:39:53 Using tight encoding for client 127.0.0.1
login / down  0x72 r
login / up    0x72 r
login / down  0x6f o
login / up    0x6f o
login / down  0x6f o
login / up    0x6f o
login / down  0x74 t
login / up    0x74 t
login / down  0xff0d Return
login / up    0xff0d Return
pass  / down  0x77 p
....delete password input log
....delete password input log
....delete password input log
pass  / down  0xff0d Return
pass  / up    0xff0d Return
unixpw_verify: 'root' 'password
'
24/08/2023 11:39:57 unixpw_verify: 'root'
24/08/2023 11:39:57 DEBUG_UNIXPW: 5
24/08/2023 11:39:57 su_verify: 'root' for login.
cmd is: (null)
slave is: /dev/pts/1 fd=11
pid: 4195
read from child: 'C'
I"Password:" did not appear: 'i' n=1
n"Password:" did not appear: 'in' n=1
p"Password:" did not appear: 'inp' n=1
u"Password:" did not appear: 'inpu' n=1
t"Password:" did not appear: 'input' n=1
 P"Password:" did not appear: 'inputp' n=1
a"Password:" did not appear: 'inputpa' n=1
s"Password:" did not appear: 'inputpas' n=1
s"Password:" did not appear: 'inputpass' n=1

sending passwd: password


draining:

n=1 i=0 errno=0 32.724049  'w'
n=1 i=1 errno=0 32.724059  'o'
n=1 i=2 errno=0 32.724061  'r'
n=1 i=3 errno=0 32.724063  'd'
n=1 i=4 errno=0 32.724065  '
'
n=1 i=5 errno=0 32.724066  '
'
n=-1 i=6 errno=5 32.724074  ''
--
24/08/2023 11:39:58 unixpw_verify: su_verify login for 'root' succeeded.
24/08/2023 11:39:58 apply_opts: set unixname to: root
24/08/2023 11:39:58 client_set_net: 127.0.0.1  0.0001
24/08/2023 11:39:58 created   xdamage object: 0xc0001d
24/08/2023 11:39:58 copy_tiles: allocating first_line at size 26

@impl1874
Copy link
Author

@impl1874
Copy link
Author

我想应该添加类似这样的代码 handle: runge's Password: ,因为虚拟终端输出的是 "InputPass Password:"

google translate:

I think I should add code like this handle: runge's Password: ,because pts output "InputPass Password:"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant