<?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>Duplo &#187; Sys Admin</title>
	<atom:link href="http://kill-0.com/duplo/category/sys-admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://kill-0.com/duplo</link>
	<description>Building Blocks &#38; Learning Experiences</description>
	<lastBuildDate>Fri, 18 May 2012 21:26:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>e17 and the GNOME Keyring Daemon</title>
		<link>http://kill-0.com/duplo/2010/01/27/e17-and-the-gnome-keyring-daemon/</link>
		<comments>http://kill-0.com/duplo/2010/01/27/e17-and-the-gnome-keyring-daemon/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 05:59:38 +0000</pubDate>
		<dc:creator>ericw</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Sys Admin]]></category>

		<guid isPermaLink="false">http://kill-0.com/duplo/?p=34</guid>
		<description><![CDATA[I found a way to make e17 work with the GNOME Keyring Daemon (GKD), so that I do not have to manually add my ssh keys to ssh-agent every time I login. I didn&#8217;t discover the method myself, but I was on the right track, which led me to this Ubuntu bug report, which contains [...]]]></description>
			<content:encoded><![CDATA[<p>I found a way to make e17 work with the GNOME Keyring Daemon (GKD), so that I do not have to manually add my ssh keys to ssh-agent every time I login.</p>
<p>I didn&#8217;t discover the method myself, but I was on the right track, which led me to <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/377467">this Ubuntu bug report</a>, which contains a successful workaround:</p>
<p><code>
<pre># in ~/.profile
if [ -n "$GNOME_KEYRING_PID" ]; then
    eval $(gnome-keyring-daemon --start)
    export SSH_AUTH_SOCK
fi</pre>
<p></code></p>
<p>The bug report goes into detail, but basically the issue seems to stem from some out of order initialization of ssh-agent, ~/.profile, and the GKD, perhaps with e17&#8242;s lack of support for xdg autostart directives.</p>
<p>I was able to search out the bug report after a lot of comparing the output of <tt>ps xa</tt> and <tt>export</tt> while logged in via e17 and comparing it to the same from within GNOME.  The output of the latter showed two different SSH_AUTH_SOCK formats:</p>
<p><code># gnome<br />
SSH_AUTH_SOCK="/tmp/<b>keyring-HvW1Yb/socket.ssh</b>"<br />
# e17<br />
SSH_AUTH_SOCK="/tmp/<b>ssh-RMKCQa4949/agent.4949</b>"</code></p>
<p>This gave me a hunch that my SSH_AUTH_SOCK was coming from ssh-agent, rather than from GKD.  A google search for the terms “pam SSH_AUTH_SOCK” then turned up the bug report above.</p>
<p>In <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/377467/comments/8">comment #8</a> of said bug report, Mikel Ward mentions that in xfce4, it&#8217;s possible that the GKD&#8217;s SSH_AUTH_SOCK is being overwritten by an incorrectly guarded call to ssh-agent in <tt>/etc/xdg/xfce4/xinitrc</tt>.  e17 doesn&#8217;t have any such initialization (of which I&#8217;m aware), so I presume that my SSH_AUTH_SOCK stems from ssh-agent being called as part of <tt>/etc/X11/Xsession.d/90x11-common_ssh-agent</tt>, though admittedly I&#8217;ve done no work to confirm this hypothesis.</p>
]]></content:encoded>
			<wfw:commentRss>http://kill-0.com/duplo/2010/01/27/e17-and-the-gnome-keyring-daemon/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

