From 4b89306d17a56210cf7d8c4da93ff585b166b3fb Mon Sep 17 00:00:00 2001 From: runge Date: Mon, 27 Dec 2004 22:07:55 +0000 Subject: x11vnc: improve XFIXES cursor transparency, more remote-control cmds. --- x11vnc/README | 714 +++++++++++++++++++++++++++++++--------------------------- 1 file changed, 387 insertions(+), 327 deletions(-) (limited to 'x11vnc/README') diff --git a/x11vnc/README b/x11vnc/README index c196ebf..41d4c29 100644 --- a/x11vnc/README +++ b/x11vnc/README @@ -1,5 +1,5 @@ -x11vnc README file Date: Thu Dec 23 00:52:20 EST 2004 +x11vnc README file Date: Mon Dec 27 17:23:28 EST 2004 The following information is taken from these URLs: @@ -271,24 +271,26 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. SourceForge.net. I use libvncserver for all of the VNC aspects; I couldn't have done without it. The full source code may be found and downloaded (either file-release tarball or CVS tree) from the above - link. As of Aug 2004, the [21]x11vnc-0.6.2.tar.gz source package is - released (recommended download) . The x11vnc package is the subset of - the libvncserver package needed to build the x11vnc program. Please do - not use the LibVNCServer-0.6 tarball: it contains an older, more buggy - version of x11vnc (Oct 2003) that you likely want to avoid. Also, you - can get a copy of my latest, bleeding edge [22]x11vnc.c file to - replace the one in the above packages or the one in the CVS tree and - then rebuild. If you have an older libvncserver source tree, you may - need to switch on the OLD_TREE near the top of the x11vnc.c file. - - See the [23]FAQ below for information about where you might obtain a + link. As of Dec 2004, the [21]x11vnc-0.7.tar.gz source package is + released (recommended download) . The [22]x11vnc 0.7 release notes. + The x11vnc package is the subset of the libvncserver package needed to + build the x11vnc program. Please do not use the LibVNCServer-0.6 + tarball: it contains an older, more buggy version of x11vnc (Oct 2003) + that you likely want to avoid. Also, you can get a copy of my latest, + bleeding edge [23]x11vnc.c file to replace the one in the above + packages or the one in the CVS tree and then rebuild. You can also + update the tcl/tk gui with the [24]tkx11vnc.h file. If you have an + older libvncserver source tree, you may need to switch on the OLD_TREE + near the top of the x11vnc.c file. + + See the [25]FAQ below for information about where you might obtain a precompiled x11vnc binary from 3rd parties. To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try here: - * [24]http://www.tightvnc.com/download.html - * [25]http://www.realvnc.com/download-free.html - * [26]http://sourceforge.net/projects/cotvnc/ + * [26]http://www.tightvnc.com/download.html + * [27]http://www.realvnc.com/download-free.html + * [28]http://sourceforge.net/projects/cotvnc/ More tools: Here is a rsh/ssh wrapper script rx11vnc that attempts to automatically do the above Steps 1-3 for you (provided you have @@ -298,20 +300,20 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. that attempts to tunnel the vnc traffic through an ssh port redirection (and does not assume port 5900 is free). Have a look at them to see what they do and customize as needed: - * [27]rx11vnc wrapper script - * [28]rx11vnc.pl wrapper script to tunnel traffic thru ssh + * [29]rx11vnc wrapper script + * [30]rx11vnc.pl wrapper script to tunnel traffic thru ssh _________________________________________________________________ Building x11vnc: If your OS has libjpeg.so and libz.so in standard locations you can - build as follows (example given for the 0.6.2 release of x11vnc: - replace with the version you downloaded): + build as follows (example given for the 0.7 release of x11vnc: replace + with the version you downloaded): (un-tar the x11vnc+libvncserver tarball) -# gzip -dc x11vnc-0.6.2.tar.gz | tar -xvf - +# gzip -dc x11vnc-0.7.tar.gz | tar -xvf - (cd to the source directory) -# cd x11vnc-0.6.2 +# cd x11vnc-0.7 (run configure and then run make) # ./configure @@ -341,9 +343,9 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. libjpeg is included in Solaris 9 and later (/usr/sfw/include and /usr/sfw/lib), and zlib in Solaris 8 and later (/usr/include and /usr/lib). To get the source for these libraries: libjpeg is available - at [29]ftp://ftp.uu.net/graphics/jpeg/ and zlib at - [30]http://www.gzip.org/zlib/. See also - [31]http://www.sunfreeware.com/ for Solaris binary packages of these + at [31]ftp://ftp.uu.net/graphics/jpeg/ and zlib at + [32]http://www.gzip.org/zlib/. See also + [33]http://www.sunfreeware.com/ for Solaris binary packages of these libraries. Here is a build script that indicates one way to pass the library @@ -406,7 +408,7 @@ ls -l ./x11vnc/x11vnc x11vnc/x11vnc.c file. (This problem has been fixed as of x11vnc 0.6.2 (Aug/2004)) - If you need to build on Solaris 2.5.1 or earlier, see [32]this + If you need to build on Solaris 2.5.1 or earlier, see [34]this workaround FAQ. Building on HP-UX: For jpeg and zlib you will need to do the same @@ -437,7 +439,7 @@ ls -l ./x11vnc/x11vnc a solid background while using x11vnc. You can turn the pretty background image back on when you are using the display directly. - I also find the [33]tightvnc encoding gives the best response for my + I also find the [35]tightvnc encoding gives the best response for my usage (Unix <-> Unix over cable modem). One needs a tightvnc-aware vncviewer to take advantage of this encoding. @@ -453,10 +455,10 @@ ls -l ./x11vnc/x11vnc option where NNNN is the desired port number. Options: x11vnc has (far too) many features that may be activated - via its [34]command line options. Useful options are -nap to use fewer + via its [36]command line options. Useful options are -nap to use fewer resources (it sleeps more between polls when activity is low) and -rfbauth passwd-file to use VNC password protection (the vncpasswd or - storepasswd programs, or the x11vnc [35]-storepasswd option can be + storepasswd programs, or the x11vnc [37]-storepasswd option can be used to create the password file). Algorithm: How does x11vnc do it? Rather brute-forcedly: it @@ -480,14 +482,14 @@ ls -l ./x11vnc/x11vnc first testing out the programs. You get an interesting "feedback" effect where vncviewer images keep popping up each one contained in the previous one and slightly shifted a bit by the window manager - decorations. There will be an [36]even more interesting effect if + decorations. There will be an [38]even more interesting effect if -scale is used. Also, if the XKEYBOARD is supported and the XBell "beeps" once, you get an infinite loop of beeps going off. Although all of this is mildly exciting it is not much use: you will normally run and display the viewer on a different machine! SunRay notes: You can run x11vnc on your (connected or disconnected) - [37]SunRay session (Please remember to use -nap and maybe -wait 200 to + [39]SunRay session (Please remember to use -nap and maybe -wait 200 to avoid being a resource hog! It also helps a bit to have a solid background color). You have to know the name of the machine your SunRay session X server is running on. You also need to know the X11 @@ -551,7 +553,8 @@ ls -l ./x11vnc/x11vnc supplied. A similar thing is done on IRIX as well when -overlay is supplied. As of Dec/2004 x11vnc supports the XFIXES extension (in Xorg and Solaris 10) to query the X server for the exact cursor - shape, this works pretty well. + shape, this works pretty well except that cursors with + transparency (alpha channel) need to approximated via dithering. * Audio from applications is of course not redirected (separate redirectors do exist, e.g. esd). The XBell() "beeps" will work if the X server supports the XKEYBOARD extension. (Note that on @@ -561,209 +564,209 @@ ls -l ./x11vnc/x11vnc Evidently a timing related bug and difficult to reproduce... * Using -threads can expose some bugs in libvncserver. - Please feel free to [38]contact me if you have any questions, + Please feel free to [40]contact me if you have any questions, problems, or comments about x11vnc, etc. _________________________________________________________________ x11vnc FAQ: - [39]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed + [41]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed ((null))" or "Xlib: connection to ":0.0" refused by server". What do I need to do? - [40]Q-2: I can't get x11vnc and/or libvncserver to compile. + [42]Q-2: I can't get x11vnc and/or libvncserver to compile. - [41]Q-3: Help, I need to run x11vnc on Solaris 2.5.1 and it doesn't + [43]Q-3: Help, I need to run x11vnc on Solaris 2.5.1 and it doesn't compile! If I try to run a binary built on Solaris 2.6 I get: relocation error: file x11vnc: symbol XConvertCase: referenced symbol not found - [42]Q-4: Where can I get a precompiled x11vnc binary for my Operating + [44]Q-4: Where can I get a precompiled x11vnc binary for my Operating System? - [43]Q-5: Where can I get a VNC Viewer binary (or source code) for the + [45]Q-5: Where can I get a VNC Viewer binary (or source code) for the Operating System I will be viewing from? - [44]Q-6: How can I see all of x11vnc's command line options and + [46]Q-6: How can I see all of x11vnc's command line options and documentation on how to use them? - [45]Q-7: I don't like typing arcane command line options every time I - start x11vnc. What can I do? Is there a config file? Is there a GUI? + [47]Q-7: I don't like typing arcane command line options every time I + start x11vnc. What can I do? Is there a config file? Or a GUI? - [46]Q-8: Why does x11vnc exit as soon as the VNC viewer disconnects? + [48]Q-8: Why does x11vnc exit as soon as the VNC viewer disconnects? And why doesn't it allow more than one VNC viewer to connect at the same time? - [47]Q-9: I have two separate machine displays in front of me, one + [49]Q-9: I have two separate machine displays in front of me, one Windows the other X11: can I use x11vnc in combination with Win2VNC in dual-screen mode to pass the keystrokes and mouse motions to the X11 display? - [48]Q-10: I am running Win2VNC on my windows machine and trying to + [50]Q-10: I am running Win2VNC on my windows machine and trying to create a dual-screen mode with my second display by running "x11vnc -nofb". Whenever I initiate the connection Win2VNC quickly disconnects and x11vnc says something like: rfbProcessClientNormalMessage: read: Connection reset by peer - [49]Q-11: The X display I run x11vnc on is only 8 bits per pixel (bpp) + [51]Q-11: The X display I run x11vnc on is only 8 bits per pixel (bpp) PseudoColor (i.e. only 256 distinct colors). The x11vnc colors may start out OK, but after a while the colors are incorrect in certain windows. - [50]Q-12: Color problems: Why are the colors for some windows messed + [52]Q-12: Color problems: Why are the colors for some windows messed up in x11vnc? BTW, I have an X display that has nice overlay/multi-depth visuals of different color depths: e.g. there are both depth 8 and 24 visuals available at the same time. - [51]Q-13: How do I figure out the window id to supply to the -id + [53]Q-13: How do I figure out the window id to supply to the -id windowid option? - [52]Q-14: Why don't menus or other transient windows come up when I am + [54]Q-14: Why don't menus or other transient windows come up when I am using the -id windowid option to view a single application window? - [53]Q-15: Can I use x11vnc to view and interact with an Xterminal + [55]Q-15: Can I use x11vnc to view and interact with an Xterminal (e.g. NCD) that is not running UNIX and so x11vnc cannot be run on it directly? - [54]Q-16: Can I make x11vnc more quiet and also go into the background + [56]Q-16: Can I make x11vnc more quiet and also go into the background after starting up? - [55]Q-17: How do I stop x11vnc once it is running in the background? + [57]Q-17: How do I stop x11vnc once it is running in the background? - [56]Q-18: Can I change settings in x11vnc without having to restart + [58]Q-18: Can I change settings in x11vnc without having to restart it? Is there a way to remote control it? - [57]Q-19: Can I limit which machines incoming VNC clients can connect + [59]Q-19: Can I limit which machines incoming VNC clients can connect from? - [58]Q-20: How do I build x11vnc/libvncserver with libwrap + [60]Q-20: How do I build x11vnc/libvncserver with libwrap (tcp_wrappers) support? - [59]Q-21: Can I prompt the user at the local X display whether the + [61]Q-21: Can I prompt the user at the local X display whether the incoming VNC client should be accepted or not? Can I decide to make some clients view-only? How about running an arbitrary program to make the decisions? - [60]Q-22: How do I create a VNC password for use with x11vnc? + [62]Q-22: How do I create a VNC password for use with x11vnc? - [61]Q-23: How can I tunnel my connection to x11vnc via an encrypted + [63]Q-23: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - [62]Q-24: How can I tunnel my connection to x11vnc via an encrypted + [64]Q-24: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [63]Q-25: Does x11vnc support Unix usernames and passwords? Can I + [65]Q-25: Does x11vnc support Unix usernames and passwords? Can I further limit the set of Unix usernames who can connect to the VNC desktop? - [64]Q-26: Can I have two passwords for VNC viewers, one for full + [66]Q-26: Can I have two passwords for VNC viewers, one for full access and the other for view-only access to the display? - [65]Q-27: I use a screen-lock when I leave my workstation (e.g. + [67]Q-27: I use a screen-lock when I leave my workstation (e.g. xscreensaver or xlock). When I remotely access my workstation desktop via x11vnc I can unlock the desktop fine, but I am worried people will see my activities on the physical monitor. What can I do to prevent this, or at least make it more difficult? - [66]Q-28: Can I have x11vnc automatically lock the screen when I + [68]Q-28: Can I have x11vnc automatically lock the screen when I disconnect the VNC viewer? - [67]Q-29: Are reverse connections (i.e. the VNC server connecting to + [69]Q-29: Are reverse connections (i.e. the VNC server connecting to the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported? - [68]Q-30: Sometimes when a VNC viewer dies abruptly, x11vnc also dies + [70]Q-30: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with the error message like: "Broken pipe". I'm using the -forever mode and I want x11vnc to keep running. - [69]Q-31: How can I use x11vnc to connect to an X login screen like + [71]Q-31: How can I use x11vnc to connect to an X login screen like xdm, GNOME gdm, KDE kdm, or CDE dtlogin? (i.e. nobody is logged into an X session yet). - [70]Q-32: Can I run x11vnc out of inetd(1)? + [72]Q-32: Can I run x11vnc out of inetd(1)? - [71]Q-33: How do I make x11vnc work with the Java VNC viewer applet in + [73]Q-33: How do I make x11vnc work with the Java VNC viewer applet in a web browser? - [72]Q-34: Why isn't the mouse cursor shape (the little icon shape + [74]Q-34: Why isn't the mouse cursor shape (the little icon shape where the mouse pointer is) correct as I move from window to window? - [73]Q-35: Why does the mouse arrow just stay in one corner in my + [75]Q-35: Why does the mouse arrow just stay in one corner in my vncviewer, whereas my cursor (that does move) is just a dot? - [74]Q-36: Can I take advantage of the TightVNC extension to the VNC + [76]Q-36: Can I take advantage of the TightVNC extension to the VNC protocol where Cursor Positions Updates are sent back to all connected clients (i.e. passive viewers can see the mouse cursor being moved around by another viewer)? - [75]Q-37: Is it possible to swap the mouse buttons (e.g. left-handed + [77]Q-37: Is it possible to swap the mouse buttons (e.g. left-handed operation), or arbitrarily remap them? How about mapping button clicks to keystrokes, e.g. to partially emulate Mouse wheel scrolling? - [76]Q-38: When I drag windows around with the mouse or scroll up and + [78]Q-38: When I drag windows around with the mouse or scroll up and down things really bog down (unless I do the drag in a single, quick motion). Is there anything to do to improve things? - [77]Q-39: I have lots of memory, but why does x11vnc fail with + [79]Q-39: I have lots of memory, but why does x11vnc fail with shmget: No space left on device or Minor opcode of failed request: 1 (X_ShmAttach)? - [78]Q-40: How can I make x11vnc use less system resources? + [80]Q-40: How can I make x11vnc use less system resources? - [79]Q-41: How can I make x11vnc use MORE system resources? + [81]Q-41: How can I make x11vnc use MORE system resources? - [80]Q-42: I use x11vnc over a slow link with high latency (e.g. dialup + [82]Q-42: I use x11vnc over a slow link with high latency (e.g. dialup modem), is there anything I can do to speed things up? - [81]Q-43: How can I get my AltGr and Shift modifiers to work between + [83]Q-43: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - [82]Q-44: When I try to type a "<" (i.e. less than) instead I get ">" + [84]Q-44: When I try to type a "<" (i.e. less than) instead I get ">" (i.e. greater than)! Strangely, typing ">" works OK!! - [83]Q-45: I'm using an "international" keyboard (e.g. German "de", or + [85]Q-45: I'm using an "international" keyboard (e.g. German "de", or Danish "dk") and the -modtweak mode works well if the VNC viewer is run on a Unix/Linux machine with a similar keyboard. But if I run the VNC viewer on Unix/Linux with a different keyboard (e.g. "us") or Windows with any keyboard, I can't type some keys like: "@", "$", "<", ">", etc. How can I fix this? - [84]Q-46: When typing I sometimes get double, triple, or more of my + [86]Q-46: When typing I sometimes get double, triple, or more of my keystrokes repeated. I'm sure I only typed them once, what can I do? - [85]Q-47: The machine where I run x11vnc has an AltGr key, but the + [87]Q-47: The machine where I run x11vnc has an AltGr key, but the local machine where I run the VNC viewer does not. Is there a way I can map a local unused key to send an AltGr? How about a Compose key as well? - [86]Q-48: I have a Sun machine I run x11vnc on. Its Sun keyboard has + [88]Q-48: I have a Sun machine I run x11vnc on. Its Sun keyboard has just one Alt key labelled "Alt" and two Meta keys labelled with little diamonds. The machine where I run the VNC viewer only has Alt keys. How can I send a Meta keypress? (e.g. emacs needs this) - [87]Q-49: Can I map a keystroke to a mouse button click on the remote + [89]Q-49: Can I map a keystroke to a mouse button click on the remote machine? - [88]Q-50: The remote display is larger (in number of pixels) than the + [90]Q-50: The remote display is larger (in number of pixels) than the local display I am running the vncviewer on. I don't like the vncviewer scrollbars, what I can do? - [89]Q-51: Does x11vnc support server-side framebuffer scaling? (E.g. + [91]Q-51: Does x11vnc support server-side framebuffer scaling? (E.g. to make the desktop smaller). - [90]Q-52: Does x11vnc work with Xinerama? (i.e. multiple monitors + [92]Q-52: Does x11vnc work with Xinerama? (i.e. multiple monitors joined together to form one big, single screen). - [91]Q-53: Can I use x11vnc on a multi-headed display that is not + [93]Q-53: Can I use x11vnc on a multi-headed display that is not Xinerama (i.e. separate screens :0.0, :0.1, ... for each monitor)? - [92]Q-54: Does x11vnc support the XRANDR (X Resize, Rotate and + [94]Q-54: Does x11vnc support the XRANDR (X Resize, Rotate and Reflection) extension? Whenever I rotate or resize the screen x11vnc just seems to crash. - [93]Q-55: Why is the view in my VNC viewer completely black? Or why is + [95]Q-55: Why is the view in my VNC viewer completely black? Or why is everything flashing around randomly? - [94]Q-56: I use Linux Virtual Consoles (VC's) to implement 'Fast User + [96]Q-56: I use Linux Virtual Consoles (VC's) to implement 'Fast User Switching' between users' sessions (e.g. Betty is on Ctrl-Alt-F7, Bobby is on Ctrl-Alt-F8, and Sid is on Ctrl-Alt-F1: they use those keystrokes to switch between their sessions). How come the view in a @@ -771,13 +774,13 @@ ls -l ./x11vnc/x11vnc otherwise all messed up unless the X session x11vnc is attached to is in the active VC? - [95]Q-57: Does the Clipboard/Selection get transferred between the + [97]Q-57: Does the Clipboard/Selection get transferred between the vncviewer and the X display? - [96]Q-58: Why don't I hear the "Beeps" in my X session (e.g. when + [98]Q-58: Why don't I hear the "Beeps" in my X session (e.g. when typing tput bel in an xterm)? - [97]Q-59: I am using x11vnc where my local machine has "popup/hidden + [99]Q-59: I am using x11vnc where my local machine has "popup/hidden taskbars" (e.g. GNOME or MacOS X) and the remote display where x11vnc runs also has "popup/hidden taskbars" (e.g. GNOME). When I move the mouse to the edge of the screen where the popups happen, the taskbars @@ -826,6 +829,7 @@ ls -l ./x11vnc/x11vnc when logged into the display machine remotely, use xdpyinfo (if you see the informational output about the display you know it connected to the X server successfully). + Important: if you cannot get your X11 permissions so that the xclock or xdpyinfo tests work, x11vnc also will not work (all of these X clients must be able to connect to the X server to function). @@ -877,7 +881,7 @@ ls -l ./x11vnc/x11vnc is a workaround for Solaris 2.5.1 (and perhaps earlier): First use the environment settings (CPPFLAGS, LDFLAGS, etc.) in the - above [98]Solaris build script to run the configure command. That + above [100]Solaris build script to run the configure command. That should succeed without failure. Then, you have to hand edit the autogenerated rfb/rfbconfig.h file in the source tree, and just before the last #endif at the bottom of that file insert these workaround @@ -914,18 +918,18 @@ typedef unsigned int in_addr_t; Q-4: Where can I get a precompiled x11vnc binary for my Operating System? - Hopefully the [99]build steps above and [100]FAQ provide enough info + Hopefully the [101]build steps above and [102]FAQ provide enough info for a painless compile for most environments. Please report problems with the x11vnc configure, make, etc. on your system (if your system is known to compile other GNU packages successfully). There are precompiled x11vnc binaries made by other groups available at the following locations: - Debian: (.deb) [101]http://packages.debian.org/x11vnc + Debian: (.deb) [103]http://packages.debian.org/x11vnc - Slackware: (.tgz) [102]http://www.linuxpackages.net/ Redhat/Fedora: - (.rpm) [103]http://dag.wieers.com/packages/x11vnc/ wwexptools: (.tgz) - [104]http://www.bell-labs.com/project/wwexptools/packages.html The + Slackware: (.tgz) [104]http://www.linuxpackages.net/ Redhat/Fedora: + (.rpm) [105]http://dag.wieers.com/packages/x11vnc/ wwexptools: (.tgz) + [106]http://www.bell-labs.com/project/wwexptools/packages.html The last one, wwexptools, provides a variety of Unix binaries (Linux, Solaris, HP-UX, Irix, ...) with the intent of being compatible on a wide range of OS releases. Find x11vnc near the bottom of that page @@ -937,7 +941,7 @@ typedef unsigned int in_addr_t; this by looking at the x11vnc output and if it says the encoding for a client is "hextile" then likely the fast compression encodings are missing. If you want optimal performance on your OS, you should see - the [105]build notes above for where to download libz and libjpeg, and + the [107]build notes above for where to download libz and libjpeg, and then build everything with gcc. If any of the above binaries don't work and building x11vnc on your OS @@ -961,17 +965,17 @@ typedef unsigned int in_addr_t; To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try here: - * [106]http://www.tightvnc.com/download.html - * [107]http://www.realvnc.com/download-free.html - * [108]http://sourceforge.net/projects/cotvnc/ + * [108]http://www.tightvnc.com/download.html + * [109]http://www.realvnc.com/download-free.html + * [110]http://sourceforge.net/projects/cotvnc/ Q-6: How can I see all of x11vnc's command line options and documentation on how to use them? - Run: x11vnc -help The output is listed [109]here as well. + Run: x11vnc -help The output is listed [111]here as well. Q-7: I don't like typing arcane command line options every time I - start x11vnc. What can I do? Is there a config file? Is there a GUI? + start x11vnc. What can I do? Is there a config file? Or a GUI? You could create a shell script that calls x11vnc with your options: #!/bin/sh @@ -1015,10 +1019,10 @@ display :0 -shared option to have x11vnc allow multiple clients to connect simultaneously. - Recommended additional safety measures include using ssh ([110]see + Recommended additional safety measures include using ssh ([112]see above), stunnel, or a VPN to authenticate and encrypt the viewer - connections or to at least use the -rfbauth passwd-file [111]option to - use VNC password protection (or [112]-passwdfile) It is up to you to + connections or to at least use the -rfbauth passwd-file [113]option to + use VNC password protection (or [114]-passwdfile) It is up to you to apply these security measures, they will not be done for you automatically. @@ -1032,16 +1036,16 @@ display :0 secondary display (X11). Then start up Win2VNC on the primary display (Windows) referring it to the secondary display. - This will also work X11 to X11 using [113]x2vnc, however you would + This will also work X11 to X11 using [115]x2vnc, however you would probably just want to avoid VNC and use x2x for that. For reference, here are some links to Win2VNC-like programs for multiple monitor setups: - * [114]Original Win2VNC - * [115]Enhanced Win2VNC and [116]sourceforge link - * [117]x2vnc - * [118]x2x also [119]here - * [120]zvnc (MorphOS) + * [116]Original Win2VNC + * [117]Enhanced Win2VNC and [118]sourceforge link + * [119]x2vnc + * [120]x2x also [121]here + * [122]zvnc (MorphOS) All of them (except x2x) will work with x11vnc. @@ -1095,7 +1099,7 @@ display :0 visuals of different color depths: e.g. there are both depth 8 and 24 visuals available at the same time. - You may want to review the [121]previous question regarding 8 bpp + You may want to review the [123]previous question regarding 8 bpp PseudoColor. If that isn't the problem, run xdpyinfo(1) to see what the default @@ -1167,7 +1171,7 @@ TrueColor defdepth 24 the desired application window. After clicking, it will print out much information, including the window id. Also, the visual and depth of the window printed out is often useful in debugging x11vnc - [122]problems. + [124]problems. When using -id windowid, note that some VNC viewers will have problems rendering screens that have a width that is not a multiple of 4. Try @@ -1224,12 +1228,18 @@ TrueColor defdepth 24 Q-17: How do I stop x11vnc once it is running in the background? - If the -forever option has not been supplied, x11vnc will - automatically exit after the first client disconnects. In general you - will have to kill the x11vnc process (however, see the remote-control - -R option below). This can be done via: "kill NNNNN" (where NNNNN is - the x11vnc process id number found from ps(1)), or "pkill x11vnc", or - "killall x11vnc" (Linux only, IIRC). + As of Dec/2004 in the libvncserver CVS there is a remote control + feature. It can change a huge amount of things on the fly: see the + -remote and -query options. To shut down the running x11vnc server + just type "x11vnc -R stop". To disconnect all clients do "x11vnc -R + disconnect:all", etc. + + For older versions: If the -forever option has not been supplied, + x11vnc will automatically exit after the first client disconnects. In + general you will have to kill the x11vnc process (however, see the + remote-control -R option below). This can be done via: "kill NNNNN" + (where NNNNN is the x11vnc process id number found from ps(1)), or + "pkill x11vnc", or "killall x11vnc" (Linux only). If you have not put x11vnc in the background via the -bg option or shell & operator, then simply press Ctrl-C in the shell where x11vnc @@ -1242,12 +1252,6 @@ TrueColor defdepth 24 Ctrl, Shift, and Alt. Alternatively, the -clear_mods and -clear_keys options can be used to release pressed keys at startup and exit. - As of Dec/2004 in the libvncserver CVS there is a remote control - feature. It can change a huge amount of things on the fly: see the - -remote and -query options. To shut down the running x11vnc server - just type "x11vnc -R stop". To disconnect all clients do "x11vnc -R - disconnect:all", etc. - Q-18: Can I change settings in x11vnc without having to restart it? Is there a way to remote control it? @@ -1295,7 +1299,7 @@ TrueColor defdepth 24 is "vnc", e.g.: vnc: 192.168.100.3 .example.com - Note that if you run x11vnc out of [123]inetd you do not need to build + Note that if you run x11vnc out of [125]inetd you do not need to build x11vnc with libwrap support because the /usr/sbin/tcpd reference in /etc/inetd.conf handles the tcp_wrappers stuff. @@ -1339,7 +1343,7 @@ TrueColor defdepth 24 program to prompt the user whether the client should be accepted or not. This requires that you have xmessage installed and available via PATH. In case it is not already on your system, the xmessage program - is available at [124]ftp://ftp.x.org/ + is available at [126]ftp://ftp.x.org/ To include view-only decisions for the external commands, prefix the command something like this: "yes:0,no:*,view:3 mycommand ..." This @@ -1378,7 +1382,7 @@ elif [ $rc = 4 ]; then fi exit 1 - Stefan Radman has written a nice dtksh script [125]dtVncPopup for use + Stefan Radman has written a nice dtksh script [127]dtVncPopup for use in CDE environments to do the same sort of thing. Information on how to use it is found at the top of the file. He encourages you to provide feedback to him to help improve the script. @@ -1414,14 +1418,14 @@ exit 1 out for the command winding up in your shell's history file (history -c is often a way to clear it). - x11vnc also has the [126]-passwdfile and -passwd/-viewpasswd plain + x11vnc also has the [128]-passwdfile and -passwd/-viewpasswd plain text (i.e. not obscured like the -rfbauth VNC passwords) password options. Q-23: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - See the description earlier on this page on [127]how to tunnel VNC via + See the description earlier on this page on [129]how to tunnel VNC via SSH from Unix to Unix. A number of ways are described along with some issues you may encounter. @@ -1431,7 +1435,7 @@ exit 1 Q-24: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [128]Above we described how to tunnel VNC via SSH from Unix to Unix, + [130]Above we described how to tunnel VNC via SSH from Unix to Unix, you may want to review it. To do this from Windows using Putty it would go something like this: * In the Putty dialog window under 'Session' enter the hostname or @@ -1464,7 +1468,7 @@ exit 1 you'll need to do a second login (ssh or rsh) to the workstation machine 'otherhost' and then start up x11vnc on it. - As discussed [129]above another option is to first start the VNC + As discussed [131]above another option is to first start the VNC viewer in "listen" mode, and then launch x11vnc with the "-connection localhost" option to establish the reverse connection. In this case a Remote port redirection (not Local) is needed for port 5500 instead of @@ -1485,7 +1489,7 @@ exit 1 connection to make it appear to emanate from the local machine. As discussed above, ssh is useful for this: ssh -l username -L 5900:localhost:5900 hostname ... See the ssh wrapper scripts mentioned - [130]elsewhere on this page. Of course a malicious user could allow + [132]elsewhere on this page. Of course a malicious user could allow other users to get in through his channel, but that is a problem with every method. Another thing to watch out for is a malicious user on the viewer side (where ssh is running) trying to sneak in through the @@ -1561,7 +1565,7 @@ exit 1 # reject it In any event, as of Jun/2004 there is an experimental utility to make it more difficult for nosey people to see your x11vnc activities. The - source for it is [131]blockdpy.c The idea behind it is simple (but + source for it is [133]blockdpy.c The idea behind it is simple (but obviously not bulletproof): when a VNC client attaches to x11vnc put the display monitor in the DPMS "off" state, if the DPMS state ever changes immediately start up the screen-lock program. The x11vnc user @@ -1630,7 +1634,7 @@ xprop -root -f VNC_CONNECT 8s -set VNC_CONNECT "$1" As of Apr/2004 the above fix only works for BSD signal systems (Linux, FreeBSD, ...) For SYSV systems there is a workaround in my - [132]x11vnc.c file. It also has an option -sigpipe exit to have x11vnc + [134]x11vnc.c file. It also has an option -sigpipe exit to have x11vnc clean up and exit upon receiving SIGPIPE. Q-31: How can I use x11vnc to connect to an X login screen like xdm, @@ -1641,16 +1645,13 @@ xprop -root -f VNC_CONNECT 8s -set VNC_CONNECT "$1" connect to it once: On Linux it seems it is possible to do this by just adjusting the - XAUTHORITY to point to the MIT-COOKIE auth file while running x11vnc - as root, e.g. for the gnome display manager, gdm: - env XAUTHORITY=/var/gdm/:0.Xauth x11vnc -display :0 - - or equivalently with newer x11vnc: + XAUTHORITY environment variable to point to the MIT-COOKIE auth file + while running x11vnc as root, e.g. for the gnome display manager, gdm: x11vnc -auth /var/gdm/:0.Xauth -display :0 - There will be a similar thing for xdm using however a different auth - directory path (perhaps something like - /var/lib/xdm/authdir/authfiles/A:0-XQvaJk for xdm or + (the -auth option sets XAUTHORITY). There will be a similar thing for + xdm using however a different auth directory path (perhaps something + like /var/lib/xdm/authdir/authfiles/A:0-XQvaJk for xdm or /var/lib/kdm/A:0-crWk72 for kdm, where the random characters in basename will vary a bit). @@ -1699,7 +1700,7 @@ xprop -root -f VNC_CONNECT 8s -set VNC_CONNECT "$1" If you do not want to deal with the display manager startup scripts, here is a kludgey script that can be run manually or out of a boot - file like rc.local. [133]x11vnc_loop It will need some local + file like rc.local. [135]x11vnc_loop It will need some local customization before running. Because the XAUTHORITY auth file must be guessed by this script, use of the display manager script above is preferred. @@ -1798,6 +1799,9 @@ mp/x11vnc_sh.log Q-34: Why isn't the mouse cursor shape (the little icon shape where the mouse pointer is) correct as I move from window to window? + On X servers supporting XFIXES or Overlay extensions this is possible. + See the paragraphs below. + As mentioned above, the X11 mouse cursor shape (i.e. little picture: an arrow, X, I-beam, resizer, etc) is one of the few write-only objects in X11. That is, an application can tell the X server what the @@ -1812,17 +1816,15 @@ mp/x11vnc_sh.log KDE often cover up the root background, so this won't work for those cases. Also see the "-cursor some" option for additional kludges. - It should be possible to apply some heuristics where x11vnc tries to - build up a table of cursors for the windows it sees, perhaps using a - user supplied hints file, but that has not been explored yet. - - Also note that as of Aug/2004 in the libvncserver CVS, on Solaris - using the SUN_OVL overlay extension, x11vnc can show the correct mouse + Note that as of Aug/2004 in the libvncserver CVS, on Solaris using the + SUN_OVL overlay extension and IRIX, x11vnc can show the correct mouse cursor when the -overlay is also supplied. (-overlay has some other - problems however, and can be slower). Also as of Dec/2004 in - libvncserver CVS XFIXES X extension support has been added to allow - exact extraction of the mouse cursor shape. This is the preferred way - of viewing the cursor shape, it is available on recent Linux Xorg + problems however, and can be slower). + + Also as of Dec/2004 in libvncserver CVS XFIXES X extension support has + been added to allow exact extraction of the mouse cursor shape. The + only issue is the handling of alpha channel transparency in cursors + (they must be approximated). XFIXES is available on recent Linux Xorg based distros and Solaris 10 express (on Solaris you will need to add "-L /usr/openwin/sfw/lib -R /usr/openwin/sfw/lib" to LDFLAGS for configure to enable it). @@ -1830,7 +1832,7 @@ mp/x11vnc_sh.log Q-35: Why does the mouse arrow just stay in one corner in my vncviewer, whereas my cursor (that does move) is just a dot? - This default takes advantage of a [134]tightvnc extension that allows + This default takes advantage of a [136]tightvnc extension that allows specifying a cursor image for the local VNC viewer. You may disable it with the -nocursor option to x11vnc if your viewer does not have this extension. @@ -1937,7 +1939,7 @@ mp/x11vnc_sh.log 19/03/2004 10:10:58 error creating tile-row shm for len=4 19/03/2004 10:10:58 reverting to single_copytile mode - Here is a shell script [135]shm_clear to list and prompt for removal + Here is a shell script [137]shm_clear to list and prompt for removal of your unattached shm segments (attached ones are skipped). I use it while debugging x11vnc (I use shm_clear -y to assume "yes" for each prompt). If x11vnc is regularly not cleaning up its shm segments, @@ -1975,7 +1977,7 @@ ied) -fs 1.0 knocks it down to 2). If you are having much trouble with shm segments, consider disabling shm completely via the -noshm option. Performance will be somewhat degraded but when done over local machine - sockets it should be acceptable (see an [136]earlier question + sockets it should be acceptable (see an [138]earlier question discussing -noshm). Q-40: How can I make x11vnc use less system resources? @@ -2023,7 +2025,7 @@ ied) worth it, but could be of use in some situations. VNC viewer parameters: - * Use a [137]TightVNC enabled viewer! + * Use a [139]TightVNC enabled viewer! * Make sure the tight encoding is being used (look at vncviewer and x11vnc outputs) * Request 8 bits per pixel using -bgr233 (up to 4X speedup over @@ -2047,10 +2049,6 @@ ied) 100 or so (delays sending vertical blocks since they may change while viewer is receiving earlier ones) * Set -fs 1.0 (disables fullscreen updates) - * Enable server-side scaling via -scale m/n to make the VNC - frambuffer smaller. (less data needs to be sent, but image may not - be sharp and requires extra resources on the server end, may - actually slow down transfers of text due to poorer compression) * Try increasing -wait or -defer (reduces the maximum "frame rate", but won't help much for large screen changes) * If you just want to watch one (simple) window use -id (cuts down @@ -2071,12 +2069,12 @@ ied) default (use -nomodtweak to get the old behavior). This was done because it was noticed on newer XFree86 setups even on bland "us" keyboards like "pc104 us" XFree86 included a "ghost" key with both "<" - and ">" it. This key does not exist on the keyboard (see [138]this FAQ + and ">" it. This key does not exist on the keyboard (see [140]this FAQ for more info). Without -modtweak there was then an ambiguity in the reverse map keysym => keycode, making it so the "<" symbol could not be typed. - Also see the [139]FAQ about the -xkb option for a more powerful method + Also see the [141]FAQ about the -xkb option for a more powerful method of modifier tweaking for use on X servers with the XKEYBOARD extension. @@ -2137,7 +2135,7 @@ ied) the keysym comma when it comes in from a client (so when Shift is down the comma press will yield "<"). - See also the [140]FAQ about the -xkb option as a possible workaround + See also the [142]FAQ about the -xkb option as a possible workaround using the XKEYBOARD extension. Note that of Jul/2004 in the libvncserver CVS the -modtweak option is now that default. @@ -2343,7 +2341,7 @@ ied) There may also be scaling viewers out there (e.g. TightVNC on Windows) that automatically shrink or expand the remote framebuffer to fit the - local display. Especially for hand-held devices. See also [141]this + local display. Especially for hand-held devices. See also [143]this FAQ Q-51: Does x11vnc support server-side framebuffer scaling? (E.g. to @@ -2438,7 +2436,7 @@ ied) Note: if you are running on Solaris 8 or earlier you can easily hit up against the maximum of 6 shm segments per process (for Xsun in this case) from running multiple x11vnc processes. You should modify - /etc/system as mentioned in another [142]FAQ to increase the limit. It + /etc/system as mentioned in another [144]FAQ to increase the limit. It is probably also a good idea to run with the -onetile option in this case (to limit each x11vnc to 3 shm segments), or even -noshm to use no shm segments. @@ -2551,128 +2549,130 @@ References 18. http://www.karlrunge.com/x11vnc/index.html#allow_opt 19. http://www.karlrunge.com/x11vnc/index.html#tcp_wrappers 20. http://sourceforge.net/projects/libvncserver/ - 21. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=257442 - 22. http://www.karlrunge.com/x11vnc/x11vnc.c - 23. http://www.karlrunge.com/x11vnc/index.html#binaries - 24. http://www.tightvnc.com/download.html - 25. http://www.realvnc.com/download-free.html - 26. http://sourceforge.net/projects/cotvnc/ - 27. http://www.karlrunge.com/x11vnc/rx11vnc - 28. http://www.karlrunge.com/x11vnc/rx11vnc.pl - 29. ftp://ftp.uu.net/graphics/jpeg/ - 30. http://www.gzip.org/zlib/ - 31. http://www.sunfreeware.com/ - 32. http://www.karlrunge.com/x11vnc/index.html#solaris251build - 33. http://www.tightvnc.com/ - 34. http://www.karlrunge.com/x11vnc/x11vnc_opts.html - 35. http://www.karlrunge.com/x11vnc/index.html#passwd - 36. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg - 37. http://wwws.sun.com/sunray/index.html - 38. mailto:xvml@karlrunge.com - 39. http://www.karlrunge.com/x11vnc/index.html#FAQ-1 - 40. http://www.karlrunge.com/x11vnc/index.html#FAQ-2 - 41. http://www.karlrunge.com/x11vnc/index.html#FAQ-3 - 42. http://www.karlrunge.com/x11vnc/index.html#FAQ-4 - 43. http://www.karlrunge.com/x11vnc/index.html#FAQ-5 - 44. http://www.karlrunge.com/x11vnc/index.html#FAQ-6 - 45. http://www.karlrunge.com/x11vnc/index.html#FAQ-7 - 46. http://www.karlrunge.com/x11vnc/index.html#FAQ-8 - 47. http://www.karlrunge.com/x11vnc/index.html#FAQ-9 - 48. http://www.karlrunge.com/x11vnc/index.html#FAQ-10 - 49. http://www.karlrunge.com/x11vnc/index.html#FAQ-11 - 50. http://www.karlrunge.com/x11vnc/index.html#FAQ-12 - 51. http://www.karlrunge.com/x11vnc/index.html#FAQ-13 - 52. http://www.karlrunge.com/x11vnc/index.html#FAQ-14 - 53. http://www.karlrunge.com/x11vnc/index.html#FAQ-15 - 54. http://www.karlrunge.com/x11vnc/index.html#FAQ-16 - 55. http://www.karlrunge.com/x11vnc/index.html#FAQ-17 - 56. http://www.karlrunge.com/x11vnc/index.html#FAQ-18 - 57. http://www.karlrunge.com/x11vnc/index.html#FAQ-19 - 58. http://www.karlrunge.com/x11vnc/index.html#FAQ-20 - 59. http://www.karlrunge.com/x11vnc/index.html#FAQ-21 - 60. http://www.karlrunge.com/x11vnc/index.html#FAQ-22 - 61. http://www.karlrunge.com/x11vnc/index.html#FAQ-23 - 62. http://www.karlrunge.com/x11vnc/index.html#FAQ-24 - 63. http://www.karlrunge.com/x11vnc/index.html#FAQ-25 - 64. http://www.karlrunge.com/x11vnc/index.html#FAQ-26 - 65. http://www.karlrunge.com/x11vnc/index.html#FAQ-27 - 66. http://www.karlrunge.com/x11vnc/index.html#FAQ-28 - 67. http://www.karlrunge.com/x11vnc/index.html#FAQ-29 - 68. http://www.karlrunge.com/x11vnc/index.html#FAQ-30 - 69. http://www.karlrunge.com/x11vnc/index.html#FAQ-31 - 70. http://www.karlrunge.com/x11vnc/index.html#FAQ-32 - 71. http://www.karlrunge.com/x11vnc/index.html#FAQ-33 - 72. http://www.karlrunge.com/x11vnc/index.html#FAQ-34 - 73. http://www.karlrunge.com/x11vnc/index.html#FAQ-35 - 74. http://www.karlrunge.com/x11vnc/index.html#FAQ-36 - 75. http://www.karlrunge.com/x11vnc/index.html#FAQ-37 - 76. http://www.karlrunge.com/x11vnc/index.html#FAQ-38 - 77. http://www.karlrunge.com/x11vnc/index.html#FAQ-39 - 78. http://www.karlrunge.com/x11vnc/index.html#FAQ-40 - 79. http://www.karlrunge.com/x11vnc/index.html#FAQ-41 - 80. http://www.karlrunge.com/x11vnc/index.html#FAQ-42 - 81. http://www.karlrunge.com/x11vnc/index.html#FAQ-43 - 82. http://www.karlrunge.com/x11vnc/index.html#FAQ-44 - 83. http://www.karlrunge.com/x11vnc/index.html#FAQ-45 - 84. http://www.karlrunge.com/x11vnc/index.html#FAQ-46 - 85. http://www.karlrunge.com/x11vnc/index.html#FAQ-47 - 86. http://www.karlrunge.com/x11vnc/index.html#FAQ-48 - 87. http://www.karlrunge.com/x11vnc/index.html#FAQ-49 - 88. http://www.karlrunge.com/x11vnc/index.html#FAQ-50 - 89. http://www.karlrunge.com/x11vnc/index.html#FAQ-51 - 90. http://www.karlrunge.com/x11vnc/index.html#FAQ-52 - 91. http://www.karlrunge.com/x11vnc/index.html#FAQ-53 - 92. http://www.karlrunge.com/x11vnc/index.html#FAQ-54 - 93. http://www.karlrunge.com/x11vnc/index.html#FAQ-55 - 94. http://www.karlrunge.com/x11vnc/index.html#FAQ-56 - 95. http://www.karlrunge.com/x11vnc/index.html#FAQ-57 - 96. http://www.karlrunge.com/x11vnc/index.html#FAQ-58 - 97. http://www.karlrunge.com/x11vnc/index.html#FAQ-59 - 98. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 99. http://www.karlrunge.com/x11vnc/index.html#building - 100. http://www.karlrunge.com/x11vnc/index.html#buildfaq - 101. http://packages.debian.org/x11vnc - 102. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc - 103. http://dag.wieers.com/packages/x11vnc/ - 104. http://www.bell-labs.com/project/wwexptools/packages.html - 105. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 106. http://www.tightvnc.com/download.html - 107. http://www.realvnc.com/download-free.html - 108. http://sourceforge.net/projects/cotvnc/ - 109. http://www.karlrunge.com/x11vnc/x11vnc_opts.html - 110. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 111. http://www.karlrunge.com/x11vnc/index.html#passwd - 112. http://www.karlrunge.com/x11vnc/index.html#passwdfile - 113. http://fredrik.hubbe.net/x2vnc.html - 114. http://www.hubbe.net/~hubbe/win2vnc.html - 115. http://www.deboer.gmxhome.de/ - 116. http://sourceforge.net/projects/win2vnc/ - 117. http://fredrik.hubbe.net/x2vnc.html - 118. http://freshmeat.net/projects/x2x/ - 119. http://ftp.digital.com/pub/Digital/SRC/x2x/ - 120. http://zapek.com/software/zvnc/ - 121. http://www.karlrunge.com/x11vnc/index.html#8bpp - 122. http://www.karlrunge.com/x11vnc/index.html#overlays - 123. http://www.karlrunge.com/x11vnc/index.html#inetd - 124. ftp://ftp.x.org/ - 125. http://www.karlrunge.com/x11vnc/dtVncPopup - 126. http://www.karlrunge.com/x11vnc/index.html#passwdfile - 127. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 128. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 21. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=292078 + 22. http://sourceforge.net/project/shownotes.php?group_id=32584&release_id=292078 + 23. http://www.karlrunge.com/x11vnc/x11vnc.c + 24. http://www.karlrunge.com/x11vnc/tkx11vnc.h + 25. http://www.karlrunge.com/x11vnc/index.html#binaries + 26. http://www.tightvnc.com/download.html + 27. http://www.realvnc.com/download-free.html + 28. http://sourceforge.net/projects/cotvnc/ + 29. http://www.karlrunge.com/x11vnc/rx11vnc + 30. http://www.karlrunge.com/x11vnc/rx11vnc.pl + 31. ftp://ftp.uu.net/graphics/jpeg/ + 32. http://www.gzip.org/zlib/ + 33. http://www.sunfreeware.com/ + 34. http://www.karlrunge.com/x11vnc/index.html#solaris251build + 35. http://www.tightvnc.com/ + 36. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 37. http://www.karlrunge.com/x11vnc/index.html#passwd + 38. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg + 39. http://wwws.sun.com/sunray/index.html + 40. mailto:xvml@karlrunge.com + 41. http://www.karlrunge.com/x11vnc/index.html#FAQ-1 + 42. http://www.karlrunge.com/x11vnc/index.html#FAQ-2 + 43. http://www.karlrunge.com/x11vnc/index.html#FAQ-3 + 44. http://www.karlrunge.com/x11vnc/index.html#FAQ-4 + 45. http://www.karlrunge.com/x11vnc/index.html#FAQ-5 + 46. http://www.karlrunge.com/x11vnc/index.html#FAQ-6 + 47. http://www.karlrunge.com/x11vnc/index.html#FAQ-7 + 48. http://www.karlrunge.com/x11vnc/index.html#FAQ-8 + 49. http://www.karlrunge.com/x11vnc/index.html#FAQ-9 + 50. http://www.karlrunge.com/x11vnc/index.html#FAQ-10 + 51. http://www.karlrunge.com/x11vnc/index.html#FAQ-11 + 52. http://www.karlrunge.com/x11vnc/index.html#FAQ-12 + 53. http://www.karlrunge.com/x11vnc/index.html#FAQ-13 + 54. http://www.karlrunge.com/x11vnc/index.html#FAQ-14 + 55. http://www.karlrunge.com/x11vnc/index.html#FAQ-15 + 56. http://www.karlrunge.com/x11vnc/index.html#FAQ-16 + 57. http://www.karlrunge.com/x11vnc/index.html#FAQ-17 + 58. http://www.karlrunge.com/x11vnc/index.html#FAQ-18 + 59. http://www.karlrunge.com/x11vnc/index.html#FAQ-19 + 60. http://www.karlrunge.com/x11vnc/index.html#FAQ-20 + 61. http://www.karlrunge.com/x11vnc/index.html#FAQ-21 + 62. http://www.karlrunge.com/x11vnc/index.html#FAQ-22 + 63. http://www.karlrunge.com/x11vnc/index.html#FAQ-23 + 64. http://www.karlrunge.com/x11vnc/index.html#FAQ-24 + 65. http://www.karlrunge.com/x11vnc/index.html#FAQ-25 + 66. http://www.karlrunge.com/x11vnc/index.html#FAQ-26 + 67. http://www.karlrunge.com/x11vnc/index.html#FAQ-27 + 68. http://www.karlrunge.com/x11vnc/index.html#FAQ-28 + 69. http://www.karlrunge.com/x11vnc/index.html#FAQ-29 + 70. http://www.karlrunge.com/x11vnc/index.html#FAQ-30 + 71. http://www.karlrunge.com/x11vnc/index.html#FAQ-31 + 72. http://www.karlrunge.com/x11vnc/index.html#FAQ-32 + 73. http://www.karlrunge.com/x11vnc/index.html#FAQ-33 + 74. http://www.karlrunge.com/x11vnc/index.html#FAQ-34 + 75. http://www.karlrunge.com/x11vnc/index.html#FAQ-35 + 76. http://www.karlrunge.com/x11vnc/index.html#FAQ-36 + 77. http://www.karlrunge.com/x11vnc/index.html#FAQ-37 + 78. http://www.karlrunge.com/x11vnc/index.html#FAQ-38 + 79. http://www.karlrunge.com/x11vnc/index.html#FAQ-39 + 80. http://www.karlrunge.com/x11vnc/index.html#FAQ-40 + 81. http://www.karlrunge.com/x11vnc/index.html#FAQ-41 + 82. http://www.karlrunge.com/x11vnc/index.html#FAQ-42 + 83. http://www.karlrunge.com/x11vnc/index.html#FAQ-43 + 84. http://www.karlrunge.com/x11vnc/index.html#FAQ-44 + 85. http://www.karlrunge.com/x11vnc/index.html#FAQ-45 + 86. http://www.karlrunge.com/x11vnc/index.html#FAQ-46 + 87. http://www.karlrunge.com/x11vnc/index.html#FAQ-47 + 88. http://www.karlrunge.com/x11vnc/index.html#FAQ-48 + 89. http://www.karlrunge.com/x11vnc/index.html#FAQ-49 + 90. http://www.karlrunge.com/x11vnc/index.html#FAQ-50 + 91. http://www.karlrunge.com/x11vnc/index.html#FAQ-51 + 92. http://www.karlrunge.com/x11vnc/index.html#FAQ-52 + 93. http://www.karlrunge.com/x11vnc/index.html#FAQ-53 + 94. http://www.karlrunge.com/x11vnc/index.html#FAQ-54 + 95. http://www.karlrunge.com/x11vnc/index.html#FAQ-55 + 96. http://www.karlrunge.com/x11vnc/index.html#FAQ-56 + 97. http://www.karlrunge.com/x11vnc/index.html#FAQ-57 + 98. http://www.karlrunge.com/x11vnc/index.html#FAQ-58 + 99. http://www.karlrunge.com/x11vnc/index.html#FAQ-59 + 100. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 101. http://www.karlrunge.com/x11vnc/index.html#building + 102. http://www.karlrunge.com/x11vnc/index.html#buildfaq + 103. http://packages.debian.org/x11vnc + 104. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc + 105. http://dag.wieers.com/packages/x11vnc/ + 106. http://www.bell-labs.com/project/wwexptools/packages.html + 107. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 108. http://www.tightvnc.com/download.html + 109. http://www.realvnc.com/download-free.html + 110. http://sourceforge.net/projects/cotvnc/ + 111. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 112. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 113. http://www.karlrunge.com/x11vnc/index.html#passwd + 114. http://www.karlrunge.com/x11vnc/index.html#passwdfile + 115. http://fredrik.hubbe.net/x2vnc.html + 116. http://www.hubbe.net/~hubbe/win2vnc.html + 117. http://www.deboer.gmxhome.de/ + 118. http://sourceforge.net/projects/win2vnc/ + 119. http://fredrik.hubbe.net/x2vnc.html + 120. http://freshmeat.net/projects/x2x/ + 121. http://ftp.digital.com/pub/Digital/SRC/x2x/ + 122. http://zapek.com/software/zvnc/ + 123. http://www.karlrunge.com/x11vnc/index.html#8bpp + 124. http://www.karlrunge.com/x11vnc/index.html#overlays + 125. http://www.karlrunge.com/x11vnc/index.html#inetd + 126. ftp://ftp.x.org/ + 127. http://www.karlrunge.com/x11vnc/dtVncPopup + 128. http://www.karlrunge.com/x11vnc/index.html#passwdfile 129. http://www.karlrunge.com/x11vnc/index.html#tunnelling 130. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 131. http://www.karlrunge.com/x11vnc/blockdpy.c - 132. http://www.karlrunge.com/x11vnc/x11vnc.c - 133. http://www.karlrunge.com/x11vnc/x11vnc_loop - 134. http://www.tightvnc.com/ - 135. http://www.karlrunge.com/x11vnc/shm_clear - 136. http://www.karlrunge.com/x11vnc/index.html#noshm - 137. http://www.tightvnc.com/ - 138. http://www.karlrunge.com/x11vnc/index.html#greaterless - 139. http://www.karlrunge.com/x11vnc/index.html#xkbmodtweak - 140. http://www.karlrunge.com/x11vnc/index.html#xkbmodtweak - 141. http://www.karlrunge.com/x11vnc/index.html#scaling - 142. http://www.karlrunge.com/x11vnc/index.html#solshm + 131. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 132. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 133. http://www.karlrunge.com/x11vnc/blockdpy.c + 134. http://www.karlrunge.com/x11vnc/x11vnc.c + 135. http://www.karlrunge.com/x11vnc/x11vnc_loop + 136. http://www.tightvnc.com/ + 137. http://www.karlrunge.com/x11vnc/shm_clear + 138. http://www.karlrunge.com/x11vnc/index.html#noshm + 139. http://www.tightvnc.com/ + 140. http://www.karlrunge.com/x11vnc/index.html#greaterless + 141. http://www.karlrunge.com/x11vnc/index.html#xkbmodtweak + 142. http://www.karlrunge.com/x11vnc/index.html#xkbmodtweak + 143. http://www.karlrunge.com/x11vnc/index.html#scaling + 144. http://www.karlrunge.com/x11vnc/index.html#solshm ======================================================================= @@ -2685,7 +2685,9 @@ x11vnc: a VNC server for real X displays Here are all of x11vnc command line options: % x11vnc -help -x11vnc: allow VNC connections to real X11 displays. 0.7pre lastmod: 2004-12-20 + +x11vnc: allow VNC connections to real X11 displays. 0.7.1pre lastmod: 2004-12-2 +7 Typical usage is: @@ -3083,6 +3085,13 @@ Options: default (see -noxfixes below). This can be disabled with -nocursor, and also some values of the "mode" option below. + + Note that under XFIXES cursors with transparency + (alpha channel) will not be exactly represented and + so Overlay may be preferred. See also the -alphacut + and -alphafrac options below as fudge factors to try + to improve the situation for cursors with transparency + for a given theme. The "mode" string can be used to fine-tune the displaying of cursor shapes. It can be used the @@ -3116,6 +3125,29 @@ Options: -noxfixes Do not use the XFIXES extension to draw the exact cursor shape even if it is available. +-alphacut n When using the XFIXES extension for the cursor shape, + cursors with transparency will not be displayed exactly + (but opaque ones will). This option sets n as a cutoff + for cursors that have transparency ("alpha channel" + with values ranging from 0 to 255) Any cursor pixel with + alpha value less than n becomes completely transparent. + Otherwise the pixel is completely opaque. Default 255 + + Note: the options -alphacut, -alphafrac, and -alphafrac + may be removed if a more accurate internal method for + handling cursor transparency is implemented. +-alphafrac fraction With the threshold in -alphacut some cursors will become + almost completely transparent because their alpha values + are not high enough. For those cursors adjust the + alpha threshold until fraction of the non-zero alpha + channel pixels become opaque. Default 0.33 +-alpharemove By default, XFIXES cursors pixels with transparency have + the alpha factor multiplied into the RGB color values + (i.e. that corresponding to blending the cursor with a + black background). Specify this option to remove the + alpha factor. (useful for light colored semi-transparent + cursors). + -nocursorshape Do not use the TightVNC CursorShapeUpdates extension even if clients support it. See -cursor above. -cursorpos Option -cursorpos enables sending the X cursor position @@ -3382,18 +3414,25 @@ Options: keymapping, use "-key1-key2" to delete. norepeat enable -norepeat mode. repeat disable -norepeat mode. + nofb enable -nofb mode. + fb disable -nofb mode. bell enable bell (if supported). nobell disable bell. - sel disable -nosel mode. + bell enable bell (if supported). nosel enable -nosel mode. - primary disable -noprimary mode. + sel disable -nosel mode. noprimary enable -noprimary mode. + primary disable -noprimary mode. cursor:mode enable -cursor "mode". show_cursor enable showing a cursor. noshow_cursor disable showing a cursor. (same as "nocursor") xfixes enable xfixes cursor shape mode. noxfixes disable xfixes cursor shape mode. + alphacut:n set -alphacut to n. + alphafrac:f set -alphafrac to f. + alpharemove enable -alpharemove mode. + noalpharemove disable -alpharemove mode. cursorshape disable -nocursorshape mode. nocursorshape enable -nocursorshape mode. cursorpos disable -nocursorpos mode. @@ -3411,6 +3450,7 @@ Options: nodebug_keyboard disable -debug_keyboard, same as "nodk" defer:n set -defer to n ms,same as deferupdate:n wait:n set -wait to n ms. + rfbwait:n set -rfbwait (rfbMaxClientWait) to n ms. nap enable -nap mode. nonap disable -nap mode. sb:n set -sb to n s, same as screen_blank:n @@ -3420,8 +3460,24 @@ Options: fuzz:n set -fuzz to n. progressive:n set libvncserver -progressive slice height parameter to n. - file:name run -remote commands from file "name", - one command per line,blank and # skipped + desktop:str set -desktop name to str for new clients +. + rfbport:n set -rfbport to n. + http enable http client connections. + nohttp disable http client connections. + httpport:n set -httpport to n. + httpdir:dir set -httpdir to dir (and enable http). + enablehttpproxy enable -enablehttpproxy mode. + noenablehttpproxy disable -enablehttpproxy mode. + alwaysshared enable -alwaysshared mode. + noalwaysshared disable -alwaysshared mode. + (may interfere with other options) + nevershared enable -nevershared mode. + nonevershared disable -nevershared mode. + (may interfere with other options) + dontdisconnect enable -dontdisconnect mode. + nodontdisconnect disable -dontdisconnect mode. + (may interfere with other options) noremote disable the -remote command processing, it cannot be turned back on. @@ -3461,38 +3517,43 @@ Options: the returned value corresponds to (hint: the ext_* variables correspond to the presence of X extensions): - ans= stop quit exit shutdown ping blacken zero refresh - reset close disconnect id sid flashcmap noflashcmap - truecolor notruecolor overlay nooverlay overlay_cursor - overlay_yescursor nooverlay_cursor overlay_nocursor + ans= stop quit exit shutdown ping blacken zero + refresh reset close disconnect id sid flashcmap + noflashcmap truecolor notruecolor overlay nooverlay + overlay_cursor overlay_yescursor nooverlay_nocursor + nooverlay_cursor nooverlay_yescursor overlay_nocursor visual scale viewonly noviewonly shared noshared - forever noforever once deny lock nodeny unlock connect - allowonce allow localhost nolocalhost accept gone shm - noshm flipbyteorder noflipbyteorder onetile noonetile - blackout xinerama noxinerama xrandr noxrandr xrandr_mode - padgeom quiet q noquiet modtweak nomodtweak xkb noxkb - skip_keycodes add_keysyms noadd_keysyms clear_mods - noclear_mods clear_keys noclear_keys remap repeat - norepeat bell nobell sel nosel primary noprimary - cursorshape nocursorshape cursorpos nocursorpos cursor - show_cursor noshow_cursor nocursor xfixes noxfixes xwarp - xwarppointer noxwarp noxwarppointer buttonmap dragging - nodragging pointer_mode input_skip debug_pointer dp - nodebug_pointer nodp debug_keyboard dk nodebug_keyboard - nodk deferupdate defer wait nap nonap sb screen_blank - fs gaps grow fuzz progressive noremote - - aro= display vncdisplay desktopname desktop auth - rootshift scale_str scaled_x scaled_y scale_numer - scale_denom scale_fac scaling_noblend scaling_nomult4 - scaling_pad scaling_interpolate inetd safer unsafe - passwdfile using_shm logfile o rc norc h help V version - lastmod bg nofb sigpipe threads clients client_count - pid ext_xtest ext_xkb ext_xshm ext_xinerama ext_overlay - ext_xfixes ext_xdamage ext_xrandr rootwin num_buttons - button_mask mouse_x mouse_y bpp depth indexed_color - dpy_x dpy_y rfbport rfbwait rfbauth passwd alwaysshared - dontdisconnect httpdir enablehttpproxy + forever noforever once deny lock nodeny unlock + connect allowonce allow localhost nolocalhost accept + gone shm noshm flipbyteorder noflipbyteorder onetile + noonetile blackout xinerama noxinerama xrandr noxrandr + xrandr_mode padgeom quiet q noquiet modtweak nomodtweak + xkb noxkb skip_keycodes add_keysyms noadd_keysyms + clear_mods noclear_mods clear_keys noclear_keys + remap repeat norepeat fb nofb bell nobell sel + nosel primary noprimary cursorshape nocursorshape + cursorpos nocursorpos cursor show_cursor noshow_cursor + nocursor xfixes noxfixes alphacut alphafrac alpharemove + noalpharemove xwarp xwarppointer noxwarp noxwarppointer + buttonmap dragging nodragging pointer_mode input_skip + debug_pointer dp nodebug_pointer nodp debug_keyboard + dk nodebug_keyboard nodk deferupdate defer wait + rfbwait nap nonap sb screen_blank fs gaps grow fuzz + progressive rfbport http nohttp httpport httpdir + enablehttpproxy noenablehttpproxy alwaysshared + noalwaysshared nevershared noalwaysshared dontdisconnect + nodontdisconnect desktop noremote + + aro= display vncdisplay desktopname auth rootshift + scale_str scaled_x scaled_y scale_numer scale_denom + scale_fac scaling_noblend scaling_nomult4 scaling_pad + scaling_interpolate inetd safer unsafe passwdfile + using_shm logfile o rc norc h help V version lastmod + bg sigpipe threads clients client_count pid ext_xtest + ext_xkb ext_xshm ext_xinerama ext_overlay ext_xfixes + ext_xdamage ext_xrandr rootwin num_buttons button_mask + mouse_x mouse_y bpp depth indexed_color dpy_x dpy_y + rfbauth passwd -sync By default -remote commands are run asynchronously, that is, the request is posted and the program immediately @@ -3565,8 +3626,7 @@ These options are passed to libvncserver: Pretty wild huh? [1]Contact me if you have any questions or problems. Personally, I use: -x11vnc -rfbauth $HOME/.vnc/passwd -nap -flashcmap -cursor X -norepeat -add_keys -yms +x11vnc -rfbauth $HOME/.vnc/passwd -nap -flashcmap -cursor X -add_keysyms (the -flashcmap only matters on old 8-bit X displays) -- cgit v1.2.1