<?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 &#187; all posts</title>
	<atom:link href="http://www.songshu.org/index.php/category/all-posts/feed" rel="self" type="application/rss+xml" />
	<link>http://www.songshu.org</link>
	<description>Just another collection of nuts</description>
	<lastBuildDate>Mon, 22 Mar 2010 13:16:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>mobiel internet modem 904 KPN</title>
		<link>http://www.songshu.org/index.php/mobiel-internet-modem-904-kpn</link>
		<comments>http://www.songshu.org/index.php/mobiel-internet-modem-904-kpn#comments</comments>
		<pubDate>Sat, 13 Mar 2010 15:33:54 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1547</guid>
		<description><![CDATA[KPN levert de &#8220;Mobiel Internet Modem 904&#8243; , zoals ze zelf deze &#8220;Dongel&#8221;  noemen. Het feit dat ze een &#8220;dongle&#8221;  &#8220;dongel&#8221; noemen en het KPN type nummer  overeenkomt met een release van Ubuntu voorspelde al niet veel goeds om te traceren wat voor type apparaat dit eigenlijk is en hoe deze aan de praat te krijgen onder Linux, in dit geval Ubuntu Karmic 9.10. Wanneer je de deze USB dongle inplugt begint na een paar seconden een rood lampje te branden ten teken dat het apparaat herkend wordt. Het commando lsusb geeft de volgende output Bus 001 Device 004: ID 0af0:d057 Option Zo makkelijk gaat het echter niet aangezien Ubuntu de dongle nog niet herkend als USB modem maar als een CD. Dit kun je ook zien als je na het inpluggen het commando dmesg invoert, waarschijnlijk krijg je dan het volgende te zien [ 466.993290] scsi 7:0:0:0: CD-ROM ZCOption Icon CD 1.00 PQ: 0 ANSI: 4 [ 467.007957] sr0: scsi-1 drive [ 467.008438] sr 7:0:0:0: Attached scsi CD-ROM sr0 [ 467.008723] sr 7:0:0:0: Attached scsi generic sg1 type 5 [ 467.418375] ISO 9660 Extensions: Microsoft Joliet Level 1 [ 467.421443] ISOFS: changing to secondary root De reden dat er [...]]]></description>
			<content:encoded><![CDATA[<p><span>KPN levert de &#8220;Mobiel Internet Modem 904&#8243; , zoals ze zelf deze &#8220;Dongel&#8221;  noemen.</span></p>
<p><span>Het feit dat ze een &#8220;dongle&#8221;  &#8220;dongel&#8221; noemen en het KPN type nummer  overeenkomt met een release van Ubuntu voorspelde al niet veel goeds om te traceren wat voor type apparaat dit eigenlijk is en hoe deze aan de praat te krijgen onder Linux, in dit geval Ubuntu Karmic 9.10.</span></p>
<p><span>Wanneer je de deze USB dongle inplugt begint na een paar seconden een rood lampje te branden ten teken dat het apparaat herkend wordt.<br />
Het commando<br />
<code>lsusb</code><br />
geeft de volgende output<br />
<code>Bus 001 Device 004: ID 0af0:d057 Option</code><br />
Zo makkelijk gaat het echter niet aangezien Ubuntu de dongle nog niet herkend als USB modem maar als een CD.</span></p>
<p><span>Dit kun je ook zien als je na het inpluggen het commando</span></p>
<p><span><code>dmesg</code><br />
invoert, waarschijnlijk krijg je dan het volgende te zien</span></p>
<p><span><code>[  466.993290] scsi 7:0:0:0: CD-ROM            ZCOption Icon CD          1.00 PQ: 0 ANSI: 4<br />
[  467.007957] sr0: scsi-1 drive<br />
[  467.008438] sr 7:0:0:0: Attached scsi CD-ROM sr0<br />
[  467.008723] sr 7:0:0:0: Attached scsi generic sg1 type 5<br />
[  467.418375] ISO 9660 Extensions: Microsoft Joliet Level 1<br />
[  467.421443] ISOFS: changing to secondary root</code></span></p>
<p><span>De reden dat er een CD filesysteem op deze USB staat is niet zonder reden, onder windows wordt deze namelijk automatisch herkend en een autorun bstandje vanaf de &#8220;CD&#8221; opgestart waardoor alle drivers e.d. vanzelf geinstalleerd worden, een prachtige uitvinding natuurlijk waar we onder Ubuntu niks aan hebben.</span></p>
<p><span>Voor zover ik heb kunnen achterhalen gaat het hier om een GlobeTrotter GI1505 van de producent Option, al ben ik niet 100% zeker van het type.<br />
En de vraag is hoe deze aan de praat te krijgen en als USB modem herkend te laten worden.<br />
Om dit te doen heb ik het volgende bestandje geinstalleerd.</span></p>
<p><span><a href="http://www.songshu.org/wp-content/uploads/2010/03/udev.tar.gz">udev.tar</a></span></p>
<p><span>download deze naar bijvoorbeeld de Desktop en zoek de locatie waar het bestandje staat op in een terminal</span></p>
<p><span><code>cd Desktop</code><br />
en pak het bestandje vervolgens uit<br />
<code>tar zxf udev.tar.gz</code><br />
ga via de command line naar het mapje<br />
<code>cd udev</code><br />
Om dit te kunnen installeren moeten we eerst nog het nodige installeren.<br />
Eerst de build tools<br />
<code>sudo apt-get install build-essential</code><br />
De kernel headers.<br />
check eerst je preciese kernel versie met het commando<br />
<code>uname -r</code><br />
En pas desnoods onderstaande aan aan jouw preciese kernel versie<br />
<code>sudo apt-get install linux-headers-2.6.31-19-generic</code><br />
Vervolgens alleen nog het pakketje libusb-dev<br />
<code>sudo apt-get install libusb-dev</code></span></p>
<p><span>En dan zijn we klaar 0zerocdoff te compileren met het volgende commando<br />
<code>sudo make</code><br />
En vervolgens.<br />
<code>sudo make install</code></span></p>
<p><span>Dat laatste commando zou ongeveer het volgende resultaat moeten laten zien.<br />
<code>install -d /usr/sbin<br />
install -d /etc/udev/rules.d<br />
install ozerocdoff /usr/sbin<br />
cp hso.udev /etc/udev/rules.d/51-hso-udev.rules<br />
install -d /usr/share/hal/fdi/preprobe/20thirdparty<br />
cp 10-wwan-hso-preprobe.fdi /usr/share/hal/fdi/preprobe/20thirdparty<br />
install -d /usr/share/hal/fdi/information/20thirdparty<br />
cp 10-wwan-quirk.fdi /usr/share/hal/fdi/information/20thirdparty<br />
install -d /usr/lib/hal/scripts/<br />
install hal-serial-hsotype /usr/lib/hal/scripts/<br />
install -d /etc<br />
install osetsuspend /usr/sbin<br />
cp hso-suspend.conf /etc</code></span></p>
<p><span>De specefieke dongle in deze post is te nieuw om al herkend te worden door datgene wat we net geinstalleerd hebben dus we moeten nog het een en ander aanpassen</span></p>
<p><span><code>sudo gedit /etc/udev/rules.d/51-hso-udev.rules</code><br />
Onder het kopje &#8220;New Syntax&#8221;</span></p>
<p><span>zie een stuk of wat regels staan die lijken op deze<br />
<code>ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="7601", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code></span></p>
<p><span>Copier een van deze regels en plak deze onder de anderen voor de laatste regel &#8220;GOTO=&#8221;hso_end&#8221;"  en pas vervolgens het &#8220;idproduct&#8221; aan.</span></p>
<p><span><code>ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="d057", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code><br />
in ons geval dus &#8220;7601&#8243; vervangen door &#8220;d057&#8243;, de d057 kennen we van de eerdere output van lsusb, namelijk 0af0:d057 dus eventueel aanpassen als je een iets ander type hebt.</span></p>
<p><span>Vervolgens in het zelfde bestandje onder de kop &#8220;Old Syntax&#8221; doen we hetzelfde en voegen we een nieuwe regel toe, copieer bijv. de lijn<br />
<code>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7601", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code><br />
En vervang hier weer de &#8220;7601&#8243; voor &#8220;d057&#8243; zodat het er zo uit kom te zien<br />
<code>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="d057", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code></span></p>
<p><span>Sluit vervolgens het bestandje af en sla deze op. En herstart de machine.<br />
Als we na het herstarten de dongle weer in de USB poort stoppen dan geeft het commando<br />
<code>dmesg</code><br />
Het volgende resultaat te zien.<br />
<code>[   80.184102] usb 1-5: new high speed USB device using ehci_hcd and address 5<br />
[   80.318212] usb 1-5: configuration #1 chosen from 1 choice<br />
[   80.324180] scsi7 : SCSI emulation for USB Mass Storage devices<br />
[   80.325795] usb-storage: device found at 5<br />
[   80.325803] usb-storage: waiting for device to settle before scanning<br />
[   81.489855] usb 1-5: USB disconnect, address 5<br />
[   81.932162] usb 1-5: new high speed USB device using ehci_hcd and address 6<br />
[   82.066312] usb 1-5: configuration #1 chosen from 1 choice<br />
[   82.070176] hso0: Disabled Privacy Extensions<br />
[   82.072488] hso 1-5:1.5: Not our interface</code></span></p>
<p><span>Hier zijn we blj mee aangezien Ubuntu nu de KPN dongel herkent als een USB modem en met  een linker muisklik op de &#8220;network-manager&#8221; zien we de optie om een &#8220;New Mobile Broadband GSM connection te configureren.</span></p>
<p><span>Klik deze aan en doorloop de stappen in de configuratie wizard, selecteer &#8220;the netherlands&#8221; en &#8220;KPN mobile&#8221; en hou voor de rest de default opties.</span></p>
<p><span>Bij de eerste keer verbinding maken zal er gevraagd worden om een pin en wachtwoord, voor beiden is het 0000 , dus 4xnul.</span></p>
<p><span>Het enige probleem is nog dat de versie van &#8220;modemmanager 0.2&#8243; in Karmic geen verbinding kan maken, installeer hier voor het pakket modemmanager 0.3 van Lucid 10.04</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/mobiel-internet-modem-904-kpn/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[ambiance]]></category>
		<category><![CDATA[theme]]></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 thought that Karmic was almost pretty damn chocolate perfect. 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. Also that i have remarks does not mean its all bad, its just easier to be negative so take it as positive criticism ;) The timing 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. I understand that a new release, and especially a LTS, has to be pushed with as much media attention as possible [...]]]></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 ;)</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>
