В лUbuntu /etc/init/x11vnc.conf прописано следующее:
start on login-session-start
script
x11vnc -rfbauth /home/user/.vnc/.passwd -rfbport 5900 -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -noxrecord -noxfixes -noxdamage -nomodtweak -ncache 10
end script
Через винду запускаю ultraVNC viewer ввожу пароль, который указывал при выполнении команды
sudo x11vnc -storepasswd
, но выдает ошибку аутентификации. Пробовал на лUbuntu запустить просто
sudo x11vnc
в таком случае без пароля через винду могу зайти.
Содержимое /var/log/x11vnc.log
30/12/2017 16:32:47 Got connection from client 192.168.1.103
30/12/2017 16:32:47 other clients:
30/12/2017 16:32:47 Normal socket connection
30/12/2017 16:32:47 Disabled X server key autorepeat.
30/12/2017 16:32:47 to force back on run: 'xset r on' (3 times)
30/12/2017 16:32:47 incr accepted_client=8 for 192.168.1.103:1728 sock=7
30/12/2017 16:32:47 Client Protocol Version 3.4
30/12/2017 16:32:47 Protocol version sent 3.4, using 3.4
30/12/2017 16:32:49 Couldn't read password file: /home/user/.vnc/.passwd
30/12/2017 16:32:49 rfbAuthProcessClientMessage: password check failed
30/12/2017 16:32:49 client_count: 0
30/12/2017 16:32:49 Restored X server key autorepeat to: 1
30/12/2017 16:32:49 Client 192.168.1.103 gone
30/12/2017 16:32:49 Statistics events Transmit/ RawEquiv ( saved)
30/12/2017 16:32:49 TOTALS : 0 | 0/ 0 ( 0.0%)
30/12/2017 16:32:49 Statistics events Received/ RawEquiv ( saved)
30/12/2017 16:32:49 TOTALS : 0 | 0/ 0 ( 0.0%)
30/12/2017 16:32:51 deleted 32 tile_row polling images.
30/12/2017 16:32:51 Default visual ID: 0x20
30/12/2017 16:32:51 Read initial data from X display into framebuffer.
30/12/2017 16:32:51 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
30/12/2017 16:32:51 rfbNewFramebuffer(0x9401900, 0x0, 1024, 7200, 8, 1, 4)
30/12/2017 16:32:51
30/12/2017 16:32:51 X display :0 is 32bpp depth=24 true color
30/12/2017 16:32:51
30/12/2017 16:32:51 calling setTranslateFunction()...
30/12/2017 16:32:51 done.
30/12/2017 16:32:51
30/12/2017 16:32:51 Xinerama is present and active (e.g. multi-head).
30/12/2017 16:32:51 Xinerama: number of sub-screens: 1
30/12/2017 16:32:51 Xinerama: no blackouts needed (only one sub-screen)
30/12/2017 16:32:51
30/12/2017 16:32:53 Got connection from client 192.168.1.103
30/12/2017 16:32:53 other clients:
30/12/2017 16:32:53 Normal socket connection
30/12/2017 16:32:53 Disabled X server key autorepeat.
30/12/2017 16:32:53 to force back on run: 'xset r on' (3 times)
30/12/2017 16:32:53 incr accepted_client=9 for 192.168.1.103:1729 sock=7
30/12/2017 16:32:53 Client Protocol Version 3.4
30/12/2017 16:32:53 Protocol version sent 3.4, using 3.4
30/12/2017 16:32:56 Couldn't read password file: /home/user/.vnc/.passwd
30/12/2017 16:32:56 rfbAuthProcessClientMessage: password check failed
30/12/2017 16:32:56 client_count: 0
30/12/2017 16:32:56 Restored X server key autorepeat to: 1
30/12/2017 16:32:56 Client 192.168.1.103 gone
30/12/2017 16:32:56 Statistics events Transmit/ RawEquiv ( saved)
30/12/2017 16:32:56 TOTALS : 0 | 0/ 0 ( 0.0%)
30/12/2017 16:32:56 Statistics events Received/ RawEquiv ( saved)
30/12/2017 16:32:56 TOTALS : 0 | 0/ 0 ( 0.0%)
30/12/2017 16:32:58 deleted 32 tile_row polling images.
30/12/2017 16:32:58 Default visual ID: 0x20
30/12/2017 16:32:58 Read initial data from X display into framebuffer.
30/12/2017 16:32:58 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
30/12/2017 16:32:58 rfbNewFramebuffer(0x9401900, 0x0, 1024, 7200, 8, 1, 4)
30/12/2017 16:32:58
30/12/2017 16:32:58 X display :0 is 32bpp depth=24 true color
30/12/2017 16:32:58
30/12/2017 16:32:58 calling setTranslateFunction()...
30/12/2017 16:32:58 done.
30/12/2017 16:32:58
30/12/2017 16:32:58 Xinerama is present and active (e.g. multi-head).
30/12/2017 16:32:58 Xinerama: number of sub-screens: 1
30/12/2017 16:32:58 Xinerama: no blackouts needed (only one sub-screen)
30/12/2017 16:32:58