Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maaku/3342831 to your computer and use it in GitHub Desktop.
Save maaku/3342831 to your computer and use it in GitHub Desktop.
Installing Synergy Client on a Mac OS X Lion and configuring it for automatic startup
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version='1.0'>
<dict>
<key>Label</key><string>org.macports.synergy</string>
<key>KeepAlive</key><true/>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/daemondo</string>
<string>--label=synergy-client</string>
<string>--start-cmd</string>
<string>/opt/local/bin/synergyc</string>
<string>-n</string>
<string>nlsi-hw-</string>
<string>--no-restart</string>
<string>--no-daemon</string>
<string>172.31.1.10:24800</string>
<string>;</string>
<string>--pid=exec</string>
</array>
</dict>
</plist>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version='1.0'>
<dict>
<key>Label</key><string>org.macports.synergy</string>
<key>KeepAlive</key><true/>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/daemondo</string>
<string>--label=synergy-server</string>
<string>--start-cmd</string>
<string>/opt/local/bin/synergys</string>
<string>-n</string>
<string>nlsi-hw-server</string>
<string>-a</string>
<string>172.31.1.10:24800</string>
<string>-c</string>
<string>/Library/Synergy/synergy.conf</string>
<string>--no-restart</string>
<string>--no-daemon</string>
<string>;</string>
<string>--pid=exec</string>
</array>
</dict>
</plist>
section: screens
nlsi-hw-server:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-1a:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-1b:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-1c:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-2a:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-2b:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-2c:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-3a:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-3b:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
nlsi-hw-3c:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
end
section: links
nlsi-hw-server:
left(0,50) = nlsi-hw-3b
left(50,100) = nlsi-hw-3c
nlsi-hw-1a:
right = nlsi-hw-2a
down = nlsi-hw-1b
nlsi-hw-1b:
up = nlsi-hw-1a
right = nlsi-hw-2b
down = nlsi-hw-1c
nlsi-hw-1c:
up = nlsi-hw-1b
right = nlsi-hw-2c
nlsi-hw-2a:
left = nlsi-hw-1a
right = nlsi-hw-3a
down = nlsi-hw-2b
nlsi-hw-2b:
up = nlsi-hw-2a
left = nlsi-hw-1b
right = nlsi-hw-3b
down = nlsi-hw-2c
nlsi-hw-2c:
up = nlsi-hw-2b
left = nlsi-hw-1c
right = nlsi-hw-3c
nlsi-hw-3a:
left = nlsi-hw-2a
down = nlsi-hw-3b
nlsi-hw-3b:
up = nlsi-hw-3a
left = nlsi-hw-2b
right = nlsi-hw-server(0,50)
down = nlsi-hw-3c
nlsi-hw-3c:
up = nlsi-hw-3b
left = nlsi-hw-2c
right = nlsi-hw-server(50,100)
end
section: options
screenSaverSync = true
end
NOTE: After trying several actual versions of Synergy
including 1.4.5, 1.3.8. I found out that 1.3.1 (the version
from mac ports) is working best on my Mac Lion.
1. Install mac ports!
Easiest way is to download/install the latest dmg file from http://distfiles.macports.org/MacPorts/
2. Install synergy from mac ports!
sudo port install synergy
3. create a plist file named org.macports.synergy.plist similar to the below one
(note that mac-air needs to be replaced by your hostname and 192.168.9.1 with
your synergy-servers ip adress)
4. load the .plist file with launchctl
sudo launchctl load -w org.macports.synergy.plist
THATS IT! Your synergy client will start automatically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment