<?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>Jeremy&#039;s Weblog &#187; linux</title>
	<atom:link href="http://blog.jolexa.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jolexa.net</link>
	<description>Random thoughts and rants...mostly Linux</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:49:45 +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>Gentoo Prefix: A look at the number of packages</title>
		<link>http://blog.jolexa.net/2012/02/03/gentoo-prefix-a-look-at-the-number-of-packages/</link>
		<comments>http://blog.jolexa.net/2012/02/03/gentoo-prefix-a-look-at-the-number-of-packages/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 16:48:36 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo prefix]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=919</guid>
		<description><![CDATA[Gentoo Prefix is still alive and going strong. In my opinion, Gentoo Prefix remains a strong point of Gentoo Linux and really establishes that Gentoo Linux is a metadistribution. In this post I want to focus on the numbers. The number of packages in the Gentoo Prefix tree, specifically. But first, a history lesson. It [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gentoo.org/proj/en/gentoo-alt/prefix/">Gentoo Prefix</a> is still alive and going strong. In my opinion, Gentoo Prefix remains a strong point of Gentoo Linux and really establishes that Gentoo Linux <strong>is</strong> a <a href="http://goo.gl/px3KW">metadistribution</a>. In this post I want to focus on the numbers. The number of packages in the Gentoo Prefix tree, specifically. But first, a history lesson. It wasn&#8217;t until EAPI3 in Gentoo that &#8220;allowed&#8221; Gentoo Prefix variables into the main Gentoo Linux tree. That was in late 2011, but Gentoo Prefix existed much before then, all the way back to <a href="http://stats.prefix.freens.org/keywords-packages.png">2006</a> (at least). Before EAPI3, the prefix team made slight modifications to ebuilds and placed them in a <a href="http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay">repo</a> and called it the tree of packages for Gentoo Prefix. This worked fine, but we had growing pains. The major issue was that we were getting too successful to manage the increased contributions from users. In other words, as the number of &#8220;forked&#8221; packages grew, the amount of maintenance time increased greatly &#8211; this is due to the fact that it is a chore to keep our forks synced. At least, a large chore for a small team. This is why we looked for help and adoption from the other pool of 200 Gentoo Developers, hence EAPI3 and beyond. Since supporting Gentoo Prefix is not a big use of overall developer time, this has gone over quite well in my opinion &#8211; yes, there are some pain points at times I do realize. Enough history, here are the numbers:</p>
<ul>
<li>Number of packages in Gentoo Linux: <strong>15554</strong> packages in 154 categories.</li>
<li>Number of total* packages in Gentoo Prefix: 9483 packages in 154 categories.</li>
<li>Number of KEYWORDED packages in Gentoo Prefix: About <strong>3000</strong> for the most popular arch</li>
<li>Number of packages still NOT in the main Gentoo Linux tree: 369 packages</li>
</ul>
<p>* The total packages in the tree also contains non-keyworded packages because that just makes life simple. Once packages started migrating to the main tree, I helped think of this &#8220;<a href="http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/whitelist.txt">whitelist</a>&#8221; concept. The short version of the whitelist is that if a package is listed in that text file, it gets included in the Gentoo Prefix tree as a direct copy of the version in the Gentoo Linux tree. The presense of the package in the old repo means that it is used instead. <em>Eventually</em>, this concept will go away and we will overlay the Gentoo Linux tree directly.</p>
<p>So why is it taking so long to migrate ALL packages to the Gentoo Linux tree? Well, that is where the rubber meets the road and we get into roadblocks. A roadblock for us could be a number of things, such as a disagreement with the Gentoo Linux maintainer, some patches existing that we don&#8217;t feel are a good fit for Gentoo Linux, or even us being lazy and not submitting stuff to upstream. We also don&#8217;t want to push invasive changes to Gentoo Linux for critical packages, like the toolchain for example.</p>
<p>It has long since been our agenda to not add anymore packages to the old repo and going forward only adding new stuff to Gentoo Linux directly. I hope we can make a dent in those remaining 369 in 2012!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2012/02/03/gentoo-prefix-a-look-at-the-number-of-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris 11: Where is /usr/ucblib? Quick tips to install &#8216;ucb&#8217; package</title>
		<link>http://blog.jolexa.net/2012/01/24/solaris-11-where-is-usrucblib-quick-tips-to-install-ucb-package/</link>
		<comments>http://blog.jolexa.net/2012/01/24/solaris-11-where-is-usrucblib-quick-tips-to-install-ucb-package/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 20:40:41 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[solaris 11]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=909</guid>
		<description><![CDATA[Well&#8230; I finally figured out that the ucb package isn&#8217;t installed on Solaris 11 by default (resource). Unfortunately, the Oracle docs are confusing to follow. Here is a cheatsheet for installing the ucb package on your shiny Solaris 11 install. Figure out the IPS installer, read man pages, get frustrated at lack of detail, run [...]]]></description>
			<content:encoded><![CDATA[<p>Well&#8230; I finally figured out that the ucb package isn&#8217;t installed on Solaris 11 by default (<a href="http://www.scalingbits.com/node/186">resource</a>). Unfortunately, the <em>Oracle</em> docs are confusing to follow. Here is a cheatsheet for installing the ucb package on your shiny Solaris 11 install.</p>
<ol>
<ol>
<li>Figure out the IPS installer, read man pages, get frustrated at lack of detail, run to Google.</li>
<li>Find the package you want on <a href="http://pkg.oracle.com/">http://pkg.oracle.com/</a>, in this case <em>compatibility/ucb</em></li>
<li>Add the <em>publisher</em> link to your config, by the way, this link is not documented that I can find so I had to guess and check. A publisher is a package list of sorts, I guess.<br />
<code># pkg set-publisher -G '*' -M '*' -g http://pkg.oracle.com/solaris/release solaris</code></li>
<li>Install the package, <code># pkg install compatibility/ucb</code></li>
</ol>
</ol>
<blockquote><p># pkg install compatibility/ucb<br />
Packages to install: 1<br />
Create boot environment: No<br />
Create backup boot environment: No</p>
<p>DOWNLOAD PKGS FILES XFER (MB)<br />
Completed 1/1 80/80 0.4/0.4</p>
<p>PHASE ACTIONS<br />
Install Phase 166/166</p>
<p>PHASE ITEMS<br />
Package State Update Phase 1/1<br />
Image State Update Phase 2/2</p></blockquote>
<ol>
<li>Behold, that you now have the compatibility libs for software that may need to use them</li>
</ol>
<p>Whew&#8230;now, you might wonder what is so hard about that. Well, traversing Oracle docs is the hard part.</p>
<p>Here are the docs that I had open in my browser, they may or <em>may not</em> help and I fully expect the links to break in the future because Oracle is good at that.</p>
<ul>
<li><a href="http://docs.oracle.com/cd/E23824_01/html/E21803/toc.html">Copying and Creating Oracle Solaris 11 Package Repositories</a></li>
<li><a href="http://pkg.oracle.com/solaris/release/en/index.shtml">Oracle Solaris 11 Package Repository</a></li>
<li><a href="http://www.oracle.com/technetwork/server-storage/solaris11/technologies/ips-323421.html">Oracle Solaris 11 Package Management with IPS</a></li>
<li><a href="http://docs.oracle.com/cd/E23824_01/html/E21796/pkg-1.html">Image Packaging System Man Pages</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2012/01/24/solaris-11-where-is-usrucblib-quick-tips-to-install-ucb-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo: Colemak keymap support</title>
		<link>http://blog.jolexa.net/2011/11/11/gentoo-colemak-keymap-support/</link>
		<comments>http://blog.jolexa.net/2011/11/11/gentoo-colemak-keymap-support/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 18:25:16 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=869</guid>
		<description><![CDATA[Colemak is my new keymap of choice. Luckily, Gentoo Linux supports it well. Unlike some of the crazy instructions people have posted out there, you only need to edit 2 files to convert your console and Xorg server. Note, I&#8217;m taking the time to write this because I couldn&#8217;t find easy instructions out there&#8230; % [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://colemak.com/">Colemak</a> is my new keymap of choice. Luckily, Gentoo Linux supports it well. Unlike some of the crazy instructions people have <a href="http://siavashs.org/blog:dvorak_and_colemak_keyboard_layouts_on_gentoo">posted</a> out <a href="http://forums.gentoo.org/viewtopic-t-639368-start-0.html">there</a>, you only need to edit <em>2 files</em> to convert your console and Xorg server. Note, I&#8217;m taking the time to write this because I <strong>couldn&#8217;t</strong> find easy instructions out there&#8230;</p>
<p><code><br />
% cat /etc/conf.d/keymaps<br />
# Use keymap to specify the default console keymap.  There is a complete tree<br />
# of keymaps in /usr/share/keymaps to choose from.<br />
keymap="en-latin9"<br />
<...><br />
</code></p>
<pre><code>
% cat /etc/X11/xorg.conf.d/30-keyboard.conf
Section "InputClass"
        Identifier "keyboard-all"
        Option "XkbVariant" "colemak"
EndSection
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/11/11/gentoo-colemak-keymap-support/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tip: &#8220;Intelligent&#8221; bugzilla mail threading in GMail using procmail</title>
		<link>http://blog.jolexa.net/2011/10/24/tip-intelligent-bugzilla-mail-threading-in-gmail-using-procmail/</link>
		<comments>http://blog.jolexa.net/2011/10/24/tip-intelligent-bugzilla-mail-threading-in-gmail-using-procmail/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 15:29:50 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=849</guid>
		<description><![CDATA[(Preface: Target audience for this post is Gentoo Devs + GMail WebUI users, however, anyone that forwards bugmail to GMail and has procmail between them could also use this.) I find it annoying that the GMail web interface chooses to thread messages based on subject name alone, this creates two threads for every new bug [...]]]></description>
			<content:encoded><![CDATA[<p><em>(Preface: Target audience for this post is Gentoo Devs + GMail WebUI users, however, anyone that forwards bugmail to GMail and has procmail between them could also use this.)</em></p>
<p>I find it annoying that the GMail web interface chooses to thread messages based on subject name alone, this creates <strong>two</strong> threads for every new bug report sent to you from bugzilla. Sadly, we can&#8217;t control the threading that Google tells us is &#8220;the only way&#8221; (subject based threading or email header based threading, which bugzilla does correctly). If you want to <a href="http://blog.mozilla.com/nnethercote/2011/06/09/gmail-and-bugzilla/" target="_blank">follow</a> the <a href="http://blog.mozilla.com/nnethercote/2011/06/10/gmail-and-bugzilla-an-update/" target="_blank">rabbit</a> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=650575" target="_blank">trail</a> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=528889" target="_blank">that</a> I <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=650575#c23" target="_blank">went</a> <a href="https://bugs.gentoo.org/370977" target="_blank">on</a> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=663747" target="_blank">regarding</a> this subject, I won&#8217;t <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=589128" target="_blank">stop</a> you&#8230;</p>
<p>Or you can use procmail to rewrite the subject, that is, remove &#8220;New: &#8221; from the first email:</p>
<pre><code># Remove "New: " from the subject so threading in gmail works
SUBJ_=`formail -xSubject: | expand | tr -d '\n' | sed -e 's/^[ ]*//g' -e 's/New: //'`
:0
* ^From: bugzilla-daemon@gentoo.org
{
    :0 fwh
    | formail -i"Subject: ${SUBJ_}"
}</code></pre>
<p>Tangentially related that may be useful, is this rule that kills duplicate messages when you report a bug and are assigned the same bug (or in CC). The bugzilla software has no way of knowing what email aliases you may be in.</p>
<pre><code># Kill duplicate messages. If I am the reporter *and* the bug is assigned to a
# team I am in, delete the mail to me directly
:0
* ^To: username@gentoo.org
* ^From: bugzilla-daemon@gentoo.org
* ^X-Bugzilla-Reporter: username@gentoo.org
* ^X-Bugzilla-(Assigned-To|CC):.*(team1|team2)@gentoo.org
/dev/null</pre>
<p></code></p>
<p><em>I like the GMail WebUI. I use it. Please don't suggest that I should use other clients, I already know that other clients can handle the threading fine.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/10/24/tip-intelligent-bugzilla-mail-threading-in-gmail-using-procmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gentoo: Removing USE=&#8221;python perl&#8221; from the default profile</title>
		<link>http://blog.jolexa.net/2011/10/05/gentoo-removing-usepython-perl-from-the-default-profile/</link>
		<comments>http://blog.jolexa.net/2011/10/05/gentoo-removing-usepython-perl-from-the-default-profile/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 19:11:30 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=841</guid>
		<description><![CDATA[Well, I got sick of setting -python -perl on my Gentoo hosts, I even consider them &#8220;questionable defaults&#8221; for a majority of Gentoo users.. So, let this be an advanced notice that you may see some rebuilds for useflag changes. There has been sufficient testing such that there should be few to nil problems, but [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I got sick of setting <code>-python -perl</code> on my Gentoo hosts, I even consider them &#8220;questionable defaults&#8221; for a majority of Gentoo users..</p>
<p>So, let this be an advanced notice that you may see some rebuilds for useflag changes. There has been sufficient testing such that there should be few to nil problems, but we can&#8217;t test everything. Please file bug reports, if needed.</p>
<p>See also:</p>
<ul>
<li><a href="http://archives.gentoo.org/gentoo-announce/msg_f869d4b5ec1d06beb681b5c268699058.xml">Gentoo Announce Message</a></li>
<li><a href="http://archives.gentoo.org/gentoo-dev-announce/msg_ae405bb743eeda9dc66773998ee50759.xml">Gentoo Developer Announce Message</a></li>
<li><a href="https://bugs.gentoo.org/250179">Bug 250179</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/10/05/gentoo-removing-usepython-perl-from-the-default-profile/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Gentoo: per-package PORTAGE_TMPDIR settings</title>
		<link>http://blog.jolexa.net/2011/09/16/gentoo-per-package-portage_tmpdir-settings/</link>
		<comments>http://blog.jolexa.net/2011/09/16/gentoo-per-package-portage_tmpdir-settings/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 15:42:05 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=831</guid>
		<description><![CDATA[I don&#8217;t know how many people know about per-package environment variables in portage since 2.1.9 or so. (ref: bug 44796) It is a worthwhile enhancement to know about, regardless. Like most people, I have my PORTAGE_TMPDIR on tmpfs to speed up compilation times and reduce I/O usage. My 2G tmpfs mounted on /var/tmp/portage is large [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know how many people know about per-package environment variables in portage since 2.1.9 or so. (ref: <a href="https://bugs.gentoo.org/show_bug.cgi?id=44796" target="_blank">bug 44796</a>) It is a worthwhile enhancement to know about, regardless. Like most people, I have my PORTAGE_TMPDIR on tmpfs to speed up compilation times and reduce I/O usage. My 2G tmpfs mounted on /var/tmp/portage is large enough for almost all packages, even multiple jobs at once, however, not all. Solution:</p>
<p>% cat /etc/portage/package.env<br />
app-office/libreoffice notmpfs.conf<br />
% cat /etc/portage/env/notmpfs.conf<br />
PORTAGE_TMPDIR=&#8221;/var/tmp/notmpfs&#8221;</p>
<p>(More info available in the portage man page)</p>
<p>Now, when I find my next package that needs notmpfs, it is as easy as: <code>echo "cat-egory/pkg notmpfs.conf" >> /etc/portage/package.env</code> which is much easier than bashrc hacks or something else insane that I have seen. Of course you can extend that to most <code>make.conf</code> settings, hope that helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/09/16/gentoo-per-package-portage_tmpdir-settings/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Linode: Migrating from HE.net IPv6 tunnel to native IPv6</title>
		<link>http://blog.jolexa.net/2011/05/06/linode-migrating-from-he-net-ipv6-tunnel-to-native-ipv6/</link>
		<comments>http://blog.jolexa.net/2011/05/06/linode-migrating-from-he-net-ipv6-tunnel-to-native-ipv6/#comments</comments>
		<pubDate>Fri, 06 May 2011 14:13:12 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=824</guid>
		<description><![CDATA[A few days ago, Linode.com announced native IPv6 roll out in their datacenters. Now, while I haven&#8217;t wrote about Linode in the past 6 months, I am still a happy customer. I am documenting the steps I took to migrate away from my HE.net tunnel. Set the TTL low on any DNS addresses that you [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, <a href="http://www.linode.com/index.cfm">Linode.com</a> <a href="http://blog.linode.com/2011/05/03/linode-launches-native-ipv6-support/">announced</a> native IPv6 <a href="http://www.linode.com/IPv6/">roll out</a> in their datacenters. Now, while I haven&#8217;t wrote about Linode in the past 6 months, I am still a happy customer. I am documenting the steps I took to migrate <em>away</em> from my HE.net <a href="http://blog.jolexa.net/2010/04/16/gentoo-static-ipv4-ipv6-he-net-tunnel/">tunnel</a>.</p>
<ol>
<li>Set the TTL low on any DNS addresses that you will be changing. Ideally, do this a fair amount ahead of time.</li>
<li>Send in a support ticket to get your /64 allocated. Sidenote: response time: 4 minutes</li>
<li>Reboot &#8216;node so the backend system deploys your IPv6 after it was allocated. <a href="http://library.linode.com/networking/ipv6">Verify</a> IPV6 status on your &#8216;node.</li>
<li>From a different IPv6 host, run <code>nmap -6</code> on the existing address to verify listening services.</li>
<li>Update DNS, define static networking, be happy.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/05/06/linode-migrating-from-he-net-ipv6-tunnel-to-native-ipv6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo: Infra team update</title>
		<link>http://blog.jolexa.net/2011/04/10/gentoo-infra-team-update/</link>
		<comments>http://blog.jolexa.net/2011/04/10/gentoo-infra-team-update/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 13:14:48 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=813</guid>
		<description><![CDATA[It has been awhile since I&#8217;ve posted about what I&#8217;ve been doing with Gentoo Linux. So, here is a general update for the team that I have been spending most of my time with. You may have seen the Bugzilla upgrade that Christian was working on. Gentoo moved from the bottom of the list provided [...]]]></description>
			<content:encoded><![CDATA[<p>It has been awhile since I&#8217;ve posted about what I&#8217;ve been doing with Gentoo Linux. So, here is a general update for the team that I have been spending most of my time with.</p>
<ul>
<li>You may have seen the <a href="http://bugs.gentoo.org">Bugzilla</a> upgrade that Christian was working on. Gentoo moved from the bottom of the <a href="http://lpsolit.wordpress.com/bugzilla-usage-worldwide/">list</a> provided from one of the upstream devs to the top of the list. (As of April 2011)</li>
<li>I finally put an idea of mine into reality of graphing the number of &#8220;emerge &#8211;sync&#8217;s&#8221; against the rsync.gentoo.org rotation. <a href="http://mirrorstats.gentoo.org/rsync/rsync-usage.png">Full graph</a> and <a href="http://mirrorstats.gentoo.org/rsync/rsync-usage-last4weeks.png">last 4 weeks</a></li>
<li>A new reporting website was born: <a href="http://qa-reports.gentoo.org/">http://qa-reports.gentoo.org/</a> &#8211; The vision was: &#8220;Many Gentoo devs have useful scripts and many people complain that there is not a central place to see all the output.&#8221; This site is a solution, and open for all. repo: <a href="http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=summary">qa-scripts.git</a></li>
<li>A new &#8220;Get Gentoo at a glance&#8221; website was born: <a href="http://get.gentoo.org/">http://get.gentoo.org/</a> that Matthew is still working on, so maybe expect some layout changes &#8211; The motivation for this was inspired from <a href="https://bugs.gentoo.org/show_bug.cgi?id=350271">bug 350271</a>, repo: <a href="http://git.overlays.gentoo.org/gitweb/?p=proj/get-gentoo.git;a=summary">get-gentoo.git</a>
<li>Some behind the scenes work involving our mastermirror service. The current hardware running this important service is one of the oldest hosts we have.</li>
</ul>
<p>Of course, there is always the untold hours to keep Gentoo Linux infrastructure running happily for all customers. As a final note, if you have a good idea, feel free to propose it via bugs or IRC. We will listen and definately avoid <a href="http://en.wikipedia.org/wiki/NIH_syndrome">NIH</a> syndrome if we can. Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/04/10/gentoo-infra-team-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Android: Unable to send [some] SMS messages</title>
		<link>http://blog.jolexa.net/2011/03/26/android-unable-to-send-some-sms-messages/</link>
		<comments>http://blog.jolexa.net/2011/03/26/android-unable-to-send-some-sms-messages/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 18:30:37 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=808</guid>
		<description><![CDATA[As of writing today, my Android powered phone (Droid X) cannot send SMS messages to some people, but receive messages fine. This is because my address book has &#8220;+1&#8243; on some people&#8217;s numbers. Solution: Add/edit a number without the &#8220;+1&#8243; &#8211; in a connected world, I don&#8217;t even bother to &#8220;save&#8221; phone numbers, they get [...]]]></description>
			<content:encoded><![CDATA[<p>As of writing today, my Android powered phone (Droid X) cannot send SMS messages to some people, but receive messages fine. This is because my address book has &#8220;+1&#8243; on some people&#8217;s numbers.</p>
<p>Solution: Add/edit a number without the &#8220;+1&#8243; &#8211; in a connected world, I don&#8217;t even bother to &#8220;save&#8221; phone numbers, they get synced to me from third party sources (facebook). In this case, synced in such a way that it won&#8217;t work.</p>
<p>By the way, I tried the stock Android SMS program and Handcent SMS, both have the same trouble. Quite a hassle, but such is technology/software. Sigh.<br />
(source: <a href="http://www.droidforums.net/forum/tech-issues-bug-reports-suggestions/126750-issues-sending-text-messages-1-numbers.html">droidforums</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/03/26/android-unable-to-send-some-sms-messages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tip: Single Purpose Password-less SSH Key</title>
		<link>http://blog.jolexa.net/2011/02/11/tip-single-purpose-password-less-ssh-key/</link>
		<comments>http://blog.jolexa.net/2011/02/11/tip-single-purpose-password-less-ssh-key/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 16:11:59 +0000</pubDate>
		<dc:creator>Jeremy Olexa</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blog.jolexa.net/?p=798</guid>
		<description><![CDATA[Scenario: You need to setup a service that requires ssh access to a remote host, possibly/probably by the root user. This service needs to run at regular intervals and it is critical that it works without a human entering a passphrase (even once). Solution: The obvious solution that comes to mind is a ssh key. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario</strong>: You need to setup a service that requires ssh access to a remote host, possibly/probably by the root user. This service needs to run at regular intervals and it is critical that it works without a human entering a passphrase (even <em>once</em>).</p>
<p><strong>Solution</strong>: The obvious solution that comes to mind is a ssh key. But a password-less key that allows root login? <strong>RED FLAG</strong>. However, there is a way to accomplish this without allowing a root login completely. That is to create, what I call, a single purpose key. I feel like this <u>not</u> a widely known trick, so I am archiving it so I don&#8217;t forget myself.</p>
<p><strong>Details:</strong><br />
(Where local host is the host that needs ssh access and remote host is the host that you are &#8220;opening&#8221; up or allowing ssh access to)</p>
<ol>
<li>On the local host, create a ssh key without a passphrase for the root user, this is widely documented via other sources</li>
<li>On the remote host, add the key to the <code>/root/.ssh/authorized_keys</code> file. However, start the line in that file with <code>command="/root/bin/validate-ssh.sh"</code></li>
<li>On the remote host, the <code>/root/bin/validate-ssh.sh</code> script is a simple script that allows access to your service and exits for anything else. An example of allowing rsync access [only]:
<pre><code>
% cat /root/bin/validate-ssh.sh
#!/bin/bash
case "$SSH_ORIGINAL_COMMAND" in
	rsync\ --server*)
		# uncomment for debug
		# echo "$(date +%Y%m%d): $SSH_ORIGINAL_COMMAND" >> /var/log/ssh-cmd.log
		$SSH_ORIGINAL_COMMAND
		;;
	# debug
	testconnect)
		echo "You successfully connected to $(hostname)"
		;;
	*)
		echo "Sorry, command '$SSH_ORIGINAL_COMMAND' is not allowed"
		exit 1
		;;
esac
</code></pre>
</li>
<li>Optional, if you only want to allow this access from a small set of hosts add <code>from="192.168.1.11,10.80.80.1"</code> to the same line in <code>/root/.ssh/authorized_keys</code></li>
</ol>
<p>So, now, you can use that password-less ssh key as root (assuming the remote host <em>allows</em> root logins via ssh) and you should see something. <code>ssh root@remote testconnect</code> will return that string. <code>rsync root@remote:/file</code> will work. Everything else will get the message that indicates it wasn&#8217;t allowed. This is expandable to just about everything provided that you know the &#8220;$SSH_ORIGINAL_COMMAND&#8221; &#8211; on another host I use it to allow password-less sshfs access, so <code>SSH_ORIGINAL_COMMAND=/usr/lib/misc/sftp-server</code> and so-forth.</p>
<p>Naturally, this will work for other users/uses as well. I&#8217;ve seen references that some admins are using this to allow access if and only if they enter a sekrit token, etc. I&#8217;ll also say that you should be smart with this, opening up root access is a hole &#8211; if anyone compromises the local host, I suppose they could get access to the remote host if they knew how.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jolexa.net/2011/02/11/tip-single-purpose-password-less-ssh-key/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

