Compiling Synergy on the Raspberry Pi isn't too difficult. In this post I'll go over the packages necessary to do so.
I have a Raspberry Pi(RPi) setup with Synergy server, and both my laptop and desktop are clients for it. This allows me to turn off either laptop or desktop, and still be able to use the shared keyboard.
I am currently running Synergy 1.11.0 on the RPi, 1.10.3 on the laptop with Manjaro, and I think 1.11.1 on Windows 10 desktop.
I was having issues with Synergy (which were fixed without the need of compiling a new version, but that's fine) so I wanted to try matching versions. Looking around, I didn't find a prepackaged version of Synergy 1.10.3 for the RPi so I had to compile it myself.
Note that these instructions should work for Synergy version 1.10.3, but might not for other versions. I noticed they seem to change dependencies or file structure a little fairly often.
First we update the system.
sudo apt update && sudo apt upgrade -y
Then we install the necessary dev tools
sudo apt install gcc cmake libx11-dev libxtst-dev libssl-dev libavahi-compat-libdnssd-dev
Download the Synergy v1.10.3 source code from GitHub.
unzip or untar:
sudo tar -xzf synergy-1.10.3-Source.tar.gz sudo unzip synergy-1.10.3-Source.tar.gz
Navigate into the directory
Raspbian file structure is a bit different from Ubuntu so to fix a path issue, edit CMakeList.txt and find
Then replace with
Save and run
sudo cmake .
To configure the makefile. If there were no issues, we can now build the binaries.
This will create the synergy binaries in the
To use it, make sure you have uninstalled any other existing versions of Synergy and copy the binaries to
sudo cp -a ./bin/. /usr/bin
Now you can run it from the command line
Or add it to startup scripts. This step will depend on your Window Manager so I 'll skip it for this tutorial.
Got comments or issues with what I wrote? Please let me know by submitting an issue with the blog title :)