touchsteam, synergy replacement
touchstream is a program that allows you to share a keyboard & mouse over a number of machines, on a LAN, typicaly.
Imagine having a mac and a linux machine, with their own screens; you can use the Mac mouse and keyboard on the linux box too by moving the mouse pointer to a max screen edge, and it starts moving on the linux screen.
Also, the clipboard is exchanged as you switch back & forth.
The goal of touchstream was to replace synergy -- at least on my desk. Synergy has various issues, notably on the bloat department; "powertop" flags it as one of the most used/busy process on the machine, even tho it technicaly hasn't a lot to do, furthermore the codebase is bloated too, and the implementation uses countless locks, mutexes and other distasteful things that adds a lot of overhead, and that one doesn't strictly need if designing the execution path properly.
The other reason is that synergy stopped working on my configuration recently for me, and I realised about it's code bloat when I went to try to fix it.
Obviously, quite a bit of the platform specific bits of touchstream are copied straight out of synergy's source code, and not only deserve the credit, but also share their GPL licence. In many cases, the code has been entirely reworked tho, and I haven't taken care of copying the attribution and copyrights for individual snipets.
The actualy "core" of touchstream is entirely original, and thats why the files uses my generic GPL header bits.
Anyway, touchstream is C99, doesn't use a single mutex, and works for now on OSX as a server (read, the screen that has the keyboard and mouse) and as a client of a recent xorg.
It also can work without a "client" process by talking directly to remote xorg servers, as long as 1) the server allows tcp connections, and 2) you have disabled access control (xhost +)
Clearly it lacks a lot of the feature synergy has (windows support, non-latin keyboard support etc) but it also a LOT simpler, and uses a fraction of the resources.
Download : http://gitorious/touchstream
Use "git clone" to download, then hit "make" and hope for the best! You will need the OSX developer tools, obviously, and X11.app installed too for the runtime libraries.
Quick Start:
On the server/mac:
$ touchstream -D -s
"-D is for daemon, "-s" for server
On the Client:
$ touchstream -D -c <server ip or name>=<position right/left/top bottom>
Direct Client:
touchstream can also connect to X servers directly without running a client on them, on the server you can use
$ touchstream -D -s -x <ip/name of xorg machine>:<display number, like :0>=<position right/left/top bottom>
You can have several -x too, it should work!
Drawbacks:
xlib abort the whole server when it detects a disconnection, it's very annoying and theres nothing I can do about it. I have a possible solution, for running a "client" process on the server machine, as a proxy
You will need to use "xhosts+" or the -ac parameter of the xorg server on the target machine to allow it to accept tcp connections..













