Thursday, October 01, 2009

X Sharing Screens

Found this in my archive, I dunno where from..

When I pop up with my laptop to discuss with a colleague, after a while I might do on their computer:
xhost +mylaptopname

and on my laptop I do:
x2x thecomputername:0 -west

Then suddenly my mouse can go over the two computers, my keyboard works on both as well, and I can even copy-paste between the two computers. It looks like the two computers got united. In a flash, newbies get a new idea of what means unix and X ;-

but I thought it was worth reposting.

Actually those commands don't quite work. On your laptop, run
sudo apt-get install x2x xhost +desktop-ip
And on the desktop,
ssh laptop-ip -XC x2x -west -to :0.0
Your desktop now controls both screens.