Setting up Synergy from Scratch for sharing mouse and keyboard across Ubuntu/Raspberry Pi and Windows systems

  • Extract the tar file at a location (e.g. Home/Downloads/) and go inside the directory created.
sudo tar -xvf synergy-core-1.11.1-stable.tar.gz && cd synergy-core-1.11.1-stable
  • Install required packages [1]: (QT5, Openssl, Xtext, X11, etc…). Dont’ worry if some of the packages fail to install at this point. We will fix it later.
sudo apt install qtcreator qtbase5-dev qttools5-dev cmake make g++ xorg-dev libssl-dev libx11-dev libsodium-dev libgl1-mesa-glx libegl1-mesa libcurl4-openssl-dev libavahi-compat-libdnssd-dev qtdeclarative5-dev libqt5svg5-dev libsystemd-dev
  • Worth running a fix broken install at this moment to let Ubuntu figure out dependencies
sudo apt --fix-broken install
sudo mkdir build && cd build
sudo cmake ..
sudo apt-get install libx11-dev
# add include dir for bsd (posix uses /usr/include/)
set (CMAKE_INCLUDE_PATH “${CMAKE_INCLUDE_PATH}:/usr/local/include”)
# add include dir for bsd (posix uses /usr/include/)
set (CMAKE_INCLUDE_PATH “${CMAKE_INCLUDE_PATH}:/usr/include”)
sudo rm -rf build 
sudo mkdir build
cd build && sudo cmake ..
sudo apt-get install libxtst-dev
sudo apt install qtcreator qtbase5-dev qttools5-dev
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext
sudo apt-get install libavahi-compat-libdnssd-dev
sudo cmake..
make
./synergy
NOTE: connecting to '192.168.0.16': 192.168.0.16:3004NOTE: connected to server
NOTE: accepted client connection 
NOTE: client "UBUNTU-PC" has connected

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store