<?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>Kirrus' Blog &#187; Linux</title>
	<atom:link href="http://kirrus.co.uk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirrus.co.uk</link>
	<description>MindDump. Photos. And random ramblings.</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:20:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Deleting lots of tiny files really really quickly</title>
		<link>http://kirrus.co.uk/2012/02/deleting-lots-of-tiny-files-really-really-quickly/</link>
		<comments>http://kirrus.co.uk/2012/02/deleting-lots-of-tiny-files-really-really-quickly/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 16:19:06 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=691</guid>
		<description><![CDATA[This is the second half of that magento issue. Mainly, after having got a directory with millions of files in it, you can do one of two things. mv sessions sessions_full &#38;&#38; mkdir sessions &#38;&#38; chown www-data:www-data sessions rm -rfv sessions_full Or find /loc/of/sessions -ctime +1 -type f -exec rm -v {} \;]]></description>
			<content:encoded><![CDATA[<p>This is the second half of that magento issue. Mainly, after having got a directory with millions of files in it, you can do one of two things.</p>
<pre>mv sessions sessions_full &amp;&amp; mkdir sessions &amp;&amp; chown www-data:www-data sessions</pre>
<pre>rm -rfv sessions_full</pre>
<p>Or</p>
<pre>find /loc/of/sessions -ctime +1 -type f -exec rm -v {} \;</pre>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/deleting-lots-of-tiny-files-really-really-quickly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bind refuses to restart, debian squeeze</title>
		<link>http://kirrus.co.uk/2012/02/bind-refuses-to-restart-debian-squeeze/</link>
		<comments>http://kirrus.co.uk/2012/02/bind-refuses-to-restart-debian-squeeze/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 13:34:13 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=681</guid>
		<description><![CDATA[After an upgrade, I&#8217;ve noticed a few times that bind has refused to restart or reload, saying: Stopping domain name service: namedrndc: connect failed: connection refused This seems to be a permissions bug in debian, quite a long lasting one. In order to cheat-fix it quickly, I do the following: chown bind:root /etc/bind/rndc.key chmod 660 [...]]]></description>
			<content:encoded><![CDATA[<p>After an upgrade, I&#8217;ve noticed a few times that bind has refused to restart or reload, saying:</p>
<pre>Stopping domain name service: namedrndc: connect failed: connection refused</pre>
<p>This seems to be a permissions bug in debian, quite a long lasting one. In order to cheat-fix it quickly, I do the following:</p>
<pre>chown bind:root /etc/bind/rndc.key</pre>
<pre>chmod 660</pre>
<pre>/etc/init.d/bind9 restart</pre>
<p>That seems to fix it well enough. I think it&#8217;s a problem in that bind starts as one user, but runs as another. It may be that 440 are all the perms that are necessary. The debian bug report is here: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=169577">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=169577</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/bind-refuses-to-restart-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Session Files</title>
		<link>http://kirrus.co.uk/2012/02/magento-session-files/</link>
		<comments>http://kirrus.co.uk/2012/02/magento-session-files/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 12:40:19 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=679</guid>
		<description><![CDATA[Magento (the popular open-source online shop system) likes to store its PHP session files in ~/public_html/var/session/ Most debian servers don&#8217;t have that in their cron job that deletes old session files. So, you probably want to set it to store it&#8217;s session files in the default location (/var/lib/php5) or alter your cron job (/etc/cron.d/php5) Fun!]]></description>
			<content:encoded><![CDATA[<p>Magento (the popular open-source online shop system) likes to store its PHP session files in ~/public_html/var/session/</p>
<p>Most debian servers don&#8217;t have that in their cron job that deletes old session files.</p>
<p>So, you probably want to set it to store it&#8217;s session files in the default location (/var/lib/php5) or alter your cron job (/etc/cron.d/php5)</p>
<p>Fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/magento-session-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Invalid method in request \x16\x03\x01</title>
		<link>http://kirrus.co.uk/2011/10/invalid-method-in-request-x16x03x01/</link>
		<comments>http://kirrus.co.uk/2011/10/invalid-method-in-request-x16x03x01/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 15:02:00 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=651</guid>
		<description><![CDATA[So, ran into this one. Firefox is throwing this error, along with &#8216;SSL_ERROR_RX_RECORD_TOO_LONG&#8217;. Turns out, apache was serving plain HTTP on port 443, as it hadn&#8217;t been given a default SSL config. Other causes may be: Corrupted SSL cert (rare). Mis-configured proxy. Not adding &#8220;SSLEngine On&#8221; after configuring an SSL cert. But mostly, you&#8217;re trying [...]]]></description>
			<content:encoded><![CDATA[<p>So, ran into this one. Firefox is throwing this error, along with &#8216;SSL_ERROR_RX_RECORD_TOO_LONG&#8217;. Turns out, apache was serving plain HTTP on port 443, as it hadn&#8217;t been given a default SSL config.</p>
<p>Other causes may be: Corrupted SSL cert (rare). Mis-configured proxy. Not adding &#8220;SSLEngine On&#8221; after configuring an SSL cert. But mostly, you&#8217;re trying to talk HTTPS to an HTTP serving webserver.</p>
<p>`a2ensite default-ssl` (on debian) fixed it. Well, fixed in in that the default server now has a snake-oil self-signed cert, but, you know, fixed it. <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2011/10/invalid-method-in-request-x16x03x01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Possible missing firmware on debian squeeze</title>
		<link>http://kirrus.co.uk/2011/10/possible-missing-firmware-on-debian-squeeze/</link>
		<comments>http://kirrus.co.uk/2011/10/possible-missing-firmware-on-debian-squeeze/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 12:55:06 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=648</guid>
		<description><![CDATA[If you get these errors: W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169 Do this as root (or using sudo): #  aptitude install [...]]]></description>
			<content:encoded><![CDATA[<pre>If you get these errors:</pre>
<pre>W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169</pre>
<p>Do this as root (or using sudo):</p>
<pre>#  aptitude install firmware-realtek</pre>
<p>Win!</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2011/10/possible-missing-firmware-on-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Eaccelerator mirror / downloads</title>
		<link>http://kirrus.co.uk/2011/09/eaccelerator-mirror-downloads/</link>
		<comments>http://kirrus.co.uk/2011/09/eaccelerator-mirror-downloads/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 20:39:04 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[site speed]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=637</guid>
		<description><![CDATA[Eaccelerator is insanely useful in my line of work. However, their main downloads are down right now, so I&#8217;m mirroring the latest version here: http://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.tar.bz2 http://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.zip You can see the files sha1sums here: https://eaccelerator.net/wiki/Release-0.9.6.1 Alternatively, if you&#8217;re scripting (we are), you can use the following to get my (&#8216;up-to-date&#8217;) version: http://kirrus.co.uk/stuff/eaccelerator-latest.tar.bz2 bz2.. because that&#8217;s the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://eaccelerator.net/">Eaccelerator</a> is insanely useful in my line of work. However, their main downloads are down right now, so I&#8217;m mirroring the latest version here:</p>
<p><a href="http://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.tar.bz2">http://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.tar.bz2</a><br />
<a href="http://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.zip"> http://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.zip</a></p>
<p>You can see the files sha1sums here: <a href="https://eaccelerator.net/wiki/Release-0.9.6.1">https://eaccelerator.net/wiki/Release-0.9.6.1</a></p>
<p>Alternatively, if you&#8217;re scripting (we are), you can use the following to get my (&#8216;up-to-date&#8217;) version:<br />
<a href="http://kirrus.co.uk/stuff/eaccelerator-latest.tar.bz2"> http://kirrus.co.uk/stuff/eaccelerator-latest.tar.bz2</a></p>
<p>bz2.. because that&#8217;s the version we use here <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2011/09/eaccelerator-mirror-downloads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Beep Music</title>
		<link>http://kirrus.co.uk/2010/09/linux-beep-music/</link>
		<comments>http://kirrus.co.uk/2010/09/linux-beep-music/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 10:45:17 +0000</pubDate>
		<dc:creator>garreth</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=585</guid>
		<description><![CDATA[Just a silly short post about a linux beep song. At least it's about Linux for once!]]></description>
			<content:encoded><![CDATA[<p>Just a silly short post about a beep song i was making while waiting for a partition resize to go through.</p>
<p>This should run on pretty much any linux system, just copy and paste <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p>beep -f 1000 -n -f 1500 -n -f 600 -n -f 500 -n -f 100 -r 2 -l 10 -n -f 50 -r 2 -l 200 -n -f 40 -r 2 -l 300 -n -f 60 -r 3 -n -f 50 -r 3</p></blockquote>
<p>Thanks <a href="http://gparted.sourceforge.net/">gparted</a> and <a href="http://www.sysresccd.org/Main_Page" target="_blank">Sytem Rescue Cd</a> (Linux)</p>
<p>Please continue my little ditty in the comments!</p>
<p>Ps modern computers may need speakers plugged in and on to make the magic happen, but shouldn&#8217;t need sound drivers.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2010/09/linux-beep-music/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Help firefox wget and ssh shell script</title>
		<link>http://kirrus.co.uk/2009/11/help-firefox-wget-and-ssh-shell-script/</link>
		<comments>http://kirrus.co.uk/2009/11/help-firefox-wget-and-ssh-shell-script/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 19:19:20 +0000</pubDate>
		<dc:creator>garreth</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>
		<category><![CDATA[advice]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[computers]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=454</guid>
		<description><![CDATA[I&#8217;m trying to create a script to allow me to command a remote server to download a file from firefox. There are various reasons for this, mainly todo with connection speed. What I have at the moment is: #/bin/sh terminator -x ssh user@site.com wget -qc -t 3 -o ~/wget_testlog ftp://anothersite.com/file.ext \\&#038; \&#038; &#038; I want [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to create a script to allow me to command a remote server to download a file from firefox.</p>
<p>There are various reasons for this, mainly todo with connection speed.</p>
<p>What I have at the moment is:<br />
<code>#/bin/sh<br />
terminator -x ssh user@site.com wget -qc -t 3 -o ~/wget_testlog ftp://anothersite.com/file.ext \\&#038; \&#038; &#038;<br />
</code></p>
<p>I want it to kick off, ask for a password to login via ssh and then go away&#8230;<br />
I would like to be able to set the location for the download to ~/www/files/</p>
<p>I was planning to place this script in /usr/bin and install it in firefox using the code/link provided on this blog: <a href="http://domnit.org/blog/2007/09/wget.html">Wget from firefox</a></p>
<p>Can anyone complete my solution with the correct syntax, or provide a better solution (preferably KISS)?<br />
I&#8217;m more of hacker than an expert IMO and I know when I&#8217;m out of my depth!</p>
<p>Cheers,<br />
Garreth</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2009/11/help-firefox-wget-and-ssh-shell-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Network Monitoring</title>
		<link>http://kirrus.co.uk/2009/11/network-monitoring/</link>
		<comments>http://kirrus.co.uk/2009/11/network-monitoring/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:37:18 +0000</pubDate>
		<dc:creator>garreth</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cli]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=400</guid>
		<description><![CDATA[I&#8217;ve been searching for some simple tools to monitor my internet connection for some time, and finally I&#8217;ve found a few tools that do the trick. If you&#8217;re looking for a console application to give you a quick heads up on the transfer speeds across a network interface have a look for ifstatus (not to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been searching for some simple tools to monitor my internet connection for some time, and finally I&#8217;ve found a few tools that do the trick.</p>
<p>If you&#8217;re looking for a console application to give you a quick heads up on the transfer speeds across a network interface have a look for <a href="http://ifstatus.sourceforge.net/graphic/index.html" target="_blank">ifstatus</a> (not to be confused with the ifplugd suite) .</p>
<p style="text-align: center;"><a href="http://kirrus.co.uk/wp-content/uploads/2009/11/2009-11-05-1257437423_3286x768_scrot.png"><img class="aligncenter size-medium wp-image-401" title="Ifstatus" src="http://kirrus.co.uk/wp-content/uploads/2009/11/2009-11-05-1257437423_3286x768_scrot-300x206.png" alt="Ifstatus" width="300" height="206" /></a></p>
<p style="text-align: left;">If you&#8217;re looking for something to log and display network statistics checkout <a href="http://humdi.net/vnstat/" target="_blank">vnStat</a></p>
<p style="text-align: center;"><a href="http://kirrus.co.uk/wp-content/uploads/2009/11/vnstaideth0.jpg"><img class="aligncenter size-medium wp-image-402" title="vnstat graph" src="http://kirrus.co.uk/wp-content/uploads/2009/11/vnstaideth0-300x94.jpg" alt="vnstat graph" width="300" height="94" /></a><a href="http://kirrus.co.uk/wp-content/uploads/2009/11/vnstaieth0.jpg"><img class="aligncenter size-medium wp-image-403" title="vnstat graph" src="http://kirrus.co.uk/wp-content/uploads/2009/11/vnstaieth0-300x222.jpg" alt="vnstat graph" width="300" height="222" /></a></p>
<p style="text-align: left;">Minor niggle: both these programs needed compiling and required additional dependencies which I recall were GD, for the graph creator of vnStat (vnstati) and curl for the console interface of ifstatus.</p>
<p style="text-align: left;">If you have any other suggestions, queries or points, please leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2009/11/network-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic notebook Theme</title>
		<link>http://kirrus.co.uk/2009/11/karmic-notebook-theme/</link>
		<comments>http://kirrus.co.uk/2009/11/karmic-notebook-theme/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:18:46 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[karmic]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=359</guid>
		<description><![CDATA[Finally got around to upgrading to Karmic Ubuntu, and so far Its looking good. There is a few oddities in the theme, which makes using it a bit annoying, but I guess I&#8217;ll get used to it. See the screen-shot below for what I mean, the strangeness of the interface The bar at the top, [...]]]></description>
			<content:encoded><![CDATA[<p>Finally got around to upgrading to Karmic Ubuntu, and so far Its looking good. There is a few oddities in the theme, which makes using it a bit annoying, but I guess I&#8217;ll get used to it. See the screen-shot below for what I mean, the strangeness of the interface The bar at the top, the new greying out an in of active icons all help to make the best use of this screen size. You can tell the design team are doing good work <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>One small problem, is the lack of a clock, or logout button. For some strange reason, both didn&#8217;t make it, and hitting the power button no longer brings up the shutdown interface. I&#8217;ve been using the command &#8216;shutdown -h now&#8217; in a terminal for the moment, will have to dig around, see why it isn&#8217;t there/coming up later.</p>
<p><a href="http://kirrus.co.uk/wp-content/uploads/2009/10/theme-problem.png"><img class="aligncenter size-medium wp-image-360" title="Theme Problem" src="http://kirrus.co.uk/wp-content/uploads/2009/10/theme-problem-300x175.png" alt="Theme Problem" width="300" height="175" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2009/11/karmic-notebook-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

