<?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; Zordrak</title>
	<atom:link href="http://blog.tpa.me.uk/author/zordrak/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Rosetta Code</title>
		<link>http://blog.tpa.me.uk/2011/06/01/rosetta-code/</link>
		<comments>http://blog.tpa.me.uk/2011/06/01/rosetta-code/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 12:00:44 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rosettacode]]></category>
		<category><![CDATA[useful]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=432</guid>
		<description><![CDATA[Stumbled across the Rosetta Code site this morning. I can&#8217;t remember when I last discovered a site so unbelievably useful; especially for people like me who occasionally dip into languages and then don&#8217;t use them again for a long time. http://rosettacode.org/ Rosetta Code is a programming chrestomathy site. The idea is to present solutions to [...]]]></description>
			<content:encoded><![CDATA[<p>Stumbled across the Rosetta Code site this morning. I can&#8217;t remember when I last discovered a site so unbelievably useful; especially for people like me who occasionally dip into languages and then don&#8217;t use them again for a long time.</p>
<p><a href="http://rosettacode.org/" onclick="pageTracker._trackPageview('/outgoing/rosettacode.org/?referer=');">http://rosettacode.org/</a></p>
<blockquote><p>Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another. Rosetta Code currently has 504 tasks, and is aware of 384 languages, though we do not (and cannot) have solutions to every task in every language. </p></blockquote>
<p>A very good example from the site:</p>
<p><a href="http://rosettacode.org/wiki/Reverse_a_string" onclick="pageTracker._trackPageview('/outgoing/rosettacode.org/wiki/Reverse_a_string?referer=');">http://rosettacode.org/wiki/Reverse_a_string</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2011/06/01/rosetta-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slackware 13.37 Released</title>
		<link>http://blog.tpa.me.uk/2011/04/28/slackware-13-37-released/</link>
		<comments>http://blog.tpa.me.uk/2011/04/28/slackware-13-37-released/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 09:49:26 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[13.37]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[slackware64]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=425</guid>
		<description><![CDATA[Slackware-13.37 (and Slackware64-13.37) has been released today and I must say I&#8217;m extremely happy with it. I previously posted that I thought 13.1 was rushed, and it was, but this release is the polar opposite. Slackware-13.37 has been in beta for nearly two months and has been getting bugfixes, small updates and tweaks that whole [...]]]></description>
			<content:encoded><![CDATA[<p>Slackware-13.37 (and Slackware64-13.37) has been released today and I must say I&#8217;m extremely happy with it. I previously posted that I thought 13.1 was rushed, and it was, but this release is the polar opposite. Slackware-13.37 has been in beta for nearly two months and has been getting bugfixes, small updates and tweaks that whole time. I&#8217;m confident that this is quite simply the best version of Slackware ever to get through the stable door.</p>
<p>I want to personally extend my thanks to the whole Slackware team for their constant efforts to make the core of my infrastructure (and yours too) as good as it can be.</p>
<p>Want a copy now? Right now? Ok. Here&#8217;s the official torrents <img src='http://blog.tpa.me.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Torrents for Slackware 13.37, 32-bit x86</strong></p>
<ul>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-install-d1.torrent?info_hash=393d25696bce606fc0f83b29834e6718aa9cee0a" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-install-d1.torrent?info_hash=393d25696bce606fc0f83b29834e6718aa9cee0a&amp;referer=');">Install ISO disc 1 (A/AP/D/E/L/N, bootable installer, kernels, testing/, Slackbook)</a></li>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-install-d2.torrent?info_hash=b2056ddb2efe4e7c62cddf23a0879dd713e20dbe" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-install-d2.torrent?info_hash=b2056ddb2efe4e7c62cddf23a0879dd713e20dbe&amp;referer=');">Install ISO disc 2 (F/K/T/TCL/X/XAP/Y, L source, /testing kernel source)</a></li>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-install-d3.torrent?info_hash=0bad3a7bdca7d0c1f2cce13f36bbd15a81ed5ebe" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-install-d3.torrent?info_hash=0bad3a7bdca7d0c1f2cce13f36bbd15a81ed5ebe&amp;referer=');">Install ISO disc 3 (KDE, A/AP/E/F/installer source)</a></li>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-install-d4.torrent?info_hash=c9a737a62ba165be4b0e1297e5bff91ea093187e" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-install-d4.torrent?info_hash=c9a737a62ba165be4b0e1297e5bff91ea093187e&amp;referer=');">Install ISO disc 4 (KDEI, /extra packages, source for D)</a></li>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-source-d5.torrent?info_hash=f2542fd2c5136d378f061ee2063bd0b9989322be" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-source-d5.torrent?info_hash=f2542fd2c5136d378f061ee2063bd0b9989322be&amp;referer=');">Source ISO disc 5 (KDE/XAP source)</a></li>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-source-d6.torrent?info_hash=c8dacb33528018f6d708b8440357f1a83edf67fc" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-source-d6.torrent?info_hash=c8dacb33528018f6d708b8440357f1a83edf67fc&amp;referer=');">Source ISO disc 6 (/pasture packages, K/N/T/TCL/X/Y source, USB and PXE installers)</a></li>
</ul>
<ul>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware-13.37-install-dvd.torrent?info_hash=b9a980044849b4bfe4c270e7eb81b1e28759fb99" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware-13.37-install-dvd.torrent?info_hash=b9a980044849b4bfe4c270e7eb81b1e28759fb99&amp;referer=');"><strong>Slackware 13.37 x86 DVD ISO (everything)</strong></a></li>
</ul>
<p><strong>Torrent for Slackware 13.37, 64-bit x86_64</strong></p>
<ul>
<li><a href="http://trackers.transamrit.net:8082/torrents/slackware64-13.37-install-dvd.torrent?info_hash=03b5b4ad2c3c37c1025ffae38d0f8c575bbe8d23" onclick="pageTracker._trackPageview('/outgoing/trackers.transamrit.net_8082/torrents/slackware64-13.37-install-dvd.torrent?info_hash=03b5b4ad2c3c37c1025ffae38d0f8c575bbe8d23&amp;referer=');"><strong>Slackware 13.37 x86_64 DVD ISO (everything)</strong></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2011/04/28/slackware-13-37-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Slackware 13.37 &#8211; Xorg + Hal</title>
		<link>http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/</link>
		<comments>http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 12:17:11 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[13.37]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=418</guid>
		<description><![CDATA[The divorce was a long time coming. The papers are finally signed. Xorg has dumped hal and eloped with udev. Keyboard layout modifications are back to (almost) normal &#8211; but instead of using /etc/X11/xorg.conf, we&#8217;re now using /etc/X11/xorg.conf.d/90-keyboard-layout.conf. To change your keyboard layout from US to GB (for example): # cp /{usr/share,etc}/X11/xorg.conf.d/90-keyboard-layout.conf # vi /etc/X11/xorg.conf.d/90-keyboard-layout.conf [...]]]></description>
			<content:encoded><![CDATA[<p>The divorce was a long time coming. The papers are finally signed. Xorg has dumped hal and eloped with udev.</p>
<p>Keyboard layout modifications are back to (almost) normal &#8211; but instead of using /etc/X11/xorg.conf, we&#8217;re now using /etc/X11/xorg.conf.d/90-keyboard-layout.conf.</p>
<p>To change your keyboard layout from US to GB (for example):</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;"># cp /{usr/share,etc}/X11/xorg.conf.d/90-keyboard-layout.conf</span><br />
<span style="color: #666666; font-style: italic;"># vi /etc/X11/xorg.conf.d/90-keyboard-layout.conf</span></div></div>
<p>Modify the file to replace:</p>
<blockquote><p>
        Option &#8220;XkbLayout&#8221; &#8220;us&#8221;
</p></blockquote>
<p>With:</p>
<blockquote><p>
        Option &#8220;XkbLayout&#8221; &#8220;gb&#8221;
</p></blockquote>
<p>.. just as you would have done a few years ago with xorg.conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Upgrading Slackware64-current with multilib</title>
		<link>http://blog.tpa.me.uk/2011/03/12/upgrading-slackware64-current-with-multilib/</link>
		<comments>http://blog.tpa.me.uk/2011/03/12/upgrading-slackware64-current-with-multilib/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 15:19:01 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[-current]]></category>
		<category><![CDATA[13.37]]></category>
		<category><![CDATA[multilib]]></category>
		<category><![CDATA[slackware64]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=412</guid>
		<description><![CDATA[In order to upgrade your multilib Slackware64-current box to a more recent -current (or perhaps 13.37): Make sure you have a copy of the version you want to upgrade to available. Make sure your slackpkg config points to it mkdir -p /mirror/slackware cd !$ lftp -c &#34;open http://connie.slackware.com/~alien/; mirror multilib&#34; slackpkg update slackpkg install-new slackpkg [...]]]></description>
			<content:encoded><![CDATA[<p>In order to upgrade your multilib Slackware64-current box to a more recent -current (or perhaps 13.37):</p>
<ol>
<li>Make sure you have a copy of the version you want to upgrade to available.</li>
<li>Make sure your slackpkg config points to it</li>
</ol>
<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;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>slackware<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">!</span>$<br />
lftp <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;open http://connie.slackware.com/~alien/; mirror multilib&quot;</span><br />
slackpkg update<br />
slackpkg install-new<br />
slackpkg upgrade-all<br />
upgradepkg <span style="color: #660033;">--reinstall</span> <span style="color: #660033;">--install-new</span> &nbsp;<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>slackware<span style="color: #000000; font-weight: bold;">/</span>multilib<span style="color: #000000; font-weight: bold;">/</span>current<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000; font-weight: bold;">*</span>.t?z,slackware64-compat32<span style="color: #000000; font-weight: bold;">/*/*</span>.t?z<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
slackpkg clean-system</div></div>
<p>Bear in mind that you need to know what modifications you&#8217;ve made to your system in the &#8220;clean-system&#8221; stage. slackpkg will offer to remove any package that&#8217;s not part of the version you&#8217;re upgrading to. If you need to keep any extra packages that you&#8217;ve installed you need to make sure you don&#8217;t uninstall them at this stage. For this reason I heavily recommend that you blacklist SlackBuilds.Org packages in the slackpkg blacklist file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2011/03/12/upgrading-slackware64-current-with-multilib/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Sad Day :: Company Bought</title>
		<link>http://blog.tpa.me.uk/2010/07/26/sad-day-company-bought/</link>
		<comments>http://blog.tpa.me.uk/2010/07/26/sad-day-company-bought/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 09:13:51 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Slackware]]></category>
		<category><![CDATA[bought]]></category>
		<category><![CDATA[company]]></category>
		<category><![CDATA[sad]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=407</guid>
		<description><![CDATA[My company has been bought. While this means a lot of good and bad all over the place, it means one thing that&#8217;s very sad; I am about to commence work on tearing down the network I have so lovingly crafted over the last four years. Within a year I don&#8217;t expect there to be [...]]]></description>
			<content:encoded><![CDATA[<p>My company has been bought. While this means a lot of good and bad all over the place, it means one thing that&#8217;s very sad; I am about to commence work on tearing down the network I have so lovingly crafted over the last four years. Within a year I don&#8217;t expect there to be more than one or two Slackware boxes still running, if any. Black armbands please.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/07/26/sad-day-company-bought/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slackware 13.1 &amp; libxfs.h</title>
		<link>http://blog.tpa.me.uk/2010/07/12/slackware-13-1-libxfs-h/</link>
		<comments>http://blog.tpa.me.uk/2010/07/12/slackware-13-1-libxfs-h/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 13:15:54 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Slackware]]></category>
		<category><![CDATA[libxfs]]></category>
		<category><![CDATA[xfs]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=405</guid>
		<description><![CDATA[I was trying to build partclone to read an image created with clonezilla, and discovered it won&#8217;t build with XFS support on Slackware because Slackware lacks libxfs.h. I think this is somewhat intentional in that the XFS Makefile only installs the header if you explicitly target &#8220;install-qa&#8221;. It seems libxfs.h is only supposed to be [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to build partclone to read an image created with clonezilla, and discovered it won&#8217;t build with XFS support on Slackware because Slackware lacks libxfs.h. I think this is somewhat intentional in that the XFS Makefile only installs the header if you explicitly target &#8220;install-qa&#8221;. It seems libxfs.h is only supposed to be used by XFS devs and 3rd party software should not require it, and I&#8217;m happy with that.</p>
<p>Just in case there is a reason you should need libxfs.h on Slackware:</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;">cp</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>slackware<span style="color: #000000; font-weight: bold;">/</span>slackware-<span style="color: #000000;">13.1</span><span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>a<span style="color: #000000; font-weight: bold;">/</span>xfsprogs ~<span style="color: #000000; font-weight: bold;">/</span>.<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>xfsprogs<br />
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'93i\make install-qa DIST_ROOT=\$PKG'</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\(BUILD:-1\)/\1qa/'</span> xfsprogs.SlackBuild<br />
.<span style="color: #000000; font-weight: bold;">/</span>xfsprogs.SlackBuild<br />
upgradepkg <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>xfsprogs<span style="color: #000000; font-weight: bold;">*</span>1qa.t?z</div></div>
<p>You now have libxfs.h installed at /usr/include/xfs/libxfs.h</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/07/12/slackware-13-1-libxfs-h/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SlackBuilds :: Watch Out For umask</title>
		<link>http://blog.tpa.me.uk/2010/07/08/slackbuilds-watch-out-for-umask/</link>
		<comments>http://blog.tpa.me.uk/2010/07/08/slackbuilds-watch-out-for-umask/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 09:38:25 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[slackbuild]]></category>
		<category><![CDATA[slackbuilds]]></category>
		<category><![CDATA[umask]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=403</guid>
		<description><![CDATA[If you are building your own packages from SlackBuild scripts, then you need to make sure your umask is 022 before you start! Because of the nature of the shared environment in which I work, I changed my default umask to 002 in /etc/profile. I&#8217;ve just discovered a big problem as a result. When directories [...]]]></description>
			<content:encoded><![CDATA[<p>If you are building your own packages from SlackBuild scripts, then you need to make sure your umask is 022 before you start!</p>
<p>Because of the nature of the shared environment in which I work, I changed my default umask to 002 in /etc/profile. I&#8217;ve just discovered a big problem as a result. When directories such as $PKG/etc aknd $PKG/usr are created as part of the SlackBuild, they are created with file permission 775 as per the umask. Then when it comes to installing those directories from the package, the installer overwrites the permissions on the directories in your system with the permissions set in the package.</p>
<p>So, if $PKG/etc was created with 775, your /etc directory will be modified from 755 to 775 and this can do harm. This especially the case with directories such as /etc/mail which are checked by daemons for security before they run. If the permissions are too loose, the daemons don&#8217;t run.</p>
<p>Before you run a SlackBuild script, check that your umask is 022!! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/07/08/slackbuilds-watch-out-for-umask/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slackware trying to mount NFS shares before the network is ready</title>
		<link>http://blog.tpa.me.uk/2010/06/14/slackware-trying-to-mount-nfs-shares-before-the-network-is-ready/</link>
		<comments>http://blog.tpa.me.uk/2010/06/14/slackware-trying-to-mount-nfs-shares-before-the-network-is-ready/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 12:31:15 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=382</guid>
		<description><![CDATA[I have a right pain of a problem in this network in that individual machines are slow to get network access at boot. I haven&#8217;t had the opportunity to properly find out why, but my instinct says the blame lies with the Allied Telesyn switches. The big problem this causes is that any machines with [...]]]></description>
			<content:encoded><![CDATA[<p>I have a right pain of a problem in this network in that individual machines are slow to get network access at boot. I haven&#8217;t had the opportunity to properly find out why, but my instinct says the blame lies with the Allied Telesyn switches.</p>
<p>The big problem this causes is that any machines with a remote filesystem, such as an NFS share, in their fstab fail to mount the shares at boot; which means I have to manually ssh in and issue a mount command as root.</p>
<p>The solution is to ask rc.inet2 if it would kindly consider waiting just a little longer for the network to come up and not mount remote filesystems if it doesn&#8217;t.</p>
<p>The following patch attempts to ping an always-on host, preferably the host that serves the filesystem(s) you are going to mount.</p>
<ul>
<li>If a response is received, the boot process continues as normal.</li>
<li>If there&#8217;s no response to the first ping:
<ul>
<li>A further 5 pings are attempted.</li>
<li>A countdown is displayed.</li>
<li>After 6 failed attempts boot continues, but with no attempt to mount remote filesystems.</li>
</ul>
</li>
</ul>
<p>rc.inet2.diff (<a href='http://blog.tpa.me.uk/wp-content/uploads/2010/06/rc.inet2.diff.gz'>download rc.inet2.diff.gz</a>):</p>
<div class="codecolorer-container diff geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- ./rc.inet2.orig &nbsp; &nbsp; 2007-09-17 23:07:32.000000000 +0100</span><br />
<span style="color: #888822;">+++ ./rc.inet2 &nbsp;2010-06-14 14:05:24.237107265 +0100</span><br />
<span style="color: #440088;">@@ -15,9 +15,16 @@</span><br />
&nbsp;<br />
&nbsp;# At this point, we are ready to talk to The World...<br />
&nbsp;<br />
<span style="color: #00b000;">+lan_test_host=&quot;&lt;known up host, or remote filesystem server&gt;&quot;;</span><br />
<span style="color: #00b000;">+avail=<span style="">6</span>;</span><br />
<span style="color: #00b000;">+while ! ping -c1 $lan_test_host &amp;&gt;/dev/null &amp;&amp; <span style="">&#40;</span><span style="">&#40;</span> avail-- &gt; <span style="">1</span> <span style="">&#41;</span><span style="">&#41;</span>;</span><br />
<span style="color: #00b000;">+do</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; echo &quot;Waiting for network before mounting remote filesystems... $avail&quot;;</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; sleep <span style="">1</span>;</span><br />
<span style="color: #00b000;">+done</span><br />
&nbsp;<br />
&nbsp;# Mount remote <span style="">&#40;</span>NFS<span style="">&#41;</span> filesystems:<br />
<span style="color: #991111;">-if cat /etc/fstab | grep -v '^#' | grep -w nfs <span style="">1</span>&gt; /dev/null <span style="">2</span>&gt; /dev/null ; then</span><br />
<span style="color: #00b000;">+if cat /etc/fstab | grep -v '^#' | grep -w nfs <span style="">1</span>&gt; /dev/null <span style="">2</span>&gt; /dev/null &amp;&amp; <span style="">&#40;</span><span style="">&#40;</span>avail<span style="">&#41;</span><span style="">&#41;</span>; then</span><br />
&nbsp; &nbsp;# Start rpc.portmap, /sbin/rpc.lockd, and /sbin/rpc.statd if we find NFS<br />
&nbsp; &nbsp;# volumes defined in /etc/fstab since these will need to be running in order<br />
&nbsp; &nbsp;# to mount them. &nbsp;If they are not running, attempting to mount an NFS<br />
<span style="color: #440088;">@@ -46,7 +53,7 @@</span><br />
&nbsp;<br />
&nbsp;# Mount remote CIFS filesystems. &nbsp;Note that where possible, using CIFS is<br />
&nbsp;# preferred over SMBFS. &nbsp;SMBFS is no longer actively maintained.<br />
<span style="color: #991111;">-if cat /etc/fstab | grep -v '^#' | grep -w cifs <span style="">1</span>&gt; /dev/null <span style="">2</span>&gt; /dev/null ; then</span><br />
<span style="color: #00b000;">+if cat /etc/fstab | grep -v '^#' | grep -w cifs <span style="">1</span>&gt; /dev/null <span style="">2</span>&gt; /dev/null &amp;&amp; <span style="">&#40;</span><span style="">&#40;</span>avail<span style="">&#41;</span><span style="">&#41;</span>; then</span><br />
&nbsp; &nbsp;echo &quot;Mounting remote CIFS file systems: &nbsp;/sbin/mount -a -t cifs&quot;<br />
&nbsp; &nbsp;/sbin/mount -a -t cifs<br />
&nbsp; &nbsp;# Show the mounted volumes:<br />
<span style="color: #440088;">@@ -54,7 +61,7 @@</span><br />
&nbsp;fi<br />
&nbsp;<br />
&nbsp;# Mount remote SMB filesystems:<br />
<span style="color: #991111;">-if cat /etc/fstab | grep -v '^#' | grep -w smbfs <span style="">1</span>&gt; /dev/null <span style="">2</span>&gt; /dev/null ; then</span><br />
<span style="color: #00b000;">+if cat /etc/fstab | grep -v '^#' | grep -w smbfs <span style="">1</span>&gt; /dev/null <span style="">2</span>&gt; /dev/null &amp;&amp; <span style="">&#40;</span><span style="">&#40;</span>avail<span style="">&#41;</span><span style="">&#41;</span>; then</span><br />
&nbsp; &nbsp;echo &quot;Mounting remote SMBFS file systems: &nbsp;/sbin/mount -a -t smbfs&quot;<br />
&nbsp; &nbsp;/sbin/mount -a -t smbfs<br />
&nbsp; &nbsp;# Show the mounted volumes:</div></div>
<p>In order to apply the above patch, do the following as root:</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;"># cd /etc/rc.d</span><br />
<span style="color: #666666; font-style: italic;"># wget http://blog.tpa.me.uk/wp-content/uploads/2010/06/rc.inet2.diff.gz</span><br />
<span style="color: #666666; font-style: italic;"># zcat rc.inet2.diff.gz | patch -p1</span></div></div>
<p>Do not forget to manually edit your newly patched file to replace &#8220;&lt;known up host, or remote filesystem server&gt;&#8221; with a valid hostname or IP address.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/06/14/slackware-trying-to-mount-nfs-shares-before-the-network-is-ready/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Slackware 13.1 and VirtualBox USB</title>
		<link>http://blog.tpa.me.uk/2010/06/14/slackware-13-1-and-virtualbox-usb/</link>
		<comments>http://blog.tpa.me.uk/2010/06/14/slackware-13-1-and-virtualbox-usb/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 10:41:27 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[rc.S]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=380</guid>
		<description><![CDATA[By default, USB support does not work when installing VirtualBox PUEL on a Slackware host. Essentially it is a permissions issue. There are a number of ways around it, but the simplest is this ridiculously small change to rc.S. rc.S (downloadable rc.S.diff.gz): --- ./rc.S.orig 2010-03-20 00:14:51.000000000 +0000 +++ ./rc.S &#160; &#160; &#160;2010-06-14 11:31:16.067169967 +0100 @@ [...]]]></description>
			<content:encoded><![CDATA[<p>By default, USB support does not work when installing VirtualBox PUEL on a Slackware host. Essentially it is a permissions issue. There are a number of ways around it, but the simplest is this ridiculously small change to rc.S.</p>
<p>rc.S (<a href="http://blog.tpa.me.uk/wp-content/uploads/2010/06/rc.S.diff.gz">downloadable rc.S.diff.gz</a>):</p>
<div class="codecolorer-container diff geshi" 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;">--- ./rc.S.orig 2010-03-20 00:14:51.000000000 +0000</span><br />
<span style="color: #888822;">+++ ./rc.S &nbsp; &nbsp; &nbsp;2010-06-14 11:31:16.067169967 +0100</span><br />
<span style="color: #440088;">@@ -297,7 +297,7 @@</span><br />
&nbsp;if grep -wq usbfs /proc/filesystems; then<br />
&nbsp; &nbsp;if ! grep -wq usbfs /proc/mounts ; then<br />
&nbsp; &nbsp; &nbsp;if ! grep -wq usbfs /etc/fstab; then<br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp;/sbin/mount -v usbfs /proc/bus/usb -t usbfs</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp;/sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=83,devmode=0664</span><br />
&nbsp; &nbsp; &nbsp;else<br />
&nbsp; &nbsp; &nbsp; &nbsp;/sbin/mount -v /proc/bus/usb<br />
&nbsp; &nbsp; &nbsp;fi</div></div>
<p>This patch effectively changes the automatic permissions on USB devices so that the group owner is the plugdev group and so the group owner has write permissions. Make sure any users in the vboxusers group are also in the plugdev group&#8230; but you knew that.</p>
<p>In order to apply the above patch, do the following as root:</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;"># cd /etc/rc.d</span><br />
<span style="color: #666666; font-style: italic;"># wget http://blog.tpa.me.uk/wp-content/uploads/2010/06/rc.S.diff.gz</span><br />
<span style="color: #666666; font-style: italic;"># zcat rc.inet2.diff.gz | patch -p1</span></div></div>
<p>Or just make the change by hand, given how small it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/06/14/slackware-13-1-and-virtualbox-usb/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