<p>sudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml</p>
<p>and find that part that looks like this<br />
<code>&lt;!-- Window Title --&gt;</p>
<p>&lt;draw_ops name="draw_title_text_normal"&gt;<br />
  &lt;title color="#333"<br />
         x="10"<br />
         y="(((height - title_height) / 2) `max` 0)+1"/&gt;<br />
  &lt;title color="#333"<br />
         x="10"<br />
         y="(((height - title_height) / 2) `max` 0)-1"/&gt;<br />
  &lt;title color="#333"<br />
         x="9"<br />
         y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
  &lt;title color="#333"<br />
         x="11"<br />
         y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
  &lt;title color="#dfd8c8"<br />
         x="10"<br />
         y="(((height - title_height) / 2) `max` 0)"/&gt;</p>
<p>&lt;/draw_ops&gt;</p>
<p>&lt;draw_ops name="draw_title_text_inactive"&gt;<br />
  &lt;title color="#333333"<br />
         x="10"<br />
         y="(((height - title_height) / 2) `max` 0)+1"/&gt;<br />
  &lt;title color="#333333"<br />
         x="10"<br />
         y="(((height - title_height) / 2) `max` 0)-1"/&gt;<br />
  &lt;title color="#333333"<br />
         x="9"<br />
         y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
  &lt;title color="#333333"<br />
         x="11"<br />
         y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
  &lt;title color="#99958b"<br />
         x="10"<br />
         y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
