Friday, 31 October 2008

Synergy on ubuntu 8.04 , freeze up fixed.

Synergy has been my long term tool for sharing keyboard and mouse between my development and build machines. Unluckily with ubuntu 8.04 there has been a lots of 4-5sec freeze up problems. In the end moved to 2x keyboards and mice again.

Now this is fixed with some open googling and some source patching, as follows.

1) download 1.3.1 source code from http://synergy2.sourceforge.net/
See http://downloads.sourceforge.net/synergy2/synergy-1.3.1.tar.gz

tar -xzf synergy-1.3.1.tar.gz

2) Patch with fix from lanchpad

See. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/194029

wget http://launchpadlibrarian.net/13995863/synergy_diffs
patch -p1 < synergy_diffs

3) Install needed extra libraries (XTest)

sudo apt-get install libxtst-dev

4) rebuild and install

cd synergy-1.3.1
./configure -prefix=/usr
make
sudo make install

Restart synergy all works smoothly again. Can get space for coffee cups back again.


Note: Plus 12hours some problems with synergy going wild and eating 100% cpu so not a full solution looks like I have to review whats happening. Not much betters solution the the run with sudo method I used before.