x11vnc

foo is the host where the cpu is bar is the host with the keyboard and monitor

Virtual Sessions (that do not run on real hardware at foo)

Setup the session

At foo

./Xdummy :4 -geom 1024x600
x11vnc -xrandr -display :4 &
export DISPLAY=:4
bash .xsession

Connect to the session

At bar

vncviewer -encodings "copyrect tight zrle hextile" foo:0

Sharing Session (for support)

Aim: Securily connect to a computer - named foo - behind a NAT-ed internet connection and access its display, so you can supply support (e.g. to your mother) from your computer - named bar.

Solution let foo automatically initiate a ssh-tunnel to a server named zip, whenever it gets internet connection (using a script in /etc/network/if-up.d/ ) so you can login to foo from bar with:

ssh -p 19830 mother@zip

Now, using such a tunnel, create a another tunnel that forwards port 5900 at bar to port 5900 at foo, and at the same time start x11vnc at foo. Then just run vncviewer at bar.

#!/bin/bash
ssh -f -p 19830 mother@zip -L 5900:localhost:5900 x11vnc -display :0
sleep 5
vncviewer -encodings "copyrect tight zrle hextile" localhost:0
./Xdummy :4 -geom 1680x1050 &
x11vnc -forever -xrandr -display :4 &

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: oktober 17, 2019