Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to provide a way of interactively Webcasting a single window. It must run on Linux and support Linux and Winders connections (maybe Macs too). No need for input from remote users, just real time output. I don't think that VNC would work the right way??
For example, using a GUI interface of the BamBoo Touch where I will write on the tablet and let other see what is happening in real time.
All ideas are welcome, but must be Open Source or GPL.
Have you tried x11vnc -id option? From man x11vnc:
-id windowid
Show the X window corresponding to windowid not the entire dis‐
play. New windows like popup menus, transient toplevels, etc,
may not be seen or may be clipped. Disabling SaveUnders or
BackingStore in the X server may help show them. x11vnc may
crash if the window is initially partially obscured, changes
size, is iconified, etc. Some steps are taken to avoid this and
the -xrandr mechanism is used to track resizes. Use xwininfo(1)
to get the window id, or use "-id pick" to have x11vnc run xwin‐
info(1) for you and extract the id. The -id option is useful
for exporting very simple applications (e.g. the current view on
a webcam).
-sid windowid
As -id, but instead of using the window directly it shifts a
root view to it: this shows SaveUnders menus, etc, although they
will be clipped if they extend beyond the window.
Have you tried x11vnc -id option? From man x11vnc:
-id windowid
Show the X window corresponding to windowid not the entire dis‐
play. New windows like popup menus, transient toplevels, etc,
may not be seen or may be clipped. Disabling SaveUnders or
BackingStore in the X server may help show them. x11vnc may
crash if the window is initially partially obscured, changes
size, is iconified, etc. Some steps are taken to avoid this and
the -xrandr mechanism is used to track resizes. Use xwininfo(1)
to get the window id, or use "-id pick" to have x11vnc run xwin‐
info(1) for you and extract the id. The -id option is useful
for exporting very simple applications (e.g. the current view on
a webcam).
-sid windowid
As -id, but instead of using the window directly it shifts a
root view to it: this shows SaveUnders menus, etc, although they
will be clipped if they extend beyond the window.
OK, I got ssh to start but when I 'pick' the window, it shows nothing.
What am I missing??
Looks like a good solution, if I can get it to work.
Code:
/usr/bin/ssh -C -t -p 22 user@127.0.0.1 'x11vnc -display :0.0 -usepw -id pick'
user127.0.0.1's password:
Please select the window for x11vnc to poll
by clicking the mouse in that window.
Picked: 0x5000007
31/01/2011 18:51:02 -usepw: found /home/user/.vnc/passwd
31/01/2011 18:51:02 x11vnc version: 0.9.8 lastmod: 2009-06-14
31/01/2011 18:51:02 Using X display :0.0
31/01/2011 18:51:02 rootwin: 0xae reswin: 0x4000001 dpy: 0x2042920
31/01/2011 18:51:02
31/01/2011 18:51:02 ------------------ USEFUL INFORMATION ------------------
31/01/2011 18:51:02
31/01/2011 18:51:02 Wireframing: -wireframe mode is in effect for window moves.
31/01/2011 18:51:02 If this yields undesired behavior (poor response, painting
31/01/2011 18:51:02 errors, etc) it may be disabled:
31/01/2011 18:51:02 - use '-nowf' to disable wireframing completely.
31/01/2011 18:51:02 - use '-nowcr' to disable the Copy Rectangle after the
31/01/2011 18:51:02 moved window is released in the new position.
31/01/2011 18:51:02 Also see the -help entry for tuning parameters.
31/01/2011 18:51:02 You can press 3 Alt_L's (Left "Alt" key) in a row to
31/01/2011 18:51:02 repaint the screen, also see the -fixscreen option for
31/01/2011 18:51:02 periodic repaints.
31/01/2011 18:51:02
31/01/2011 18:51:02 XFIXES available on display, resetting cursor mode
31/01/2011 18:51:02 to: '-cursor most'.
31/01/2011 18:51:02 to disable this behavior use: '-cursor arrow'
31/01/2011 18:51:02 or '-noxfixes'.
31/01/2011 18:51:02 using XFIXES for cursor drawing.
31/01/2011 18:51:02 GrabServer control via XTEST.
31/01/2011 18:51:02
31/01/2011 18:51:02 Scroll Detection: -scrollcopyrect mode is in effect to
31/01/2011 18:51:02 use RECORD extension to try to detect scrolling windows
31/01/2011 18:51:02 (induced by either user keystroke or mouse input).
31/01/2011 18:51:02 If this yields undesired behavior (poor response, painting
31/01/2011 18:51:02 errors, etc) it may be disabled via: '-noscr'
31/01/2011 18:51:02 Also see the -help entry for tuning parameters.
31/01/2011 18:51:02 You can press 3 Alt_L's (Left "Alt" key) in a row to
31/01/2011 18:51:02 repaint the screen, also see the -fixscreen option for
31/01/2011 18:51:02 periodic repaints.
31/01/2011 18:51:02
31/01/2011 18:51:02 XKEYBOARD: all 28 "must have" keysyms accounted for.
31/01/2011 18:51:02 Not automatically switching to -xkb mode.
31/01/2011 18:51:02 If some keys still cannot be typed, try using -xkb.
31/01/2011 18:51:02 Also, remember "-remap DEAD" for accenting characters.
31/01/2011 18:51:02 X FBPM extension not supported.
31/01/2011 18:51:02 X display is capable of DPMS.
31/01/2011 18:51:02 --------------------------------------------------------
31/01/2011 18:51:02
31/01/2011 18:51:02 Default visual ID: 0x21
31/01/2011 18:51:02 Read initial data from X display into framebuffer.
31/01/2011 18:51:02 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/2400
31/01/2011 18:51:02
31/01/2011 18:51:02 X display :0.0 is 32bpp depth=24 true color
31/01/2011 18:51:02
31/01/2011 18:51:02 Autoprobing TCP port
31/01/2011 18:51:02 Autoprobing selected port 5900
31/01/2011 18:51:02 Xinerama: Library libXinerama is not available to determine
31/01/2011 18:51:02 Xinerama: the head geometries, consider using -blackout
31/01/2011 18:51:02 Xinerama: if the screen is non-rectangular.
31/01/2011 18:51:02 fb read rate: 91 MB/sec
31/01/2011 18:51:02 fast read: reset wait ms to: 10
31/01/2011 18:51:02 fast read: reset defer ms to: 10
31/01/2011 18:51:02 screen setup finished.
31/01/2011 18:51:02
The VNC desktop is: acer64.mt-umunhum-wireless.net:0
PORT=5900
OK, I got ssh to start but when I 'pick' the window, it shows nothing.
What am I missing??
Looks like a good solution, if I can get it to work.
Code:
/usr/bin/ssh -C -t -p 22 user@127.0.0.1 'x11vnc -display :0.0 -usepw -id pick'
user127.0.0.1's password:
Please select the window for x11vnc to poll
by clicking the mouse in that window.
Picked: 0x5000007
...
Next you need someone to connect from a remote computer with a VNC viewer. (E.g. vncviewer your-computer-name-or-ip.net:0 )
The "-id pick" should work too instead of running xwininfo(1) manually. The remote user would have to connect with the vncviewer after you have clicked on the desired window.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.