x11vnc usepw

 yuki@FMV:~$ x11vnc -usepw

Enter VNC password:
Verify password:
Write password to /home/yuki/.vnc/passwd? [y]/n y
Password written to: /home/yuki/.vnc/passwd
08/07/2017 10:57:47 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 10061
08/07/2017 10:57:47 Using X display :1.0
08/07/2017 10:57:47 rootwin: 0x133 reswin: 0x2000001 dpy: 0x92c30b0
08/07/2017 10:57:47
08/07/2017 10:57:47 ------------------ USEFUL INFORMATION ------------------
08/07/2017 10:57:47 X DAMAGE available on display, using it for polling hints.
08/07/2017 10:57:47 To disable this behavior use: '-noxdamage'
08/07/2017 10:57:47
08/07/2017 10:57:47 Most compositing window managers like 'compiz' or 'beryl'
08/07/2017 10:57:47 cause X DAMAGE to fail, and so you may not see any screen
08/07/2017 10:57:47 updates via VNC. Either disable 'compiz' (recommended) or
08/07/2017 10:57:47 supply the x11vnc '-noxdamage' command line option.
08/07/2017 10:57:47
08/07/2017 10:57:47 Wireframing: -wireframe mode is in effect for window moves.
08/07/2017 10:57:47 If this yields undesired behavior (poor response, painting
08/07/2017 10:57:47 errors, etc) it may be disabled:
08/07/2017 10:57:47 - use '-nowf' to disable wireframing completely.
08/07/2017 10:57:47 - use '-nowcr' to disable the Copy Rectangle after the
08/07/2017 10:57:47 moved window is released in the new position.
08/07/2017 10:57:47 Also see the -help entry for tuning parameters.
08/07/2017 10:57:47 You can press 3 Alt_L's (Left "Alt" key) in a row to
08/07/2017 10:57:47 repaint the screen, also see the -fixscreen option for
08/07/2017 10:57:47 periodic repaints.
08/07/2017 10:57:47
08/07/2017 10:57:47 XFIXES available on display, resetting cursor mode
08/07/2017 10:57:47 to: '-cursor most'.
08/07/2017 10:57:47 to disable this behavior use: '-cursor arrow'
08/07/2017 10:57:47 or '-noxfixes'.
08/07/2017 10:57:47 using XFIXES for cursor drawing.
08/07/2017 10:57:47 GrabServer control via XTEST.
08/07/2017 10:57:47
08/07/2017 10:57:47 Scroll Detection: -scrollcopyrect mode is in effect to
08/07/2017 10:57:47 use RECORD extension to try to detect scrolling windows
08/07/2017 10:57:47 (induced by either user keystroke or mouse input).
08/07/2017 10:57:47 If this yields undesired behavior (poor response, painting
08/07/2017 10:57:47 errors, etc) it may be disabled via: '-noscr'
08/07/2017 10:57:47 Also see the -help entry for tuning parameters.
08/07/2017 10:57:47 You can press 3 Alt_L's (Left "Alt" key) in a row to
08/07/2017 10:57:47 repaint the screen, also see the -fixscreen option for
08/07/2017 10:57:47 periodic repaints.
08/07/2017 10:57:47
08/07/2017 10:57:47 XKEYBOARD: number of keysyms per keycode 7 is greater
08/07/2017 10:57:47 than 4 and 51 keysyms are mapped above 4.
08/07/2017 10:57:47 Automatically switching to -xkb mode.
08/07/2017 10:57:47 If this makes the key mapping worse you can
08/07/2017 10:57:47 disable it with the "-noxkb" option.
08/07/2017 10:57:47 Also, remember "-remap DEAD" for accenting characters.
08/07/2017 10:57:47
08/07/2017 10:57:47 X FBPM extension not supported.
08/07/2017 10:57:47 X display is capable of DPMS.
08/07/2017 10:57:47 --------------------------------------------------------
08/07/2017 10:57:47
08/07/2017 10:57:47 Default visual ID: 0x21
08/07/2017 10:57:47 Read initial data from X display into framebuffer.
08/07/2017 10:57:47 initialize_screen: fb_depth/fb_bpp/fb_Bpl 16/16/2048
08/07/2017 10:57:47
08/07/2017 10:57:47 X display :1.0 is 16bpp depth=16 true color
08/07/2017 10:57:47
08/07/2017 10:57:47 Autoprobing TCP port
08/07/2017 10:57:47 Autoprobing selected TCP port 5901
08/07/2017 10:57:47 Autoprobing TCP6 port
08/07/2017 10:57:47 rfbListenOnTCP6Port: error in bind IPv6 socket: Address already in use
08/07/2017 10:57:47 Autoprobing selected TCP6 port 5901
08/07/2017 10:57:47 listen6: bind: Address already in use
08/07/2017 10:57:47 Not listening on IPv6 interface.
08/07/2017 10:57:47
08/07/2017 10:57:47 Xinerama is present and active (e.g. multi-head).
08/07/2017 10:57:47 Xinerama: number of sub-screens: 1
08/07/2017 10:57:47 Xinerama: no blackouts needed (only one sub-screen)
08/07/2017 10:57:47
08/07/2017 10:57:47 fb read rate: 11 MB/sec
08/07/2017 10:57:47 The X server says there are 10 mouse buttons.
08/07/2017 10:57:47 screen setup finished.
08/07/2017 10:57:47

