You need to create an autostart file for LXDE, or add to it if it already exists, do the following through the terminal
sudo mkdir -p ~/.config/lxsession/LXDE sudo touch ~/.config/lxsession/LXDE/autostart sudo nano ~/.config/lxsession/LXDE/autostart
~/.startsynergy.sh
We need to write the .startsynergy.sh script, again, open the file using nano
sudo nano ~/.startsynergy.sh
#!/bin/bash killall synergyc sleep 1 synergyc --name pi 192.168.0.16 exit 0
It will ask you to save before closing, you must save it
sudo chmod 777 ~/.startsynergy.sh