&lt;/draw_ops&gt;<br />
</code></p>
<p><strong>and change it to look like this.</strong></p>
<p><code>&lt;!-- Window Title --&gt;</p>
<p>&lt;draw_ops name="draw_title_text_normal"&gt;<br />
&lt;title color="#333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)+1"/&gt;<br />
&lt;title color="#333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)-1"/&gt;<br />
&lt;title color="#333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
&lt;title color="#333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
&lt;title color="#dfd8c8"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)"/&gt;</p>
<p>&lt;/draw_ops&gt;</p>
<p>&lt;draw_ops name="draw_title_text_inactive"&gt;<br />
&lt;title color="#333333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)+1"/&gt;<br />
&lt;title color="#333333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)-1"/&gt;<br />
&lt;title color="#333333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
&lt;title color="#333333"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
&lt;title color="#99958b"<br />
x="((3 `max` (width-title_width)) / 2)"<br />
y="(((height - title_height) / 2) `max` 0)"/&gt;<br />
&lt;/draw_ops&gt;<br />
</code></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 useful 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>11</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 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!!! 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. 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 [...]]]></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 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? First thing to do is to get the restricted multi media going. Installing the &#8220;ubuntu-restricted-package&#8221; will get us a long way. This package depends on some commonly used packages in the Ubuntu multiverse repository. Installing this package will pull in support for MP3 playback and decoding, support for various other audio formats (GStreamer plugins), Microsoft fonts, Java runtime environment, Flash plugin, LAME (to create compressed audio files), and DVD playback. Please note that this does not install libdvdcss2, and will not let you play encrypted DVDs. For more information, see https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs Please also note that packages from multiverse are restricted by copyright or legal issues in some countries. See http://www.ubuntu.com/ubuntu/licensing for more information. [...]]]></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</p>
<p>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</p>
<p>http://www.ubuntu.com/ubuntu/licensing</p>
<p>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 have been used for a while, so lets start with the option ¨Try Ubuntu without any change to your computer&#8221; A new loading screen for the desktop CD appears and it looks quit minimal, not too bad, although some text based messages about crypto flash quickly before before going to the silvery black loading bar. The Gnome desktop looks about the same on the live cd apart from a new desktop image and a slightly new color brown. 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. The welcome screen appears and we will use &#8220;English&#8221; for the installation process. Next are the &#8220;time settings&#8221; and have already seen the new lay-out since Jaunty, looks good to me. For the &#8220;Keyboard Layout&#8221; i will use the suggested  USA. I usually keep [...]]]></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 ;) .</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 the mail program (evolution) had me fleeing to the boring and featureless stable cradle  that Thunar and Thunderbird provided. 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 . 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]]></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 ik daar altijd de locatie /usr/src voor # cd /usr/src/ vervolgens gebruiken we wget om roundcube te downloaden # wget http://garr.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2.2.tar.gz Roundcube zit verpakt in een tar.gz bestand en om deze uit te pakken gebruiken we tar -xvf # tar -xvf roundcubemail-0.2.2.tar.gz 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. # mv roundcubemail-0.2.2 /var/www/webmail MySQL voorbereiden Er van uitgaande dat MySQL al geinstalleerd is gaan we eerst een database aanmaken voor Roundcube (LET OP, MySQL gebruikers en de MySQL root account staan volledig los van de systeem gebruikers en root account) Om in te loggen op de MySQL comando prompt als root doen we het volgende. # mysql -u root -p vervolgens zal MySQL het wachtwoord vragen van de MySQL [...]]]></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 work done by the Ubuntu community. 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. So.. i downloaded the work done for Ubuntu and adjusted the scripts and appearance to work with Debian, the result can be found here . 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. In case anybody has any idea&#8217;s on that i&#8217;d be glad the hear about it.]]></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[&#60;div id=“dw”&#62; 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 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. 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 [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<p>&lt;div id=“dw”&gt;</p>
<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.

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

