My synergy setup

Hey, I decided to share my synergy set up with everyone. If you do not know what synergy is you can find it at http://synergy2.sourceforge.net.  My setup consists of my Mac, which acts as the server, and my windows/linux box, which is the client.

I have the synergy folder inside the applications folder. I use an apple script to start the synergy server, the code is posted below.

tell application “Terminal”
do script ” cd /Applications/synergy/
/Applications/synergy/synergys -f -n thiscomputersname -c synergy.conf”
end tell

What the script does is tells Terminal to go into the synergy directory and then it tells it to load synergy as a server. I am not totally sure if you need -n. All -n is doing is telling it what the hostname of the computer is, the computer that I am running this from. Change thiscomputersname to the actual hostname of your computer. -c is telling it to use this config file, it comes in handy when you have different config files.

The next part is setting up the config file, the main config file that I use is called synergy.conf. Here is what it looks like.

section: screens
thiscomputer:
othercomputer:
end

section: links
thiscomputer:
right = othercomputer
othercomputer:
left = thiscomputer
end

Now what you would need to do is change a few things depending on your setup. thiscomputer is the computer that is running the server. othercomputer is the hostname of the computer that is going to be the client. Depending on where the client computer is you need to change the left or right variables, for all of the items that can go here check out the synergy site. In my setup the client machine is on the right of the server. What we are saying is that on the right of thiscomputer is othercomputer and then we are saying on the left of othercomputer is thiscomputer. If you forget to declare both of them your mouse would go to the other computer and not back to the original one.

For connecting to the server I used the graphical client for windows, it is pretty straight forward. All I had to do was put in the ip address of the server computer and hit start. On linux I just did the connecting via the Terminal, fedora has a synergy package. If the package is not in the official repo’s then try livna.

I hope this helped, the synergy website and google are great places to find out how to setup synergy also.

Leave a Reply