The VNC desktop is: FMV:1
PORT=5901

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

x11vnc -ncache 10
08/07/2017 11:01:56 Got connection from client 192.168.1.2
08/07/2017 11:01:56 other clients:
08/07/2017 11:01:57 Normal socket connection
08/07/2017 11:01:57 Disabled X server key autorepeat.
08/07/2017 11:01:57 to force back on run: 'xset r on' (3 times)
08/07/2017 11:01:57 incr accepted_client=1 for 192.168.1.2:58967 sock=11
08/07/2017 11:01:57 Client Protocol Version 3.4
08/07/2017 11:01:57 Protocol version sent 3.4, using 3.4
08/07/2017 11:01:57 created xdamage object: 0x2000024
08/07/2017 11:02:02 Pixel format for client 192.168.1.2:
08/07/2017 11:02:02 16 bpp, depth 16, little endian
08/07/2017 11:02:02 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
08/07/2017 11:02:02 no translation needed
08/07/2017 11:02:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
08/07/2017 11:02:02 Using compression level 6 for client 192.168.1.2
08/07/2017 11:02:02 Enabling X-style cursor updates for client 192.168.1.2
08/07/2017 11:02:02 Enabling full-color cursor updates for client 192.168.1.2
08/07/2017 11:02:02 Enabling cursor position updates for client 192.168.1.2
08/07/2017 11:02:02 Using image quality level 6 for client 192.168.1.2
08/07/2017 11:02:02 Using JPEG subsampling 0, Q79 for client 192.168.1.2
08/07/2017 11:02:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
08/07/2017 11:02:02 Enabling LastRect protocol extension for client 192.168.1.2
08/07/2017 11:02:02 Enabling NewFBSize protocol extension for client 192.168.1.2
08/07/2017 11:02:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type cacheEnable
08/07/2017 11:02:02 Using ZRLE encoding for client 192.168.1.2
08/07/2017 11:02:02 client useCopyRect: 192.168.1.2 -1
08/07/2017 11:02:02 client_set_net: 192.168.1.2 0.0038
08/07/2017 11:02:02 copy_tiles: allocating first_line at size 33
08/07/2017 11:02:03 Pixel format for client 192.168.1.2:
08/07/2017 11:02:03 16 bpp, depth 16, little endian
08/07/2017 11:02:03 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
08/07/2017 11:02:03 no translation needed
08/07/2017 11:02:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
08/07/2017 11:02:03 Using compression level 6 for client 192.168.1.2
08/07/2017 11:02:03 Enabling X-style cursor updates for client 192.168.1.2
08/07/2017 11:02:03 Enabling full-color cursor updates for client 192.168.1.2
08/07/2017 11:02:03 Enabling cursor position updates for client 192.168.1.2
08/07/2017 11:02:03 Using image quality level 6 for client 192.168.1.2
08/07/2017 11:02:03 Using JPEG subsampling 0, Q79 for client 192.168.1.2
08/07/2017 11:02:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
08/07/2017 11:02:03 Enabling LastRect protocol extension for client 192.168.1.2
08/07/2017 11:02:03 Enabling NewFBSize protocol extension for client 192.168.1.2
08/07/2017 11:02:03 Switching from ZRLE to hextile Encoding for client 192.168.1.2
08/07/2017 11:02:07 created selwin: 0x2000025
08/07/2017 11:02:07 called initialize_xfixes()
08/07/2017 11:02:08 client 1 network rate 435.7 KB/sec (1602.2 eff KB/sec)
08/07/2017 11:02:08 client 1 latency: 1.7 ms
08/07/2017 11:02:08 dt1: 0.1025, dt2: 0.0727 dt3: 0.0017 bytes: 75933
08/07/2017 11:02:08 link_rate: LR_LAN - 1 ms, 435 KB/s
08/07/2017 11:05:37 cursor_noshape_updates_clients: 0
08/07/2017 11:05:37 cursor_noshape_updates_clients: 0
08/07/2017 11:05:38 cursor_noshape_updates_clients: 0
08/07/2017 11:05:38 cursor_noshape_updates_clients: 0
08/07/2017 11:05:38 cursor_noshape_updates_clients: 0


