<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rich0&#039;s Gentoo Blog &#187; gentoo</title>
	<atom:link href="http://rich0gentoo.wordpress.com/category/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://rich0gentoo.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 17 Jun 2013 01:45:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rich0gentoo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rich0&#039;s Gentoo Blog &#187; gentoo</title>
		<link>http://rich0gentoo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rich0gentoo.wordpress.com/osd.xml" title="Rich0&#039;s Gentoo Blog" />
	<atom:link rel='hub' href='http://rich0gentoo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MythTV 0.26 In Portage</title>
		<link>http://rich0gentoo.wordpress.com/2013/01/23/mythtv-0-26-in-portage/</link>
		<comments>http://rich0gentoo.wordpress.com/2013/01/23/mythtv-0-26-in-portage/#comments</comments>
		<pubDate>Thu, 24 Jan 2013 01:31:15 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[foss]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=197</guid>
		<description><![CDATA[Well, all of MythTV 0.26 is now in portage, masked for testing for a few days. If anyone is interested now is a good time to give it a try and report any issues you find. If all is quiet the masks will come off and we&#8217;ll be up-to-date (including all patches up to a [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=197&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Well, all of MythTV 0.26 is now in portage, masked for testing for a few days.</p>
<p>If anyone is interested now is a good time to give it a try and report any issues you find.  If all is quiet the masks will come off and we&#8217;ll be up-to-date (including all patches up to a few days ago).</p>
<p>Thanks to all who have contributed to the 0.26 bug.  I can also happily report that I&#8217;m running Gentoo on my mythtv front-end, which should help me with maintaining things.  MiniMyth is a great distro, but it has made it difficult to keep the front- and back-ends in sync.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/foss/'>foss</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/mythtv/'>mythtv</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=197&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2013/01/23/mythtv-0-26-in-portage/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>Gentoo and Copyright Assignments</title>
		<link>http://rich0gentoo.wordpress.com/2012/12/15/gentoo-and-copyright-assignments/</link>
		<comments>http://rich0gentoo.wordpress.com/2012/12/15/gentoo-and-copyright-assignments/#comments</comments>
		<pubDate>Sat, 15 Dec 2012 13:43:38 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[foss]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[gentoo foundation]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=192</guid>
		<description><![CDATA[A topic that has been fairly quiet for years has roared into life on a few separate occasions in the last month within the Gentoo community: copyright assignments. The goal of this post is to talk a little about the issues around these as I see them. I&#8217;ll state upfront that I&#8217;m not married to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=192&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A topic that has been fairly quiet for years has roared into life on a few separate occasions in the last month within the Gentoo community: copyright assignments.  The goal of this post is to talk a little about the issues around these as I see them.  I&#8217;ll state upfront that I&#8217;m not married to any particular approach.</p>
<p>But first, I think it is helpful to consider why this topic is flaring up.  The two situations I&#8217;m aware of where this has come up in the last month or so both concern contributions (willing or not) from outside of Gentoo.  One concerns a desire to be able to borrow eclass code from downstream distros like Exherbo, and the other is the eudev fork.  In both cases the issue is with the general Gentoo policy that all Gentoo code have a statement at the top to the effect of &#8220;Copyright 2012 Gentoo Foundation.&#8221;</p>
<p>Now, Diego has already <a href="http://blog.flameeyes.eu/2012/11/a-matter-of-copyrights">blogged</a> about some of the issues created by this policy already, and I want to set that aside for the moment.  Regardless of whether the Foundation can lay claim to ownership of copyright on past contributions, the question remains, should Gentoo aim to have copyright ownership (or something similar) for all Gentoo work be owned by the Foundation?  </p>
<p>Right now I&#8217;m reaching out to other free software organizations to understand their own policies in this area.  Regardless of whether we want to have Gentoo own our copyrights or not there are still legal questions around what to put on that copyright line, especially when a file is an amalgamation of code originated both inside and outside of Gentoo, perhaps even by parties who are hostile to the effort.  I can&#8217;t speak for the Trustees as a whole, but I suspect that after gathering info we&#8217;ll try to have some open discussion on the lists, and perhaps even have a community-wide vote before making new policy.  I don&#8217;t want to promise that &#8211; in fact I&#8217;d recommend that any community-wide vote be advisory only unless a requirement for supermajority were set, as I don&#8217;t want half the community up in arms because a 50.1% majority passed some highly unpopular policy.  </p>
<p>So, what are some of the directions in which Gentoo might go?  Why might we choose to go in these directions?  Below I outline some of the options I&#8217;m aware of:</p>
<p><strong>Maintain the status quo</strong><br />
We could just leave the issue of copyright assignment somewhat ambiguous as has been done.  If Gentoo were forced to litigate over copyright ownership right now an argument could be made that because contributors willingly allowed us to stick that copyright notice on our files and made their contribution with the knowledge of our policies, that they have given implicit consent to our doing so.</p>
<p>I&#8217;m not a big fan of this approach &#8211; it has the virtue of requiring less work, but really has no benefits one way or the other (and as you&#8217;ll read below their are benefits from declaring a position one way or the other).  </p>
<p>This requires us to come up with a policy around what goes on the copyright notice line.  I suspect that there won&#8217;t be much controversy for Gentoo-originated work like most ebuilds, as there isn&#8217;t much controversy over them now.  However, for stuff like eudev or code borrowed from other projects this could get quite messy.  With no one organization owning much of the code in any file the copyright line could become quite a mess.</p>
<p><strong>Do not require copyright assignment</strong><br />
We could just make it a policy that Gentoo would aim to own the name Gentoo, but not the actual code we distribute.  This would mean that we could freely accept any code we wished (assuming it was GPL or CC BY-SA compatible per our social contract).  This would also mean that Gentoo as an organization would find it difficult to pursue license violations, and future relicensing would be rather difficult.  </p>
<p>From an ability to merge outside code this is clearly the preferred solution.  This approach still carries all the difficulties of managing the copyright notice, since again no one organization is likely to hold the majority of copyright ownership of our files.  Also, if we were to go this route we should strongly consider requiring that all contributions be licensed under GPL v2+, and not just GPL v2.  Since Gentoo would not own the copyright if we ever wanted to move to a newer GPL version we would not have the option to do so unless this were done.</p>
<p>Gentoo would still own the name Gentoo, so from a branding/community standpoint we&#8217;d have a clear identity.  If somebody else copied our code wholesale the Foundation couldn&#8217;t do much to prevent this unless we retroactively asked a bunch of devs to sign agreements allowing us to do so, but we could keep an outside group from using the name Gentoo, or any of our other trademarks.</p>
<p><strong>Require copyright assignment</strong><br />
We could make it a policy that all contributions to Gentoo be made in conjunction with some form of copyright assignment, or contributor licensing agreement.  I&#8217;ll set aside for now the question of how exactly this would be implemented.</p>
<p>In this model Gentoo would have full legal standing to pursue license violations, and to re-license our code.  In practice I&#8217;m not sure how likely we&#8217;d actually be to do either.  The copyright notice line would be easy to manage, even if we made the occasional exception to the policy, since the exceptions could of course be managed as exceptions as well.  Most likely the majority of the code in any file would only be owned by a few entities at most.</p>
<p>The downside to this approach is that it basically requires turning away code, or making exceptions.  Want to fork udev?  Good luck getting them to assign copyright to Gentoo.</p>
<p>There could probably be blanket exceptions for small contributions which aren&#8217;t likely to create questions of copyright ownership.  And we could of course have a transition policy where we accept outside code but all modifications must be Gentoo-owned.  Again, I don&#8217;t see that as a good fit for something like eudev if the goal is to keep it aligned with upstream.</p>
<p>I think the end result of this would be that work that is outside of Gentoo would tend to stay outside of Gentoo.  The eudev project could do its thing, but not as a Gentoo project.  This isn&#8217;t necessarily a horrible thing &#8211; OpenRC wasn&#8217;t really a &#8220;Gentoo project&#8221; for much of its life (I&#8217;m not quite sure where it stands at the moment).  </p>
<p><strong>Alternatives</strong><br />
There are in-between options as well, such as encouraging the voluntary assignment/licensing of copyright (which is what KDE does), or dividing Gentoo up into projects we aim to own or not.  So, we might aim to own our ebuilds and the essential eclasses and portage, but maybe there is the odd eclass or side project like eudev that we don&#8217;t care about owning.  Maybe we aim to own new contributions (either all or most).</p>
<p>There are good things to be said for a KDE-like approach.  It gives us some of the benefits of attribution, and all of the benefits of not requiring attribution.  We could probably pursue license violations vigorously as we&#8217;d likely hold control of copyright over the majority of our work (aside from things like eudev &#8211; which obviously aren&#8217;t our work to begin with).  Relicensing would be a bit of a pain &#8211; for anything we have control over we could of course relicense it, but for anything else we&#8217;d have to at least make some kind of effort to get approval.  Legally that all becomes a murky area.  If we were to go with this route again I&#8217;d probably suggest that we require all code to be licensed GPL v2+ or similar just to give us a little bit of automatic flexibility.</p>
<p>I&#8217;m certainly interested in feedback from the Gentoo community around these options, things I hadn&#8217;t thought of, etc.  Feel free to comment here or on gentoo-nfp.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/foss/'>foss</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo-foundation/'>gentoo foundation</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=192&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2012/12/15/gentoo-and-copyright-assignments/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>The Dark Side of Quality</title>
		<link>http://rich0gentoo.wordpress.com/2012/12/06/the-dark-side-of-quality/</link>
		<comments>http://rich0gentoo.wordpress.com/2012/12/06/the-dark-side-of-quality/#comments</comments>
		<pubDate>Thu, 06 Dec 2012 15:48:32 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=182</guid>
		<description><![CDATA[Voltaire once said that the best is the enemy of the good. I think that there are few places where one can see as many abuses of quality as you&#8217;ll find in many FOSS projects, including Gentoo. Often FOSS errs on the side of insufficient quality. Developers who are scratching itches don&#8217;t always have incentive [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=182&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Voltaire once said that the best is the enemy of the good.  I think that there are few places where one can see as many abuses of quality as you&#8217;ll find in many FOSS projects, including Gentoo.</p>
<p>Often FOSS errs on the side of insufficient quality.  Developers who are scratching itches don&#8217;t always have incentive to polish their work, and as a result many FOSS projects result in a sub-optimal user experience.  In these cases &#8220;good enough&#8221; is standing in the way of &#8220;the best.&#8221;</p>
<p>However, I&#8217;d like to briefly comment on an opposite situation, where &#8220;the best&#8221; stands in the way of &#8220;good enough.&#8221;  As an illustrative example, consider the excellent practice of removing bundled libraries from upstream projects.  I won&#8217;t go on about why this is a good thing &#8211; <a href="http://blog.flameeyes.eu/2009/01/bundling-libraries-for-despair-and-insecurity">others</a> have already done so more extensively.  And make no mistake &#8211; I agree that this is a good thing, the following notwithstanding.</p>
<p>The problem comes when things like bundled libraries become a reason to not package software at all.  Two examples I&#8217;m aware of where this has happened recently are media-sound/logitechmediaserver-bin and media-gfx/darktable.  In the former there is a push to remove the package due to the inclusion of bundled libraries.  In the latter the current version is lagging somewhat because while upstream actually created an ebuild, it bundles libraries.  Another example is www-client/chromium, which still bundles libraries despite a very impressive campaign by the chromium team to remove them.</p>
<p>The usual argument for banning packages containing bundled libraries is that they can contain security problems.  However, I think this is misleading at best.  If upstream bundles zlib in their package we cry about potential security bugs (and rightly so), however, if upstream simply writes their own compression functions and includes them in the code, we don&#8217;t bat an eyelash, even though this is more likely to cause security problems.  The only reason we can complain about zlib is BECAUSE it is extensively audited, making it easy to spot the security problems.  We&#8217;re not reacting to the severity of problems, but only to the detectablity of them.</p>
<p>Security is a very important aspect of quality, but any reasonable treatment of security has to consider the threat model.  While software that bundles a library is rightfully considered &#8220;lower&#8221; in quality than one that does not, what matters more is whether this is a quality difference that is meaningful to end users, and what their alternatives are.  If the alternative for the user is to just install the same software with the same issues, but from an even lower quality source with no commitment to security updates, then removing a package from Gentoo actually increases the risks to our users.  This is not unlike the situation that exists with SSL, where an unencrypted connection is presented to the user as being more secure than an SSL connection with a self-signed certificate, when this is not true at all.  If somebody uses darktable to process photos that they take, then they&#8217;re probably not concerned with a potential buffer overflow in a bundled version of dcraw.  If the another user operated a service that accepted files from strangers on the internet, then they might be more concerned.</p>
<p>What is the solution?:  A policy that gives users reasonably secure software from a reputable source, with clear disclosure.  We should encourage devs to unbundle libraries, consider bugs pointing out bundled libraries valid, accept patches to unbundle libraries when they are available, and add an elog notice to packages containing bundled libraries in the interest of disclosure.  Packages with known security vulnerabilities would be subject to the existing security policy.  However, developers would still be free to place packages in the tree that contain bundled libraries, unmasked, and they could be stabilized.  Good enough for upstream should be good enough for Gentoo (again, baring specific known vulnerabilities), but that won&#8217;t stop us from improving further.  </p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=182&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2012/12/06/the-dark-side-of-quality/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>Gentoo EC2 Tutorial / Bootstrapping</title>
		<link>http://rich0gentoo.wordpress.com/2012/09/24/gentoo-ec2-tutorial-bootstrapping/</link>
		<comments>http://rich0gentoo.wordpress.com/2012/09/24/gentoo-ec2-tutorial-bootstrapping/#comments</comments>
		<pubDate>Mon, 24 Sep 2012 14:20:13 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[foss]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=167</guid>
		<description><![CDATA[I want to accomplish a few things with this post. First, I&#8217;d like to give more attention to the work recently done by edowd on Bootstrapping Gentoo in EC2. Second, I&#8217;d like to introduce a few enhancements I&#8217;ve made on these (some being merged upstream already). Third, I&#8217;d like to turn this into a bit [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=167&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I want to accomplish a few things with this post.</p>
<p>First, I&#8217;d like to give more attention to the work recently done by edowd on <a href="http://www.dowdandassociates.com/content/gentoo-cloud-bootstrapping" title="Bootstrapping Gentoo">Bootstrapping Gentoo in EC2</a>.  </p>
<p>Second, I&#8217;d like to introduce a few enhancements I&#8217;ve made on these (some being merged upstream already).  </p>
<p>Third, I&#8217;d like to turn this into a bit of a tutorial into getting started with EC2 as well since these scripts make it brain-dead simple.  </p>
<p><span id="more-167"></span></p>
<p>I&#8217;ve previously written on <a href="http://rich0gentoo.wordpress.com/2010/07/18/ec2-custom-kernels/" title="EC2 Custom&nbsp;Kernels">building a Gentoo EC2 image from scratch</a>, but those instructions do not work on EBS instances without adjustment, and they&#8217;re fairly manual.  Edowd extended this work by porting to EBS and writing scripts to build a gentoo install from a stage3 on EC2.  I&#8217;ve further extended this by adding a rudimentary plugin framework so that this can be used to bootstrap servers for various purposes &#8211; I&#8217;ve been inspired by some of the things I&#8217;ve seen done with <a href="http://wiki.opscode.com/display/chef/Home">Chef</a> and while that tool doesn&#8217;t fit perfectly with the Gentoo design this is a step in that direction.</p>
<p>What follows is a step-by-step howto that assumes you&#8217;re reading this on Gentoo and little else, and ends up with you at a shell on your own server on EC2.  Those familiar with EC2 can safely skim over the early parts until you get to the git clone step.</p>
<ol>
<li>To get started, go to aws.amazon.com, and go through the steps of creating an account if you don&#8217;t already have one.  You&#8217;ll need to specify payment details/etc.  If you buy stuff from amazon just use your existing account (if you want), and there isn&#8217;t much more than enabling AWS.</li>
<li>Log into aws.amazon.com, and from the top right corner drop-down under either your name or My Account/Console choose &#8220;Security Credentials&#8221;.</li>
<li>Browse down to access credentials, click on the X.509 certificate tab, generate a certificate, and then download both the certificate and private key files.  The web services require these to do just about anything on AWS.</li>
<li>On your gentoo system run as root <code>emerge ec2-ami-tools ec2-api-tools</code>.  This installs the tools needed to script actions on EC2.</li>
<li>Export into your environment (likely via .bashrc) EC2_CERT and EC2_PRIVATE_KEY.  These should contain the paths to the files you created in the previous step.  Congratulations &#8211; any of the ac2-api-tools should now work.</li>
<li>We&#8217;re now going to checkout the scripts to build your server.  Go to an empty directory and run <code>git clone git://github.com/rich0/rich0-gentoo-bootstrap.git -b rich0-changes</code>.</li>
<li>chdir to the repository directory if necessary, and within it run <code>./setup_build_gentoo.sh</code>.  This creates security zones and ssh keys automatically for you, and at the end outputs command lines that will build a 32 or 64 bit server.  The default security zone will accept inbound connections to anywhere, but unless you&#8217;re worried about an ssh zero-day that really isn&#8217;t a big deal.</li>
<li>Run either command line that was generated by the setup script.  The parameters tell the script what region to build the server in, what security zone to use, what ssh public key to use, and where to find the private key file for that public key (it created it for you in the current directory).</li>
<li>Go grab a cup of coffee &#8211; here is what is happening:
<ol type="a">
<li>A spot request is created for a half decent server to be used to build your gentoo image.  This is done to save money &#8211; amazon can kill your bootstrap server if they need it, and you&#8217;ll get the prevailing spot rate.  You can tweak the price you&#8217;re willing to pay in the script &#8211; lower prices mean more waiting.  Right now I set it pretty high for testing purposes.</li>
<li>The script waits for an instance to be created and boot.  The build server right now uses an amazon image &#8211; not Gentoo-based.  That could be easily tweaked &#8211; you don&#8217;t need anything in particular to bootstrap gentoo as long as it can extract a stage3 tarball.</li>
<li>A few build scripts are scp&#8217;ed to the server and run.  The server formats an EBS partition for gentoo and mounts it.</li>
<li>A stage3 and portage snapshot are downloaded and extracted.  Portage config files (world, make.conf, etc) are populated.  A script is created inside the EBS volume, and executed via chroot.</li>
<li>That script basically does the typical handbook install (emerge sync, update world (which has all the essentials in it like dhcpcd and so on), build a kernel, configure rc files, etc.</li>
<li>The bootstrap server terminates, leaving behind the EBS volume containing the new gentoo image.  A snapshot is created of this image and registered as an AMI.</li>
<li>A micro instance of the AMI is launched to test it.  After successful testing it is terminated.</li>
</ol>
</li>
<li>After the script is finished check the output to see that the server worked.  If you want it outputs a command line to make the server public &#8211; otherwise only you can see/run it.</li>
<li>To run your server go to aws.amazon.com, sign in if necessary, browse to the EC2 dashboard.  Click on AMIs on the left side, select your new gentoo AMI, and launch it (micro instances are cheap for testing purposes).  Go to instances on the left side and hit refresh until your instance is running.  Click on it and look down in the details for the public DNS entry.</li>
<li>To connect to your instance run <code>ssh -i &lt;path to pem file in your bootstrap directory&gt; ec2-user@&lt;public DNS name of your server&gt;</code>.  You can sudo to root (no password).</li>
</ol>
<p>That&#8217;s it &#8211; you have a server in the cloud.  When you&#8217;re done be sure to clean up to avoid excessive charges (a few cents an hour can add up).  Check the instances section and TERMINATE (not stop) any instances that are there.  You will be billed by the month for storage so de-register AMIs you don&#8217;t need and go to the snapshot section and delete their corresponding snapshots.</p>
<p>Now, all that is useful, but you probably want to tailor your instance.  You can of course do that interactively, but if you want to script it check out the plugins in the plugin directory.  Just add a path to a plugin file at the end of the command line to build the instance and it will tailor your image accordingly.  I plan to clean up the scripts a bit more to move anything discretionary into the plugins (you don&#8217;t NEED fcron or atop on a server).</p>
<p>The plugins/desktop plugin is a work in progress, but I think it should work now (takes the better part of a day to build).  It only works 32-bit right now due to the profile line.  However, if you run it you should be able to connect with x2goclient and have a KDE virtual desktop.  A word of warning &#8211; a micro instance is a bit underpowered for this.</p>
<p>And on a side note, if somebody could close bugs <a href="https://bugs.gentoo.org/show_bug.cgi?id=427722">427722</a> and <a href="https://bugs.gentoo.org/show_bug.cgi?id=423855">423855</a> that would eliminate two hacks in my plugin.  The stable NX doesn&#8217;t work with x2go (I don&#8217;t know if it works for anything else), and the stable gst-plugins-xvideo is missing a dependency.  The latter bug will bite anybody who tries to install a clean stage3 and emerge kde-meta.</p>
<p>All of this is very much a work in progress.  Patches or pull requests are welcome, and edowd is maintaining a nice set of up-to-date gentoo images for public use based on his scripts.</p>
<p>Note: Recently I modified this script to add my dev overlay.  I&#8217;m mainly doing this to deal with build failures.  However, in the interest of full disclosure I want to make sure all are aware.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/foss/'>foss</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/linux/'>linux</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=167&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2012/09/24/gentoo-ec2-tutorial-bootstrapping/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>Gentoo Bug Bounties</title>
		<link>http://rich0gentoo.wordpress.com/2012/08/19/gentoo-bug-bounties/</link>
		<comments>http://rich0gentoo.wordpress.com/2012/08/19/gentoo-bug-bounties/#comments</comments>
		<pubDate>Mon, 20 Aug 2012 02:55:44 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[gentoo foundation]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=153</guid>
		<description><![CDATA[Some may have noticed that the Gentoo Foundation has funded a bug bounty. This is something fairly new for the Foundation, and I wanted to offer some comments on the practice. Please note that while I&#8217;d love to see some of these make their way into policy some day, these are nothing more than my [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=153&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Some may have noticed that the Gentoo Foundation has funded a bug bounty. This is something fairly new for the Foundation, and I wanted to offer some comments on the practice. Please note that while I&#8217;d love to see some of these make their way into policy some day, these are nothing more than my own opinion, and I reserve the right to change my opinion as we gain experience.</p>
<p>The recent bug bounty was for bug <a href="https://bugs.gentoo.org/show_bug.cgi?id=418431">#418431</a>, which was to address a problem with git-svn which was holding up stabilization of the latest version of git, which is a blocker for the migration of the Portage tree to git.</p>
<p>What follows are some principles for the use of bug bounties and how I think we fared in this particular case.  I&#8217;d like to see the use of bounties expand, as right now I believe we under-utilize our donations.  However, it is important that bounties be used with care as they have the potential to cause harm or be wasteful.</p>
<p>One more upfront note &#8211; I supported the git-svn bounty as it was ultimately worded, as did the other Trustees.  Looking back I think we could have done things a little differently, but hindsight is always 20/20, and no doubt we&#8217;ll continue to learn as we experiment with this further.</p>
<p><span id="more-153"></span></p>
<p><strong>1. Bounties Should Be Used Strategically</strong><br />
While the Foundation has money to spend, we aren&#8217;t swimming in it, so we can&#8217;t use bounties for any little bug that annoys us.  Bounties should be reserved for matters where spending a little money has a large impact.</p>
<p>I think we did well here &#8211; the git-svn issue was going nowhere either within Gentoo or upstream, but the number of other blockers to the git migration are fairly small and within Gentoo&#8217;s control.  Getting rid of this issue should open the way towards the git migration, which is of course of strategic importance to Gentoo.</p>
<p><strong>2. The Solution Must Be Sustainable</strong><br />
This might also be stated as &#8220;consider the total cost.&#8221;  Before agreeing to fund this bug there was some due diligence to ensure that upstream would carry forward any patches we generated.  The problem was the result of changes on the SVN side, and the solution included some general cleanup and refactoring of code to make git-svn more maintainable upstream.  Upstream also expressed an interest in accepting the fix, and it was the opinion of the package maintainer that this would be a one-time fix as a result.</p>
<p>When considering whether a solution is sustainable, we need to think about how we got where we are, and consider whether we&#8217;re just going to end up back in the same place again.  If the solution won&#8217;t be maintainable, then any money spent is wasted unless it truly is a one-time event.</p>
<p><strong>3. Gentoo Can&#8217;t Fix It With Volunteer Effort</strong><br />
Gentoo is a community distribution.  We have some very talented developers.  We can usually fix our own problems, and doing so as a volunteer community effort is usually the healthiest solution.  </p>
<p>The sense for git-svn was that this was an upstream problem in a language our maintainers were not comfortable with.  The bug languished despite attention by several developers and discussions in other forums.  It was felt that offering a bounty would allow targeted expertise to tackle the problem, which otherwise was not of great interest to our community.</p>
<p>A policy to not offer bounties unless a bug has been open for some period of time except in unusual circumstances would be appropriate.</p>
<p><strong>4. Be Ready To Capitalize On the Work</strong><br />
If the work is strategic (see #1), then we ought to have a plan ready for when the bug is closed.  Otherwise there really should be no urgency to pay somebody to close the bug and it is basically a pig in a snake (clear the jam, and the problem just moves one step down the chain).</p>
<p>I think the jury is still out on how we&#8217;re doing here.  I think there is a lot of enthusiasm about git but we could have a bit more organization here.  None of this is intended as a slight to those who have been laboring hard to make this work &#8211; I hope getting this blocker cleared will inspire more to step up and resolve the other issues.  (I won&#8217;t say more here as I don&#8217;t want to make this about the Git migration.)</p>
<p><strong>5. Define the Problem and Success</strong><br />
A bounty is a contract.  At the very least misunderstandings can lead to hurt feelings, and at worst they can lead to HIGHLY contentious, expensive, and distracting legal action.  While a 10 page document shouldn&#8217;t be necessary for a token expense, any bounty should be very up-front about what exactly is to be done, and how success will be evaluated.</p>
<p>I think we could have done a little better in this regard, but there was some iteration on the wording of the bounty to clarify the &#8220;victory conditions.&#8221;  I think it is important to focus on outcomes &#8211; in this case we wanted code that upstream was likely to accept.  I&#8217;d actually have been happier making upstream acceptance a condition of payment, but the sense was that this would be inevitable but might delay payment unduly.  I think the jury is still out on this one.  What is important is that we don&#8217;t just achieve technical resolution of the bug, but that we fully realize the benefits we had in mind when we funded the bounty.</p>
<p><strong>6. Cover Code Ownership and Licensing</strong><br />
This is a work for hire &#8211; we can dictate ownership of the code (yes, I realize that the legalities of this vary internationally, but the US is the only nation that legally recognizes the Gentoo Foundation at the moment, and the US will enforce this insofar as its jurisdiction allows).  Per the Gentoo Social Contract, if we&#8217;re funding the creation of code, it ought to be free (generally GPL).</p>
<p>This was covered in the git-svn case.  We didn&#8217;t insist on ownership of copyright, but we did ensure the code was licensed using the upstream license (GPLv2).  My feeling is that if the bounty really represents payment for a majority of the work Gentoo should just own the code outright.  If the bounty is really a token gesture for what is mostly a volunteer effort I think the author should retain copyright as long as the code is FOSS.  In practice it doesn&#8217;t matter too much, so I think we should use discretion here.</p>
<p><strong>7. Offers of Bounties Should Be Fair</strong><br />
This topic led to some internal debate, and I think that we can probably do a little better in terms of transparency in the future.  The bounty was posted publicly on the bug, and anybody already interested in the bug and on the CC list would of course have gotten notification.  In retrospect I think that bounties are a significant enough occasion that perhaps a proposal should be offered for comment on -dev or -nfp and the final version announced on -dev-announce.  I think that the way we handled the git-svn case met all legal obligations, but I really want to make sure that the whole community has an opportunity to participate when they come up.</p>
<p>Another potential issue with bounties is that you can only pay one person (unless there is some side agreement to share it), and there can be resentment if work gets done but isn&#8217;t reimbursed.  This was addressed in the present case by asking anybody working on the bug to state their intent.  If a bounty is very large it probably would make sense to go through a more formal bidding process and just award a contract more conventionally.</p>
<p>I think that this last point of fairness is actually the most critical.  While messing up on any of the others could cause us to waste a few hundred dollars, getting the fairness bit wrong could literally destroy the community.  When you start paying people to do what used to be volunteer work the result can be demoralizing to the community.  I think the key is to only do this when the community lacks the ability/desire to do the work itself, and especially when the work lies outside of our core expertise.  Paying an accounting firm a reasonable fee to ensure our taxes are filed correctly isn&#8217;t viewed with much controversy.  We should try to keep bug bounties limited to similar sorts of situations.</p>
<p>Trustees of course have duties both under the bylaws and under US law to properly manage conflicts of interest.  These certainly apply to any kind of expenditure of money.</p>
<hr />
<p>So, what do you think?  I&#8217;m very open to criticism about how we handled our first bug bounty, and how the community feels about this use of money.  As is evident from the Treasurer&#8217;s Report at today&#8217;s Annual General Meeting, Gentoo is currently receiving more than it spends in donations, so I think making a little more use of this approach will allow our supporters to benefit Gentoo.  Seeing donations in action probably will help encourage an increase in donation as well.  However, I think we also need to tread carefully here, as the community matters far more than squashing a few bugs.</p>
<p>Finally, while I&#8217;d like to see policy around bounties formalized, I think doing so right away would be a mistake.  I think we should try to consciously apply principles like these but wait until we see how they work in practice before trying to codify them.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo-foundation/'>gentoo foundation</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=153&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2012/08/19/gentoo-bug-bounties/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>A Quick Dracut Module</title>
		<link>http://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/</link>
		<comments>http://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 21:28:36 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=142</guid>
		<description><![CDATA[Since the general trend on many linux distros is towards requiring /usr to be mounted at boot time, I figured I&#8217;d see what it would take to get it working using dracut. I&#8217;ve been messing with dracut for a while, and for some reason it stubbornly refuses to detect my raid devices. The kernel autodetection [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=142&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Since the general trend on many linux distros is towards requiring /usr to be mounted at boot time, I figured I&#8217;d see what it would take to get it working using dracut.</p>
<p>I&#8217;ve been messing with dracut for a while, and for some reason it stubbornly refuses to detect my raid devices.  The kernel autodetection works fine, but this is disabled when booting from an initramfs.  Dracut would timeout and drop me to a dash shell, and if I just typed mdadm -As followed by exit it would boot just fine.  </p>
<p>Dracut is using udev to set up raid devices, and obviously that is not working.</p>
<p>Beyond this, I&#8217;d like to get my /usr mounted pre-boot, and there is a module called usrmount that purports to do just this.  However, it isn&#8217;t working in my case because /usr is a bind mount to a subdir on an lvm volume, and it just isn&#8217;t figuring that out (it doesn&#8217;t even run lvm in the first place despite having the module installed, let alone figuring out what to mount in what order &#8211; I suspect the lvm module only works if root is on lvm).</p>
<p>My solution to both problems is to build my own simple dracut module.  If you want to try it out:</p>
<ol>
<li>cd /usr/lib/dracut/modules.d/</li>
<li>mkdir 91local</li>
<li>cat &gt; 91local/module-setup.sh<br />
<code>#!/bin/bash<br />
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-<br />
# ex: ts=8 sw=4 sts=4 et filetype=sh</p>
<p>check() {<br />
    return 0<br />
}</p>
<p>depends() {<br />
    return 0<br />
}</p>
<p>install() {<br />
    inst_hook pre-trigger 91 "$moddir/mount-local.sh"<br />
}<br />
</code></li>
<li>cat &gt; 91local/mount-local.sh<br />
<code>#!/bin/sh<br />
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-<br />
# ex: ts=8 sw=4 sts=4 et filetype=sh</p>
<p>mount_local()<br />
{<br />
        mdadm -As<br />
        lvm pvscan<br />
        lvm vgscan<br />
        lvm lvscan<br />
        lvm vgchange -ay<br />
}</p>
<p>mount_local</code></li>
</ol>
<p>Then run dracut to build your initramfs, and it should let mdadm and lvm auto-detect everything before it gets to mounting stuff.  You can then use the fstab-sys to mount whatever you need to mount user.  However, in your fstab.sys if you&#8217;re configuring a bindmount be sure to prepend /sysroot/ before the source directory.<br />
Example fstab.sys:<br />
<code>/dev/vg1/data           /data   ext4            noatime,user_xattr,barrier=1 0 0<br />
/sysroot/data/usr               /usr    none            bind    0 0<br />
/sysroot/data/var               /var    none            bind    0 0</code></p>
<p>Hopefully this helps somebody out &#8211; the dracut documentation is pretty sparse.  In fact, if somebody connected to dracut stumbles upon this I&#8217;d be open to a better way of hooking my script &#8211; pre-trigger just doesn&#8217;t seem right &#8211; I&#8217;d rather let udev try to do everything first.  However, I couldn&#8217;t find any way to hook after udev runs but before it bombs out not finding my root device.  Suggestions welcome.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/linux/'>linux</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=142&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>Another MythTV Update</title>
		<link>http://rich0gentoo.wordpress.com/2011/12/14/another-mythtv-update/</link>
		<comments>http://rich0gentoo.wordpress.com/2011/12/14/another-mythtv-update/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 15:06:56 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[foss]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=138</guid>
		<description><![CDATA[Agreeing with some advice on gentoo-dev, I&#8217;m going to post this as a blog entry instead of a Gentoo news item. The quick version of this update is expect to see 0.24.1 in portage in a few days. The long version follows&#8230; As many have noticed, the Gentoo version of MythTV has been significantly lagging [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=138&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Agreeing with some advice on gentoo-dev, I&#8217;m going to post this as a blog entry instead of a Gentoo news item.  The quick version of this update is expect to see 0.24.1 in portage in a few days.  The long version follows&#8230;<br />
<span id="more-138"></span><br />
As many have noticed, the Gentoo version of MythTV has been significantly lagging the upstream version. We plan to introduce 0.24.1, which is the current upstream stable version, in the next few days. Before going through the upgrade we wanted to make you aware of our future plans for MythTV in Gentoo and some of your alternatives. </p>
<p>The Gentoo MythTV package will generally try to stay closer to upstream than it has in the last year, but probably will only be updated a few times per year at most. It will benefit from the full Gentoo QA process, including introduction to ~arch followed by stabilization. Dependencies will also be controlled in line with Gentoo QA so things should suddenly not stop working without warning. Versions that are stabilized will stay in the tree longer after they are superseded for those who want to take their time with upgrades. </p>
<p>The versions of MythTV in Gentoo may also not support the full range of upstream plugins. </p>
<p>There is an alternative for those of you who want a more bleeding-edge experience. Upstream maintains a Gentoo overlay at: git://github.com/MythTV/packaging.git </p>
<p>The upstream repository will be the first to receive updates and will have many more intermediate versions including bugfixes. The overlay also supports all the upstream plugins. However, it is not subject to Gentoo QA policy &#8211; dependencies could stop working or disappear without warning, and older versions may not be kept around. Generally speaking, we have not heard complaints from those who use it. Any issues with the upstream overlay should be reported to the MythTV project and not to Gentoo bugzilla. </p>
<p>If you&#8217;re already using the upstream overlay you shouldn&#8217;t be impacted by anything done in Portage &#8211; your versions will generally stay higher than our own. </p>
<p>If we drop your favorite plugin and you want it back and are willing to help maintain it, send us a note at mythtv@gentoo.org. If you&#8217;re willing to test it and ensure it works for everybody else, we can keep it in the portage tree. </p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/foss/'>foss</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/linux/'>linux</a>, <a href='http://rich0gentoo.wordpress.com/category/mythtv/'>mythtv</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=138&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2011/12/14/another-mythtv-update/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>KDump on Gentoo</title>
		<link>http://rich0gentoo.wordpress.com/2011/11/11/kdump-on-gentoo/</link>
		<comments>http://rich0gentoo.wordpress.com/2011/11/11/kdump-on-gentoo/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 02:45:16 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=130</guid>
		<description><![CDATA[I&#8217;ve been trying to learn a little more about kernel debugging (part of my quest to learn a little more about btrfs), and I figured I&#8217;d post a quick howto on getting kernel crash dumps captured on Gentoo. Certainly a more elegant solution than this could be devised with more automation. It wouldn&#8217;t take much [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=130&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been trying to learn a little more about kernel debugging (part of my quest to learn a little more about btrfs), and I figured I&#8217;d post a quick howto on getting kernel crash dumps captured on Gentoo.<br />
<span id="more-130"></span><br />
Certainly a more elegant solution than this could be devised with more automation.  It wouldn&#8217;t take much to setup, and turning it into a package might be nice.  Maybe a project for the future if I manage to generate enough panics.</p>
<p>There are a lot of posts about kdump you&#8217;ll find on Google, but most are distro-specific and leave out how to actually make it work if it isn&#8217;t already configured.  The best post I&#8217;ve found is <a href="http://www.mjmwired.net/kernel/Documentation/kdump/">this one</a>, which this procedure is largely based on.</p>
<p>To keep things simple I&#8217;m going to just use a single kernel for the system and recovery, which creates just a few limitations on your kernel configuration.</p>
<ol>
<li>emerge kexec-tools &#8211; you won&#8217;t get anywhere without this.</li>
<li>Check your kernel configuration for the following settings:<br />
<code>CONFIG_KEXEC=y<br />
CONFIG_SYSFS=y<br />
CONFIG_DEBUG_INFO=Y  </code>(technically not needed, but what&#8217;s the point)<code><br />
CONFIG_CRASH_DUMP=y<br />
CONFIG_PROC_VMCORE=y<br />
CONFIG_RELOCATABLE=y</code>
</li>
<li>Edit your grub.conf and add to your boot line crashkernel=64M for up to around 12GB of system RAM</li>
<li>Create /etc/local.d/kdump.start containing (don&#8217;t forget to chmod it a+x):<br />
<code>#!/bin/bash</p>
<p>kexec -p /[path-to-kernel] --append="root=[root-device] single irqpoll maxcpus=1 reset_devices"</code></li>
</ol>
<p>That&#8217;s it.  Note that your kernel has to be reachable, and the typical gentoo config leaves /boot unmounted, so you&#8217;ll either need to remove noauto from your fstab or place a copy of your kernel elsewhere.  </p>
<p>I didn&#8217;t get this working with an initramfs &#8211; this is supposed to be possible but obviously the more complexity the trickier.</p>
<p>With these changes whenever you get a kernel panic or lockup (hard/soft if the kernel is set to detect them) the system will use kexec to run the kernel in crash mode, relocated to a reserved area of memory.  The rest of RAM will be untouched.  When the system boots up log in and copy /proc/vmcore to a file &#8211; this is your crash dump.  Then reboot your system to get back to a normal configuration &#8211; you shouldn&#8217;t continue to operate in this state.</p>
<p>The obvious improvement to this is to create a script and run it with init= and have it copy the core file for you, then reboot&#8230;</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/linux/'>linux</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=130&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2011/11/11/kdump-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>The Foundation Activity Tracker</title>
		<link>http://rich0gentoo.wordpress.com/2011/07/19/the-foundation-activity-tracker/</link>
		<comments>http://rich0gentoo.wordpress.com/2011/07/19/the-foundation-activity-tracker/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 20:24:24 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[gentoo foundation]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=123</guid>
		<description><![CDATA[If you haven&#8217;t noticed on gentoo-nfp, I&#8217;ve created an activity tracking page (with the help of David Abbot) to track periodic compliance activities for the Foundation. Some have asked why do this, and why not simply use the Gentoo Calendar/etc to accomplish this? My thinking is that the current tools do not go far enough. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=123&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>If you haven&#8217;t noticed on gentoo-nfp, I&#8217;ve created an <a href="http://www.gentoo.org/foundation/en/secretary/activities/activity_tracker.xml">activity tracking page</a> (with the help of David Abbot) to track periodic compliance activities for the Foundation.</p>
<p>Some have asked why do this, and why not simply use the Gentoo Calendar/etc to accomplish this?<br />
<span id="more-123"></span><br />
My thinking is that the current tools do not go far enough.  When the whole fiasco on the list about tax documents broke out a few months ago I started reading up and took more of an interest in these matters.  What I&#8217;ve found is that truly staying on top of these kinds of activities involves a decent learning curve and quite a bit of organization.  Even big corporations like Microsoft have let domains expire/etc.  There are some activities that are just too important to allow to get lost in the shuffle.</p>
<p>My goal is for the activity tracker to turn into a one-stop-shop for any kind of recurring activity that the Foundation has to perform either due to strict regulatory compliance (like filing our taxes), or because it is just REALLY important (like renewing our domain name &#8211; though the scope of responsibility on that one is unclear to me).  </p>
<p>The site is not going to be about work-in-progress or any kind of one-time events.  I think that Bugzilla already is working fine for this.  In fact, ideally I&#8217;d anticipate that any recurring activity like a tax filing would be associated with a series of bugs for each time it was performed.</p>
<p>Suggestions from the community are of course welcome.  As anybody can see it is clearly a work in progress.  However, I envision a day not long in the future where anybody can see an index of things that need to be done, when they need to be done next, and links to detailed pages on how to do them, and the results of having done them in the past.  A volunteer wanting to take on some filing would be able to quickly learn everything they need to do it efficiently, freeing up Officers to supervise more.  Or, when Officers do perform the work it will be done more consistently with fewer omissions, and links to tools, templates, and related materials will speed up the work.</p>
<p>And for the record, I think the volunteers managing the Foundation in the past few years have been doing a good job.  This is hard work, and in any distributed organization staying on top of this is harder.  In many cases they&#8217;ve inherited a bit of a mess and are doing their best to clean it up.  The goal here is to make our problems and their solutions more transparent to all.</p>
<p>Once we&#8217;re done any concerned member of the community should be able to go down the list and audit us (well, to the extent we&#8217;re able to divulge things).  If somebody notices a date coming up and no bug filed, they can file a bug or ping a trustee to make sure we&#8217;re doing our job.  Sure, it might result in occasional embarrassment, but better that than serious non-compliance.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>, <a href='http://rich0gentoo.wordpress.com/category/gentoo-foundation/'>gentoo foundation</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=123&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2011/07/19/the-foundation-activity-tracker/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
		<item>
		<title>What&#8217;s Up With MythTV on Gentoo?</title>
		<link>http://rich0gentoo.wordpress.com/2011/06/18/whats-up-with-mythtv-on-gentoo/</link>
		<comments>http://rich0gentoo.wordpress.com/2011/06/18/whats-up-with-mythtv-on-gentoo/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 02:59:05 +0000</pubDate>
		<dc:creator>rich0</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://rich0gentoo.wordpress.com/?p=120</guid>
		<description><![CDATA[I&#8217;ve gotten a few fair questions over the last few weeks about the status of MythTV on Gentoo. Here is a quick synopsis of where things stand&#8230; Right now Gentoo is considerably behind upstream for MythTV. Gentoo&#8217;s latest stable is in the 0.22 branch, with 0.23 being in testing. Upstream considers 0.24.1 stable. The good [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=120&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve gotten a few fair questions over the last few weeks about the status of MythTV on Gentoo.  Here is a quick synopsis of where things stand&#8230;<br />
<span id="more-120"></span><br />
Right now Gentoo is considerably behind upstream for MythTV.  Gentoo&#8217;s latest stable is in the 0.22 branch, with 0.23 being in testing.  Upstream considers 0.24.1 stable.</p>
<p>The good news is that upstream actually provides a Gentoo overlay which should make getting this into the tree relatively easy.  The bad news is that MythTV and its plugins are heavily dependent on an eclass, and the upstream overlay eclass contains substantial changes (and is likely not backwards compatible with the ebuilds in the Gentoo tree).</p>
<p>Complicating things is the fact that the MythTV herd is pretty thin these days on Gentoo, with Cardoe being tied up with other things (as an aside &#8211; we all owe Cardoe thanks for sustaining things for this long).  My own MythTV setup is also used by my family of four, which means that I don&#8217;t like to mess with it unless I have a solid weekend to deal with any issues that crop up, especially since my front-end runs minimyth which is itself problematic and needs to be kept in-sync since MythTV does not support cross-version client/server setups.  A series of personal emergencies hasn&#8217;t really helped much either.</p>
<p>Still, our users do deserve better, and I&#8217;m eager to try out 0.24 myself.  So, rather than slow things up by trying to consolidate the eclasses into something that is both forwards- and backwards-compatible I plan to just introduce a mythtv-2.eclass into the tree, and migrate over.  Once the old builds are cleaned out the old eclass will no longer be used (removing it is a different matter for the longer-term).</p>
<p>Hopefully I&#8217;ll get a chance to upgrade to the version in upstream&#8217;s overlay soon, and once I&#8217;m reasonably confident that it is OK I&#8217;ll introduce it into the tree.  It will likely be light on plugins initially unless I can find some willing testers &#8211; if you&#8217;re interested in helping out feel free to contact me offline or comment below.</p>
<p>So, sorry for the long wait.  If you are in a hurry feel free to try out upstream&#8217;s overlay &#8211; unless it contains some major issue that is what Gentoo will end up with and it will be easy for you to switch over.  Oh, and expect 0.24.1 to be the target for Gentoo &#8211; no sense starting out behind.</p>
<br />Filed under: <a href='http://rich0gentoo.wordpress.com/category/gentoo/'>gentoo</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rich0gentoo.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rich0gentoo.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rich0gentoo.wordpress.com&#038;blog=12853060&#038;post=120&#038;subd=rich0gentoo&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rich0gentoo.wordpress.com/2011/06/18/whats-up-with-mythtv-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/30cf91a2b01fd7dcce8060be56928250?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rich0</media:title>
		</media:content>
	</item>
	</channel>
</rss>