installed x11vnc and set up a password for it withbut it doesnt prompt for a password it just lets me straight in? Also triedCode:x11vnc -storepasswdbut same.Code:x11vnc -forever -usepw
What bit am I doing wrong?

installed x11vnc and set up a password for it withbut it doesnt prompt for a password it just lets me straight in? Also triedCode:x11vnc -storepasswdbut same.Code:x11vnc -forever -usepw
What bit am I doing wrong?

From memory (and it was a while ago) I used to use -rfbauth ~/.vncpasswd

running that doesnt return me to the terminal just sits there...:
Code:root@nagios:~# x11vnc -rfbauth ~/.vncpasswd 09/11/2009 09:37:34 passing arg to libvncserver: -rfbauth 09/11/2009 09:37:34 passing arg to libvncserver: /root/.vncpasswd 09/11/2009 09:37:34 x11vnc version: 0.9.3 lastmod: 2007-09-30 09/11/2009 09:37:34 09/11/2009 09:37:34 *** XOpenDisplay failed. No -display or DISPLAY. 09/11/2009 09:37:34 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort. 09/11/2009 09:37:34 *** 1 2 3 4 09/11/2009 09:37:38 *** XOpenDisplay of ":0" successful. 09/11/2009 09:37:38 09/11/2009 09:37:38 Using X display :0 09/11/2009 09:37:38 09/11/2009 09:37:38 ------------------ USEFUL INFORMATION ------------------ 09/11/2009 09:37:38 X DAMAGE available on display, using it for polling hints. 09/11/2009 09:37:38 To disable this behavior use: '-noxdamage' 09/11/2009 09:37:38 09/11/2009 09:37:38 Wireframing: -wireframe mode is in effect for window moves. 09/11/2009 09:37:38 If this yields undesired behavior (poor response, painting 09/11/2009 09:37:38 errors, etc) it may be disabled: 09/11/2009 09:37:38 - use '-nowf' to disable wireframing completely. 09/11/2009 09:37:38 - use '-nowcr' to disable the Copy Rectangle after the 09/11/2009 09:37:38 moved window is released in the new position. 09/11/2009 09:37:38 Also see the -help entry for tuning parameters. 09/11/2009 09:37:38 You can press 3 Alt_L's (Left "Alt" key) in a row to 09/11/2009 09:37:38 repaint the screen, also see the -fixscreen option for 09/11/2009 09:37:38 periodic repaints. 09/11/2009 09:37:38 09/11/2009 09:37:38 XFIXES available on display, resetting cursor mode 09/11/2009 09:37:38 to: '-cursor most'. 09/11/2009 09:37:38 to disable this behavior use: '-cursor arrow' 09/11/2009 09:37:38 or '-noxfixes'. 09/11/2009 09:37:38 using XFIXES for cursor drawing. 09/11/2009 09:37:38 GrabServer control via XTEST. 09/11/2009 09:37:38 09/11/2009 09:37:38 Scroll Detection: -scrollcopyrect mode is in effect to 09/11/2009 09:37:38 use RECORD extension to try to detect scrolling windows 09/11/2009 09:37:38 (induced by either user keystroke or mouse input). 09/11/2009 09:37:38 If this yields undesired behavior (poor response, painting 09/11/2009 09:37:38 errors, etc) it may be disabled via: '-noscr' 09/11/2009 09:37:38 Also see the -help entry for tuning parameters. 09/11/2009 09:37:38 You can press 3 Alt_L's (Left "Alt" key) in a row to 09/11/2009 09:37:38 repaint the screen, also see the -fixscreen option for 09/11/2009 09:37:38 periodic repaints. 09/11/2009 09:37:38 09/11/2009 09:37:38 XKEYBOARD: number of keysyms per keycode 6 is greater 09/11/2009 09:37:38 than 4 and 288 keysyms are mapped above 4. 09/11/2009 09:37:38 Automatically switching to -xkb mode. 09/11/2009 09:37:38 If this makes the key mapping worse you can 09/11/2009 09:37:38 disable it with the "-noxkb" option. 09/11/2009 09:37:38 Also, remember "-remap DEAD" for accenting characters. 09/11/2009 09:37:38 X FBPM extension not supported. 09/11/2009 09:37:38 X display is capable of DPMS. 09/11/2009 09:37:38 -------------------------------------------------------- 09/11/2009 09:37:38 09/11/2009 09:37:38 Default visual ID: 0x21 09/11/2009 09:37:39 Read initial data from X display into framebuffer. 09/11/2009 09:37:39 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120 09/11/2009 09:37:39 09/11/2009 09:37:39 X display :0.0 is 32bpp depth=24 true color 09/11/2009 09:37:39 09/11/2009 09:37:39 Autoprobing TCP port 09/11/2009 09:37:39 Autoprobing selected port 5901 09/11/2009 09:37:39 09/11/2009 09:37:39 Xinerama is present and active (e.g. multi-head). 09/11/2009 09:37:39 Xinerama: enabling -xwarppointer mode to try to correct 09/11/2009 09:37:39 Xinerama: mouse pointer motion. XTEST+XINERAMA bug. 09/11/2009 09:37:39 Xinerama: Use -noxwarppointer to force XTEST. 09/11/2009 09:37:39 fb read rate: 9 MB/sec 09/11/2009 09:37:39 screen setup finished. 09/11/2009 09:37:39 The VNC desktop is: nagios.myschool.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 ... more info: http://www.karlrunge.com/x11vnc/#faq-client-caching

That's what the -forever switch is meant to do. I have these notes in my setup checklist for Ubuntu 9.04 (password changed to "bananas" as an example):
apt-get install x11vnc
mkdir /root/.vnc/
x11vnc -storepasswd bananas /root/.vnc/passwd
Add to /etc/rc.local:
sleep 5
/usr/bin/x11vnc -o /var/log/x11vnc.log -rfbauth /root/.vnc/passwd -auth /var/lib/gdm/:0.Xauth -display :0 -noxfixes -loopbg -forever
Edit BOTH /etc/gdm/gdm.conf-custom and /etc/gdm/gdm.conf:
In [daemon] section, make sure you have the line:
KillInitClients=false
Reboot
The above results in a 9.04 machine that, on boot, lets you log in and control the machine's display.
--
David Hicks
RabbieBurns (9th November 2009)

There are currently 1 users browsing this thread. (0 members and 1 guests)