Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own monitor(s).
Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all.
Usually we will have a synergy server (the one where the keyboard and mouse are plugged). The server will have the configuration and the others will be the clients, that they only need to connect to the server.
It's important to the computers to have a different computer name and a DNS working, but we can also use static IP addresses.
Synergy on Linux
All the distributions have the synergy package on their repositories.
When we install it there would be two executable files: synergyc and synergys. The first one is the client and the second is the server.
Configuring the server
To configure the server we will create a file /etc/synergy.conf
On the first stage we configure the hostname of all the screens. In my case I have LANGKAWI on the LEFT and KRABI on the RIGHT.
I have no DNS so, I can set up aliases for them and uses IP's instead.
root@LANGKAWI:~# more /etc/synergy.conf section: screens LANGKAWI: KRABI: end section: aliases KRABI: 192.168.1.40 LANGKAWI: 192.168.1.23 end section: links LANGKAWI: right = KRABI KRABI: left = LANGKAWI end section: options screenSaverSync = false # My KVM uses Scroll Lock to switch screens, so set the # hotkey to lock the cursor to the screen to something else keystroke(f12) = lockCursorToScreen(toggle) end
Then to start the service we just run:
synergys -f --config /etc/synergy.conf
Configuring the client
The client is as easy as:
gforns@KRABI:~$ synergyc 192.168.1.40
Synergy on Windows
The idea is the same, but in a easy GUI, where we define the clients with the IP's and the ALIAS of the NAMES. Then there is a place that we need to configure one is on the left and the other on the right.
We can mix Linux/Windows machines. And a windows client works on a Linux Server.
A good hint is to start synergy when gdm starts:
To download synergy: