Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
ps aux | grep "X\|x11vnc"
smith@Strashila:~$ ps aux | grep "X\|x11vnc"root 1184 0.8 3.1 606212 258836 tty7 Ss+ Май15 37:22 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitchsmith 12092 0.0 0.0 10908 2216 pts/0 S+ 15:36 0:00 grep --color=auto X\|x11vncsmith@Strashila:~$
sudo x11vnc -auth /var/run/lightdm/root/:0
smith@Strashila:~$ sudo x11vnc -auth /var/run/lightdm/root/:0[sudo] password for smith: ################################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##@ @##@ ** 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. @##@ @##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@################################################################18/05/2015 16:17:29 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 1629718/05/2015 16:17:29 Using X display :018/05/2015 16:17:29 rootwin: 0x293 reswin: 0x5000001 dpy: 0x1e1da6018/05/2015 16:17:29 18/05/2015 16:17:29 ------------------ USEFUL INFORMATION ------------------18/05/2015 16:17:29 X DAMAGE available on display, using it for polling hints.18/05/2015 16:17:29 To disable this behavior use: '-noxdamage'18/05/2015 16:17:29 18/05/2015 16:17:29 Most compositing window managers like 'compiz' or 'beryl'18/05/2015 16:17:29 cause X DAMAGE to fail, and so you may not see any screen18/05/2015 16:17:29 updates via VNC. Either disable 'compiz' (recommended) or18/05/2015 16:17:29 supply the x11vnc '-noxdamage' command line option.18/05/2015 16:17:29 18/05/2015 16:17:29 Wireframing: -wireframe mode is in effect for window moves.18/05/2015 16:17:29 If this yields undesired behavior (poor response, painting18/05/2015 16:17:29 errors, etc) it may be disabled:18/05/2015 16:17:29 - use '-nowf' to disable wireframing completely.18/05/2015 16:17:29 - use '-nowcr' to disable the Copy Rectangle after the18/05/2015 16:17:29 moved window is released in the new position.18/05/2015 16:17:29 Also see the -help entry for tuning parameters.18/05/2015 16:17:29 You can press 3 Alt_L's (Left "Alt" key) in a row to 18/05/2015 16:17:29 repaint the screen, also see the -fixscreen option for18/05/2015 16:17:29 periodic repaints.18/05/2015 16:17:29 18/05/2015 16:17:29 XFIXES available on display, resetting cursor mode18/05/2015 16:17:29 to: '-cursor most'.18/05/2015 16:17:29 to disable this behavior use: '-cursor arrow'18/05/2015 16:17:29 or '-noxfixes'.18/05/2015 16:17:29 using XFIXES for cursor drawing.18/05/2015 16:17:29 GrabServer control via XTEST.18/05/2015 16:17:29 18/05/2015 16:17:29 Scroll Detection: -scrollcopyrect mode is in effect to18/05/2015 16:17:29 use RECORD extension to try to detect scrolling windows18/05/2015 16:17:29 (induced by either user keystroke or mouse input).18/05/2015 16:17:29 If this yields undesired behavior (poor response, painting18/05/2015 16:17:29 errors, etc) it may be disabled via: '-noscr'18/05/2015 16:17:29 Also see the -help entry for tuning parameters.18/05/2015 16:17:29 You can press 3 Alt_L's (Left "Alt" key) in a row to 18/05/2015 16:17:29 repaint the screen, also see the -fixscreen option for18/05/2015 16:17:29 periodic repaints.18/05/2015 16:17:29 18/05/2015 16:17:29 XKEYBOARD: number of keysyms per keycode 10 is greater18/05/2015 16:17:29 than 4 and 98 keysyms are mapped above 4.18/05/2015 16:17:29 Automatically switching to -xkb mode.18/05/2015 16:17:29 If this makes the key mapping worse you can18/05/2015 16:17:29 disable it with the "-noxkb" option.18/05/2015 16:17:29 Also, remember "-remap DEAD" for accenting characters.18/05/2015 16:17:29 18/05/2015 16:17:29 X FBPM extension not supported.18/05/2015 16:17:29 X display is capable of DPMS.18/05/2015 16:17:29 --------------------------------------------------------18/05/2015 16:17:29 18/05/2015 16:17:29 Default visual ID: 0x2118/05/2015 16:17:30 Read initial data from X display into framebuffer.18/05/2015 16:17:30 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/1536018/05/2015 16:17:30 18/05/2015 16:17:30 X display :0 is 32bpp depth=24 true color18/05/2015 16:17:30 18/05/2015 16:17:30 Autoprobing TCP port 18/05/2015 16:17:30 Autoprobing selected TCP port 590018/05/2015 16:17:30 Autoprobing TCP6 port 18/05/2015 16:17:30 Autoprobing selected TCP6 port 590018/05/2015 16:17:30 listen6: bind: Address already in use18/05/2015 16:17:30 Not listening on IPv6 interface.18/05/2015 16:17:30 18/05/2015 16:17:30 Xinerama is present and active (e.g. multi-head).18/05/2015 16:17:30 Xinerama: number of sub-screens: 218/05/2015 16:17:30 Xinerama: enabling -xwarppointer mode to try to correct18/05/2015 16:17:30 Xinerama: mouse pointer motion. XTEST+XINERAMA bug.18/05/2015 16:17:30 Xinerama: Use -noxwarppointer to force XTEST.18/05/2015 16:17:30 Xinerama: sub-screen[0] 1920x1080+0+018/05/2015 16:17:30 Xinerama: sub-screen[1] 1920x1080+1920+018/05/2015 16:17:30 Xinerama: no blackouts needed (screen fills rectangle)18/05/2015 16:17:30 18/05/2015 16:17:30 fb read rate: 1238 MB/sec18/05/2015 16:17:30 fast read: reset -wait ms to: 1018/05/2015 16:17:30 fast read: reset -defer ms to: 1018/05/2015 16:17:30 The X server says there are 16 mouse buttons.18/05/2015 16:17:30 screen setup finished.18/05/2015 16:17:30 18/05/2015 16:17:30 WARNING: You are running x11vnc WITHOUT a password. See18/05/2015 16:17:30 WARNING: the warning message printed above for more info.18/05/2015 16:17:30 The VNC desktop is: Strashila:0PORT=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 fasterretrieval. 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
cat /etc/init/x11vnc.conf
ок, может быть не автозапуск /etc/init/x11vnc.confпокажиКод: [Выделить]cat /etc/init/x11vnc.conf?
smith@Strashila:~$ cat /etc/init/x11vnc.confstart on startupscriptexec /bin/bash -c 'while truedosleep 2unset PASSW. /root/vncpass if [ "$PASSW" != "" ];thenx11vnc -storepasswd $PASSW /tmp/x11passw || continuex11vnc -display :0 -auth /var/run/lightdm/root/:0 -rfbport 9501 -rfbauth /tmp/x11passwelsex11vnc -display :0 -auth /var/run/lightdm/root/:0 -rfbport 9501fidone'end script
start on startupscriptexec /bin/bash -c 'while truedosleep 2unset PASSW. /root/vncpass if [ "$PASSW" != "" ];thenx11vnc -storepasswd $PASSW /tmp/x11passw || continuex11vnc -auth /var/run/lightdm/root/:0 -rfbauth /tmp/x11passw &>>/x11err0.logelsex11vnc -auth /var/run/lightdm/root/:0 &>>/x11err1.logfidone'end script
ps aux | grep x11vnccat /x11err0.logcat /x11err1.log
ps aux | grep x11vnc
smith@Strashila:~$ ps aux | grep x11vncsmith 3105 0.0 0.0 10904 2136 pts/0 S+ 11:19 0:00 grep --color=auto x11vnc
cat /x11err0.log
smith@Strashila:~$ cat /x11err0.logcat: /x11err0.log: Нет такого файла или каталога
cat /x11err1.log
smith@Strashila:~$ cat /x11err1.logcat: /x11err1.log: Нет такого файла или каталога
ls -l /etc/init/x11vnc.conf
Код: [Выделить]ls -l /etc/init/x11vnc.conf?
smith@Strashila:~$ ls -l /etc/init/x11vnc.conf-rw-r--r-- 1 root root 341 Май 19 11:01 /etc/init/x11vnc.conf
лог /var/log/upstart/x11vnc.log есть?
ну вот, какую ОС версия?
sudo x11vnc -dontdisconnect -display :0 -auth /var/run/lightdm/root/:0 -notruecolor -noxfixes -shared -forever -rfbport 9501 -bg -rfbauth /root/.vnc/passwd &
Страница сгенерирована за 0.029 секунд. Запросов: 25.