<?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>SysAdmin Adventures &#187; Miscellaneous</title>
	<atom:link href="http://blog.tpa.me.uk/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:57:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Blog Downtime</title>
		<link>http://blog.tpa.me.uk/2010/09/06/blog-downtime/</link>
		<comments>http://blog.tpa.me.uk/2010/09/06/blog-downtime/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 12:57:38 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=409</guid>
		<description><![CDATA[Sorry for the downtime over the last couple of days, people. My server decided to barf up its kernel while I was away camping and driving an M3 and a DB9 for my birthday. Typically, the server was only 5 days from its first uptime anniversary.
Normal service has now been resumed.
]]></description>
			<content:encoded><![CDATA[<p>Sorry for the downtime over the last couple of days, people. My server decided to barf up its kernel while I was away camping and driving an M3 and a DB9 for my birthday. Typically, the server was only 5 days from its first uptime anniversary.</p>
<p>Normal service has now been resumed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/09/06/blog-downtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing a User&#8217;s X Session as Root</title>
		<link>http://blog.tpa.me.uk/2010/02/16/accessing-a-users-x-session-as-root/</link>
		<comments>http://blog.tpa.me.uk/2010/02/16/accessing-a-users-x-session-as-root/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 13:10:10 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[Xauthority]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=296</guid>
		<description><![CDATA[This is a very simple thing, but it seems not widely known.
You login to, or start, X as a regular user as you rightly should, but you want to be able to su to root and then run a GUI application as root.
There are a number of ways to do this, some better than others, [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very simple thing, but it seems not widely known.</p>
<p>You login to, or start, X as a regular user as you rightly should, but you want to be able to su to root and then run a GUI application as root.</p>
<p>There are a number of ways to do this, some better than others, including using &#8220;kdesu&#8221;, &#8220;xhost&#8221; etc; the simplest however is:</p>
<div class="codecolorer-container bash geshi" 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;"># xauth merge ~xuser/.Xauthority</span><br />
<span style="color: #666666; font-style: italic;"># export DISPLAY=:0.0</span></div></div>
<p>&#8230; where xuser is the user you are running X as. The export line may not be required depending on how you became root.</p>
<p>The root shell you are in now has full authority to communicate with and manipulate X.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/02/16/accessing-a-users-x-session-as-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Impossible to Activate: VirtualBox v3.1.2 with Windows XP SP2 Guest</title>
		<link>http://blog.tpa.me.uk/2010/02/15/impossible-to-activate-virtualbox-v3-1-2-with-windows-xp-sp2-guest/</link>
		<comments>http://blog.tpa.me.uk/2010/02/15/impossible-to-activate-virtualbox-v3-1-2-with-windows-xp-sp2-guest/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 12:30:06 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[activation]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[slip-stream]]></category>
		<category><![CDATA[sp2]]></category>
		<category><![CDATA[sp3]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/2010/02/15/impossible-to-activate-virtualbox-v3-1-2-with-windows-xp-sp2-guest/</guid>
		<description><![CDATA[A little warning.. although it could be related to the specific virtual-hardware setup I am running, Windows XP SP2 OEM will not activate when running as a guest inside VirtualBox v3.1.2 nor will it let you login without activation.
You get to the login screen and attempt to login and it says:
&#8220;This copy of Windows must [...]]]></description>
			<content:encoded><![CDATA[<p>A little warning.. although it could be related to the specific virtual-hardware setup I am running, Windows XP SP2 OEM will not activate when running as a guest inside VirtualBox v3.1.2 nor will it let you login without activation.</p>
<p>You get to the login screen and attempt to login and it says:<br />
&#8220;This copy of Windows must be activated with Microsoft before you can log on. Do you want to activate Windows now?&#8221;. If you try and activate Windows over the Internet it will appear to be successful, but log you straight back off again and put you back where you started. If you try and activate over the telephone, there will be no &#8220;Installation ID&#8221; for you to give in order to activate; this is what I believe to be the root cause of the problem.</p>
<p>The Installation ID is generated from information about your computer including information from the graphics adapter, the hard disk controller etc. If there is a problem getting identification information from any of the devices it uses, the routine that generates an Installation ID will return 0 and you will have no ID, no activation and no use of XP.</p>
<p>Fun, huh?</p>
<p>I am still working on the problem at the moment, but I am led to believe that slip-streaming SP3 with the installation will solve the problem and that&#8217;s what I&#8217;m working on right now. It&#8217;s also possible that enough modifications to the virtual hardware configuration will bypass whatever is acting as a faulty component, but I&#8217;m hoping to avoid resolving the problem by manually tweaking every single hardware setting until I find what works.</p>
<p><strong>UPDATE:</strong><br />
SUCCESS!! I slip-streamed SP3 into my standard SP2-OEM disk and it works perfectly, no activation issues whatsoever.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/02/15/impossible-to-activate-virtualbox-v3-1-2-with-windows-xp-sp2-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No Support for Shadow NIS Maps before Solaris 10</title>
		<link>http://blog.tpa.me.uk/2009/11/23/no-support-for-shadow-nis-maps-before-solaris-10/</link>
		<comments>http://blog.tpa.me.uk/2009/11/23/no-support-for-shadow-nis-maps-before-solaris-10/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 19:35:47 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[nis]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=268</guid>
		<description><![CDATA[I have just discovered, through great pain and adversity, that Solaris 9 and earlier do not support the use of shadow password files in NIS. While it has a &#8220;shadow&#8221; file in the OS, you cannot use nsswitch.conf to point to another shadow source. Any alternate shadow information source must be accessed via the &#8220;passwd&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I have just discovered, through great pain and adversity, that Solaris 9 and earlier do not support the use of shadow password files in NIS. While it has a &#8220;shadow&#8221; file in the OS, you cannot use nsswitch.conf to point to another shadow source. Any alternate shadow information source must be accessed via the &#8220;passwd&#8221; map.</p>
<p>In practice this means that when you attempt to, for example, telnet to a Solaris 9 box that has &#8220;nis&#8221; specified within nsswitch.conf, it will do a lookup on the passwd.byname map from NIS. If that map is a shadowed passwd file, it will assume the &#8220;x&#8221; password field is actually the hashed password, and therefore authentication will fail.</p>
<p>I came across this after discovering that users could not login to a Solaris 9 client after not doing so for a long time. Since they last logged in successfully the NIS server had been migrated from a Solaris 7 box to a Slackware 12.2 box. The bizarre part being that the Solaris 7 server <em>did</em> store passwords in a shadow file. While I can&#8217;t confirm it now that the Solaris 7 box is no longer with us, I believe that the Solaris 7 NIS server was combining the passwd and shadow files to provide merged output when the passwd map was queried. The Slackware/Linux NIS server certainly doesn&#8217;t do this and instead provides separate passwd and shadow maps.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/11/23/no-support-for-shadow-nis-maps-before-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thunderbird, Dovecot &amp; IMAP: Corrupt &amp; Missing Attachments</title>
		<link>http://blog.tpa.me.uk/2009/11/08/thunderbird-dovecot-imap-corrupt-missing-attachments/</link>
		<comments>http://blog.tpa.me.uk/2009/11/08/thunderbird-dovecot-imap-corrupt-missing-attachments/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 16:50:49 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=250</guid>
		<description><![CDATA[One issue that bugs the hell out of me is IMAP implementations. I love IMAP and can barely understand why people use POP3 when IMAP is an available option, but people just can&#8217;t seem to agree on how to implement the standard. I&#8217;ve recently been suffering at the hands of Thunderbird&#8217;s IMAP implementation. It may [...]]]></description>
			<content:encoded><![CDATA[<p>One issue that bugs the hell out of me is IMAP implementations. I love IMAP and can barely understand why people use POP3 when IMAP is an available option, but people just can&#8217;t seem to agree on how to implement the standard. I&#8217;ve recently been suffering at the hands of Thunderbird&#8217;s IMAP implementation. It may be the best available MUA, but it still has its problems; especially where IMAP is concerned.</p>
<p>The issue I&#8217;ve been dealing with is that, ever since upgrading the e-mail server and an upgrade to Dovecot, Thunderbird has been playing havoc with attachments accessed via IMAP. Some have been corrupted, some have been nothing but empty files. I would love to blame Dovecot for this, but this one is Thunderbird&#8217;s fault.</p>
<p>In the same way that Thunderbird downloads just the message headers until you specify a message you want to view, it only downloads certain parts of a MIME message that you have opened until you choose to request the other parts. In my case, it hasn&#8217;t been doing the job properly and isn&#8217;t pulling the extra MIME parts when they are asked for.</p>
<p>It&#8217;s still not clear <em>precisely</em> what Thunderbird is actually doing and what it intends to do, but the simple solution is to modify the config and tell it to stop trying to be clever.</p>
<p><strong>about:config</strong></p>
<blockquote><p>mail.imap.fetch_by_chunks false<br />
mail.server.default.fetch_by_chunks false</p>
<p>mail.imap.mime_parts_on_demand false<br />
mail.server.default.parts_on_demand false</p></blockquote>
<p>This has proven successful on both Slackware and WindowsXP.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/11/08/thunderbird-dovecot-imap-corrupt-missing-attachments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tarring up JUST the dotfiles</title>
		<link>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/</link>
		<comments>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:26:31 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[directories]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[lzma]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[xz]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=210</guid>
		<description><![CDATA[Want to tar up only the dotfiles (hidden files/dirs) in your home directory?
ls -A &#124; egrep '^\.' &#124; tar -cvJf filename.tar.xz -T -
or (thanks to mosk0bit)
tar -cvJf filename.tar.xz .??*
The astute will notice the &#8220;J&#8221; and the &#8220;xz&#8221;. J tells tar to compress with xz compression (formerly lzma) which is significantly better than gzip especially with [...]]]></description>
			<content:encoded><![CDATA[<p>Want to tar up only the dotfiles (hidden files/dirs) in your home directory?</p>
<div class="codecolorer-container bash geshi" 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: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-A</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">'^\.'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cvJf</span> filename.tar.xz <span style="color: #660033;">-T</span> -</div></div>
<p>or (thanks to mosk0bit)</p>
<div class="codecolorer-container bash geshi" 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: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cvJf</span> filename.tar.xz .??<span style="color: #000000; font-weight: bold;">*</span></div></div>
<p>The astute will notice the &#8220;J&#8221; and the &#8220;xz&#8221;. J tells tar to compress with xz compression (formerly lzma) which is significantly better than gzip especially with the type of files you will expect to have in your hidden directories. If J is not available in your version of tar, use z instead.</p>
<p>Neither of these solutions are absolutely perfect, but they are at least simple. For the perfect score, see slava_dp&#8217;s comment:<br />
<a href="http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/#comment-478">http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/#comment-478</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dvorak: Just Inherently Better.</title>
		<link>http://blog.tpa.me.uk/2009/09/23/dvorak-just-inherently-better/</link>
		<comments>http://blog.tpa.me.uk/2009/09/23/dvorak-just-inherently-better/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 09:59:20 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[dvorak]]></category>
		<category><![CDATA[keyboard]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=166</guid>
		<description><![CDATA[I thought I should mention that I have taken the decision to teach myself to be capable of swapping between QWERTY and Dvorak keyboard layouts. There are a number of goals here, primarily to learn a new skill and to give myself the ability to swap to pure Dvorak later on if I want to [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I should mention that I have taken the decision to teach myself to be capable of swapping between QWERTY and Dvorak keyboard layouts. There are a number of goals here, primarily to learn a new skill and to give myself the ability to swap to pure Dvorak later on if I want to or medically need to, but also because I like the idea that it was designed for typing. QWERTY is obsolete and is still being used because it&#8217;s what people are used to and the general public are always scared of change. Dvorak was scientifically designed to help people to type better &#8211; I can&#8217;t think of a better reason to try it! I can&#8217;t remember exactly when I started, I&#8217;m guessing it was about a year ago now and it&#8217;s coming along nicely.</p>
<p>On my desk, I have two machines, both with identical Big Ol&#8217; Dell Keyboards. But I have swapped the keys around on the one on the left to make it a Dvorak-UK layout. The box on the right is my main working desktop (Slackware-13.0) and the one on the left is mainly for IRC run out of tty2 although I also use it for live testing when writing code. Because the IRC box is the Dvorak box, all I do is type which gives me a lot of practice.</p>
<p>I got past the hunt-and-peck stage in about 6 weeks, and slowly started getting better from there. I still have trouble with M and W being next to each other, and I often grab the wrong vowel, but other than that I&#8217;ve gotten pretty good. Sometimes I get so comfortable I reach over to the QWERTY keyboard and momentarily forget how to type; but that&#8217;s only occasionally. I think I do pretty well swapping between the two.</p>
<p>I now have a new skill for my CV and the ability to fend off RSI later in life. I feel I have accomplished something.</p>
<p>Some notes:</p>
<ul>
<li>Do not bother trying to find a Dvorak keyboard &#8211; people just don&#8217;t sell them &#8211; rearrange one you have.</li>
<li>Pick a good keyboard to re-arrange. Try to find one that has no curvature so the keys are all the same dimensions and set at the same angle.</li>
<li>In a linux console: `loadkeys dvorak` will give you a Dvorak (US) layout instantly.</li>
<li>In Slackware 13.0, tell hald about your new keyboard as in my earlier <a href="http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/">post</a> so it works in X.</li>
</ul>
<p>I urge everyone to spend a little time reading <a href="http://dvzine.org" onclick="pageTracker._trackPageview('/outgoing/dvzine.org?referer=');">DVZine</a> to rid you of fear, uncertainty and doubt (FUD) about Dvorak. There&#8217;s a lot of misinformation out there and <a href="http://dvzine.org" onclick="pageTracker._trackPageview('/outgoing/dvzine.org?referer=');">DVZine</a> will put you straight.</p>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/09/23/dvorak-just-inherently-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s Blogging Time</title>
		<link>http://blog.tpa.me.uk/2009/08/30/its-blogging-time/</link>
		<comments>http://blog.tpa.me.uk/2009/08/30/its-blogging-time/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 11:15:46 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[first]]></category>
		<category><![CDATA[why]]></category>

		<guid isPermaLink="false">https://blog.tpa.me.uk/?p=3</guid>
		<description><![CDATA[Ok, so I tried as hard as I could to stop myself ever making a blog, but like Facebook it&#8217;s just one of those things that will catch up with you sooner or later. I wanted somewhere to put random tech information useful to me and also to others, and I&#8217;ve become fed up with [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so I tried as hard as I could to stop myself ever making a blog, but like Facebook it&#8217;s just one of those things that will catch up with you sooner or later. I wanted somewhere to put random tech information useful to me and also to others, and I&#8217;ve become fed up with registering for every blog and forum on the planet, just to add a comment with a solution.</p>
<p>So here it is, this is my blog. Hopefully it will soon contain tomes of useful information for other SysAdmins and hobbyists. The first few posts will mostly be things that I&#8217;ve been saving up for some time.</p>
<p>Please feel free to comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/08/30/its-blogging-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