vncviewer 192.168.1.3 :1 にアクセス、確認 OK
 

*******************************************************

自動起動設定
.config/autosrart に、x11vnc.server のショートカットを作成
コマンド x11vnc -forever -usepw -httport 5900

再起動 
再度  yuki@FMV:~$ x11vnc -usepw
yuki@FMV:~$ x11vnc -usepw
08/07/2017 14:19:57 -usepw: found /home/yuki/.vnc/passwd
08/07/2017 14:19:57 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 1946
08/07/2017 14:19:57 XOpenDisplay("") failed.
08/07/2017 14:19:57 Trying again with XAUTHLOCALHOSTNAME=localhost ...
08/07/2017 14:19:57
08/07/2017 14:19:57 *** XOpenDisplay failed. No -display or DISPLAY.
08/07/2017 14:19:57 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
08/07/2017 14:19:57 *** 1 2 3 4
08/07/2017 14:20:01 *** XOpenDisplay of ":0" successful.
08/07/2017 14:20:01
08/07/2017 14:20:01 Using X display :0
08/07/2017 14:20:01 rootwin: 0x133 reswin: 0x600001 dpy: 0x9e0df58
08/07/2017 14:20:01
08/07/2017 14:20:01 ------------------ USEFUL INFORMATION ------------------
08/07/2017 14:20:01 X DAMAGE available on display, using it for polling hints.
08/07/2017 14:20:01 To disable this behavior use: '-noxdamage'
08/07/2017 14:20:01
08/07/2017 14:20:01 Most compositing window managers like 'compiz' or 'beryl'
08/07/2017 14:20:01 cause X DAMAGE to fail, and so you may not see any screen
08/07/2017 14:20:01 updates via VNC. Either disable 'compiz' (recommended) or
08/07/2017 14:20:01 supply the x11vnc '-noxdamage' command line option.
08/07/2017 14:20:01
08/07/2017 14:20:01 Wireframing: -wireframe mode is in effect for window moves.
08/07/2017 14:20:01 If this yields undesired behavior (poor response, painting
08/07/2017 14:20:01 errors, etc) it may be disabled:
08/07/2017 14:20:01 - use '-nowf' to disable wireframing completely.
08/07/2017 14:20:01 - use '-nowcr' to disable the Copy Rectangle after the
08/07/2017 14:20:01 moved window is released in the new position.
08/07/2017 14:20:01 Also see the -help entry for tuning parameters.
08/07/2017 14:20:01 You can press 3 Alt_L's (Left "Alt" key) in a row to
08/07/2017 14:20:01 repaint the screen, also see the -fixscreen option for
08/07/2017 14:20:01 periodic repaints.
08/07/2017 14:20:01
08/07/2017 14:20:01 XFIXES available on display, resetting cursor mode
08/07/2017 14:20:01 to: '-cursor most'.
08/07/2017 14:20:01 to disable this behavior use: '-cursor arrow'
08/07/2017 14:20:01 or '-noxfixes'.
08/07/2017 14:20:01 using XFIXES for cursor drawing.
08/07/2017 14:20:01 GrabServer control via XTEST.
08/07/2017 14:20:01
08/07/2017 14:20:01 Scroll Detection: -scrollcopyrect mode is in effect to
08/07/2017 14:20:01 use RECORD extension to try to detect scrolling windows
08/07/2017 14:20:01 (induced by either user keystroke or mouse input).
08/07/2017 14:20:01 If this yields undesired behavior (poor response, painting
08/07/2017 14:20:01 errors, etc) it may be disabled via: '-noscr'
08/07/2017 14:20:01 Also see the -help entry for tuning parameters.
08/07/2017 14:20:01 You can press 3 Alt_L's (Left "Alt" key) in a row to
08/07/2017 14:20:01 repaint the screen, also see the -fixscreen option for
08/07/2017 14:20:01 periodic repaints.
08/07/2017 14:20:01
08/07/2017 14:20:01 XKEYBOARD: number of keysyms per keycode 7 is greater
08/07/2017 14:20:01 than 4 and 51 keysyms are mapped above 4.
08/07/2017 14:20:01 Automatically switching to -xkb mode.
08/07/2017 14:20:01 If this makes the key mapping worse you can
08/07/2017 14:20:01 disable it with the "-noxkb" option.
08/07/2017 14:20:01 Also, remember "-remap DEAD" for accenting characters.
08/07/2017 14:20:01
08/07/2017 14:20:01 X FBPM extension not supported.
08/07/2017 14:20:01 X display is capable of DPMS.
08/07/2017 14:20:01 --------------------------------------------------------
08/07/2017 14:20:01
08/07/2017 14:20:01 Default visual ID: 0x21
08/07/2017 14:20:01 Read initial data from X display into framebuffer.
08/07/2017 14:20:01 initialize_screen: fb_depth/fb_bpp/fb_Bpl 16/16/2048
08/07/2017 14:20:01
08/07/2017 14:20:01 X display :0 is 16bpp depth=16 true color
08/07/2017 14:20:01
08/07/2017 14:20:01 Autoprobing TCP port
08/07/2017 14:20:01 Autoprobing selected TCP port 5900
08/07/2017 14:20:01 Autoprobing TCP6 port
08/07/2017 14:20:01 Autoprobing selected TCP6 port 5900
08/07/2017 14:20:01 listen6: bind: Address already in use
08/07/2017 14:20:01 Not listening on IPv6 interface.
08/07/2017 14:20:01 fb read rate: 14 MB/sec
08/07/2017 14:20:01 The X server says there are 10 mouse buttons.
08/07/2017 14:20:01 screen setup finished.
08/07/2017 14:20:01

The VNC desktop is: FMV:0
PORT=5900

vncviewer 192.168.1.3 :0 にアクセス、確認 OK
linux bean のログイン画面
root へのログインも可能
 

root@FMV:~# reboot
yuki@FMV からのブロードキャスト・メッセージ
(/dev/pts/1) at 14:35 ...

The system is going down for reboot NOW!
caught XIO error:
08/07/2017 14:35:50 deleted 32 tile_row polling images.
yuki@FMV:~$ x11vnc -ncache 10
###############################################################
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@ @#
#@ ** 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. @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
###############################################################
08/07/2017 14:35:51 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 3412
08/07/2017 14:35:51 XOpenDisplay("") failed.
08/07/2017 14:35:51 Trying again with XAUTHLOCALHOSTNAME=localhost ...
08/07/2017 14:35:51
08/07/2017 14:35:51 *** XOpenDisplay failed. No -display or DISPLAY.
08/07/2017 14:35:51 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
08/07/2017 14:35:51 *** 1 2 3 4

 

x11vnc に、再接続するには、ssh で、
再度  yuki@FMV:~$ x11vnc -usepw

 

投票数:2 平均点:10.00

 
Back to Top