<?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>BenV&#039;s notes &#187; update</title>
	<atom:link href="http://notes.benv.junerules.com/tag/update/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.benv.junerules.com</link>
	<description>Rants and notes</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:36:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress 3.0 update!</title>
		<link>http://notes.benv.junerules.com/all/software/wordpress-3-0-update/</link>
		<comments>http://notes.benv.junerules.com/all/software/wordpress-3-0-update/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:24:39 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=812</guid>
		<description><![CDATA[Since I was in another update mood I decided to take a quick look at my notes. The admin page mentioned something about the new 3.0 version. Obviously I immediately became very excited and ran to the bathroom. After screaming for half an hour I made a backup of the wordpress dir and sql and [...]]]></description>
			<content:encoded><![CDATA[<p>Since I was in another update mood I decided to take a quick look at my notes.<br />
The admin page mentioned something <a href="http://wordpress.org/development/2010/06/thelonious/">about the new 3.0 version</a>.<br />
Obviously I immediately became very excited and ran to the bathroom.<br />
After screaming for half an hour I made a backup of the wordpress dir and sql and wondered if the auto-upgrade button would work.<br />
Always a surprise&#8230;. but it worked! It actually worked!<span id="more-812"></span></p>
<p>Suddenly the admin page looked slightly different (round corners in opera, that kind of rubbish), yet still exactly the same.<br />
Oh well. They have a better updates overview now though. So I also decided to update the theme. Which restored a stupid<br />
&#8220;swear at wordpress&#8221; box that I molested in the previous version. &#8220;Oh yeah, now I remember&#8230;&#8221;. (note that this is simply the theme<br />
that has that stupid box there).</p>
<div id="attachment_816" class="wp-caption alignnone" style="width: 310px"><a href="http://notes.benv.junerules.com/wp-content/uploads/2010/06/wordpress3-pixel-theme.png"><img src="http://notes.benv.junerules.com/wp-content/uploads/2010/06/wordpress3-pixel-theme-300x129.png" alt="WordPress 3.0 Pixel Theme v2.0.2 with stupid welcome box" title="WordPress 3.0 Pixel Theme v2.0.2 with stupid welcome box" width="300" height="129" class="size-medium wp-image-816" /></a><p class="wp-caption-text">WordPress 3.0 Pixel Theme v2.0.2 with stupid welcome box</p></div>
<h5>&#8230; when trying to insert an image here I found out that the new wordpress actually destroyed the image upload dialog.<br />
Obviously it&#8217;s only broken in the Opera version I&#8217;m using, so it&#8217;s probably them&#8230; but still&#8230; *rage*&#8230;</h5>
<p>In other words, a good time to try out what they call <a href="http://codex.wordpress.org/Child_Themes">Child Themes</a>.<br />
If done correctly this supposedly prevents further updates to the theme from reintroducing this box. Unless they do something<br />
silly of course, like adding a new box in a different template.<br />
Here goes!</p>
<p>First we create a dir for the theme, it can be named whatever you like.<br />
Then we create a <span style="color:#FF00FF">style.css</span> file.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html$ <span style="color: #7a0874; font-weight: bold;">cd</span> wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span><br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> benv-pixel <br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes$ <span style="color: #7a0874; font-weight: bold;">cd</span> benv-pixel<br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>benv-pixel$ <span style="color: #c20cb9; font-weight: bold;">vim</span> style.css</div></div>
<p>The style file can be very empty, basically it imports the parent theme and optionally overrides things:</p>
<div class="codecolorer-container css vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/*<br />
Theme Name: &nbsp; &nbsp; BenV's Pixel Child Theme<br />
Theme URI: &nbsp; &nbsp; &nbsp;http: //notes.benv.junerules.com/<br />
Description: &nbsp; &nbsp;Child theme for the Pixel theme<br />
Author: &nbsp; &nbsp; &nbsp; &nbsp; BenV<br />
Author URI: &nbsp; &nbsp; http://notes.benv.junerules.com/<br />
Template: &nbsp; &nbsp; &nbsp; pixel<br />
Version: &nbsp; &nbsp; &nbsp; &nbsp;1.0.0<br />
*/</span><br />
<br />
<span style="color: #a1a100;">@import url(&quot;../pixel/style.css&quot;);</span></div></div>
<p>Make sure to correctly name the template (case sensitive) that you base the theme on, in our case <span style="color:#00FFFF">pixel</span>.</p>
<p>Well, so far so good, but this doesn&#8217;t actually change anything. What we want to get rid of is a stupid box that apparently is in the<br />
<span style="color:#00FF88">welcome.php</span> file of the pixel theme. In fact, <span style="color:#00FF88">welcome.php</span> pretty much is the entire thing that annoys me.<br />
So let&#8217;s create our own <span style="color:#00FF88">welcome.php</span> file:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// This is BenV's welcome.php file. Yes, it's empty. Good riddance.</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>Easy huh?</p>
<p>Now you can go to the Admin panel -> themes and then you&#8217;ll see your child theme right there.<br />
<div id="attachment_817" class="wp-caption alignnone" style="width: 310px"><a href="http://notes.benv.junerules.com/wp-content/uploads/2010/06/benv-wordpress-theme.png"><img src="http://notes.benv.junerules.com/wp-content/uploads/2010/06/benv-wordpress-theme-300x282.png" alt="BenV&#039;s WordPress Pixel Child Theme" title="BenV&#039;s WordPress Pixel Child Theme" width="300" height="282" class="size-medium wp-image-817" /></a><p class="wp-caption-text">BenV's WordPress Pixel Child Theme</p></div><br />
Activate it (or preview it first to be sure), and we&#8217;re done.</p>
<p>However, things never work as intended, so this fails. *sigh*. Nice try WordPress.<br />
When we look into this matter, we notice that the pixel theme doesn&#8217;t really have a <span style="color:#00FF88">welcome.php</span> template.<br />
What it does have is a <span style="color:#88FF33">sidebar.php</span> template, which includes the <span style="color:#00FF88">welcome.php</span> from its own template path.<br />
In order words: we can&#8217;t override <span style="color:#00FF88">welcome.php</span> (until they fix the Pixel theme), but we have to override the <span style="color:#88FF33">sidebar.php</span> file.</p>
<p>Here goes:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>benv-pixel$ <span style="color: #c20cb9; font-weight: bold;">cp</span> ..<span style="color: #000000; font-weight: bold;">/</span>pixel<span style="color: #000000; font-weight: bold;">/</span>sidebar.php .<br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>benv-pixel$ <span style="color: #c20cb9; font-weight: bold;">vim</span> sidebar.php<br />
&nbsp;<span style="color: #666666; font-style: italic;"># Remove lines 6-8, they look like this:</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># &lt;li&gt;</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># &lt;?php include (TEMPLATEPATH . '/welcome.php'); ?&gt;</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># &lt;/li&gt;</span><br />
:wq</div></div>
<p>Yay! It works!</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/wordpress-3-0-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deluge issue</title>
		<link>http://notes.benv.junerules.com/all/software/deluge-issue/</link>
		<comments>http://notes.benv.junerules.com/all/software/deluge-issue/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 11:52:39 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[boost]]></category>
		<category><![CDATA[deluge]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=689</guid>
		<description><![CDATA[This morning I noticed my torrent daemon (aka Deluge) was down. Checking the logs revealed this: &#91;ERROR &#160; &#93; 12:22:01 main:216 libboost_filesystem-mt.so: cannot open shared object file: No such file or directory Traceback &#40;most recent call last&#41;: &#160; File &#34;/usr/lib/python2.6/site-packages/deluge/main.py&#34;, line 209, in start_daemon &#160; &#160; Daemon&#40;options, args&#41; &#160; File &#34;/usr/lib/python2.6/site-packages/deluge/core/daemon.py&#34;, line 134, in __init__ [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I noticed my torrent daemon (aka <a href="http://deluge-torrent.org/">Deluge</a>) was down. <span id="more-689"></span><br />
Checking the logs revealed this:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>ERROR &nbsp; <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">22</span>:01 main:<span style="color: #000000;">216</span> libboost_filesystem-mt.so: cannot open shared object <span style="color: #c20cb9; font-weight: bold;">file</span>: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory<br />
Traceback <span style="color: #7a0874; font-weight: bold;">&#40;</span>most recent call <span style="color: #c20cb9; font-weight: bold;">last</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:<br />
&nbsp; File <span style="color: #ff0000;">&quot;/usr/lib/python2.6/site-packages/deluge/main.py&quot;</span>, line <span style="color: #000000;">209</span>, <span style="color: #000000; font-weight: bold;">in</span> start_daemon<br />
&nbsp; &nbsp; Daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>options, args<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; File <span style="color: #ff0000;">&quot;/usr/lib/python2.6/site-packages/deluge/core/daemon.py&quot;</span>, line <span style="color: #000000;">134</span>, <span style="color: #000000; font-weight: bold;">in</span> __init__<br />
&nbsp; &nbsp; from deluge.core.core import Core<br />
&nbsp; File <span style="color: #ff0000;">&quot;/usr/lib/python2.6/site-packages/deluge/core/core.py&quot;</span>, line <span style="color: #000000;">36</span>, <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">&lt;</span>module<span style="color: #000000; font-weight: bold;">&gt;</span><br />
&nbsp; &nbsp; from deluge._libtorrent import lt<br />
&nbsp; File <span style="color: #ff0000;">&quot;/usr/lib/python2.6/site-packages/deluge/_libtorrent.py&quot;</span>, line <span style="color: #000000;">59</span>, <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">&lt;</span>module<span style="color: #000000; font-weight: bold;">&gt;</span><br />
&nbsp; &nbsp; import libtorrent <span style="color: #c20cb9; font-weight: bold;">as</span> lt<br />
ImportError: libboost_filesystem-mt.so: cannot open shared object <span style="color: #c20cb9; font-weight: bold;">file</span>: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory</div></div>
<p>Interesting. Suddenly I reminded myself of some Slackware updates that probably installed a new version of boost yesterday, replacing my own version.</p>
<p>Oh well, since it seems to be the libtorrent part that&#8217;s bugging, I might as well upgrade it:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>downloads.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>project<span style="color: #000000; font-weight: bold;">/</span>libtorrent<span style="color: #000000; font-weight: bold;">/</span>libtorrent<span style="color: #000000; font-weight: bold;">/</span>libtorrent-0.14.7<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7.tar.gz?<span style="color: #007800;">use_mirror</span>=freefr<br />
&nbsp;<span style="color: #666666; font-style: italic;"># Leech leech</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src$ <span style="color: #c20cb9; font-weight: bold;">tar</span> zxf libtorrent-rasterbar-0.14.7.tar.gz<br />
&nbsp;<span style="color: #666666; font-style: italic;"># Kaboom, in your /usr/src</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src$ <span style="color: #7a0874; font-weight: bold;">cd</span> libtorrent-rasterbar-0.14.7<br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--enable-dependency-tracking</span> <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--enable-static</span> <span style="color: #660033;">--enable-python-binding</span> <span style="color: #660033;">--with-boost</span> <span style="color: #660033;">--with-libgeoip</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># lalala, junk</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7$ <span style="color: #c20cb9; font-weight: bold;">make</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># See you in an hour</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> pkg ; <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">DESTDIR</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">pwd</span><span style="color: #000000; font-weight: bold;">`/</span>pkg <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> pkg<br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7<span style="color: #000000; font-weight: bold;">/</span>pkg$ makepkg <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7-i386-<span style="color: #000000;">1</span>.tgz<br />
root<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7<span style="color: #000000; font-weight: bold;">/</span>pkg$ upgradepkg <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>libtorrent-rasterbar-0.14.7-i386-<span style="color: #000000;">1</span>.tgz</div></div>
<p>(or you could have used slackbuild.pl, it&#8217;s easier <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>After upgrading the package, deluge starts again. Wheee.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/deluge-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress hits 2.9 with another failed auto-upgrade.</title>
		<link>http://notes.benv.junerules.com/all/software/wordpress-hits-2-9-with-another-failed-auto-upgrade/</link>
		<comments>http://notes.benv.junerules.com/all/software/wordpress-hits-2-9-with-another-failed-auto-upgrade/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:15:38 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=665</guid>
		<description><![CDATA[Here we go again, wordpress has an update to version 2.9 this time. New features include &#8220;automatic database optimization support&#8221;, which you can enable by putting define('WP_ALLOW_REPAIR', true); in your wp-config.php file. The rest you&#8217;ll run into yourself, it&#8217;s a ton of new stuff and fixes but some cool stuff like a built-in image editor [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go <a href="http://notes.benv.junerules.com/software/another-wordpress-update/">again</a>, wordpress has an <a href="http://wordpress.org/development/2009/12/wordpress-2-9/">update to version 2.9</a> this time.</p>
<p>New features include &#8220;automatic database optimization support&#8221;, which you can enable by putting <code class="codecolorer text vibrant"><span class="text">define('WP_ALLOW_REPAIR', true);</span></code> in your <span style="color:#FF00FF">wp-config.php</span> file.<br />
The rest you&#8217;ll run into yourself, it&#8217;s a ton of new stuff and fixes but some cool stuff like a built-in image editor and easier embedding of your favorite youtube junk.</p>
<p>Needless to say the automatic upgrade failed AGAIN for me:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Downloading update from http:<span style="color: #000000; font-weight: bold;">//</span>wordpress.org<span style="color: #000000; font-weight: bold;">/</span>wordpress-<span style="color: #000000;">2.9</span>.zip.<br />
<br />
Download failed.: Operation timed out after <span style="color: #000000;">60</span> seconds with <span style="color: #000000;">1560944</span> bytes received<br />
<br />
Installation Failed</div></div>
<p>Fortunately, my previous patch still works. Get it <a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=wordpress-auto-update-timeout.diff">here</a> if you want.</p>
<p>After patching that single line the automagic upgrade ended with: <span style="color:#FF0000">WordPress upgraded successfully</span>. Jeeeej.<br />
However, they still left the timeout at 60 seconds in the newer version <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># grep wp_remote_get wp-admin/includes/file.php</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">$response</span> = wp_remote_get<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$url</span>, array<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'timeout'</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000;">60</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;</div></div>
<p>Failers. They deserve a 56k6 modem for their servers so they can find out about these issues themselves <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/wordpress-hits-2-9-with-another-failed-auto-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another wordpress update</title>
		<link>http://notes.benv.junerules.com/all/software/another-wordpress-update/</link>
		<comments>http://notes.benv.junerules.com/all/software/another-wordpress-update/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:23:53 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Morons]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=504</guid>
		<description><![CDATA[Version 2.8.5 is here! Some important security hardening going on, fixing a trackback DoS attack (or so they claim). Some more details over here. As usualy the automatic update failed for me, so once again the fix for this error: Download failed.: Operation timed out after 60 seconds with 1538482 bytes received Either patch it [...]]]></description>
			<content:encoded><![CDATA[<p>Version 2.8.5 is here! Some important security hardening going on, fixing a trackback DoS attack (or so they claim). Some more details <a href="http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/" title="wordpress 2.8.5 release">over here</a>. As usualy the automatic update failed for me, so once again the fix for this error:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Download failed.: Operation timed out after <span style="color: #000000;">60</span> seconds with <span style="color: #000000;">1538482</span> bytes received</div></div>
<p>Either patch it manually:</p>
<ul>
<li>Edit <span style="color:#FF00FF">wp-admin/includes/file.php</span> and change line <span style="color:#FFFF11">448</span> to a more reasonable default.</li>
<li>The line sould become something like: <code class="codecolorer php vibrant"><span class="php"><span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> wp_remote_get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">600</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code></li>
</ul>
<p>Or use this patch:</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- wp-admin/includes/file.php.org &nbsp; &nbsp; &nbsp;2009-10-21 17:03:47.000000000 +0200</span><br />
<span style="color: #888822;">+++ wp-admin/includes/file.php &nbsp;2009-10-21 17:03:06.000000000 +0200</span><br />
<span style="color: #440088;">@@ -445,7 +445,7 @@</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span> ! $handle <span style="">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new WP_Error<span style="">&#40;</span>'http_no_file', __<span style="">&#40;</span>'Could not create Temporary file'<span style="">&#41;</span><span style="">&#41;</span>;<br />
&nbsp;<br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; $response = wp_remote_get<span style="">&#40;</span>$url, array<span style="">&#40;</span>'timeout' =&gt; <span style="">60</span><span style="">&#41;</span><span style="">&#41;</span>;</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; $response = wp_remote_get<span style="">&#40;</span>$url, array<span style="">&#40;</span>'timeout' =&gt; <span style="">600</span><span style="">&#41;</span><span style="">&#41;</span>;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span> is_wp_error<span style="">&#40;</span>$response<span style="">&#41;</span> <span style="">&#41;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose<span style="">&#40;</span>$handle<span style="">&#41;</span>;</div></div>
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=wordpress-auto-update-timeout.diff" title="Downloaded 166 times">Wordpress auto updater timeout patch</a> - Version  - SHA: 9e89757f4b2e5536dbd9fe85a3befd00ab1c4a51
<p>When I tried adding the above patch as a download (using the download monitor plugin) I got this failure:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">File <span style="color: #7a0874; font-weight: bold;">type</span> does not meet security guidelines. Try another.</div></div>
<p>What the fuck guys, this is a TEXT file. Grepping through the sources I find the <span style="color:#00FFFF">wp-admin/includes/file.php</span> file to be the nazi. Apparently I&#8217;m not allowed (as site admin) to pass this <code class="codecolorer php vibrant"><span class="php">current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'unfiltered_upload'</span> <span style="color: #009900;">&#41;</span></span></code>. Security hardening, yeah&#8230; against idiots perhaps.<br />
I&#8217;m expecting an update of either wordpress or <a href="http://wordpress.org/extend/plugins/download-monitor/" title="Download Monitor plugin">the download monitor plugin</a> soon.<br />
Meanwhile I simply uploaded the file manually and added an existing download. Pfffrt, the hassle.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/another-wordpress-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pulseaudio, slackware and udev</title>
		<link>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/</link>
		<comments>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 14:42:30 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=367</guid>
		<description><![CDATA[Yesterday I found a release notice in the pulseaudio mailinglist announcing version 0.9.16. Today, I found another release note in the mailinglist that announced pulseaudio version 0.9.17. Gee, another fuckup? (but that&#8217;s part of the release process I guess ) Anyway, I decided to upgrade my 0.9.15 installation since it still glitches every now and [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I found a release notice in the <span style="color:#FF00FF">pulseaudio</span> mailinglist announcing version 0.9.16.<br />
Today, I found another release note in the mailinglist that announced pulseaudio version 0.9.17. Gee, another fuckup? (but that&#8217;s part of the release process I guess <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Anyway, I decided to upgrade my 0.9.15 installation since it still glitches every now and then.<span id="more-367"></span><br />
With glitches I mean &#8220;The music played by mpd suddenly sounds as if you have quad damage in quake 3 arena and filter out most of the music frequencies&#8221;. You know, when you shoot a quad damage rocket through a hallway, that kind of sound. Restarting pulseaudio always fixes this. (I&#8217;ve been running into this glitch ever since I started using pulse). Seems to occur randomly though&#8230; sometimes when the server is busy, sometimes when switching from a .mod file to a .mp3 file, sometimes just when the lights turn on. You know the kind of glitch.<br />
Other than I kind of enjoy pulseaudio, even though it&#8217;s a struggle to get going. It does allow our server to stream to other servers and stuff like that, which is very cute. Oh, and per application volume levels and mixing etc&#8230; also good.<br />
This pulseaudio installation runs on our local server &#8212; in daemon/server mode &#8212; btw, on which we have connected our amplifier and speakers as to enlighten our office/game room/throne chamber.</p>
<p>So for compiling version 0.9.16 the first thing I ran into was <span style="color:#00FFFF">libsndfile</span> that was outdated. Version 1.0.17 was too old, so I ran slackbuild on the new <a href="http://www.mega-nerd.com/libsndfile/libsndfile-1.0.20.tar.gz">libsndfile v1.0.20.tar.gz</a>. Out came a package, upgrade, voila.<br />
Next, I noticed the pulseaudio configure output telling me:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; Enable udev: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no<br />
&nbsp; &nbsp; Enable HAL-<span style="color: #000000; font-weight: bold;">&gt;</span>udev compat: &nbsp; &nbsp; &nbsp; no</div></div>
<p>I kinda wondered why, since my system definately runs udev. In <span style="color:#F00FFF">config.log</span> we find:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">configure:<span style="color: #000000;">26464</span>: checking <span style="color: #000000; font-weight: bold;">for</span> UDEV<br />
configure:<span style="color: #000000;">26471</span>: <span style="color: #007800;">$PKG_CONFIG</span> <span style="color: #660033;">--exists</span> <span style="color: #660033;">--print-errors</span> <span style="color: #ff0000;">&quot; libudev &gt;= 143 &quot;</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26474</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">1</span><br />
configure:<span style="color: #000000;">26487</span>: <span style="color: #007800;">$PKG_CONFIG</span> <span style="color: #660033;">--exists</span> <span style="color: #660033;">--print-errors</span> <span style="color: #ff0000;">&quot; libudev &gt;= 143 &quot;</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26490</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">1</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26517</span>: result: no</div></div>
<p>Aha.<br />
New challenge!<br />
Let&#8217;s see if we can grab the <a href="ftp://ftp.slackware.com:/pub/slackware/slackware-current/source/a/udev">official slackware udev sources</a> and get them to run a newer package! Today the latest udev is <a href="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/udev-146.tar.bz2">udev version 1.4.6</a>.<br />
So I changed the udev.Slackbuild to pick version 1.4.6</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- udev.SlackBuild.org &nbsp; &nbsp; 2009-09-11 14:55:14.000000000 +0200</span><br />
<span style="color: #888822;">+++ udev.SlackBuild &nbsp; &nbsp;2009-07-15 06:08:30.000000000 +0200</span><br />
<span style="color: #440088;">@@ -21,9 +21,9 @@</span><br />
&nbsp;# &nbsp;ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br />
&nbsp;<br />
&nbsp;<br />
<span style="color: #991111;">-VERSION=$<span style="">&#123;</span>VERSION:-146<span style="">&#125;</span></span><br />
<span style="color: #00b000;">+VERSION=$<span style="">&#123;</span>VERSION:-141<span style="">&#125;</span></span><br />
&nbsp;ARCH=$<span style="">&#123;</span>ARCH:-i486<span style="">&#125;</span><br />
<span style="color: #991111;">-BUILD=$<span style="">&#123;</span>BUILD:-1<span style="">&#125;</span></span><br />
<span style="color: #00b000;">+BUILD=$<span style="">&#123;</span>BUILD:-3<span style="">&#125;</span></span><br />
&nbsp;<br />
&nbsp;NUMJOBS=$<span style="">&#123;</span>NUMJOBS:-&quot; -j7 &quot;<span style="">&#125;</span></div></div>
<p>Running udev.Slackbuild now soon brought another set of issues to my attention. The first being that the slackware patch for the rule generator breaks.<br />
Without looking too much at the script I simply manually patched it and created a new diff. Here it is:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=rule_generator.diff.gz" title="Downloaded 53 times">rule_generator.diff.gz</a> - Version 0.1 - SHA: cf73f104543ce989fd11b383c440405110e915a2</p>
<p>Running the slackbuild now gave me a new error:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">In <span style="color: #c20cb9; font-weight: bold;">file</span> included from extras<span style="color: #000000; font-weight: bold;">/</span>scsi_id<span style="color: #000000; font-weight: bold;">/</span>scsi_serial.c:<span style="color: #000000;">27</span>:<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h:<span style="color: #000000;">145</span>: error: expected specifier-qualifier-list before <span style="color: #ff0000;">'u8'</span><br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'scsi_varlen_cdb_length'</span>:<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h:<span style="color: #000000;">156</span>: error: <span style="color: #ff0000;">'struct scsi_varlen_cdb_hdr'</span> has no member named <span style="color: #ff0000;">'additional_cdb_length'</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>extras<span style="color: #000000; font-weight: bold;">/</span>scsi_id<span style="color: #000000; font-weight: bold;">/</span>scsi_serial.o<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> Waiting <span style="color: #000000; font-weight: bold;">for</span> unfinished jobs....<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>all-recursive<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>all<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">2</span></div></div>
<p>It never takes me long to realize that this error stems from the new kernel I installed earlier. (did I mention that <a href="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.tar.bz2">linux 2.6.31</a> is released? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).<br />
Google brought me <a href="http://patchwork.kernel.org/patch/38102/">this</a>, which informs us about something that should have been in 2.6.31 if you ask me. Fine, we&#8217;ll fix it ourselves.<br />
Another slackbuild run takes us past this error and gives us a new udev package. Inspecting the new package I noticed a <span style="color:#F00FFF">/libexec</span> directory that shouldn&#8217;t be in the root of the package. Meh, probably explains the <code class="codecolorer text vibrant"><span class="text">configure: WARNING: unrecognized options: --with-libdir-name</span></code>.<br />
So we change the <span style="color:#F00FFF">udev.Slackbuild</span> again with some new configure options (stolen from their own INSTALL file):</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- udev.SlackBuild.org &nbsp; &nbsp;2009-07-15 06:08:30.000000000 +0200</span><br />
<span style="color: #888822;">+++ udev.SlackBuild &nbsp; &nbsp; 2009-09-11 16:07:19.000000000 +0200</span><br />
<span style="color: #440088;">@@ -55,9 +55,12 @@</span><br />
&nbsp;./configure \<br />
&nbsp; &nbsp;--prefix=/usr \<br />
&nbsp; &nbsp;--exec-prefix=/ \<br />
<span style="color: #00b000;">+ &nbsp;--sbindir=/sbin \</span><br />
<span style="color: #00b000;">+ &nbsp;--libdir=/lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
<span style="color: #00b000;">+ &nbsp;--with-rootlibdir=/lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
&nbsp; &nbsp;--sysconfdir=/etc \<br />
&nbsp; &nbsp;--mandir=/usr/man \<br />
<span style="color: #991111;">- &nbsp;--with-libdir-name=lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
<span style="color: #00b000;">+ &nbsp;--libexecdir=/lib/udev \</span><br />
&nbsp; &nbsp;--build=$ARCH-slackware-linux<br />
&nbsp;<br />
&nbsp;make $NUMJOBS || make || exit <span style="">1</span></div></div>
<p>Btw, can someone explain to me why I always manage to fuck up the file order to diff? (my patches normally come out reversed <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )<br />
Here&#8217;s the complete file if you want it:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=udev.SlackBuild" title="Downloaded 97 times">udev.Slackbuild</a> - Version 1.4.6 - SHA: d550e146bdf34d1ad0e256936a94b7f9b7d62fd2</p>
<p>So after building and upgrading the package, it even restarted without glitches. Woei.<br />
Back to pulseaudio!</p>
<p>Running configure now correctly informs us about udev being YES. HAL->udev compat still said &#8220;no&#8221; though. I don&#8217;t care for now, let&#8217;s see if it works.<br />
My slackbuild.pl ran the make part and showed a ton of &#8220;leer coden, mongool&#8221; warnings (people should simply disable warnings if they don&#8217;t handle them if you ask me).<br />
Regardless of the warnings the compilation completed and I now have a shiny new package.<br />
After upgrading and restarting pulseaudio, there&#8217;s even sound coming out of my speakers when I hinted mpd to play. Woei.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen and booting domU using a vanilla kernel</title>
		<link>http://notes.benv.junerules.com/all/software/xen-and-booting-domu-using-a-vanilla-kernel/</link>
		<comments>http://notes.benv.junerules.com/all/software/xen-and-booting-domu-using-a-vanilla-kernel/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 21:13:23 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Morons]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xm]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=209</guid>
		<description><![CDATA[Our server in the datacenter is running slackware (duh) with a nice Xen installation on it. Still running with Xen 3 using PAE since the last time I updated/upgraded it without any major problems for over 2 years now (ignoring the time that the power supply let go of the the magic smoke) So after [...]]]></description>
			<content:encoded><![CDATA[<p>Our server in the datacenter is running slackware (duh) with a nice Xen installation on it.<br />
Still running with <a href="http://www.xen.org/">Xen 3</a> using PAE since the last time I updated/upgraded it without any major problems for over 2 years now <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
(ignoring the time that the power supply let go of the the magic smoke)</p>
<p>So after the latest local root exploit thing, and testing it on some machines during har2009, I figured it might be nice to get the <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e694958388c50148389b0e9b9e9e8945cf0f1b98">patch</a> into my kernels. Running a webserver usually means you&#8217;re at risk after all, especially when it&#8217;s running wordpress <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So I grabbed the latest kernel that had that patch and went for the usual <code class="codecolorer text vibrant"><span class="text">make menuconfig</span></code> ordeal. After half an hour of selecting &#8220;yes&#8221;, &#8220;maybe&#8221;, &#8220;I guess so&#8221;, and<br />
some XEN options (<span style="color: #FFFF00">CONFIG_PARAVIRT_GUEST=y, CONFIG_XEN=y, CONFIG_HVC_DRIVER=y, CONFIG_XEN_BLKDEV_FRONTEND=y, CONFIG_XEN_NETDEV_FRONTEND=y, CONFIG_XEN_KBDDEV_FRONTEND=y, CONFIG_HVC_XEN=y, CONFIG_XEN_BALLOON=y, CONFIG_XEN_SCRUB_PAGES=y, CONFIG_XENFS=y, CONFIG_XEN_COMPAT_XENFS=y</span>) I built the thing.<br />
As I usually build bzImages I also did so here. <code class="codecolorer text vibrant"><span class="text">make bzImage modules modules_install</span></code>.<br />
Half an hour later I had a shiny bzImage. Let&#8217;s try it on a test domain!</p>
<p>I copied the bzImage to /boot, changed the <code class="codecolorer text vibrant"><span class="text">kernel = &quot;/boot/vmlinuz-xen-old&quot;</span></code> option to the new place, and GO!<br />
This is what it told me:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>iejoor:<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>hosts<span style="color: #000000; font-weight: bold;">/</span>purple<span style="color: #666666; font-style: italic;"># xm create -c purple.cfg-newkernel</span><br />
Using config <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">&quot;./purple.cfg-newkernel&quot;</span>.<br />
Started domain purple<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;root<span style="color: #000000; font-weight: bold;">@</span>iejoor:<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>hosts<span style="color: #000000; font-weight: bold;">/</span>purple<span style="color: #666666; font-style: italic;">#</span></div></div>
<p>Huh, where&#8217;s my console?<br />
Checking <code class="codecolorer text vibrant"><span class="text">xm list</span></code> it seemed to be there&#8230; but paused&#8230; and with constantly increasing ids. Waaait a minute!<br />
Checking the log files (<span style="color: #00FF00">xend.log</span> in this case) revealed a secret:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices irq.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices vkbd.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices vfb.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices console.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:167) Waiting for 0.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices pci.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices ioports.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices tap.<br />
[2009-08-18 16:40:01 16116] DEBUG (DevController:162) Waiting for devices vtpm.<br />
[2009-08-18 16:40:01 16116] INFO (XendDomain:1165) Domain purple (35) unpaused.<br />
[2009-08-18 16:40:01 16116] WARNING (XendDomainInfo:1240) Domain has crashed: name=purple id=35.<br />
[2009-08-18 16:40:01 16116] DEBUG (XendDomainInfo:1879) XendDomainInfo.destroy: domid=35<br />
[2009-08-18 16:40:01 16116] DEBUG (XendDomainInfo:1896) XendDomainInfo.destroyDomain(35)</div></div>
<p>Note the &#8216;WARNING&#8217; line. Crashed?!<br />
Gee, that&#8217;s &#8230; interesting. Why? Took me 5 minutes to find the other log file, but <span style="color: #FF0000">xend-debug.log</span> had a magic line:<br />
<code class="codecolorer bash vibrant"><span class="bash">ERROR Invalid kernel: xc_dom_find_loader: no loader found</span></code><br />
&#8230; great. Another why.<br />
In case you&#8217;re wondering, the increasing status in &#8216;xm list&#8217; was caused by the <code class="codecolorer bash vibrant"><span class="bash">on_crash = <span style="color: #ff0000;">'reboot'</span></span></code> line in the xen host config.<br />
I quickly destroyed the doman and changed it to a oneshot try: <code class="codecolorer bash vibrant"><span class="bash">on_crash = <span style="color: #ff0000;">'destroy'</span></span></code></p>
<p>After some searching another hint presented itself. Aren&#8217;t they nice?<br />
This hint was: &#8220;Xen is a retarded piece of cancer and can&#8217;t decypher the bzImage format, try vmlinux instead&#8221;. Aha!<br />
Back to the kernel, <code class="codecolorer text vibrant"><span class="text">make vmlinux</span></code>, copy, and another try to boot it. Obviously this was way too simple. It still crashed.<br />
Checking my old kernel that works for both dom0 and domU with file I noticed that gz should at least work.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># file /boot/vmlinuz-2.6*</span><br />
<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.18.8-xen: <span style="color: #c20cb9; font-weight: bold;">gzip</span> compressed data, from Unix, <span style="color: #c20cb9; font-weight: bold;">last</span> modified: Tue Nov <span style="color: #000000;">25</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">13</span>:<span style="color: #000000;">16</span> <span style="color: #000000;">2008</span>, max compression<br />
<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz-new: ELF <span style="color: #000000;">32</span>-bit LSB executable, Intel <span style="color: #000000;">80386</span>, version <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>SYSV<span style="color: #7a0874; font-weight: bold;">&#41;</span>, statically linked, not stripped</div></div>
<p>Some more details about the crashing domains can be found using <code class="codecolorer text vibrant"><span class="text">xm dmesg</span></code><br />
It gave me something like:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> traps.c:<span style="color: #000000;">413</span>:d38 Unhandled general protection fault fault<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">trap</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">#13] on VCPU 0 [ec=0000]</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> domain_crash_sync called from entry.S <span style="color: #7a0874; font-weight: bold;">&#40;</span>ff18928e<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> Domain <span style="color: #000000;">38</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>vcpu<span style="color: #666666; font-style: italic;">#0) crashed on cpu#3:</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> ----<span style="color: #7a0874; font-weight: bold;">&#91;</span> Xen-3.2.3 x86_32p &nbsp;<span style="color: #007800;">debug</span>=n &nbsp;Not tainted <span style="color: #7a0874; font-weight: bold;">&#93;</span>----<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> CPU: &nbsp; &nbsp;<span style="color: #000000;">3</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> EIP: &nbsp; &nbsp;e019:<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>c03e9e60<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> EFLAGS: 00000282 &nbsp; CONTEXT: guest<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> eax: 8000c068 &nbsp; ebx: c064c040 &nbsp; ecx: <span style="color: #000000;">80000000</span> &nbsp; edx: 00000cf8<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> esi: c0651f3c &nbsp; edi: c0651f30 &nbsp; ebp: c06981b8 &nbsp; esp: c0651f14<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> cr0: 8005003b &nbsp; cr4: 000006f0 &nbsp; cr3: 00bd5c80 &nbsp; cr2: 00000000<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> ds: e021 &nbsp; es: e021 &nbsp; fs: e021 &nbsp; <span style="color: #c20cb9; font-weight: bold;">gs</span>: e021 &nbsp; ss: e021 &nbsp; cs: e019<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> Guest stack trace from <span style="color: #007800;">esp</span>=c0651f14:<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;00000000 c03e9e60 0001e019 00010082 c04bd0cd 00000068 00000000 00000000<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;00002003 00000000 00003030 00000002 00000007 c064c07c c065dfd8 00000000<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c06423c0 c064c100 c0651fd8 c065a63f 00000005 00000000 00000000 00000000<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c065d02b 006faee4 00000000 00000000 c056dad4 00100000 00000000 00100000<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;00100000 00000000 006faee4 c065d27c 006faee4 00000000 00000000 c0651fe8<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;00000000 00000000 00000000 c0651fe8 00000000 00000000 c065756f c056dd50<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c04c5020 c0657073 c0651ff4 c065973e 00000000 <span style="color: #000000;">17898175</span> 00800001 03040800<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;00100f22 00000000 c08e0000 c04ba91b c04ba923 c0103371 c0103878 c0659a92<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c01039c7 c0103afc c0103d1a c0104004 c0104163 c01041eb c010451d c010457c<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c0659eb7 c0659ebf c04ba975 c04baa22 c0105536 c01055ae c0105781 c0105c5c<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c0105c9e c0106253 c0106345 c0106831 c010683d c0107b07 c010825e c0108333<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c065a45c c065a46a c0108e56 c065a982 c065a98a c0109bf0 c065af2c c065af93<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c065afe9 c065b042 c065b09b c065b0f4 c065b14d c065b1a6 c065b1ff c065b258<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c065b2b1 c065b32d c065b341 c065b397 c065b3f0 c065b449 c065c14f c065c157<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c010aee5 c010aef3 c010af77 c010af85 c065d7be c065d7d1 c010bdc3 c010be22<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c010c113 c010c14a c010c1c6 c010c2f3 c010c41a c010c443 c010c4dd c010d267<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c010d4cb c010d77b c010d782 c010de76 c010defd c010df0c c010df3f c010df49<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c010df84 c010df8c c010df94 c04bb1d7 c04bb466 c04bb4db c04bb5b9 c04bb60f<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c04bb62f c04bbb8b c04bbd60 c065de79 c065de81 c04bc041 c04bc46b c04bc50d<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>XEN<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp;c04bc899 c04bc902 c065e012 c065e01a c065e028 c065e030 c065e038 c065e040</div></div>
<p>As you can see, that&#8217;s really useful&#8230;.. <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>A useful page with some info can be found <a href="http://wiki.xensource.com/xenwiki/XenParavirtOps">here</a>. It confirms that a gz kernel should work (but bz probably doesn&#8217;t) since I&#8217;m still running Xen 3.2. However, I can&#8217;t find a good reason for why it won&#8217;t work.</p>
<p>Google to the rescue! Hard to find a useful keyword, since most xen kernel issues seem to be similar, but eventually I found this tidbit:<br />
<a href="http://patchwork.kernel.org/patch/36570/">tiny kernel patch</a>.<br />
Weird that this should be needed, one would hope that basic shit like this would work after 8 kernel versions, but obviously they&#8217;re all retards when it comes to this.<br />
Thanks Jeremy Fitzhardinge for the patch!<br />
Just for quick reference, this is the actual patch:</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c<br />
index 28e5f59..e2485b0 <span style="">100644</span><br />
<span style="color: #888822;">--- a/arch/x86/kernel/cpu/amd.c</span><br />
<span style="color: #888822;">+++ b/arch/x86/kernel/cpu/amd.c</span><br />
<span style="color: #440088;">@@ -356,7 +356,7 @@ &nbsp;static void __cpuinit early_init_amd<span style="">&#40;</span>struct cpuinfo_x86 *c<span style="">&#41;</span></span><br />
&nbsp;#endif<br />
&nbsp;#if defined<span style="">&#40;</span>CONFIG_X86_LOCAL_APIC<span style="">&#41;</span> &amp;&amp; defined<span style="">&#40;</span>CONFIG_PCI<span style="">&#41;</span><br />
&nbsp; &nbsp; /* check CPU config space for extended APIC ID */<br />
<span style="color: #991111;">- &nbsp; if <span style="">&#40;</span>c-&gt;x86 &gt;= 0xf<span style="">&#41;</span> <span style="">&#123;</span></span><br />
<span style="color: #00b000;">+ &nbsp; if <span style="">&#40;</span>cpu_has_apic &amp;&amp; c-&gt;x86 &gt;= 0xf<span style="">&#41;</span> <span style="">&#123;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; unsigned int val;<br />
&nbsp; &nbsp; &nbsp; &nbsp; val = read_pci_config<span style="">&#40;</span><span style="">0</span>, <span style="">24</span>, <span style="">0</span>, 0x68<span style="">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span><span style="">&#40;</span>val &amp; <span style="">&#40;</span><span style="">&#40;</span><span style="">1</span> &lt;&lt; <span style="">17</span><span style="">&#41;</span> | <span style="">&#40;</span><span style="">1</span> &lt;&lt; <span style="">18</span><span style="">&#41;</span><span style="">&#41;</span><span style="">&#41;</span> == <span style="">&#40;</span><span style="">&#40;</span><span style="">1</span> &lt;&lt; <span style="">17</span><span style="">&#41;</span> | <span style="">&#40;</span><span style="">1</span> &lt;&lt; <span style="">18</span><span style="">&#41;</span><span style="">&#41;</span><span style="">&#41;</span></div></div>
<p>So much for &#8216;vanilla&#8217;.</p>
<p>However, it boots now:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>iejoor:<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>hosts<span style="color: #000000; font-weight: bold;">/</span>purple<span style="color: #666666; font-style: italic;"># xm create -c purple.cfg-newkernel</span><br />
Using config <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">&quot;./purple.cfg-newkernel&quot;</span>.<br />
Started domain purple<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Reserving virtual address space above 0xf5800000<br />
Linux version 2.6.30.5-jemoeder <span style="color: #7a0874; font-weight: bold;">&#40;</span>root<span style="color: #000000; font-weight: bold;">@</span>iejoor<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">gcc</span> version 4.1.2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #666666; font-style: italic;">#9 SMP Tue Aug 18 22:59:38 CEST 2009</span><br />
KERNEL supported cpus:<br />
&nbsp; Intel GenuineIntel<br />
&nbsp; AMD AuthenticAMD<br />
&nbsp; NSC Geode by NSC<br />
&nbsp; Cyrix CyrixInstead<br />
&nbsp; Centaur CentaurHauls &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; Transmeta GenuineTMx86 &nbsp; &nbsp; &nbsp; <br />
&nbsp; Transmeta TransmetaCPU &nbsp; &nbsp; &nbsp; <br />
&nbsp; UMC UMC UMC UMC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
ACPI <span style="color: #000000; font-weight: bold;">in</span> unprivileged domain disabled</div></div>
<p>and a lot more yadieyada until it hits a new wall: root device.<br />
Well, that sounds solvable.</p>
<p>In fact, here&#8217;s a solution. What you say?<br />
&#8220;<span style="color: #FF00FF">AAAAH, I GET NOTHING, IT WON&#8217;T EVEN CRASH ANYMORE, JUST NO OUTPUT???!</span>&#8221;<br />
Ah yeah, I forgot to mention: they changed the console device as well as the block device. So here&#8217;s a solution for both issues:<br />
Edit your xen host config file and make it so:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root = <span style="color: #ff0000;">&quot;/dev/xvda1 ro&quot;</span><br />
extra = <span style="color: #ff0000;">&quot;xencons=hvc0&quot;</span></div></div>
<p>(xvda1 is what used to be sda1, you can figure out the rest).</p>
<p>And after all this: HAHA! Success is mine!<br />
Except of course for the undeniable fact that my domU has a fucked up fstab and all, but no issues there <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Now go mess up your own system! Oh, I see&#8230; you already did. Good luck fixing it <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>Update</h2>
<p>I just tested a testing kernel &#8212; 2.6.31-rc8, and it seems like they fixed it. Probably has been fixed in the testing branch for quite a while now, but still not in stable 2.6.30 <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Let&#8217;s hope they release 2.6.31 soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/xen-and-booting-domu-using-a-vanilla-kernel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another wordpress security update?</title>
		<link>http://notes.benv.junerules.com/all/software/another-wordpress-security-update/</link>
		<comments>http://notes.benv.junerules.com/all/software/another-wordpress-security-update/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 06:45:48 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=202</guid>
		<description><![CDATA[Meh. Yet another security issue&#8230;. &#8220;Prutsers&#8221;. Oh well, at least they fixed it. As for the upgrade, once again I had to manually increase their timeout to more than 60 seconds. Just for reference: Edit wp-admin/includes/file.php with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to [...]]]></description>
			<content:encoded><![CDATA[<p>Meh.<br />
<a href="http://wordpress.org/development/2009/08/2-8-4-security-release/">Yet another security issue&#8230;.</a><br />
&#8220;Prutsers&#8221;. Oh well, at least they fixed it.</p>
<p>As for the upgrade, <a href="http://notes.benv.junerules.com/software/update-day/">once again</a> I had to manually increase their timeout to more than 60 seconds.<br />
Just for reference:<br />
Edit <span style="color: #FF0000">wp-admin/includes/file.php</span> with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to 300:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> wp_remote_get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/another-wordpress-security-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update day!</title>
		<link>http://notes.benv.junerules.com/all/software/update-day/</link>
		<comments>http://notes.benv.junerules.com/all/software/update-day/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 16:11:15 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Morons]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[Slackbuild.pl]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=124</guid>
		<description><![CDATA[It seems to be update day today&#8230;. I felt like updating my shit today. Somehow I enjoy updates so I do it whenever I see interesting stuff. So glancing through the slackware changelog I noticed a new Apache2 version (2.2.12 with a bunch of security updates). Meh, not my favorite piece of garbage to upgrade, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems to be update day today&#8230;.</p>
<p>I felt like updating my shit today. Somehow I enjoy updates so I do it whenever I see interesting stuff.<br />
So glancing through the slackware changelog I noticed a new <span style="color: #ff0000;">Apache2</span> version (<a href="http://apache.mirror.versatel.nl/httpd/CHANGES_2.2.12">2.2.12 with a bunch of security updates</a>). Meh, not my favorite piece of garbage to upgrade, but local upgrades were easy enough and also the remote (slackware 11, custom builds) ones went without hickups.<span id="more-124"></span></p>
<p>Then there was a new version of <span style="color: #00ccff;">Irssi</span><span style="color: #00ccff;"> </span>- <a title="Irssi - the client of the future" href="http://irssi.org/" target="_self">0.8.14</a>. Fine, updated that too. Good to see it didn&#8217;t break my scripts <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Meanwhile I checked out if the apache upgrade broke my notes, but it didn&#8217;t. While on the notes page I decided to write this little snippet,<br />
and found out that also WordPress had a new release &#8211; <a href="http://wordpress.org/development/2009/08/wordpress-2-8-3-security-release/">2.8.3. More security stuff</a>.<br />
And the <span style="color: #800080;">codecolorer</span> plugin that I use for the code snippets also had an <a title="Codecolorer - wordpress plugin for syntax highlighting code blocks" href="http://wordpress.org/extend/plugins/codecolorer/" target="_self">update</a>.<br />
Updating wordpress was easy enough btw, just go to admin &#8211; tools &#8211; upgrade and hit the upgrade automatically button. I like features like that in a product.<br />
Note that this failed at least two times because of a 60 second timeout on the download. Guess they need to invest in faster servers <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
&#8220;Download failed.: Operation timed out after 60 seconds with 1226456 bytes received&#8221;&#8230;. too bad they don&#8217;t give me other options when that happens.<br />
And while I&#8217;m moaning about their &#8216;automagic upgrade&#8217;, how about some ajax progress indicators etc guys? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
In case you also run into the timeout issue:<br />
Don&#8217;t bother downloading the file yourself and putting it in the /your/wordpress/path/wp-content/ dir. Hitting the button over and over will<br />
only swamp their servers even more and won&#8217;t make it any better either.<br />
I tried increasing the php timeout on the sockets, but that didn&#8217;t seem to help. Pity guys, real shame&#8230; in fact, it angers me. *grumble*morons*grumble*<br />
You might as well go for <a href="http://codex.wordpress.org/Upgrading_WordPress">the manual upgrade</a>.</p>
<p>At some point I got pissed enough to grep and read through the source for half an hour (AAARGH MY EYES) and distill this patch:<br />
Edit <span style="color: #00ccff;"><b>wp-admin/includes/file.php</b></span> with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to 300:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> wp_remote_get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>Now it finally worked <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>While on the update tour I also updated my <a href="http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki">MPD</a> to version 0.15.1, although I&#8217;m running the git<br />
version of course, but that went fine (through slackbuild.pl of course).</p>
<p>Well, that&#8217;s enough updates for today. Time for some coding on slackbuild I think <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/update-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
