Jump to content

Recommended Posts

Posted

installed x11vnc and set up a password for it with

x11vnc -storepasswd

but it doesnt prompt for a password it just lets me straight in? Also tried

x11vnc -forever -usepw

but same.

 

What bit am I doing wrong?

Posted

running that doesnt return me to the terminal just sits there...:

 

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 

Posted
running that doesnt return me to the terminal just sits there

 

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

  • Thanks 1
Posted
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

 

Cheers, Ill give that a go in the morning

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...