<?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>songshu.org</title>
	<atom:link href="http://www.songshu.org/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.songshu.org</link>
	<description>Just another collection of nuts</description>
	<lastBuildDate>Wed, 10 Mar 2010 17:00:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Lucid Lynx theme (and why it sucks)</title>
		<link>http://www.songshu.org/index.php/new-lucid-lynx-theme-and-why-it-sucks</link>
		<comments>http://www.songshu.org/index.php/new-lucid-lynx-theme-and-why-it-sucks#comments</comments>
		<pubDate>Wed, 10 Mar 2010 16:51:07 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1558</guid>
		<description><![CDATA[WOW!!!!
After years of promises there finally has been a mayor overhaul of the Ubuntu theme after the &#8220;Brown Human Theme&#8221; that we have been accustomed to for so long, i know the usual complaints about the old Faeces Theme but i actually kind of liked it, or at least its what I&#8217;m used too and [...]]]></description>
			<content:encoded><![CDATA[<h3>WOW!!!!</h3>
<p>After years of promises there finally has been a mayor overhaul of the Ubuntu theme after the &#8220;Brown Human Theme&#8221; that we have been accustomed to for so long, i know the usual complaints about the old Faeces Theme but i actually kind of liked it, or at least its what I&#8217;m used too and thought that Karmic was almost pretty damn chocolate perfect.</p>
<p>So, before continuing my tasteless rant here i would like to thank the people who worked on this new theme because  its not something i can do or even can do better, so please understand where this is coming from before taking it personal and i&#8217;m glad the theming of the  metacity theme, desktop background, GDM and splash are finally heading consistency.<br />
Also that i have remarks does not mean its all bad, its just easier to be negative so take it as positive criticism <img src='http://www.songshu.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>The timing</h3>
<p>My first head-shacking experience is about the timing of the introduction of the theme itself, actually I had this about various new introductions in LTS releases.</p>
<p>I understand that a new release, and especially a LTS, has to be pushed with as much media attention as possible and a new exciting shiny new theme is definitely something to advertise on the billboards, but this sounds like a commercial decision to me and not something I&#8217;m happy with as a user in the long term.</p>
<p>Software gets better with age and so do themes, why would you want to put a new untested theme in something that you are going to be stuck with a long time, especially with the &#8220;only bugfixes&#8221; approach.</p>
<p>If you start a new theme with the LTS then the next LTS -1 will have the perfect matured version of that theme, that does not make sense to me.</p>
<h3>The colour</h3>
<p>OK, this is as subjective as its going to get but I actually liked the brown, as did many others. At least it was distinctive to Ubuntu. But yes, any colour will have its fair share of lovers and haters, but purple?</p>
<p>A choice is a choice and it has to be made, fair enough, but it took me some time to find out that this theme was described as &#8220;purple&#8221; since my first google after seeing the new colour was &#8220;lucid new pink theme&#8221; Am I the only one who&#8217;s first idea was that it was pink?</p>
<p>Apparently plenty of people seemed to like purple because it was the same purple as MacOSX. WTH??? Ubuntu should not to try to mimic the branding of Mac or MS but should stand out as being Ubuntu, did Linspire become a success because it looked just like windows?</p>
<p>But there are so many people coming from windows so you should try to make them feel at home is the usual response. Yeah Right, I did not move to Linux 6 years ago because I was so incredibly happy with windows and I can hardly imagine a happy Mac user to switch to Ubuntu because it looks so much like what he is used too, a cheap rip off it looks like.</p>
<h3>The window buttons</h3>
<p>Another much heard of complaint is the placement of the window buttons to the left. (Again, just like MacOSX)</p>
<p>Why? well.. its different, Yes&#8230;.its how some other software company (That I will not mention again) does it, Yes&#8230;.is it a useful change, No&#8230;is it confusing, Yes&#8230;.does it look misplaced, Yes.</p>
<p>Every blog stopped complaining about it and started bugfixing, so I will repeat the steps here to be complete.</p>
<h4>window buttons to the right</h4>
<p>press &#8212; Alt F2 &#8212; type &#8220;gconf-editor&#8221; &#8212;- go to &#8220;apps&#8221; &#8212; go to &#8220;metacity&#8221; &#8212; go to &#8220;general&#8221; &#8212; right click &#8220;button_layout&#8221; &#8212; edit key &#8212; and change the value to &#8220;:minimize,maximize,close&#8221;</p>
<p>nuff said!</p>
<h4>window title in the centre</h4>
<p>This still leaves the window title on the far left instead of centred and it still looks ridiculous.</p>
<p>Open a terminal and issue the following command</p>
<blockquote><p>sudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml</p></blockquote>
<p>and find that part that looks like this</p>
<blockquote><p>&lt;!&#8211; Window Title &#8211;&gt;</p>
<p>&lt;draw_ops name=&#8221;draw_title_text_normal&#8221;&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#dfd8c8&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;</p>
<p>&lt;/draw_ops&gt;</p>
<p>&lt;draw_ops name=&#8221;draw_title_text_inactive&#8221;&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#99958b&#8221;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;/draw_ops&gt;</p></blockquote>
<p>and change it to look like this</p>
<blockquote><p>&lt;!&#8211; Window Title &#8211;&gt;</p>
<p>&lt;draw_ops name=&#8221;draw_title_text_normal&#8221;&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#dfd8c8&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;</p>
<p>&lt;/draw_ops&gt;</p>
<p>&lt;draw_ops name=&#8221;draw_title_text_inactive&#8221;&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#333333&#8243;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;title color=&#8221;#99958b&#8221;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
&lt;/draw_ops&gt;</p></blockquote>
<p>I&#8217;m not sure if this is the neatest way to do it but it works.</p>
<h3>It doesn&#8217;t work with every application</h3>
<p>Its kind of hard to make a theme that will shine and gives the best result for every application thinkable, this again has something to do something with maturity and how fast and if the designers can fix this for the new release.</p>
<p>Firefox for example gives a very unreadable result when the history results come up when typing in the address bar.</p>
<p>Skype gives an unreadable result when right clicking on a contact to see the available options.</p>
<p>I&#8217;m sure there will be other non-gnome programs&#8230;can the devs fix this before the release or will we be stuck with an unlucky theming choice for many otherwise usefull programs the next 3 years?</p>
<h3>Size matters</h3>
<p>The last part of my rant is that the window buttons are really tiny, don&#8217;t get me wrong I&#8217;m not blind and they don&#8217;t have to be huge, but they are half the size of any other button available. Besides being a visual distortion it also leaves room for error since you do have to aim pretty actually to hit the option you want, this is doable during most circumstances but I noticed when wanting to close some windows when coming /home late at night after a few beers that it was damn right impossible to hit the right one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/new-lucid-lynx-theme-and-why-it-sucks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic Koala bugs</title>
		<link>http://www.songshu.org/index.php/karmic-koala-bugs</link>
		<comments>http://www.songshu.org/index.php/karmic-koala-bugs#comments</comments>
		<pubDate>Sun, 04 Oct 2009 17:48:00 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1524</guid>
		<description><![CDATA[strange colors in firefox when displaying images
the below post fixed it, just set the default 2 to 0
http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=403836&#38;forumId=1
EDIT::::::
OK, have been working on the BETA now for almost a full workday, and there is much to like.
Gnome is still Gnome since i used it about 5 years, some apps come and some apps go as usual [...]]]></description>
			<content:encoded><![CDATA[<p>strange colors in firefox when displaying images</p>
<p>the below post fixed it, just set the default 2 to 0</p>
<p>http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=403836&amp;forumId=1</p>
<p>EDIT::::::</p>
<p>OK, have been working on the BETA now for almost a full workday, and there is much to like.</p>
<p>Gnome is still Gnome since i used it about 5 years, some apps come and some apps go as usual with any release but i must say the whole system runs smoother then i expected and was used to, even with Compiz for the nice effects, something under the hood must be going in the right direction&#8230;&#8230;.but&#8230;Gnome is also still Gnome when it comes to evolution-mail, it stinks!!!</p>
<p>Maybe its me but it keeps crashing, i think it crashed 6 times on me today and just as many times i simply had to shut it down because it was starting to completely occupy my SWAP, not healthy behaviour.</p>
<p>Ok, i do have 3 accounts setup and about 10GB of mail store on an IMAP server, but that should not give it to much problems, i use my mail a lot during the day, i keep switching between my mail app and applications that have just opened my attachment or about to create my attachment so a buggy mail app is simply not workable for me.</p>
<p>Evolution simply ruins my complete Gnome experience which i do like for the rest so at about 4 in the afternoon i had it, once more, with evolution and will not use it again till the next 5 years.</p>
<p>Have just installed the trustworthy and admirable Thunderbird once again, i feel relief&#8230;</p>
<p>Nevertheless i do have the problem that my network shares do not show up in Nautilus (or is it file-picker?) when handling attachments in Thunderird, the package thunderbird-gnome-support should fix that i thought?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/karmic-koala-bugs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic Koala, first impression</title>
		<link>http://www.songshu.org/index.php/karmic-koala-first-impression</link>
		<comments>http://www.songshu.org/index.php/karmic-koala-first-impression#comments</comments>
		<pubDate>Sun, 04 Oct 2009 16:54:59 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1515</guid>
		<description><![CDATA[MMM OK, the boot up is fast with the new upstart and the new log in screen looks promising even though its still a little rough around the etches.
I have not used Gnome in a while or Karmic with another desktop so i don&#8217;t know who to blame yet,but i must say my desktop feels [...]]]></description>
			<content:encoded><![CDATA[<p>MMM OK, the boot up is fast with the new upstart and the new log in screen looks promising even though its still a little rough around the etches.</p>
<p>I have not used Gnome in a while or Karmic with another desktop so i don&#8217;t know who to blame yet,but i must say my desktop feels more responsive opening individual programs then ever before, is it Karmic, is it Gnome or is it the really smooth default Compiz that even works on my modest onboard graphics card?</p>
<p>First thing to do is to get the restricted multi media going.</p>
<p>Installing the &#8220;ubuntu-restricted-package&#8221; will get us a long way.</p>
<blockquote><p>This package depends on some commonly used packages in the Ubuntu<br />
multiverse repository.</p>
<p>Installing this package will pull in support for MP3 playback and decoding,<br />
support for various other audio formats (GStreamer plugins), Microsoft fonts,<br />
Java runtime environment, Flash plugin, LAME (to create compressed audio<br />
files), and DVD playback.</p>
<p>Please note that this does not install libdvdcss2, and will not let you play<br />
encrypted DVDs. For more information, see<br />
https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs</p>
<p>Please also note that packages from multiverse are restricted by copyright<br />
or legal issues in some countries. See<br />
http://www.ubuntu.com/ubuntu/licensing<br />
for more information.</p></blockquote>
<p>After restarting Firefox FLASH worked instantly, no problems checking out youtube.</p>
<p>MickeySoft fonts, no problem</p>
<p>MP3 and LAME i did not check, i hardly ever use that.</p>
<p>But, the java JRE did not work out of the box, i did hear something about dropped support or replacement, nevertheless you can still find it in the repos by installing &#8220;sun-java6-plugin&#8221; after the old and trusted buggy and slow java worked. I wonder how far the free java replacement is and if its somewhat usable by now.</p>
<p>Almost there with the codecs, just the medibuntu stuff left to go</p>
<blockquote><p>sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list &#8211;output-document=/etc/apt/sources.list.d/medibuntu.list &amp;&amp; sudo apt-get -q update &amp;&amp; sudo apt-get &#8211;yes -q &#8211;allow-unauthenticated install medibuntu-keyring &amp;&amp; sudo apt-get -q update</p></blockquote>
<p>And install w32codecs and libdvdcss2</p>
<p>The upstart graphics don&#8217;t seem to be completely ready yet if you want a smooth transition from grub to desktop but its a good start, still some console text flying around here and there.</p>
<p>Also i receive the message that the &#8220;computer will shut down in 60 seconds&#8221; when shutting down from the menu, this is either a bug or something that has to to with the delayed allocation of the ext4 file system bugs? i&#8217;m not sure.</p>
<p>Still plenty to to about fine tuning the personal preference and the bug fixing but the conclusion so far&#8230;not the best ubuntu beta i&#8217;ve ever seen, but it could become one of the better stable ones</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/karmic-koala-first-impression/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic Koala installation</title>
		<link>http://www.songshu.org/index.php/karmic-koala-installation</link>
		<comments>http://www.songshu.org/index.php/karmic-koala-installation#comments</comments>
		<pubDate>Sun, 04 Oct 2009 13:49:24 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1498</guid>
		<description><![CDATA[As mentioned in the the post the road to Lucid Lynx i will be trying out Karmic Koala Gnome version as a test to see if i can transition from a customised Xubuntu version that i have been using over the years.
The Beta version of Karmic Koala shows the same cd boot screen that we [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned in the the post <a href="http://www.songshu.org/index.php/the-road-to-lucid-lynx" target="_blank">the road to Lucid Lynx</a> i will be trying out Karmic Koala Gnome version as a test to see if i can transition from a customised Xubuntu version that i have been using over the years.</p>
<p>The Beta version of Karmic Koala shows the same cd boot screen that we have been used for a while, so lets start with the option ¨Try Ubuntu without any change to your computer&#8221;</p>
<p><img class="alignnone size-full wp-image-1502" title="0-try ubuntu" src="http://www.songshu.org/wp-content/uploads/2009/10/0-try-ubuntu.png" alt="0-try ubuntu" width="640" height="480" /></p>
<p>A new loading screen for the desktop CD appears and it looks quit minimal, not too bad,</p>
<p><img class="alignnone size-full wp-image-1503" title="9-cd boot" src="http://www.songshu.org/wp-content/uploads/2009/10/9-cd-boot.png" alt="9-cd boot" width="640" height="480" /></p>
<p>although some text based messages about crypto flash quickly before before going to the silvery black loading bar.</p>
<p><img class="alignnone size-full wp-image-1504" title="10-splash" src="http://www.songshu.org/wp-content/uploads/2009/10/10-splash.png" alt="10-splash" width="800" height="600" /></p>
<p>The Gnome desktop looks about the same on the live cd apart from a new desktop image and a slightly new color brown.</p>
<p><img class="alignnone size-medium wp-image-1505" title="1-live cd desktop-" src="http://www.songshu.org/wp-content/uploads/2009/10/1-live-cd-desktop--300x225.png" alt="1-live cd desktop-" width="300" height="225" /></p>
<p>Lets not waste too much time and start with the installation right away with the &#8220;Install Ubuntu 9.10&#8243; icon on the desktop.</p>
<p>The welcome screen appears and we will use &#8220;English&#8221; for the installation process.</p>
<p><img class="alignnone size-medium wp-image-1506" title="2-choose language" src="http://www.songshu.org/wp-content/uploads/2009/10/2-choose-language-300x225.png" alt="2-choose language" width="300" height="225" /></p>
<p>Next are the &#8220;time settings&#8221; and have already seen the new lay-out since Jaunty, looks good to me.</p>
<p><img class="alignnone size-medium wp-image-1507" title="3-choose time" src="http://www.songshu.org/wp-content/uploads/2009/10/3-choose-time-300x225.png" alt="3-choose time" width="300" height="225" /></p>
<p>For the &#8220;Keyboard Layout&#8221; i will use the suggested  USA.</p>
<p><img class="alignnone size-medium wp-image-1508" title="4-choose keyboard" src="http://www.songshu.org/wp-content/uploads/2009/10/4-choose-keyboard-300x225.png" alt="4-choose keyboard" width="300" height="225" /></p>
<p>I usually keep my / and /home on a separate partition since i can&#8217;t be bothered making a backup in case of a reinstall, this means i choose the &#8220;Advanced Option&#8221;.</p>
<p>Yeah!!!! always makes me feel good to be an &#8220;advanced&#8221; user <img src='http://www.songshu.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<p><img class="alignnone size-medium wp-image-1509" title="5-prepare partitions" src="http://www.songshu.org/wp-content/uploads/2009/10/5-prepare-partitions-300x225.png" alt="5-prepare partitions" width="300" height="225" /></p>
<p>I already had everything manually formatted as ext4 from my previous installation but it seems to be the default choice now. The /root will be used as ext4 and formatted and obviously /home as ext4 and not formatted.</p>
<p>The setup for the first user user on the system (the sudo account) looks familiar but there&#8217;s the GDM option to log in without a password and to require the password for the ecrypted home folder.</p>
<p>My previous installation did not have an encrypted /home folder, if i choose to encryption now on the existing partition containing my personal data should i have made a backup first? Well&#8230;lets not take too many changes and i still don&#8217;t feel to wait for a 30 minute backup to finish.</p>
<p><img class="alignnone size-medium wp-image-1510" title="6-user settings" src="http://www.songshu.org/wp-content/uploads/2009/10/6-user-settings-300x225.png" alt="6-user settings" width="300" height="225" /></p>
<p>The next screen will show the options selected in the previous steps, so lets confirm this.</p>
<p><img class="alignnone size-medium wp-image-1511" title="7-confirm installation" src="http://www.songshu.org/wp-content/uploads/2009/10/7-confirm-installation-300x225.png" alt="7-confirm installation" width="300" height="225" /></p>
<p>OOOHHHH!!! some flashy introduction appears during the installation, i must say Ubuntu is slowly shaping up to look like the, looking as slick as OSX, promise.</p>
<p>No GRUB confirmation? i think i noticed that the confirmation to install grub to the MBR already disappeared in the Jaunty version.</p>
<p>Restart the system or continue to use the live cd appears as usual, so lets give that a try.</p>
<p><img class="alignnone size-medium wp-image-1512" title="8-installation complete" src="http://www.songshu.org/wp-content/uploads/2009/10/8-installation-complete-300x225.png" alt="8-installation complete" width="300" height="225" /></p>
<p>The cd comes out as usual with the continue to restart after removing the cd</p>
<p>I did not time the time it took for the default installation since i have been writing this ans making the screen shots during installation but it should roughly be about the usual 20  minutes for the complete procedure.</p>
<p>As suspected after previous releases, even the BETA runs smoothly without any hick-ups and i must say it looks smooth</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/karmic-koala-installation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the road to Lucid Lynx</title>
		<link>http://www.songshu.org/index.php/the-road-to-lucid-lynx</link>
		<comments>http://www.songshu.org/index.php/the-road-to-lucid-lynx#comments</comments>
		<pubDate>Sun, 04 Oct 2009 10:47:21 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1495</guid>
		<description><![CDATA[Have been using Xubuntu for the last several years as my desktop of choice since the days of the first LTS Dapper Drake, the XFCE desktop proved to me a more sane and stable desktop environment then the Ubuntu Gnome version, especially some exciting new features (bugs and quirks) concerning the file manager (Nautilus) and [...]]]></description>
			<content:encoded><![CDATA[<p>Have been using Xubuntu for the last several years as my desktop of choice since the days of the first LTS Dapper Drake, the XFCE desktop proved to me a more sane and stable desktop environment then the Ubuntu Gnome version, especially some exciting new features (bugs and quirks) concerning the file manager (Nautilus) and the mail program (evolution) had me fleeing to the boring and featureless stable cradle  that Thunar and Thunderbird provided.</p>
<p>But with the new 9.10 in beta i&#8217;m willing to put it up to the test to see if i can switch to the standard Ubuntu for all my installed desktops (+- 12 of them) by the time of 10.04 .</p>
<p>While safely posting this from my Xubuntu Jaunty 9.04 eeepc netbook i will be keeping track of the preparation for my personal use case on a modest Pentium IV with 512MB RAM as my test installation</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/the-road-to-lucid-lynx/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>roundcube installeren</title>
		<link>http://www.songshu.org/index.php/roundcube-installeren</link>
		<comments>http://www.songshu.org/index.php/roundcube-installeren#comments</comments>
		<pubDate>Thu, 28 May 2009 06:50:08 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[manuals]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1483</guid>
		<description><![CDATA[ik ga er hier van uit dat er al een werkende versie van apache en mysql aanwezig is
Roundcube downloaden
De laatste versie van Roundcube is te vinden op http://roundcube.net/downloads
Op het moment van schrijven is dat versie &#8220;roundcubemail-0.2.2.tar.gz&#8221;
Voor we Roundcube downloaden gaan we eerst naar een locatie waar we m willen hebben, en in mijn geval kies [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">ik ga er hier van uit dat er al een werkende versie van apache en mysql aanwezig is</span></p>
<h2>Roundcube downloaden</h2>
<p>De laatste versie van Roundcube is te vinden op <a href="http://roundcube.net/downloads">http://roundcube.net/downloads</a></p>
<p>Op het moment van schrijven is dat versie &#8220;roundcubemail-0.2.2.tar.gz&#8221;</p>
<p>Voor we Roundcube downloaden gaan we eerst naar een locatie waar we m willen hebben, en in mijn geval kies ik daar altijd de locatie /usr/src voor</p>
<p># cd /usr/src/</p>
<p>vervolgens gebruiken we wget om roundcube te downloaden</p>
<p># wget http://garr.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2.2.tar.gz</p>
<p>Roundcube zit verpakt in een tar.gz bestand en om deze uit te pakken gebruiken we tar -xvf</p>
<p># tar -xvf roundcubemail-0.2.2.tar.gz</p>
<p>Het resultaat is een mapje met de naam roundcubemail-0.2.2 en om dit mapje op een mooie plek te krijgen met een duidelijke naam te geven doen we het volgende.</p>
<p># mv roundcubemail-0.2.2 /var/www/webmail</p>
<h2>MySQL voorbereiden</h2>
<p>Er van uitgaande dat MySQL al geinstalleerd is gaan we eerst een database aanmaken voor Roundcube</p>
<p>(LET OP, MySQL gebruikers en de MySQL root account staan volledig los van de systeem gebruikers en root account)</p>
<p>Om in te loggen op de MySQL comando prompt als root doen we het volgende.</p>
<p># mysql -u root -p</p>
<p>vervolgens zal MySQL het wachtwoord vragen van de MySQL root gebruiker.</p>
<p>Om de database &#8220;roundcubemail&#8221; aan te maken doen we het volgende.</p>
<p>mysql&gt; CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;</p>
<p>Vervolgens maken we een aparte gebruiker met de naam &#8220;roundcube&#8221; aan die gebruik kan maken van die database, LET OP!! verander het woord password hieronder in iets veiligers!!</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON roundcubemail.* TO &#8217;roundcube&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;</p>
<p>Nu de database en gebruiker zijn toegevoegd gebruiken we het comando &#8220;quit&#8221; om weer uit de MySQL te komen.</p>
<p>mysql&gt; quit</p>
<p>Vervolgens moeten we nog de tabellen e.d. importeren in de roundcubemail database en om dit te doen gaan we eerst naar het mapje webmail.</p>
<p># cd /var/www/webmail</p>
<p>En vervolgens importeren we de tabellen</p>
<p># mysql -u roundcube -p roundcubemail &lt; SQL/mysql.initial.sql</p>
<p>Vervolgens zal MySQL vragen om het paswoord van de roundcube gebruiker, als het goed is is dat het &#8220;password&#8221; wat we eerder verandert hebben.</p>
<h2>Roundcube configuratie</h2>
<p>Roundcube is verder te configuren vanuit de browser mar voor we dat doen zorgen we dat de locatie temp en logs schrijfbaar zijn voor apache.</p>
<p># chown -R www-data:www-data temp</p>
<p># chown -R www-data:www-data logs</p>
<p>In je webbrowser ga je vervolgens naar de locatie</p>
<p>http://url-to-roundcube/installer/</p>
<p><img class="alignnone size-medium wp-image-1489" title="screenshot" src="http://www.songshu.org/wp-content/uploads/2009/05/screenshot-300x211.png" alt="screenshot" width="300" height="211" /></p>
<p>Als alles OK is ga je door naar het volgende scherm met de knop &#8221; NEXT&#8221;</p>
<p>Op het volgende scherm zijn een hoop opties te vinden, !!!!!vervang in ieder geval het goede MySQL password!!!!</p>
<p><img class="alignnone size-medium wp-image-1490" title="screenshot-1" src="http://www.songshu.org/wp-content/uploads/2009/05/screenshot-1-300x211.png" alt="screenshot-1" width="300" height="211" /></p>
<p>Zodra alles OK is gaan we verder met &#8220;CREATE CONFIG&#8221;</p>
<p>en krijgen we het volgende scherm, dit is de configuratie met de waarden die we in het vorige scherm hebben ingevuld.</p>
<p><img class="alignnone size-medium wp-image-1491" title="screenshot-2" src="http://www.songshu.org/wp-content/uploads/2009/05/screenshot-2-300x211.png" alt="screenshot-2" width="300" height="211" /></p>
<p>Zoals aangegeven moeten we die configuratie handmatig in het goede bestandje zetten.</p>
<p>de eerste is main.inc.php</p>
<p>selecteer alles uit dit gedeelte en doe copy met de muis, vervolgens gaan we we naar de comando prompt en maken we het bewuste bestandje aan.</p>
<p># nano /var/www/webmail/config/main.inc.php</p>
<p>en pasten</p>
<p>CTR + X om te saven</p>
<p>Vervolgens de tweede db.inc.php copieren</p>
<p># nano /var/www/webmail/config/db.inc.php</p>
<p>en pasten</p>
<p>CTR + X om te saven</p>
<p>Zodra dit gedaan is is roundcube klaar om te gebruiken maar eerst halen we de &#8220;installer&#8221; folder weg.</p>
<p># rm -r /var/www/webmail/installer</p>
<h2>Maak een link voor elke nieuwe gebruiker</h2>
<p>In het geval van virtualmin maakt wordt er voor elke nieuwe klant een systeem gebruiker aangemaakt met ieder zijn eigen &#8220;public_html&#8221; folder, om te zorgen dat elk domeintje via http://mijndomein.nl/webmail toegang heeft tot webmail maken we een symlink aan in de skeleton files.</p>
<p># mkdir /etc/skel/public_html</p>
<p>en vervolgens de symlink</p>
<p># ln -s /var/www/webmail /etc/skel/public_html/</p>
<p><em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/roundcube-installeren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>online debian manpages</title>
		<link>http://www.songshu.org/index.php/online-debian-manpages</link>
		<comments>http://www.songshu.org/index.php/online-debian-manpages#comments</comments>
		<pubDate>Sat, 14 Mar 2009 11:46:32 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[all posts]]></category>
		<category><![CDATA[browsable]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[manpages]]></category>
		<category><![CDATA[online]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1480</guid>
		<description><![CDATA[Recently i have been practicing my &#8220;website building skills&#8221; a little, nothing special but making a nice website was simply a thing i never did so i just want to try out a few things to see what i can do. One of the things that came up on my list was inspired by the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i have been practicing my &#8220;website building skills&#8221; a little, nothing special but making a nice website was simply a thing i never did so i just want to try out a few things to see what i can do. One of the things that came up on my list was inspired by the work done by the Ubuntu community.</p>
<p>Apparently the man pages for Ubuntu were not to be found on the web to be read in your browser and the man pages website for debian manpages.debian.net cgi generates the pages meaning its not browsable by the search engines, so the chance of running in to them if you don&#8217;t know the exact address are next to none.</p>
<p>So.. i downloaded the work done for Ubuntu and adjusted the scripts and appearance to work with Debian, the result can be found <a title="debian manpages" href="http://manpages.songshu.org">here</a> .</p>
<p>Not sure what i&#8217;m gonna do with this site but if there seems to be appeal for it then i will keep the site up and maybe extend it a little.</p>
<p>In case anybody has any idea&#8217;s on that i&#8217;d be glad the hear about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/online-debian-manpages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing a failing disk</title>
		<link>http://www.songshu.org/index.php/replacing-a-failing-disk</link>
		<comments>http://www.songshu.org/index.php/replacing-a-failing-disk#comments</comments>
		<pubDate>Sun, 08 Mar 2009 14:11:31 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[all posts]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disk failure]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[software raid]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1473</guid>
		<description><![CDATA[

S.M.A.R.T. giving warnings

http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html


lately I&#039;ve been receiving S.M.A.R.T. warnings by mail about one of the disks in a RAID10 array,
the mails came in pairs like below.


SMART error (CurrentPendingSector) detected on host: host
This email was generated by the smartd daemon running on:

   host name: host
  DNS domain: cipar.net
  NIS domain: (none)

The following warning/error [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<h3><a name="s.m.a.r.t._giving_warnings" id="s.m.a.r.t._giving_warnings">S.M.A.R.T. giving warnings</a></h3>
<div class="level3">
<p><a href="http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html</a>
</p>
<p>
lately I&#039;ve been receiving S.M.A.R.T. warnings by mail about one of the disks in a RAID10 array,<br />
the mails came in pairs like below.
</p>
<pre class="code">
SMART error (CurrentPendingSector) detected on host: host
This email was generated by the smartd daemon running on:

   host name: host
  DNS domain: cipar.net
  NIS domain: (none)

The following warning/error was logged by the smartd daemon:

Device: /dev/sde, 1 Currently unreadable (pending) sectors

For details see host&#039;s SYSLOG (default: /var/log/syslog).

You can also use the smartctl utility for further investigation.
The original email about this issue was sent at Fri Feb 20 20:30:43 2009 CET
Another email message will be sent in 24 hours if the problem persists.
</pre>
<pre class="code">
SMART error (OfflineUncorrectableSector) detected on host: host

this email was generated by the smartd daemon running on:

   host name: host
  DNS domain: cipar.net
  NIS domain: (none)

The following warning/error was logged by the smartd daemon:

Device: /dev/sde, 1 Offline uncorrectable sectors

For details see host&#039;s SYSLOG (default: /var/log/syslog).

You can also use the smartctl utility for further investigation.
The original email about this issue was sent at Fri Feb 20 20:30:44 2009 CET
Another email message will be sent in 24 hours if the problem persists.
</pre>
<p>
Issuing</p>
<pre class="code">
smartctl -a /dev/sde
</pre>
<p>gave me the following summary by the smartmontools
</p>
<pre class="code">
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.11
Device Model:     ST3500320AS
Serial Number:    5QM056TH
Firmware Version: SD04
User Capacity:    500,107,862,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Mar  8 11:00:53 2009 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)    Offline data collection activity
                   was completed without error.
                   Auto Offline Data Collection: Enabled.
Self-test execution status:      ( 113)    The previous self-test completed having
                   the read element of the test failed.
Total time to complete Offline
data collection:          ( 634) seconds.
Offline data collection
capabilities:              (0x7b) SMART execute Offline immediate.
                   Auto Offline data collection on/off support.
                   Suspend Offline collection upon new
                   command.
                   Offline surface scan supported.
                   Self-test supported.
                   Conveyance Self-test supported.
                   Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                   power-saving mode.
                   Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                   General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   1) minutes.
Extended self-test routine
recommended polling time:      ( 106) minutes.
Conveyance self-test routine
recommended polling time:      (   2) minutes.
SCT capabilities:            (0x003b)    SCT Status supported.
                   SCT Feature Control supported.
                   SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate     0x000f   114   099   006    Pre-fail  Always       -       132023209
 3 Spin_Up_Time            0x0003   093   092   000    Pre-fail  Always       -       0
 4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       159
 5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       35
 7 Seek_Error_Rate         0x000f   074   060   030    Pre-fail  Always       -       21613621419
 9 Power_On_Hours          0x0032   089   089   000    Old_age   Always       -       9858
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   037   020    Old_age   Always       -       159
184 Unknown_Attribute       0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   082   082   000    Old_age   Always       -       18
188 Unknown_Attribute       0x0032   100   098   000    Old_age   Always       -       4295032838
189 High_Fly_Writes         0x003a   001   001   000    Old_age   Always       -       344
190 Airflow_Temperature_Cel 0x0022   071   048   045    Old_age   Always       -       29 (Lifetime Min/Max 27/31)
194 Temperature_Celsius     0x0022   029   052   000    Old_age   Always       -       29 (0 21 0 0)
195 Hardware_ECC_Recovered  0x001a   028   021   000    Old_age   Always       -       132023209
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       1
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       1
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 18 (device log contains only the most recent five errors)
   CR = Command Register [HEX]
   FR = Features Register [HEX]
   SC = Sector Count Register [HEX]
   SN = Sector Number Register [HEX]
   CL = Cylinder Low Register [HEX]
   CH = Cylinder High Register [HEX]
   DH = Device/Head Register [HEX]
   DC = Device Command Register [HEX]
   ER = Error register [HEX]
   ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It &quot;wraps&quot; after 49.710 days.

Error 18 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:58.471  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:58.471  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:58.348  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:56.547  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:56.546  IDENTIFY DEVICE

Error 17 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:56.547  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:56.546  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:56.441  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:54.640  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:54.639  IDENTIFY DEVICE

Error 16 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:54.640  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:54.639  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:54.534  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:52.707  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:52.707  IDENTIFY DEVICE

Error 15 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:52.707  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:52.707  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:52.585  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:50.792  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:50.791  IDENTIFY DEVICE

Error 14 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:50.792  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:50.791  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:50.677  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:48.845  READ FPDMA QUEUED
 60 00 00 9f 0a 95 40 00  17d+17:02:48.845  READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       10%      9849         917923767
# 2  Extended offline    Completed without error       00%      9685         -
# 3  Extended offline    Completed without error       00%      9594         -
# 4  Extended offline    Completed: read failure       90%      9512         9769035
# 5  Extended offline    Completed: read failure       90%      9344         9769035
# 6  Extended offline    Completed: read failure       90%      9176         9769035
# 7  Extended offline    Completed: read failure       90%      9008         9769035
# 8  Extended offline    Completed without error       00%      8842         -
# 9  Extended offline    Completed without error       00%      8674         -
#10  Extended offline    Completed: read failure       40%      8505         675183097
#11  Extended offline    Completed: read failure       40%      8342         675183097
#12  Extended offline    Completed: read failure       40%      8170         675183097
#13  Extended offline    Completed: read failure       40%      8002         675183097
#14  Extended offline    Completed without error       00%      7835         -
#15  Extended offline    Completed without error       00%      7673         -
#16  Extended offline    Completed without error       00%      7503         -
#17  Extended offline    Completed without error       00%      7333         -
#18  Extended offline    Completed without error       00%      7165         -
#19  Extended offline    Completed without error       00%      6997         -
#20  Extended offline    Completed without error       00%      6833         -
#21  Extended offline    Completed without error       00%      6660         -

SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
   1        0        0  Not_testing
   2        0        0  Not_testing
   3        0        0  Not_testing
   4        0        0  Not_testing
   5        0        0  Not_testing
Selective self-test flags (0x0):
 After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
</pre>
<p>
Actually i wasn&#039;t sure on how to read this but a quick e-mail to the debian-user mailinglist<br />
returned the following advice.
</p>
<pre class="code">

G&#039;Day.

&gt; &gt; smartctl --all /dev/sde
&gt; &gt; gives me the following, i&#039;ve been trying to google this but some sources say
&gt; &gt; replace the disk at once or don&#039;t wory, its harmless. Anybody can shed some
&gt; &gt; light?

&gt; &gt;  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always
&gt; &gt;   -       35

This one above indicates that you drive is developing bad sectors. All
drives come with &#039;spare&#039; sectors that can be remapped to the usable
space if ine or more becomes bad. Your drive has reallocated 35 bad
sectors and is most likely out of spares. Regardless the drive is
failing and must be replaced. In addition to that the data that was
stored on those 35 previously bad sectors is most likely irretrievably
lost. I hope that your raid setup has saved you from this data
corruption.

&gt; &gt; Num  Test_Description    Status                  Remaining  LifeTime(hours)
&gt; &gt;  LBA_of_first_error
&gt; &gt; # 1  Extended offline    Completed: read failure       10%      9849
&gt; &gt; 917923767

...

&gt; &gt; #13  Extended offline    Completed: read failure       40%      8002
&gt; &gt; 675183097

Your disc has been steadily failing for the last ~1800 hours.
Buy a replacement and swap it out asap.

Adrian
</pre>
<p>
OK, seems like clear advice so i&#039;d better take it,<br />
actually i already ordered the new disk since smart gave me the first warning so its time to do some replacing.
</p>
</div>
<h3><a name="making_an_extra_backup" id="making_an_extra_backup">Making an extra backup</a></h3>
<div class="level3">
<p><a href="http://manpages.songshu.org/manpages/lenny/en/man1/rsync.1.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man1/rsync.1.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man1/rsync.1.html</a>
</p>
<p>
Before doing anything i decided to do the manual backup routine.
</p>
<p>
I have all my services and important data in a VServer set up on one big LVM partition<br />
so we stop the VServers first.
</p>
<pre class="code">
/etc/init.d/util-vserver stop
</pre>
<p>
And then make a LVM snapshot.
</p>
<p>
<a href="http://manpages.songshu.org/manpages/lenny/en/man8/lvm.8.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man8/lvm.8.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man8/lvm.8.html</a>
</p>
<pre class="code">
lvcreate -L592M -s -n backup /dev/vg/VSERVERS
</pre>
<p>
Normally you can start the VServers again at this point and then continue making the backup,<br />
but since this is a failing disk replacement and its sunday anyway i decided not too to risk any loss of data<br />
in case something did go wrong and accept the downtime.
</p>
<p>
First we mount the snapshot to a physical location.<br />
In this case the location is as follows.</p>
<pre class="code">
mkdir /mnt/backup
</pre>
<p>
And then mount it.
</p>
<pre class="code">
mount /dev/vg/backup /mnt/backup
</pre>
<p>As said this is not my usual rotating backup, so i could have used copy but I always use Rsync anyway.
</p>
<pre class="code">
rsync -av /mnt/backup /BACKUP/backup
</pre>
<p>
The /BACKUP location is on another seperate raid1 array on the same box,<br />
you could of course do it to another machine over the network,<br />
but since i have huge amounts of data this simply goes faster
</p>
<p>
After Rsync has done its job we can unmount the LVM snapshot.
</p>
<pre class="code">
umount /mnt/backup
</pre>
<p>
And then remove the snapshot alltogether.</p>
<pre class="code">
lvremove /dev/vg/backup
</pre>
</div>
<h3><a name="remove_the_disk_from_the_array" id="remove_the_disk_from_the_array">Remove the disk from the array</a></h3>
<div class="level3">
<p>Now we have a fresh backup lets remove the disk from the array.<br />
The array looks as follows, note this is a raid10 + a raid1 array on the same box so 6 disks in total.<br />
lets have a look with</p>
<pre class="code">
cat /proc/mdstat
</pre>
<p>the result looks like this.</p>
<pre class="code">
Personalities : [raid1] [raid10]
md3 : active raid10 sdc6[0] sdd6[3] sdf6[2] sde6[1]
      966020096 blocks 256K chunks 2 far-copies [4/4] [UUUU]

md2 : active raid10 sdc5[0] sdf5[3] sde5[2] sdd5[1]
      979712 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md1 : active raid10 sdc3[0] sdf3[3] sde3[2] sdd3[1]
      9574528 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md0 : active raid1 sdc1[0] sdd1[3] sde1[2] sdf1[1]
      96256 blocks [4/4] [UUUU]

md4 : active raid1 sda1[0] sdb1[1]
      976759936 blocks [2/2] [UU]

unused devices: &lt;none&gt;
</pre>
<p>
The disk /dev/sde is used in ”/boot md0” ”/root md1” “swap md2” and the big ”/VSERVERS md3” partition.
</p>
<p>
We need to remove it from every md device and it takes 2 steps per device.<br />
First we set it to fail</p>
<pre class="code">
mdadm --fail /dev/md0 /dev/sde1
</pre>
<pre class="code">
mdadm --fail /dev/md1 /dev/sde3
</pre>
<pre class="code">
mdadm --fail /dev/md2 /dev/sde5
</pre>
<pre class="code">
mdadm --fail /dev/md3 /dev/sde6
</pre>
<p>This time</p>
<pre class="code">
cat /proc/mdstat
</pre>
<p>shows as follows</p>
<pre class="code">
Personalities : [raid1] [raid10]
md3 : active raid10 sdc6[0] sdd6[3] sdf6[2] sde6[4](F)
      966020096 blocks 256K chunks 2 far-copies [4/3] [U_UU]

md2 : active raid10 sdc5[0] sdf5[3] sde5[4](F) sdd5[1]
      979712 blocks 64K chunks 2 near-copies [4/3] [UU_U]

md1 : active raid10 sdc3[0] sdf3[3] sde3[4](F) sdd3[1]
      9574528 blocks 64K chunks 2 near-copies [4/3] [UU_U]

md0 : active raid1 sdc1[0] sdd1[3] sde1[4](F) sdf1[1]
      96256 blocks [4/3] [UU_U]

md4 : active raid1 sda1[0] sdb1[1]
      976759936 blocks [2/2] [UU]

unused devices: &lt;none&gt;
</pre>
<p>That looks about right, so now we completely remove it from the array
</p>
<pre class="code">
mdadm --remove /dev/md0 /dev/sde1
</pre>
<pre class="code">
mdadm --remove /dev/md1 /dev/sde3
</pre>
<pre class="code">
mdadm --remove /dev/md2 /dev/sde5
</pre>
<pre class="code">
mdadm --remove /dev/md3 /dev/sde6
</pre>
</div>
<h3><a name="identify_the_disk" id="identify_the_disk">Identify the disk</a></h3>
<div class="level3">
<p>
Now /dev/sde is completely removed from the array so we can physically remove the disk and replace it with the new disk.<br />
But how do we know which of the 6 disks is /dev/sde?<br />
Running</p>
<pre class="code">
smartctl -a /dev/sde
</pre>
<p>again will show the serial number as it is marked on the disk.</p>
<pre class="code">
=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.11
Device Model:     ST3500320AS
Serial Number:    5QM056TH
Firmware Version: SD04
User Capacity:    500,107,862,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Mar  8 14:19:10 2009 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
</pre>
<p>So in this case 5QM056TH, good to know.<br />
Lets shutdown the machine and replace the disk</p>
<pre class="code">
shutdown -h now
</pre>
</div>
<h3><a name="add_the_new_disk_to_the_array" id="add_the_new_disk_to_the_array">Add the new disk to the array</a></h3>
<div class="level3">
<p>After replacing the disk a new unformatted disk showed up when issuing
</p>
<pre class="code">
fdisk -l
</pre>
<pre class="code">
Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sde doesn&#039;t contain a valid partition table
</pre>
<p>
Great, so lets get this one with the program and add it to the RAID10 array.<br />
Firstly we need to make sure that the new /dev/sde has the exact same partition layout as the other 3 disks in the array.<br />
Lets copy the partition table of /dev/sdc to /dev/sde.</p>
<pre class="code">
sfdisk -d /dev/sdc | sfdisk /dev/sde
</pre>
<p>The result looked like this</p>
<pre class="code">
Checking that no-one is using this disk right now ...
OK

Disk /dev/sde: 60801 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/sde: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sde1   *        63    192779     192717  fd  Linux raid autodetect
/dev/sde2       9767520 976768064  967000545   5  Extended
/dev/sde3        192780   9767519    9574740  fd  Linux raid autodetect
/dev/sde4             0         -          0   0  Empty
/dev/sde5       9767583  10747484     979902  fd  Linux raid autodetect
/dev/sde6      10747548 976768064  966020517  fd  Linux raid autodetect
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
</pre>
<p>
Once the partitions are OK, we can add the disk the same way as we failed it and removed it earlier</p>
<pre class="code">
mdadm --add /dev/md0 /dev/sde1
</pre>
<pre class="code">
mdadm --add /dev/md1 /dev/sde3
</pre>
<pre class="code">
mdadm --add /dev/md2 /dev/sde5
</pre>
<pre class="code">
mdadm --add /dev/md3 /dev/sde6
</pre>
<p>
Issuing the command</p>
<pre class="code">
watch cat /proc/mdstat
</pre>
<p>should show you that the new disk is part of the array and that the syncing is in progress.
</p>
<pre class="code">
Every 2.0s: cat /proc/mdstat                                                             Sun Mar  8 15:01:52 2009

Personalities : [raid1] [raid10]
md3 : active raid10 sde6[4] sdd6[0] sdc6[3] sdf6[2]
      966020096 blocks 256K chunks 2 far-copies [4/3] [U_UU]
      [&gt;....................]  recovery =  0.0% (196352/483010048) finish=122.9min speed=65450K/sec

md2 : active raid10 sde5[4] sdd5[0] sdf5[3] sdc5[1]
      979712 blocks 64K chunks 2 near-copies [4/3] [UU_U]
        resync=DELAYED

md1 : active raid10 sde3[2] sdd3[0] sdf3[3] sdc3[1]
      9574528 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md0 : active raid1 sde1[2] sdd1[0] sdc1[3] sdf1[1]
      96256 blocks [4/4] [UUUU]

md4 : active raid1 sda1[0] sdb1[1]
      976759936 blocks [2/2] [UU]

unused devices: &lt;none&gt;
</pre>
</div>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/replacing-a-failing-disk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>house for sale</title>
		<link>http://www.songshu.org/index.php/house-for-sale</link>
		<comments>http://www.songshu.org/index.php/house-for-sale#comments</comments>
		<pubDate>Thu, 26 Feb 2009 16:06:01 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[other stuff]]></category>
		<category><![CDATA[austria]]></category>
		<category><![CDATA[Garten]]></category>
		<category><![CDATA[Laaben]]></category>
		<category><![CDATA[Reihenhaus]]></category>
		<category><![CDATA[Siedlung]]></category>
		<category><![CDATA[Verkauf]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1456</guid>
		<description><![CDATA[As a frequent user addicted to the use of linux Vserver and off course a loyal lurker on the excellent Vserver mailing list we received the following request from Herbert Poetzl to get some exposure for the link below.
it looks actually kind a nice
Regarding the old house we are trying to sell:
I created a web [...]]]></description>
			<content:encoded><![CDATA[<p>As a frequent user addicted to the use of linux Vserver and off course a loyal lurker on the excellent Vserver mailing list we received the following request from Herbert Poetzl to get some exposure for the link below.</p>
<p>it looks actually kind a nice</p>
<p>Regarding the old house we are trying to sell:</p>
<p>I created a web page which will contain all required<br />
information for a buyer, and I&#8217;d like to promote that<br />
page (especially in and around Austria), so some link<br />
to that page would probably help a lot for major search<br />
engines to pick it up, i.e. what I am asking is that<br />
if you have a site where you can put a link to it, that<br />
would be really appreciated.</p>
<p><a href="http://www.reihenendhaus.at" target="_blank">http://www.reihenendhaus.at</a><br />
(means end-of-terrace house in german)</p>
<p>sensible keywords would include:<br />
Laaben, Reihenhaus, Garten, Siedlung, Verkauf</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/house-for-sale/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>avantfax_install_script</title>
		<link>http://www.songshu.org/index.php/avantfax_install_script</link>
		<comments>http://www.songshu.org/index.php/avantfax_install_script#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:25:10 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[avantfax]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hylafax]]></category>
		<category><![CDATA[install script]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1276</guid>
		<description><![CDATA[

Debian Avantfax install script improvement WORK IN PROGRESS!!!!!

Avantfax works really well on Debian but it is not officially supported by Avantfax so the install script is lacking, i would like to improve that and any feedback would be appreciated.


The first time i installed Avantfax on Debian Etch there was only an install script for Red [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<h2><a name="debian_avantfax_install_script_improvement_work_in_progress" id="debian_avantfax_install_script_improvement_work_in_progress">Debian Avantfax install script improvement WORK IN PROGRESS!!!!!</a></h2>
<div class="level2">
<p>Avantfax works really well on Debian but it is not officially supported by Avantfax so the install script is lacking, i would like to improve that and any feedback would be appreciated.
</p>
<p>
The first time i installed Avantfax on Debian Etch there was only an install script for Red Hat and SuSe so everything needed to be done manually, i made some notes at the time here <a href="http://www.songshu.org/index.php/avantfax-on-debian" class="urlextern" title="http://www.songshu.org/index.php/avantfax-on-debian"  rel="nofollow">http://www.songshu.org/index.php/avantfax-on-debian</a>
</p>
<p>
Since AvantFAX 3.1.0 there is a debian install script available that comes a long way but is not yet perfect and it requires some extra manual steps and tinkering, also an install script to set up mail2fax is missing for Debian.
</p>
<p>
This is an attempt to improve the following Debian scripts that can be found in AvantFAX 3.1.6</p>
<ul>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-debian-install-script" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-debian-install-script"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-debian-install-script</a></div>
</li>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-debian-prefs" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-debian-prefs"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-debian-prefs</a></div>
</li>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-email2fax" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-email2fax"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-email2fax</a></div>
</li>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-setup-postfix" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-setup-postfix"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-setup-postfix</a></div>
</li>
</ul>
</div>
<h3><a name="debian_install_script" id="debian_install_script">debian install script</a></h3>
<div class="level3">
<p>This script comes a long way accept that the apache virtual host is not set up correctly. and the specified directory /etc/apache2/logs does not exist so apache will refuse to start.
</p>
<p>
The following section needs improvement.</p>
<pre class="code">
cat &gt;&gt; /etc/apache2/sites-enabled/000-default &lt;&lt; EOF

&lt;VirtualHost *:80&gt;
    DocumentRoot $INSTDIR
    ServerName avantfax
    ErrorLog logs/avantfax-error_log
    CustomLog logs/avantfax-access_log common
&lt;/VirtualHost&gt;
EOF
</pre>
<p>
What we see here is that the virtualhost is added below in the 000-default file, this does not work since the default will not be changed and a new virtual host is not added.<br />
Also we could move the avantfax logs to the debian default log section /var/logs/<br />
The suggestion is to have it add a separate new virtual host for the chosen domain name as specified in the debian-prefs.txt.</p>
<pre class="code">
cat &gt;&gt; /etc/apache2/sites-available/$FAXDOMAIN &lt;&lt; EOF

&lt;VirtualHost *:80&gt;
    DocumentRoot $INSTDIR
    ServerName $FAXDOMAIN
    ErrorLog /var/log/avantfax-error_log
    CustomLog /var/log/avantfax-access_log common
&lt;/VirtualHost&gt;
EOF
</pre>
<p>
After the new virtual host file is added to the sites-available we can add the following to have it added to the apache sites-enabled section.
</p>
<pre class="code">
a2ensite $FAXDOMAIN
/etc/init.d/apache2 reload
a2dissite 000-default
/etc/init.d/apache2 reload
</pre>
</div>
<h3><a name="debian-prefs" id="debian-prefs">debian-prefs</a></h3>
<div class="level3">
</div>
<h3><a name="email2fax" id="email2fax">email2fax</a></h3>
<div class="level3">
</div>
<h3><a name="setup-postfix" id="setup-postfix">setup-postfix</a></h3>
<div class="level3">
<p>This script is completely non-debian so i suggest to make ad a new debian-setup-postfix.sh script
</p>
<p>
The following section can be removed</p>
<pre class="code">
# INSTALL REQUIRED APPS IF NOT ALREADY INSTALLED

echo “Installing required packages”

yast –install postfix
</pre>
<p>
It mentions yast and that should be replaced with apt-get but AvantFax depends on a functioning hylafax and the installation of hylafax in its turn depends on an installed MTA so it will default to install exim4 if no other MTA is present, using this scripts means you want to use postfix as MTA so this should already be installed before Hylafax.
</p>
<p>
The following section is ment to stop postfix and alter the master.cf file
</p>
<pre class="code">
# CONFIGURE POSTFIX

/sbin/service postfix stop

echo “Configuring Email to FAX for domain ${FAXDOMAIN}”

cat &gt;&gt; /etc/postfix/master.cf &lt;&lt; EOF
fax unix - n n - 1 pipe
flags= user=$FAXMAILUSER argv=/usr/bin/faxmail -d -n -NT ${user}

EOF
</pre>
<p>Debian uses init so this section should read as follows</p>
<pre class="code">
# CONFIGURE POSTFIX
/etc/init.d/postfix stop

echo “Configuring Email to FAX for domain ${FAXDOMAIN}”

cat &gt;&gt; /etc/postfix/master.cf &lt;&lt; EOF
fax unix - n n - 1 pipe
flags= user=$FAXMAILUSER argv=/usr/bin/faxmail -d -n -NT ${user}

EOF
</pre>
<p>
Faxmail will start complaining it can not locate the fonts so we need to specify the ghostscript font directory to Hylafax</p>
<pre class="code">
cat &gt;&gt; /etc/hylafax/hyla.conf &lt;&lt; EOF
FontMap: /usr/share/ghostscript/8.62/lib/
EOF
</pre>
<p>The following section at the end of this script will start postfix after having it stopped at the beginning of the configuration, again we use init.</p>
<pre class="code">
/sbin/chkconfig postfix on
/sbin/service postfix start
</pre>
<p>
so we replace this with</p>
<pre class="code">
/etc/init.d/postfix start
</pre>
</div>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/avantfax_install_script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
