<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Racker Hacker &#187; desktop</title>
	<atom:link href="http://rackerhacker.com/tag/desktop/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Automatically starting synergy in GDM in Ubuntu/Fedora</title>
		<link>http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/</link>
		<comments>http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 17:00:09 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[synergy]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=313</guid>
		<description><![CDATA[Before you follow this guide, be sure to read about the issue I had in Fedora 12 with this strategy. At work, I have a Mac Mini as my main workstation with one monitor. There's another monitor to the right which is connected to my Linux box. I run a synergy server on the Mac, [...]<p><a href="http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/">Automatically starting synergy in GDM in Ubuntu/Fedora</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Before you follow this guide,</strong> be sure to <a href="http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/">read about the issue</a> I had in Fedora 12 with this strategy.</p>
<p>At work, I have a Mac Mini as my main workstation with one monitor.  There's another monitor to the right which is connected to my Linux box.  I run a synergy server on the Mac, and I run a synergy client in Linux.  However, I was getting pretty frustrated when I'd have to manually start the synergy client on the Linux box with another keyboard.</p>
<p>After a bit of Google searching, I found a solution that will enable synergy at the GDM login as well as after the login (when the window manager starts).  Here's the process:</p>
<p>Open <strong>/etc/gdm/Init/Default</strong> in your editor of choice and go to the bottom of the file.  Just before <code>exit 0</code>, add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc 111.222.333.444</pre></div></div>

<p>Next, you can create the <strong>/etc/gdm/PostLogin/Default</strong> file as an empty file, or you can copy over the template file from <strong>/etc/gdm/PostLogin/Default.sample</strong> to <strong>/etc/gdm/PostLogin/Default</strong>.  Either way, add the following to that file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/usr/bin/killall synergyc
sleep 1</pre></div></div>

<p>Finally, edit the <strong>/etc/gdm/Presession/Default</strong> file and add in the following before <code>exit 0</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc 111.222.333.444</pre></div></div>

<p>Once that's done, you can log out and log back in to see the changes.  You can also reboot your Linux desktop or switch to runlevel 3 and back to 5 (if your OS supports runlevel changes).</p>
<p><a href="http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/">Automatically starting synergy in GDM in Ubuntu/Fedora</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

