<?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>blog.sudosu.net &#187; Ubuntu</title>
	<atom:link href="http://blog.sudosu.net/category/computers/linux/debian/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sudosu.net</link>
	<description>Got root?</description>
	<lastBuildDate>Mon, 21 Dec 2009 18:27:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Seamless SSH</title>
		<link>http://blog.sudosu.net/2008/seamless-ssh/</link>
		<comments>http://blog.sudosu.net/2008/seamless-ssh/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 18:59:10 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/?p=269</guid>
		<description><![CDATA[I&#8217;m transitioning my daily work desktop from OS X Leopard to Kubuntu Hardy. (I&#8217;ll be writing more about that in the future.) My job is split between managing people and doing development and system administration for a bunch of Ubuntu boxes, so running the same platform that I&#8217;m administering makes a lot of sense. I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m transitioning my daily work desktop from OS X Leopard to Kubuntu Hardy. (I&#8217;ll be writing more about that in the future.) My job is split between managing people and doing development and system administration for a bunch of Ubuntu boxes, so running the same platform that I&#8217;m administering makes a lot of sense. I DO miss some of the fit-and-finish of OS X, though, and I haven&#8217;t completely transitioned over to Linux for everything.</p>
<p>Ssh-agent is a great program that lets you add the password to your SSH private key to memory, and then you don&#8217;t need to type in the ssh key passphrase every time. The basic usage is that you start BASH as a child of ssh-agent, and then use a program called ssh-add to prompt you for the password and store it in memory.</p>
<p>On OS X, there&#8217;s a GREAT program called SSHKeychain that handles this, storing the password in your OS X keychain, so it&#8217;s really seemless.</p>
<p>On Linux, you need to type in &#8220;ssh-add&#8221; manually every time you want to store the key, and after that your SSH sessions will be seamless.</p>
<p>However, I&#8217;m always forgetting to do that, and thus getting prompted for the password. Too many seams. I added the following code snippet to the end of my .bashrc file, and thus, every time I open a bash shell, it checks whether ssh-agent has any keys in memory. If it does, the shell starts as normal. If ssh-agent doesn&#8217;t have any keys in memory, it prompts you for the password. Simple, and as seamless as I can make it.</p>
<blockquote><p>## Add key to ssh-add if it has not been added.</p>
<p>ssh-add -l &amp;&gt; /dev/null<br />
SSHADDRESULT=$?<br />
if [ "$SSHADDRESULT" -ne "0" ]; then<br />
ssh-add<br />
fi</p></blockquote>
<p><strong>UPDATE 2008-07-02</strong>: Here&#8217;s a much more succinct way of writing that:</p>
<blockquote><p>ssh-add -l &amp;&gt;/dev/null || ssh-add</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2008/seamless-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminally Incoherent&#8217;s &#8220;Linux Fuckup Of The Day&#8221; &#8212; Using Single-User Mode To Recover</title>
		<link>http://blog.sudosu.net/2007/terminally-incoherents-linux-fuckup-of-the-day-using-single-user-mode-to-recover/</link>
		<comments>http://blog.sudosu.net/2007/terminally-incoherents-linux-fuckup-of-the-day-using-single-user-mode-to-recover/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 19:34:45 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2007/terminally-incoherents-linux-fuckup-of-the-day-using-single-user-mode-to-recover/</guid>
		<description><![CDATA[From Terminally Incoherent:
Yep. I just removed myself from all the groups except for vboxusers. Brilliant! I absolutely hate when I do stupid shit like that. It’s not like this was hard to fix &#8211; I just didn’t remember of the top of my head what groups I was supposed to belong to. Of course since [...]]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.terminally-incoherent.com/blog/2007/06/25/linux-fuckup-of-the-day/" title="Terminally Incoherent's Linux Fuckup Of The Day" target="_blank">Terminally Incoherent</a>:</p>
<blockquote><p>Yep. I just removed myself from all the groups except for <em>vboxusers</em>. Brilliant! I absolutely hate when I do stupid shit like that. It’s not like this was hard to fix &#8211; I just didn’t remember of the top of my head what groups I was supposed to belong to. Of course since I was no longer part of the <em>sudo</em> and <em>admin</em> groups I could no longer <kbd>sudo</kbd>. Luckily enough, back in the day I decided to enable the root password. So I was able to <kbd>su</kbd> to become root, and then usermod myself to <em>admin</em>, and bunch of other groups I needed like audio, video, tty, lp and etc… I wonder what would happen if I did this on a default Ubuntu box without root account. I wonder if I would be able to recover from this that easily.</p></blockquote>
<p>The short answer is &#8220;Yes, you would.&#8221; Single User Mode is your friend.</p>
<p>At bootup, hit ESC to get into the Grub menu, and select recovery mode. If you haven&#8217;t entered a root password, recovery mode will dump you to the console as root. If you HAVE defined a root password, recovery mode will dump to a login prompt, where you&#8217;ll have to enter the password.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2007/terminally-incoherents-linux-fuckup-of-the-day-using-single-user-mode-to-recover/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Resolving a Very Uninformative Debootstrap Error Message</title>
		<link>http://blog.sudosu.net/2006/resolving-a-very-uninformative-debootstrap-error-message/</link>
		<comments>http://blog.sudosu.net/2006/resolving-a-very-uninformative-debootstrap-error-message/#comments</comments>
		<pubDate>Mon, 22 May 2006 20:02:52 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2006/resolving-a-very-uninformative-debootstrap-error-message/</guid>
		<description><![CDATA[So I&#8217;m trying to do an install with debootstrap onto a virgin partition. From my custom Ubuntu-based distribution. And I get the following error message:
E: Couldn't find these debs: 33024830
The error code itself is not Googleable, because it apparently changes for each install. (I got several different codes during the course of my troubleshooting.) Google [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m trying to do an install with debootstrap onto a virgin partition. From my custom Ubuntu-based distribution. And I get the following error message:</p>
<pre>E: Couldn't find these debs: 33024830</pre>
<p>The error code itself is <strong>not</strong> Googleable, because it apparently changes for each install. (I got several different codes during the course of my troubleshooting.) Google got me <a href="http://wiki.xensource.com/xenwiki/DebianDomU" target="_blank">here</a>, where I learned that the &#8211;resolve-deps option was the secret. Appears to be working &#8212; at least, I&#8217;m much farther along in the process without failing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2006/resolving-a-very-uninformative-debootstrap-error-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
