Monday, March 25, 2013

Synergy Linux Setup

sudo aptitude install synergy

Given the following computers:
computerA  (Synergy server)
computerB  (Synergy client)

And given: 
computerA is the name returned by the 'hostname' command on the server; ip is
computerB is an alias (setup in synergy.conf) to

Edit /etc/synergy.conf on the Synergy Server
section: screens

# we might not want to go through the effort of setting up DNS for computerB, so we can alias here instead.
section: aliases

section: links
       right = computerB
       left = computerA

On the server, run the following: 
 synergys -f --config /etc/synergy.conf

On the client, run the following: 
synergyc -f

launchctl / launchd on OSX

Launch definitions are in the form of plist documents

List jobs managed by launchctl (shows job label)
launchctl list

Show detail information about launchctl managed job
launchctl list job_label
i.e. launchctl list homebrew.mxcl.postgresql
# output will look like:
"Label" = "homebrew.mxcl.postgresql";
"LimitLoadToSessionType" = "Aqua";
"OnDemand" = false;
"LastExitStatus" = 0;
"PID" = 17312;
"TimeOut" = 30;
"StandardErrorPath" = "/usr/local/var/log/postgres/stderror.log";
"ProgramArguments" = (


Stop a job managed by launchctl
launchctl stop job_label

Good tool for making launchctl plists

Plists located in one of the following places
 ~/Library/LaunchAgents -  Per-user agents provided by the user. 
 /Library/LaunchAgents   -  Per-user agents provided by the administrator. 
 /Library/LaunchDaemons  -  System-wide daemons provided by the administrator. /System/Library/LaunchAgents -  Per-user agents provided by OS X.
 /System/Library/LaunchDaemons -  System-wide daemons provided by OS X.