Share a single X window with someone over VNC
I recently found a need to share an NX session open on my desktop with someone else remotely in Linux. Sure, I could have setup a VNC sharing my entire X desktop,but I didn't see the need to send 3840x1080 over the WAN for a smaller section of interesting data.
This slick little trick comes compliments of a StackExchange based website, Super User:
x11vnc supports sharing a window based on it's id. Basic steps:
- Run xwininfo from a console. It will change your cursor. Click on the window you want to share. xwininfo will print out the window id.
- Run x11vnc -id "id from xwininfo" replacing "id from xwininfo" with the appropriate id.