<?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>Computer Tips -Tech Info &#187; Linux Tech Support</title>
	<atom:link href="http://www.averyjparker.com/category/linux-tech-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.averyjparker.com</link>
	<description>and Internet Security, Windows, Linux, Mac and other Tech Info from Avery J. Parker</description>
	<lastBuildDate>Wed, 07 Jul 2010 02:59:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux Software Raid Notes &#8211; Replacing Drives</title>
		<link>http://www.averyjparker.com/2010/02/28/linux-software-raid-notes-replacing-drives/</link>
		<comments>http://www.averyjparker.com/2010/02/28/linux-software-raid-notes-replacing-drives/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 02:28:09 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Software]]></category>
		<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux software raid]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[software raid]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=2695</guid>
		<description><![CDATA[This post is going to be somewhat of a &#8220;link dump&#8221; for me of some pages that I&#8217;ve been perusing lately.  After playing with RT (request tracker) &#8211; I added a few ticket items for the home network.  Now, if you&#8217;ve been a longtime reader and sorted through ALL of these posts here [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>This post is going to be somewhat of a &#8220;link dump&#8221; for me of some pages that I&#8217;ve been perusing lately.  After playing with RT (request tracker) &#8211; I added a few ticket items for the home network.  Now, if you&#8217;ve been a longtime reader and sorted through ALL of these posts here you&#8217;ll know that I&#8217;ve made use of software raid on the home systems.  Why?  Linux software raid seems fairly reliable (so far &#8211; 2 years +).  It doesn&#8217;t depend on a specific piece of hardware.  In short IF the worst happens and the array fails I should be able to retrieve data from an individual drive more easily than if it were hardware raid.  I&#8217;m using Raid Level 1 (cloning/mirroring) and ext3 is the filesystem on top.  I&#8217;ve had some slight problems with one drive in both the Desktop and server arrays and both arrays had been degraded for some time.  My goal was ultimately redundancy and to eliminate the disruption that hard drive failures have given over the last few years.</p>
<p><span id="more-2695"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "5441245651";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>When push comes to shove I&#8217;m cheap and hadn&#8217;t looked at replacing the drives yet.  (Potentially a problem especially since I was down to 1 drive for 2 out of 3 arrays.)  So, I was running a risk for several months.  The main reasons I&#8217;ve procrastinated is 1) I&#8217;m cheap and 2) I&#8217;m busy.  The other reason though is the two arrays were made of 400gb sata drives which are now hard to find.  500 gb is the new standard size.  Now, I don&#8217;t want to waste space so&#8230; it&#8217;s been a bit of a mental puzzle thinking about replacing one, growing the partition size and then replacing the other to pass along to the second system.</p>
<p>So&#8230;.. long story short.  I was able to re-add the drives to their respective arrays after researching the best way to grow a mirrored array onto larger devices.  Why?  When the arrays degraded they did so for pending sector reads.  I&#8217;ve tested the drives via smart and they seem okay.  So, I tried re-adding and so far all seems good.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "5441245651";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Anyway, here&#8217;s the link dump:</p>
<p>Good reminder &#8211; http://www.freddenny.com/UNIX/linuxRAID.html &#8211; making raid volumes bootable when moved.</p>
<p>Resizing a raid 1 system partition &#8211; http://mkfblog.blogspot.com/2007/11/resizing-raid1-system-partition.html</p>
<p>Looks like gparted supports software raid now &#8211; http://gparted.sourceforge.net/news.php</p>
<p>Just some notes for a reminder.</p>
<p>RAID is not a substitute for backups.  If you accidentally delete a file, it&#8217;s still GONE.  If you have corruption on one drive (or via the bus) your data is still GONE.  Schedule backups of important data.</p>
<p>In sum &#8211; replacing drives in a software raid array is quite simple &#8211; especially if they&#8217;re the same size.  Moving to larger drives and not wasting space is a bit more complicated and is a bridge I&#8217;ll have to cross at some point.</p>
<p>As a side note, I discovered that I had two more drives of equal size (2 160GB drives) in one system that I had originally intended to mirror those as well, but they needed data cleanup.  I spent some time cleaning up the data on one then deleted it&#8217;s partitions &#8211; created a new partition of the linux auto raid type and create a new raid device with that drive and a missing drive.  After that, I created the ext3 filesystem and moved the files over from the other drive.  Then I blew away the partition on the 2nd drive and re-partitioned that to be a linux auto raid partition.  Then I added it to the array and all synced well.</p>
<p>So, now &#8211; all of my 24/7 uptime drives are mirrored and I&#8217;ve got some research notes for how to move things around to larger drives when the time comes.  I still should add a to-do item to check and see how many more sata drives I could squeeze into my desktop or server &#8211; it might be nice to have a hot spare.</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.averyjparker.com/2006/11/05/linux-software-raid-notes/" rel="bookmark" class="wherego_title">Linux software raid notes</a></li><li><a href="http://www.averyjparker.com/2006/10/05/more-linux-software-raid-fun/" rel="bookmark" class="wherego_title">More linux software raid fun</a></li><li><a href="http://www.averyjparker.com/2008/09/08/ubuntu-linux-software-raid-replacing-a-failing-drive/" rel="bookmark" class="wherego_title">Ubuntu Linux Software Raid &#8211; Replacing a Failing Drive</a></li><li><a href="http://www.averyjparker.com/2006/10/01/some-days-you-really-want-to-slap-someone-at-microsoft/" rel="bookmark" class="wherego_title">Some days you really want to slap someone at Microsoft&#8230;.</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=2695&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2010/02/28/linux-software-raid-notes-replacing-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering a Split BiggieFile from a MondoRescue Backup</title>
		<link>http://www.averyjparker.com/2010/01/25/recovering-a-split-biggiefile-from-a-mondorescue-backup/</link>
		<comments>http://www.averyjparker.com/2010/01/25/recovering-a-split-biggiefile-from-a-mondorescue-backup/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 00:12:39 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Software]]></category>
		<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mondo]]></category>
		<category><![CDATA[mondoarchive]]></category>
		<category><![CDATA[mondorescue]]></category>
		<category><![CDATA[mondorestore]]></category>
		<category><![CDATA[restoring]]></category>
		<category><![CDATA[restoring files]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=2630</guid>
		<description><![CDATA[Once upon a time I wrote of manually extracting a file from a mondorescue backup.  Sometimes it&#8217;s just easier to do that, than have mondorescue go through 30 some cds or dvds just to find one file.  (Not to mention the fact that the iso&#8217;s aren&#8217;t burned to disc but are just stored [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>Once upon a time I wrote of manually extracting a file from a <a href="http://www.averyjparker.com/2006/01/13/mondorescue-manually-restoring-from-an-afiobz2-file/">mondorescue backup</a>.  Sometimes it&#8217;s just easier to do that, than have mondorescue go through 30 some cds or dvds just to find one file.  (Not to mention the fact that the iso&#8217;s aren&#8217;t burned to disc but are just stored on a usb HD.)  So, I&#8217;ve just had the opportunity to try to restore one of the &#8220;biggiefiles&#8221;.  Mondoarchive attempts to split huge files up into smaller slices for archiving.  The size is something that I think is configurable, but I haven&#8217;t made any changes from the default.</p>
<p><span id="more-2630"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "5441245651";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The first trick is figuring out which set of slice-0000105-0000.dat files to hunt for.  Find the list of biggiefiles (usually in the archives folder called biggiefiles.txt)  grep the file looking for your filename, but we will need the line number of the file.  In my case I did `grep -n myfilename biggiefiles.txt` and found that the file I was looking for was at line 106.</p>
<p>So, I started looking and found that the slice-0000106-0000.dat file reported a different filename when I used head to read the beginning of it.  So, I looked at slice-0000105-0000.dat&#8230;. aha! Our line 1 in biggiefile.txt get&#8217;s to be slice-0000000-0000.dat  So we&#8217;ll always be one number off from the line number.</p>
<p>Okay &#8211; so in my case there were about 17 slices&#8230; ranging from slice-0000106-0000.dat to slice-0000106-0017.dat  I should mention that many of these slices are bz2 compressed &#8211; so the first step is to uncompress them all bunzip2 *bz2 in the folder I was using as a temp folder for this worked.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "5441245651";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Next, I just tried cat&#8217;ting them all together `cat slice*.dat >all_files.dat`  But the resulting file was read as corrupt (I was restoring an access database.  So, after a bit of looking at the mondo-archive code&#8230;. I tried something a bit different.  I renamed the first slice (ending in 0000.dat) to something outside of our slice- count sequence -so I just called it outside.dat and then cat&#8217;ted the rest of them together using the same command as above.  Why ?  The 0000.dat file apparently is written as a header with just the filename and perhaps other information that mondoarchive uses (size?)  I really don&#8217;t know what else, but I had noticed that the header on the 0001.dat was similar to the header on my real .mdb files that were floating around.</p>
<p>Anyway &#8211; I&#8217;m making a note of it here in case I need it again.  Probably the best thing I can suggest to start with is to create a folder to work on these files outside of your backup structure.  And by all means COPY instead of move the files over into it.</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.averyjparker.com/2006/01/13/mondorescue-manually-restoring-from-an-afiobz2-file/" rel="bookmark" class="wherego_title">Mondorescue manually restoring from an afio.bz2 file</a></li><li><a href="http://www.averyjparker.com/2005/11/28/making-backups-simpler/" rel="bookmark" class="wherego_title">Making backups simpler</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=2630&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2010/01/25/recovering-a-split-biggiefile-from-a-mondorescue-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 Jaunty Netbook Remix on an Acer Aspire One ZG5 trackpad issues</title>
		<link>http://www.averyjparker.com/2009/06/03/ubuntu-904-jaunty-netbook-remix-on-an-acer-aspire-one-zg5-trackpad-issues/</link>
		<comments>http://www.averyjparker.com/2009/06/03/ubuntu-904-jaunty-netbook-remix-on-an-acer-aspire-one-zg5-trackpad-issues/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 15:09:59 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Software]]></category>
		<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[Tech Support]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[acer]]></category>
		<category><![CDATA[acer aspire one]]></category>
		<category><![CDATA[acer aspire one zg4]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[netbook remix]]></category>
		<category><![CDATA[trackpad problem]]></category>
		<category><![CDATA[zg4]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=2015</guid>
		<description><![CDATA[Recently I had the opportunity to work on an Acer Aspire One netbook.  It&#8217;s rare that I get the chance to work on a linux desktop system for a client.  Most of my desktop users that I support run Windows (although I primarily run linux on my machines.)  I get to do [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>Recently I had the opportunity to work on an Acer Aspire One netbook.  It&#8217;s rare that I get the chance to work on a linux desktop system for a client.  Most of my desktop users that I support run Windows (although I primarily run linux on my machines.)  I get to do a fair amount of server level work with linux variants, but this one, being a desktop install, intrigued me.</p>
<p>The issue was that the buttons on the trackpad didn&#8217;t work.  She also indicated that she had tried a usb mouse and those buttons didn&#8217;t work either.  As I looked at it, I had already spent some time browsing through bug reports getting ideas on what might be the issue.  It behaved exactly as she described and so then the real fun began.</p>
<p><span id="more-2015"></span></p>
<p>I looked at the xorg.conf file from /etc/X11/ &#8211; it looked normal (it was the default config file)  I first tried doing some edits to clearly specify the trackpad device (cursor movement with the trackpad had been working though, it was just the clicks that weren&#8217;t registering.</p>
<p>So, after making changes I restarted gdm (the greeter) ( /etc/init.d/gdm restart ) and gave a try.  Some things started working, tapping the trackpad substituted for the left click and the right click work.  The external mouse worked with both buttons.</p>
<p>So, I chipped away a bit more.  I verified that the files existed for some of the appropriate packages, some I reinstalled.  I uninstalled compiz (having read a bug report related to that) I reverted to an older version of xinput-synaptic and came back to current.  I tried mapping the mouse buttons with an .xmodmap file.</p>
<p>Nothing productive.</p>
<p>One thing that I did notice was that the right trackpad or both mouse buttons would work only when I had restarted gdm, not on a freshboot.  So, I started looking at the boot process and the output in /var/log/Xorg.0.log to see if there was anything significantly different being reported there.  Nothing useful.</p>
<p>I disabled the &#8220;dontzap&#8221; feature that&#8217;s new in jaunty.  If you read the release notes they have disabled the ability to &#8220;kill off&#8221; the graphical interface with ctl-alt-backspace&#8230; I essentially re-enabled that option so it&#8217;s quickly and easily possible to restart the gui.</p>
<p>The bottom line of what I found was this.  If you&#8217;re moving the mouse (trackpad) when gdm first starts, the mouse buttons will be usable (with the exception of the left button on the trackpad (!))  If you don&#8217;t move the mouse at the startup of gdm it get&#8217;s &#8220;stuck&#8221; in pointer mode&#8230; I can bring the cursor down over the &#8220;options&#8221; menu in the lower left corner of the greeter screen and it still holds it&#8217;s i-beam icon as though you are editing a text window, the options does not highlight on the mouseover and no right/left click/tapping will work until gdm is blown away and restarts with a ctl-alt-backspace.</p>
<p>After that everything works with the exception of the left trackpad button (although you can tap.)  I tried reversing the buttons and it&#8217;s still the one on the left that doesn&#8217;t function.</p>
<p>Wondering if I was missing something I tried an experiment.  I (using another computer) installed Jaunty 9.04 to a USB hard drive and brought it up to date with all the current updates.  I booted this usb hard drive on three or four systems and it worked marvelously (hardware detection &#8220;just worked&#8221; on each machine.)  The only one to exhibit any problems was this Acer Aspire One ZG5.  Guess what the problems were?  well&#8230;. if I didn&#8217;t move the mouse when the greeter screen first came up I wasn&#8217;t able to do any mouse clicking (the pointer seemed frozen in the i-beam cursor icon mode) and even if I did (or restarted gdm) the left button did not work.</p>
<p>I came to the conclusion that there were two different issues, one I suspected may be a software issue and an update could fix it (the initial boot problem with useless buttons.)  The second problem (left click not working) could just be a hardware issue &#8211; since it only affects the trackpad and not an external mouse.  As I think about it, I do wonder if the trackpad were faulty (left button) could it cause the other problem when it&#8217;s first initialized (?)</p>
<p>If I knew I would have access to the machine again I might have filed a bug report with Ubuntu to see if they could get someone to verify this as software issue (or not).  SInce I won&#8217;t have access to it, I wouldn&#8217;t be able to follow up with more information if they needed it, so instead of a bug report I&#8217;m posting here.</p>
<p>The only way to know for sure if it&#8217;s Ubuntu 9.04 or the netbook is to have an identical model to test, which I don&#8217;t.</p>
<p>So, does anyone out there have the same IDENTICAL model netbook &#8211; with jaunty 9.04 &#8211; are you seeing a similar problem or does it work just fine?  The updates on this machine were current as of June 1, 2009.</p>
<p>Comments are open in case anyone has some input on the issue.</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=2015&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2009/06/03/ubuntu-904-jaunty-netbook-remix-on-an-acer-aspire-one-zg5-trackpad-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zarafa Exchange Server replacement and Postfix Integration for multiple domains with unique users</title>
		<link>http://www.averyjparker.com/2009/04/27/zarafa-exchange-server-replacement-and-postfix-integration-for-multiple-domains-with-unique-users/</link>
		<comments>http://www.averyjparker.com/2009/04/27/zarafa-exchange-server-replacement-and-postfix-integration-for-multiple-domains-with-unique-users/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 01:23:54 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Software]]></category>
		<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[exchange replacement]]></category>
		<category><![CDATA[mail integration]]></category>
		<category><![CDATA[open source exchange replacement]]></category>
		<category><![CDATA[open source exchange server]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[zarafa]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=2009</guid>
		<description><![CDATA[So, I&#8217;ve spent some time recently working with Zarafa.  It&#8217;s an exchange replacement that has a completely open source version as well as a version with licenses for outlook if you want that level of integration.  It&#8217;s web interface looks good and is an improvement on Exchange server&#8217;s capabilities with a non-IE browser. [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>So, I&#8217;ve spent some time recently working with Zarafa.  It&#8217;s an exchange replacement that has a completely open source version as well as a version with licenses for outlook if you want that level of integration.  It&#8217;s web interface looks good and is an improvement on Exchange server&#8217;s capabilities with a non-IE browser.  Anyway it can install on a linux server and integrate with several different MTA&#8217;s.  Our choice was postfix since that was already installed for the purposes of processing forms on a webserver on the same host.  Outgoing mail &#8220;just worked&#8221;, but postfix needed a bit of configuration to make the incoming mail work.</p>
<p><span id="more-2009"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "6855210186";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Our system is Ubuntu 8.04 and the original postfix setup had been a system that only sends mail and doesn&#8217;t receive.  SO, instead of tinkering with the configuration files I moved them out of the way (backed them up as our working config actually.)  Then I ran dpkg-reconfigure postfix to change our operating profile to that of an internet station (meaning that we would be sending and receiving mail directly.)  This server is a <a href="http://www.averyjparker.com/slicehost-online-virtual-servers/">VPS server hosted at slicehost</a>.  Anyway, the trick was configuring postfix for delivery to zarafa.  I found a few conflicting suggestions, but finally settled on the following line being added to main.cf</p>
<p>mailbox_transport = zarafa: zarafa_destination_recipient_limit = 1</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "5441245651";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Of course, you also need to specify your domain and which domains you are receiving mail for.  In this case we were going to be receiving mail for multiple domains and the following suggested addition to master.cf wasn&#8217;t going to work for us.</p>
<p>zarafa unix &#8211; n n &#8211; 10 pipe flags= user=vmail argv=/usr/bin/zarafa-dagent ${user}</p>
<p>You see, our goal was two domains with the same email frontend &#8230;.. i.e. mail@domain1.com and mail@domain2.com to be seperate accounts.  By default the &#8220;user&#8221; string above was going to take our address and crop the email address before the @ sign as user&#8230; so both of those accounts would look the same&#8230; they would both be the user mail.</p>
<p>SO, I did a bit of digging on what variables postfix takes in it&#8217;s master.cf file.  I found a bit of advice to do a &#8220;man 8 pipe&#8221; since that&#8217;s the utility that makes postfix&#8217;s delivery happen.  So, finally I found a good reference in the pipe manual to do what I thought would work.  We could use ${recipient}  the only question was if zarafa-dagent could use that&#8230;</p>
<p>So as root I ran zarafa-dagent without options and got some good information including&#8230;.</p>
<p>-R		 Resolve the primary email address passed in <storename>, and deliver to that user. Only one of -e and -R may be specified.</p>
<p>Woohoo&#8230;</p>
<p>So, I added this line to master.cf in place of the one suggested above&#8230;</p>
<p>zarafa unix &#8211; n n &#8211; 10 pipe<br />
   flags= user=vmail argv=/usr/bin/zarafa-dagent -R ${recipient}</p>
<p>Tested and all seems to be working well.</p>
<p>So, now we have abstraction of usernames and email addresses.  You could have a username velma and the address jinkies@mydomain.com and delivery will still work.  You can also have the username scooby and address jinkies@thisotherdomain.com and they will have unique mail stores (in spite of the first part of the address being the same.)</p>
<p>There are certainly situations where you would want user@domain1.com and user@domain2.com to be the same, but this is a good fix for those situations where you want to manage discrete accounts for multiple domains.  From what I&#8217;ve seen thus far out of zarafa I&#8217;m liking it.  Our next project will likely be imap integration</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=2009&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2009/04/27/zarafa-exchange-server-replacement-and-postfix-integration-for-multiple-domains-with-unique-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Audio to PCM Wave format</title>
		<link>http://www.averyjparker.com/2008/12/01/converting-audio-to-pcm-wave-format/</link>
		<comments>http://www.averyjparker.com/2008/12/01/converting-audio-to-pcm-wave-format/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 15:57:31 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[convert to wav]]></category>
		<category><![CDATA[convert to wave]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[pcm wav]]></category>
		<category><![CDATA[pcm wave]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=1670</guid>
		<description><![CDATA[To make sure you&#8217;ve go the idea that mplayer is really a swiss army knife for media files that can do most anything.  I wanted to get a post JUST on this idea.  Any media format that mplayer recognizes it can dump the audio to the most common and readable audio format out [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>To make sure you&#8217;ve go the idea that mplayer is really a swiss army knife for media files that can do most anything.  I wanted to get a post JUST on this idea.  Any media format that mplayer recognizes it can dump the audio to the most common and readable audio format out there, the PCM Wav file.</p>
<p>Here&#8217;s how it goes:</p>
<p><span id="more-1670"></span></p>
<p>Usually this is just an intermediary step en route to another file format (mp3 for instance..)</p>
<p>Here&#8217;s a line I&#8217;ve used from a script of mine:</p>
<p>mplayer -ao pcm:file=$1_$date.wav $1.rm</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "6558276326";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>so&#8230; this calls mplayer and gives the audio output driver as the pcm output driver and the filename you can see I&#8217;ve controlled with the command switch again.  In this case I was converting from a .rm file to the wave format.  Unfortunately the rm file was not named descriptively enough for my taste, so I&#8217;ve added a variable that tags the date to the filename as well.</p>
<p>So&#8230; let&#8217;s say you run converttowav myaudio</p>
<p>Then mplayer will take the source of myaudio.rm and give you myaudio_todaysdate.wav in the nice compatible (and easily convertable) wav format.</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=1670&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2008/12/01/converting-audio-to-pcm-wave-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capturing Realmedia RM Streams to a file on Disk</title>
		<link>http://www.averyjparker.com/2008/11/24/capturing-realmedia-rm-streams-to-a-file-on-disk/</link>
		<comments>http://www.averyjparker.com/2008/11/24/capturing-realmedia-rm-streams-to-a-file-on-disk/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 15:51:01 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[capture rm]]></category>
		<category><![CDATA[capture rm stream]]></category>
		<category><![CDATA[capturing real stream]]></category>
		<category><![CDATA[saving a rm stream]]></category>
		<category><![CDATA[saving realmedia]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=1667</guid>
		<description><![CDATA[There is a lot of software out there that can capture realmedia online streams for a fee.  I&#8217;ve found a way in linux to do the same without buying third party software.
The main motivation for this is I discovered SBS (an Australian broadcaster) provides audio news programs (1 hour length) in a variety of [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>There is a lot of software out there that can capture realmedia online streams for a fee.  I&#8217;ve found a way in linux to do the same without buying third party software.</p>
<p>The main motivation for this is I discovered SBS (an Australian broadcaster) provides audio news programs (1 hour length) in a variety of different languages.  And if you didn&#8217;t know <a href="http://www.studynewlanguages.com">studying languages</a> is yet another hobby of mine.</p>
<p>The problem is their streams are realmedia and meant to be listened to online.  I&#8217;d rather listen to them using my portable mp3 player.  I&#8217;ve talked about converting rm to mp3 in a previous post&#8230; now let&#8217;s look at capturing the rm stream.</p>
<p><span id="more-1667"></span></p>
<p>Here&#8217;s all it takes to capture that realmedia file&#8230;.</p>
<p>mplayer -dumpstream -playlist http://addressto/ramgen/record/$1.rm -dumpfile $1.rm</p>
<p>In this case we use mplayer to dump the stream, we give it the address that the playlist is generated from.  Since I&#8217;m studying more than one language I pass the language to the script I&#8217;ve got this in as a variable so&#8230; getstream spanish would make $1 = spanish and the file get&#8217;s dumped to spanish.rm</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "6558276326";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=1667&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2008/11/24/capturing-realmedia-rm-streams-to-a-file-on-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MPlayer Video Stream Lagging Audio</title>
		<link>http://www.averyjparker.com/2008/11/17/mplayer-video-stream-lagging-audio/</link>
		<comments>http://www.averyjparker.com/2008/11/17/mplayer-video-stream-lagging-audio/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 15:15:10 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Software]]></category>
		<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[audio sync]]></category>
		<category><![CDATA[audio video out of sync]]></category>
		<category><![CDATA[frame dropping]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[octoshape]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=1665</guid>
		<description><![CDATA[On my (somewhat older) laptop, I&#8217;ve noticed that MPlayer sometimes gets the audio and video out of sync.  The audio is moving faster than the video.  I&#8217;ve noticed this in octoshape streaming as well as in playing standalone videos.
I discovered a quick fix to this is to use the d hotkey on the [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>On my (somewhat older) laptop, I&#8217;ve noticed that MPlayer sometimes gets the audio and video out of sync.  The audio is moving faster than the video.  I&#8217;ve noticed this in octoshape streaming as well as in playing standalone videos.</p>
<p>I discovered a quick fix to this is to use the d hotkey on the keyboard.  This toggles between frame dropping modes.  By default mplayer tries to draw every frame it receives, but toggling to either framedropping enabled or framedropping hard can help keep the video up with the audio track.  I&#8217;ve found this has made my octoshape streams usable again!  (Usually I just make use of the framedropping enabled instead of the hard setting.  (I haven&#8217;t investigated the difference between the two.)</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=1665&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2008/11/17/mplayer-video-stream-lagging-audio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux Software Raid &#8211; Replacing a Failing Drive</title>
		<link>http://www.averyjparker.com/2008/09/08/ubuntu-linux-software-raid-replacing-a-failing-drive/</link>
		<comments>http://www.averyjparker.com/2008/09/08/ubuntu-linux-software-raid-replacing-a-failing-drive/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 15:05:06 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[replacing failed raid drive]]></category>
		<category><![CDATA[software raid]]></category>
		<category><![CDATA[ubuntu raid]]></category>
		<category><![CDATA[ubuntu software raid]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=1636</guid>
		<description><![CDATA[Sometime back I setup my home server running Ubuntu Linux (6.06 &#8211; Dapper Drake LTS).  I used two pairs of drives to do raid cloning.  Two IDE drives were for the main system structure and two SATA drives for Audio/Video storage as well as CDimages and other large file sharing on the local [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>Sometime back I setup my home server running Ubuntu Linux (6.06 &#8211; Dapper Drake LTS).  I used two pairs of drives to do raid cloning.  Two IDE drives were for the main system structure and two SATA drives for Audio/Video storage as well as CDimages and other large file sharing on the local network.  Well&#8230; I noticed the hard drive light was on solid and sure enough one of the two SATA drives had failed.  (I didn&#8217;t get my status email because I&#8217;d done a network structure change and didn&#8217;t update my local mail setup&#8230;)  Anyway&#8230; replacing it was a pain in the neck only for the physical access to the box.  Everything else worked as it should.</p>
<p><span id="more-1636"></span></p>
<p>I had made a file with the contents of the partition table when I first set things up which helped&#8230;</p>
<p>So from another pc (with the new drive attached as a usb disk)  I ran&#8230;</p>
<blockquote><p>sudo sfdisk /dev/sdb < partitiontable.sda</p></blockquote>
<p>(sda was the one from the old setup that had failed.)  Then I logged in and removed the failed drive from the arrays.</p>
<blockquote><p>
sudo su<br />
mdadm /dev/md2 &#8211;fail /dev/sda6 &#8211;remove /dev/sda6<br />
mdadm /dev/md1 &#8211;fail /dev/sda5 &#8211;remove /dev/sda5<br />
mdadm /dev/md0 &#8211;fail /dev/sda1 &#8211;remove /dev/sda1
</p></blockquote>
<p> (Remember those long &#8211;&#8217;s are really a double hyphen &#8211; wordpress is funny that way and interprets them differently.)</p>
<p>I shut down the machine in question and carefully pulled it out where I could work on it.  (Those front loading hard drive trays would be REALLY nice for my home setup.)  I figured out which was sda according to the system board, disconnected it and tested the bios to make sure.  Sure enough I had pulled the correct one.</p>
<p>I shut down again and removed the old drive entirely, replacing it with the new drive and hooking up the cables.  Then I powered back up to check bios again.  All is good.  I powered things back down to put the cover on the case and move it back into it&#8217;s cubby hole.</p>
<p>All booted up just fine &#8211; doing a &#8220;cat /proc/mdstat&#8221; showed just one drive for the raid drives of md0, md1 and md2.  So, I just did the following&#8230;</p>
<blockquote><p>
mdadm /dev/md2 &#8211;add /dev/sda6<br />
mdadm /dev/md1 &#8211;add /dev/sda5<br />
mdadm /dev/md0 &#8211;add /dev/sda1
</p></blockquote>
<p>and checked &#8220;cat /proc/mdstat&#8221; again to find that they were in process of syncing and all looked healthy.  The syncing process will take a while (these are 400GB drives) especially if there&#8217;s is change to the content during this proces, but once that&#8217;s done it should be a perfectly healthy raid array again.</p>
<p>While I was at it I ordered a pair of drives to start rebuilding my desktop system with a raid array for the primary system file structure and the home partitions.  I like the redundancy that simple software raid gives.  (I&#8217;ve talked before about even adding a third drive in temporarily as a backup drive.  USB may be a bit slow for doing that frequently, but as a snapshot it&#8217;s not a bad approach from time to time.)</p>
</blockquote>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=1636&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2008/09/08/ubuntu-linux-software-raid-replacing-a-failing-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &#8211; Convert PDF to TIF</title>
		<link>http://www.averyjparker.com/2008/09/01/linux-convert-pdf-to-tif/</link>
		<comments>http://www.averyjparker.com/2008/09/01/linux-convert-pdf-to-tif/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 15:49:29 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[convert files]]></category>
		<category><![CDATA[convert pdf to tif]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux convert]]></category>
		<category><![CDATA[pdf to tif]]></category>
		<category><![CDATA[pdf2tif]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/?p=1626</guid>
		<description><![CDATA[Recently I had a request for help with some free pdf&#8217;s I&#8217;ve published elsewhere.  I wasn&#8217;t really keen to spend a lot of time for free supporting free pdfs and really just wanted to give an alternative file format.  (I suspected the pdf format may not have been one that their computer liked. [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>Recently I had a request for help with some free pdf&#8217;s I&#8217;ve published elsewhere.  I wasn&#8217;t really keen to spend a lot of time for free supporting free pdfs and really just wanted to give an alternative file format.  (I suspected the pdf format may not have been one that their computer liked.  So, I wanted to convert to a tif image as that&#8217;s something that should be universally usable.  Some quick websearching reminded me that in linux it&#8217;s a very simple conversion.  In fact, the command line program convert is all you need.</p>
<p><span id="more-1626"></span></p>
<p>It was as easy as $convert filename.pdf filename.tif</p>
<p>wow&#8230;</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5003751123450346";
google_ad_slot = "5441245651";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=1626&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2008/09/01/linux-convert-pdf-to-tif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hard drive testing utilities</title>
		<link>http://www.averyjparker.com/2007/12/07/hard-drive-testing-utilities/</link>
		<comments>http://www.averyjparker.com/2007/12/07/hard-drive-testing-utilities/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 22:44:54 +0000</pubDate>
		<dc:creator>Avery</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Data recovery]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Software]]></category>
		<category><![CDATA[Linux Tech Support]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[Mac Tech Support]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech Support]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Software]]></category>
		<category><![CDATA[Windows Tech Support]]></category>

		<guid isPermaLink="false">http://www.averyjparker.com/2007/12/07/hard-drive-testing-utilities/</guid>
		<description><![CDATA[Windows users know chkdsk, linux users know fsck&#8230; users of each MIGHT have heard of SMART.  These are different ways of TESTING hard drives.  Well, there&#8217;s also a utility called TestDisk that looks promising for recovering data&#8230; Here&#8217;s the clip from their site. &#8220;free data recovery software! It was primarily designed to help [...]]]></description>
			<content:encoded><![CDATA[<!--mfunc tagparser_cache::show_tag() --><!--/mfunc--><!-- google_ad_section_start --><p>Windows users know chkdsk, linux users know fsck&#8230; users of each MIGHT have heard of SMART.  These are different ways of TESTING hard drives.  Well, there&#8217;s also a utility called <a href="http://www.cgsecurity.org/wiki/TestDisk">TestDisk</a> that looks promising for recovering data&#8230; Here&#8217;s the clip from their site. &#8220;free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.&#8221;  It runs under a variety of OS&#8217;s and recognizes several different disk formats.</p>
<!-- google_ad_section_end --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://www.averyjparker.com/?ak_action=api_record_view&id=1579&type=feed" alt="" /><!--mfunc tagparser_cache::show_tag(1) --><!--/mfunc-->]]></content:encoded>
			<wfw:commentRss>http://www.averyjparker.com/2007/12/07/hard-drive-testing-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
