{"id":399,"date":"2009-01-07T17:12:55","date_gmt":"2009-01-07T21:12:55","guid":{"rendered":"http:\/\/benjamin.smedbergs.us\/blog\/?p=399"},"modified":"2009-01-07T17:12:55","modified_gmt":"2009-01-07T21:12:55","slug":"how-to-auto-start-synergy-correctly-on-macos-105-leopard","status":"publish","type":"post","link":"https:\/\/benjamin.smedbergs.us\/blog\/2009-01-07\/how-to-auto-start-synergy-correctly-on-macos-105-leopard\/","title":{"rendered":"How to Auto-Start Synergy Correctly on MacOS 10.5 (Leopard)"},"content":{"rendered":"<p><a href=\"http:\/\/synergy2.sourceforge.net\/\">Synergy<\/a> is a wonderful tool: it lets you run multiple computers on your desktop, but use a single keyboard\/mouse. The mouse cursor moves between screens seamlessly. Configured correctly, you even have a unified clipboard to enable copy\/paste between machines, even running different operating systems. I have two Linux desktops and a Mac laptop on my desk and Synergy is a life-saver.<\/p>\n<p>Configuring synergy and getting it to auto-launch correctly is not especially simple: the <a href=\"http:\/\/synergy2.sourceforge.net\/autostart.html\">synergy autostart manual<\/a> lists three ways, none of which worked for me to get the clipboard working. But I found, <a href=\"http:\/\/sourceforge.net\/tracker\/index.php?func=detail&#038;aid=1835505&#038;group_id=59275&#038;atid=490467\">hidden<\/a> in the Synergy bug database, a configuration script which solves the problem perfectly on MacOS 10.5 (Leopard):<\/p>\n<ol>\n<li>In a terminal, become root: <tt>sudo su -<\/tt>\n<li><tt>emacs <var>\/Library\/LaunchAgents\/org.gnu.Synergy.plist<\/var><\/tt>\n<li>I have synergy at <var>\/builds\/synergy-1.3.1<\/var>. My mac client is named <var>dupre<\/var>. My Linux server is named <var>gabrieli<\/var>. Adjust these values accordingly:\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;!DOCTYPE plist PUBLIC \"-\/\/Apple Computer\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"&gt;\r\n&lt;plist version=\"1.0\"&gt;\r\n&lt;dict&gt;\r\n  &lt;key&gt;Label&lt;\/key&gt;\r\n  &lt;string&gt;org.gnu.Synergy&lt;\/string&gt;\r\n  &lt;key&gt;ProgramArguments&lt;\/key&gt;\r\n  &lt;array&gt;\r\n    &lt;string&gt;\/builds\/synergy-1.3.1\/synergyc&lt;\/string&gt;\r\n    &lt;string&gt;-n&lt;\/string&gt;\r\n    &lt;string&gt;dupre&lt;\/string&gt;\r\n    &lt;string&gt;-1&lt;\/string&gt;\r\n    &lt;string&gt;-f&lt;\/string&gt;\r\n    &lt;string&gt;gabrieli&lt;\/string&gt;\r\n  &lt;\/array&gt;\r\n  &lt;key&gt;KeepAlive&lt;\/key&gt;\r\n  &lt;true \/&gt;\r\n  &lt;key&gt;LimitLoadToSessionType&lt;\/key&gt;\r\n  &lt;array&gt;\r\n    &lt;string&gt;LoginWindow&lt;\/string&gt;\r\n    &lt;string&gt;Aqua&lt;\/string&gt;\r\n  &lt;\/array&gt;\r\n&lt;\/dict&gt;\r\n&lt;\/plist&gt;<\/pre>\n<\/ol>\n<p>Log out and log back in to get everything started. This will launch a synergy client for the initial login desktop. At login this client will be killed, and a new client will be started for the user&#8217;s desktop. Note: LaunchAgents are new in MacOS 10.5. This technique won&#8217;t work in earlier versions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Synergy is a wonderful tool: it lets you run multiple computers on your desktop, but use a single keyboard\/mouse. The mouse cursor moves between screens seamlessly. Configured correctly, you even have a unified clipboard to enable copy\/paste between machines, even running different operating systems. I have two Linux desktops and a Mac laptop on my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6],"tags":[15,201],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-mozilla","category-untagged","tag-macos","tag-synergy"],"_links":{"self":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":4,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":403,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions\/403"}],"wp:attachment":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}