Home > Bash, Linux, Ubuntu, Windows > Synergy to control keyboard and mouse

Synergy to control keyboard and mouse

Synergy is a very good program for sharing mouse and keyboard. It’s free and open source too! There are compiled versions for Windows / Linux and Mac.

Set up one computer as server and then control the mouse and keyboard on several others through the network.
To autostart the client on an Ubuntu after login, add a startup program and run the following script:
sh -c 'ps -A|grep -w synergyc; if [ $? -eq 0 ]; then echo KILLING; \
/usr/bin/killall -9 synergyc; fi; /usr/bin/synergyc YOURSERVERIP
You have to log in to the Ubuntu desktop first before you can control it from another computer. You can start the Synergy client before logon, but it’s a bit harder. In Ubuntu 10.10 with Gnome you can edit the following files to start the Synergy client before logon:
sudo gedit /etc/gdm/Init/Default
sudo gedit /etc/gdm/PostLogin/Default
Put the Synergy start script above in the first file (without the sh -c and quotation marks) and put just the kill code in the second file. See the Synergy home page for more info.

Ref: http://synergy-foss.org/

Categories: Bash, Linux, Ubuntu, Windows Tags:
  1. No comments yet.
  1. No trackbacks yet.