There are special situations where you are looking to install Synergy remotely on a Raspberry Pi via SSH because you don't have a keyboard and mouse connected to it, only a screen.
This is what you can do:
On your PC the latest version (for example):
Download from synergy.com: synergy_1.11.0.stable_b105+b2173efb_raspbian_armhf.deb
To make the rest of the process more simple, rename the installer file to synergy.deb
> rename download to synergy.deb
Transfer the file to your Pi (example: 192.168.1.15):
> pscp synergy.deb pi@192.168.1.15
Once the file has been transferred to your Pi:
> sudo apt install ./synergy.deb
> sudo mkdir -p ~/.config/lxsession/LXDE
> sudo touch ~/.config/lxsession/LXDE/autostart
> sudo nano ~/.config/lxsession/LXDE/autostart:
> ~/.startsynergy.sh
sudo nano ~/.startsynergy.sh:
#!/bin/bash
killall synergyc
sleep 1
synergyc --name pi 192.168.1.15
exit 0
sudo chmod 777 ~/.startsynergy.sh
0 Comments