&amp;gt; &amp;gt;  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always
&amp;gt; &amp;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.

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

...

&amp;gt; &amp;gt; #13  Extended offline    Completed: read failure       40%      8002
&amp;gt; &amp;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: &amp;lt;none&amp;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: &amp;lt;none&amp;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]
      [&amp;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: &amp;lt;none&amp;gt;</pre>
<p>
&lt;/div&gt;
</p>
</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>hylafax lenny vserver</title>
		<link>http://www.songshu.org/index.php/hylafax-lenny-vserver</link>
		<comments>http://www.songshu.org/index.php/hylafax-lenny-vserver#comments</comments>
		<pubDate>Sat, 21 Feb 2009 10:47:02 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[all posts]]></category>
		<category><![CDATA[avantfax]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hylafax]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://www.songshu.org/index.php/1258</guid>
		<description><![CDATA[&#60;div id=“dw”&#62; HylaFAX http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html Hylafax runs very well in a Vserver, all that needs to be done extra compared to a “normal” install is to copy the /dev/ttyS0 so Hylafx can reach it from within the Vserver. It is absolutely not needed to have Hylafax run in a Vserver but since this is a “low profile” setup for about a few dozen faxes a day and just as many users it does not need a dedicated box to run on, all you need is a cheap fax modem (in my case a a Emininet em5017) that i picked up for about 30,- Euro. Off course you need a server to attach it to, i already have one anyway, but you could use any old box. Add a nice front end like Avantfax, a printer and a scanner and you have a complete “small office” fax solution. Vserver installation newvserver --vsroot /VSERVERS --hostname fax --domain cipar.net --ip 192.168.1.10/24 --dist lenny --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0 vserver fax start vserver fax enter Since i use a lot of different Vserver installs on a single box (network) i make use of an apt-cacher to prevent having to download a lot of things over and [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<p>&lt;div id=“dw”&gt;</p>
<h2><a name="hylafax" id="hylafax">HylaFAX</a></h2>
<div class="level2">
<p><a href="http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html</a>
</p>
<p>
Hylafax runs very well in a Vserver, all that needs to be done extra compared to a “normal” install is to copy the /dev/ttyS0 so Hylafx can reach it from within the Vserver.
</p>
<p>
It is absolutely not needed to have Hylafax run in a Vserver but since this is a “low profile” setup for about a few dozen faxes a day and just as many users it does not need a dedicated box to run on, all you need is a cheap fax modem (in my case a a Emininet em5017) that i picked up for about 30,- Euro.
</p>
<p>
Off course you need a server to attach it to, i already have one anyway, but you could use any old box.<br />
Add a nice front end like Avantfax, a printer and a scanner and you have a complete “small office” fax solution.
</p>
</div>
<h3><a name="vserver_installation" id="vserver_installation">Vserver installation</a></h3>
<div class="level3">
<pre class="code">newvserver --vsroot /VSERVERS --hostname fax --domain cipar.net --ip 192.168.1.10/24 --dist lenny --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0</pre>
<pre class="code">vserver fax start
vserver fax enter</pre>
<p>
Since i use a lot of different Vserver installs on a single box (network) i make use of an apt-cacher to prevent having to download a lot of things over and over again, otherwise just use your normal sources.
</p>
<pre class="code"># nano /etc/apt/sources.list</pre>
<pre class="code">deb http://192.168.1.12:3142/security.debian.org/ lenny/updates main contrib
deb-src http://192.168.1.12:3142/security.debian.org/ lenny/updates main contrib
deb http://192.168.1.12:3142/debian.apt-get.eu/debian/ lenny main contrib non-free</pre>
<pre class="code">apt-get update &amp;amp;&amp;amp; apt-get upgrade
</pre>
</div>
<h3><a name="hylafax1" id="hylafax1">HylaFAX</a></h3>
<div class="level3">
<p>
<a href="http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch" class="urlextern" title="http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch"  rel="nofollow">http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch</a><br />
<a href="http://www.lucasmanual.com/mywiki/FaxServer" class="urlextern" title="http://www.lucasmanual.com/mywiki/FaxServer"  rel="nofollow">http://www.lucasmanual.com/mywiki/FaxServer</a><br />
<a href="http://www.avantfax.com/install.php" class="urlextern" title="http://www.avantfax.com/install.php"  rel="nofollow">http://www.avantfax.com/install.php</a>
</p>
<p>
Hylafax depends on a MTA so it will use Exim4 as the Debian default but i personally prefer to use Postfix so i install that one first.</p>
<pre class="code">apt-get install postfix</pre>
<pre class="code">choose internet site</pre>
<p>The system mail name, in my case i will go with the default fax.cipar.net since i use it on the local network only it does not really matter.
</p>
<pre class="code">nano /etc/aliases</pre>
<p>and add the following</p>
<pre class="code">root:   randall@smydomain.com</pre>
<pre class="code">newaliases</pre>
<pre class="code">
apt-get install hylafax-server</pre>
<p>The following is only needed because we have this running within a Vserver, otherwise Hylafax can not contact the fax modem.</p>
<pre class="code">exit
cp -a /dev/ttyS0 /VSERVERS/fax/dev/ttyS0
cp -aR /dev/null /VSERVERS/fax/var/spool/hylafax/dev
vserver fax enter</pre>
<pre class="code">faxsetup</pre>
<p>This will ask for a lot of questions, i go for the defaults except when specified below.</p>
<pre class="code"># Country code [1]? 31
# Area code [415]? 10
# Phone number of fax modem [+1.999.555.1212]? +31.10.1234567
# Local identification string (for TSI/CIG) [&quot;NothingSetup&quot;]? fax.cipar.net
# Long distance dialing prefix [1]? 0
# International dialing prefix [011]? 00
# Protection mode for received facsimile [0600]? 0644
# Protection mode for session logs [0600]? 0644
# Protection mode for ttyS0 [0600]? 0666
# Do you want to run faxaddmodem to configure another modem [yes]? no</pre>
<p>
Allow users from our subnet access to the fax service:</p>
<pre class="code">nano /etc/hylafax/hosts.hfaxd</pre>
<p>
on the bottom of the file
</p>
<pre class="code">192\.168\.:::</pre>
<pre class="code">exit
vserver fax restart
vserver fax enter</pre>
<pre class="code">faxstat -a -s</pre>
<p>should show something like this</p>
<pre class="code">HylaFAX scheduler on fax.cipar.net: Running
Modem ttyS0 (+**.**.*******): Running and idle</pre>
<p>
Add a fax user. This will create a user named “user” with userID 101 and no password.
</p>
<pre class="code">faxadduser -u 100 user</pre>
<p>Add an administrator. This will create a user named admin with admin password :</p>
<pre class="code">faxadduser -a password -p password -u 100 admin</pre>
<p>&lt;/div&gt;
</p>
</div>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/hylafax-lenny-vserver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
