<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Undercover Tech Guy</title>
	<atom:link href="http://undercovertechguy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://undercovertechguy.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Sat, 10 Sep 2011 14:22:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='undercovertechguy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Undercover Tech Guy</title>
		<link>http://undercovertechguy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://undercovertechguy.wordpress.com/osd.xml" title="Undercover Tech Guy" />
	<atom:link rel='hub' href='http://undercovertechguy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A tip about tweeting from a PHP app using OAuth</title>
		<link>http://undercovertechguy.wordpress.com/2011/09/10/a-tip-about-tweeting-from-a-php-app-using-oauth/</link>
		<comments>http://undercovertechguy.wordpress.com/2011/09/10/a-tip-about-tweeting-from-a-php-app-using-oauth/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 14:22:45 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=153</guid>
		<description><![CDATA[I followed this excellent tutorial by Adam Green; http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php but for the life of me I couldn&#8217;t get it to work; I kept getting a 401 return code saying that my app did not have write access. But, I had given it write access so&#8230;what happened!? Actually, the cause and effect, and subsequent fix, was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=153&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I followed this excellent tutorial by Adam Green;</p>
<p><a title="Hello Twitter" href="http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php/" target="_blank">http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php</a></p>
<p>but for the life of me I couldn&#8217;t get it to work; I kept getting a 401 return code saying that my app did not have write access.<br />
But, I had given it write access so&#8230;what happened!?</p>
<p>Actually, the cause and effect, and subsequent fix, was simple but not entirely obvious;<br />
I had created the app as a READ ONLY app to start with and generated all the codes for it.<br />
I then had realised my mistake and set the app permissions to Read &amp; Write. The dev.twitter.com page for my subsequently showed me that me that the app now had the required access.<br />
Still, I got a 401 error back.</p>
<p>I had <b>not</b>, however, recreated my access tokens (there&#8217;s a button for this at the bottom of the page.)<br />
Once I did this the app worked.</p>
<p>So; the confusingly named &#8220;Access Token&#8221; and &#8220;Access Token Secret&#8221; need to be regenerated if you change the permissions for your app. This is not obvious to me since I would expect these tokens to encode the identiy of the app and therefore allow Twitter to access its permissions through the back-end&#8230;<br />
But there you go, at least now it works.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=153&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2011/09/10/a-tip-about-tweeting-from-a-php-app-using-oauth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>0x800F0A12 error when installing Win 7 SP 1 on dual boot machine</title>
		<link>http://undercovertechguy.wordpress.com/2011/08/16/0x800f0a12-error-when-installing-win-7-sp-1-on-dual-boot-machine/</link>
		<comments>http://undercovertechguy.wordpress.com/2011/08/16/0x800f0a12-error-when-installing-win-7-sp-1-on-dual-boot-machine/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 21:30:03 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=147</guid>
		<description><![CDATA[Here&#8217;s what I&#8217;ve got I have a machine with two hard disks; on one there&#8217;s a Fedora (15) install and on the other Windows 7 I&#8217;ve got Grub set up to allow me to boot from either And here&#8217;s the problem The other day I fired up my Windows 7 install for the first time [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=147&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div><strong>Here&#8217;s what I&#8217;ve got</strong></div>
<ul>
<li>I have a machine with two hard disks; on one there&#8217;s a Fedora (15) install and on the other Windows 7</li>
<li>I&#8217;ve got Grub set up to allow me to boot from either</li>
</ul>
<div><strong>And here&#8217;s the problem</strong></div>
<div>
<ul>
<li>The other day I fired up my Windows 7 install for the first time in a loong time and it wanted to install Service Pack 1 (SP1)</li>
<li><span style="color:#ff0000;">The install failed with nothing but an &#8220;0x800F0A12&#8243; message&#8230;not very helpful</span></li>
</ul>
<div><strong>The fix</strong></div>
<div>The problem (as I found out from <a title="Windows 7 SP1 install error" href="http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_update/error-0x800f0a12-when-attempting-to-install/a5801526-8b79-4431-b407-5a510e27cc5e" target="_blank">here</a>) is that the service pack install requires the <em>active</em> boot partition to be the one with the Windows 7 install on. In my set up that partition is where the Grub loader lives so when the install checks the active partition it fails.</div>
<div>The article I&#8217;ve linked to outlines a solution involving the use of the <em>Disk Management</em> tool and<em> DISKPART</em> utility but there&#8217;s a simpler way to do this (at least in my situation).</div>
</div>
<div>
<ul>
<li>Open the Disk Management tool (Computer-&gt;Manage-&gt;Disk Management)</li>
<li>Select the Disk/Partition on which your Windows install resides</li>
<ul>
<li>In my case this was on Disk 1, Disk 0 was where the Grub loader and Fedora installs lived.</li>
<li>NOTE: The Disk Management tool will show which partition is &#8220;Active&#8221; and, since you&#8217;ve got the error, that will not be the one where Windows 7 lives.<span style="color:#ff0000;"> Check this</span>: if your Windows 7 partition is Active and you still get the error then there&#8217;s something else going on&#8230;</li>
</ul>
<li>Mark it as &#8220;active&#8221; by right clicking on it and selecting &#8220;<span style="color:#3366ff;">Mark Partition as Active</span>&#8220;</li>
<li>You&#8217;re done</li>
</ul>
<div>You will now have TWO (2) partitions active; one which is the one you had from before and one which is where Windows 7 lives. It doesn&#8217;t matter if you&#8217;ve got two, all the &#8220;marking as active&#8221; operation does is to inform the firmware that the partition <strong>can</strong> be booted from, not that it <strong>will</strong>&#8230;</div>
</div>
<div>You can now proceed to install the Service Pack 1.</div>
<div>In my case it all worked.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=147&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2011/08/16/0x800f0a12-error-when-installing-win-7-sp-1-on-dual-boot-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>Stumbling through getting an OpenMPI app compiling and linking with (and without) NetBeans on Fedora</title>
		<link>http://undercovertechguy.wordpress.com/2011/04/04/stumbling-through-getting-an-openmpi-app-compiling-and-linking-with-and-without-netbeans-on-fedora/</link>
		<comments>http://undercovertechguy.wordpress.com/2011/04/04/stumbling-through-getting-an-openmpi-app-compiling-and-linking-with-and-without-netbeans-on-fedora/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 19:06:21 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/2011/04/04/stumbling-through-getting-an-openmpi-app-compiling-and-linking-with-and-without-netbeans-on-fedora/</guid>
		<description><![CDATA[System Fedora 14 Netbeans 6.9 + g++ 4.5.1 and MPICH2 Problem I wanted to play around with OpenMP and C++ and I wanted to use the NetBeans IDE but had no luck compiling and/or linking. Naively I did this: installed&#160;MPICH2 packages using the package manager&#160;(I tried first with yum but that didn&#8217;t work at all&#8230;could [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=144&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>System</strong></p>
<p>Fedora 14<br />
Netbeans 6.9 + g++ 4.5.1 and MPICH2</p>
<p><strong>Problem</strong></p>
<p>I wanted to play around with OpenMP and C++ and I wanted to use the NetBeans IDE but had no luck compiling and/or linking.</p>
<p>Naively I did this:</p>
<ul>
<li>installed&nbsp;<strong>MPICH2</strong> packages <em>using the package manager</em>&nbsp;(I tried first with yum but that didn&#8217;t work at all&#8230;could be a red herring but be warned, see end notes.)&nbsp;</li>
<li>openend up NetBeans, created a C++ app project and wrote a little Hello World program with a simple <strong>#pragma omp parallel</strong> section</li>
<li>I hit compile and&#8230;naturally, it just compiles a standard single-threaded app (ignoring the unrecognized pragma)</li>
<li>So, I tried to compile the program on the command line using the <strong>mpic++</strong>&nbsp;compiler/linker wrapper which is installed with openmpi-devel
<ul>
<li>It failed with the errors about not finding <strong>-lmpichcxx, -lpmipch and -lopa</strong>&nbsp;(again, see end notes)</li>
</ul>
</li>
</ul>
<p><strong>Solution</strong></p>
<ol>
<li><strong>mpic++</strong>&nbsp;for some reason or other produces the <strong>wrong</strong> (???) command line;
<ol>
<li>it typically looks like this:&nbsp;
<ol>
<li><em><strong>c++ -m32 -O2 -Wl,-z,noexecstack -I/usr/include/mpich2-i386 -L/usr/lib/mpich2/lib -L/usr/lib/mpich2/lib -lmpichcxx -lmpich -lopa -lpthread -lrt</strong></em></li>
</ol>
</li>
<li>but it should look like this (highlighting changes from above only):
<ol>
<li>c++&nbsp;<strong>-fopenmp</strong> -m32 -O2 -Wl,-z,noexecstack -I/usr/include/mpich2-i386 -L/usr/lib/mpich2/lib -L/usr/lib/mpich2/lib -lmpichcxx -lmpich <strong>-lgomp</strong> -lpthread -lrt</li>
</ol>
</li>
</ol>
</li>
<li>Therefore, in the properties of your NetBeans project, under <strong>C++ Compiler::Additional Options</strong> you set the command line to
<ol>
<li>&nbsp;<strong>-fopenmp</strong>&nbsp;-m32 -O2 -Wl,-z,noexecstack -I/usr/include/mpich2-i386 -L/usr/lib/mpich2/lib -L/usr/lib/mpich2/lib -lmpichcxx -lmpich&nbsp;<strong>-lgomp</strong>&nbsp;-lpthread -lrt</li>
<li>Alternatively you can of course use that as-is on the command line</li>
</ol>
</li>
<li>..and compile&#8230;and it runs, and according to my perf monitor it uses more than one thread. Perfect.</li>
</ol>
<p><strong>Notes</strong></p>
<p><strong>libgomp</strong> is the GNU OpenMP library and it is part of the gcc 4.5.x install (and possibly earlier, but I haven&#8217;t checked/tested this). I don&#8217;t know what &#8220;libopa&#8221; was/is (can&#8217;t find anything about it) so it might even be a typo (although this would be horrendous and hopefully not the case) &#8211; If anybody reading this can shed some light&#8230;.?</p>
<p>I tried with <strong>c++</strong> and <strong>g++</strong> both in the project settings in NetBeans but it doesn&#8217;t matter which one you use, as long as the command line is correct as in step 2 above.</p>
<p>The issue alluded to concerning installing OpenMPI using <strong>Yum</strong>;&nbsp;I did this first <strong>#yum install openmpi openmpi-devel</strong> but it <em>seems</em> that this, although it installed the libraries, did not create appropriate symlinks to them so that <strong>ld</strong> could find them (see note about ld failing at the top of this post.)&nbsp;I therefore manually created these and it fixed the linking, but as I subsequently did an install of MPICH2 using the package manager <em>before</em> I got the app running properly I can&#8217;t verify exactly if this had a positive effect overall or if it was a red herring.&nbsp;If anybody can recreate this and confirm then that would be great.</p>
<p>Btw, here are some great links for some OpenMP examples and tutorials:</p>
<p><a href="http://www.codeproject.com/KB/library/Parallel_Processing.aspx">http://www.codeproject.com/KB/library/Parallel_Processing.aspx</a></p>
<p><a href="http://bisqwit.iki.fi/story/howto/openmp/#ExampleCalculatingTheMandelbrotFractalInParallel">http://bisqwit.iki.fi/story/howto/openmp/#ExampleCalculatingTheMandelbrotFractalInParallel</a></p>
<p><a href="https://computing.llnl.gov/tutorials/openMP/#CFormat">https://computing.llnl.gov/tutorials/openMP/#CFormat</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=144&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2011/04/04/stumbling-through-getting-an-openmpi-app-compiling-and-linking-with-and-without-netbeans-on-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>Network problem when using VirtualBox HD&#8217;s between machines</title>
		<link>http://undercovertechguy.wordpress.com/2011/02/14/network-problem-when-using-virtualbox-hds-between-machines/</link>
		<comments>http://undercovertechguy.wordpress.com/2011/02/14/network-problem-when-using-virtualbox-hds-between-machines/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 18:58:34 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=131</guid>
		<description><![CDATA[Problem &#8211; Setting up a new VirtualBox machine using a cloned VDI can (will?) cause problems with Linux guest OS&#8217;es where the network device fails to initialize resulting in no network connection. The problem is caused by VBox having hard coded the MAC address first assigned to the guest (when the VDI was first created) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=131&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Problem<br />
 &#8211; Setting up a new VirtualBox machine using a cloned VDI can (will?) cause problems with Linux guest OS&#8217;es where the network device fails to initialize resulting in no network connection. The problem is caused by VBox having hard coded the MAC address first assigned to the guest (when the VDI was first created) in &#8220;/etc/udev/rules.d/70-persistent-net.rules&#8221;<br />
When trying to run the guest with a new machine (from a different VBox instance for example) it mismatches the MAC address and ethX fails to initialize. Trying to &#8220;ifup&#8221; also fails. </p>
<p>Solution<br />
 &#8211; Take note of the MAC address first assigned by VBox when the VDI and machine is first created and then, for each new machine using that VDI, go to Settings::Network::Advanced and type the MAC address directly into the MAC field. </p>
<p>UPDATE: If you&#8217;ve got a VDI that you move around to multiple machines (as I do) and you create new virtual machines to use it with then you want to make sure that each of these new ones use the correct MAC address also, of course, otherwise you have no network. Just create a new machine using said VDI and fire it up. If it&#8217;s a Windows machine then you can use <em>ipconfig /all</em> to get the MAC address, otherwise, for Linux, you can use <em>ifconfig</em> <em>or</em> alternatively you can just look at the MAC address setting for eth0 in the <em>/etc/udev/rules.d/70-persistent-net.rules</em> file (there will be lines in there that look something like this:<br />
<code># PCI device 0x10b7:0x9200 (3c59x) (custom name provided by external tool)<br />
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",<br />
ATTR{address}=="XX:YY:ZZ:UU:VV:WW", ATTR{type}=="1", NAME="eth0"</code></p>
<p>and it&#8217;s the <code>ATTR{address}</code> field that stores the MAC address.)</p>
<p>Notes<br />
 &#8211; I ran into this because I share VDIs between different machines. I would bring the VDI (for an Ubuntu install for example) to a different laptop and set up a new machine in VirtualBox, using the VDI which I store on a USB drive. It would run but the network card would fail to initialize and running ifconfig would just show me the lo (loop back) device being active. Trying to ifup eth0 just threw up &#8220;device not found&#8221; errors. At first I hand edited the rules file but then I realized that the simplest (and perhaps most obvious) solution was to just assign the same MAC address to all the new machines myself. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=131&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2011/02/14/network-problem-when-using-virtualbox-hds-between-machines/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>Growing a VirtualBox VDI is easy&#8230;</title>
		<link>http://undercovertechguy.wordpress.com/2010/10/21/growing-a-virtualbox-vdi-is-easy/</link>
		<comments>http://undercovertechguy.wordpress.com/2010/10/21/growing-a-virtualbox-vdi-is-easy/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 18:26:03 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=65</guid>
		<description><![CDATA[I use VirtualBox for lots of things, not the least to be able to use Microsoft Office for Windows on my work laptop, which is a Mac. Bless Office for the Mac but it sucks and I really need Excel to work with VB and the Data Analysis add-on&#8230; However, I digress. As I installed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=65&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I use VirtualBox for lots of things, not the least to be able to use Microsoft Office for Windows on my work laptop, which is a Mac. Bless Office for the Mac but it sucks and I really need Excel to work with VB and the Data Analysis add-on&#8230;</p>
<p>However, I digress. As I installed more and more apps into my Win7 Virtual Machine I started running out of disk space so here follows a brief explanation of what I did (and do) when I need it (the VDI&#8230;) to grow. (Note that I didn&#8217;t originally create it using the  &#8221;dynamically expanding storage&#8221; option in VBox and if I had I might not be in this predicament but there you go.)</p>
<p>So;</p>
<ol>
<li>Create a new harddrive using the<strong> Virtual Media Manager</strong> in VBox and make sure it&#8217;s the size you want
<ol>
<li><strong>NOTE</strong>: Again I didn&#8217;t create the new disk as dynamic, but rather as <strong>static</strong>&#8230;I don&#8217;t know if the following steps would work if it was dynamic (somehow I doubt it but if you try then please let me know how it went&#8230;)</li>
</ol>
</li>
<li><strong>Release</strong> and <strong>Remove</strong> your old harddrive from VBox&#8217; grasp using the Virtual Media Manager;
<ol>
<li>You have to do this otherwise the next step will fail. All you need to do is to release it, then remove it and <span style="color:#ff0000;"><strong>REMEMBER</strong></span> to &#8220;Keep&#8221; the hard disk image when you do that!</li>
</ol>
</li>
<li><strong>Clone</strong> your old (and smaller) VDI into the new (and larger) one like so using the VBox command line tool:</li>
</ol>
<pre style="padding-left:150px;"><strong>VBoxManage clonehd --existing OLD.vdi NEW.vdi</strong></pre>
<ol start="4">
<li>Now go back into Virtual Media Manager and add the NEW.vdi drive</li>
<li>In the settings for your virtual machine (the one that previously used the OLD.vdi) you change it to use NEW.vdi</li>
<li><strong>Download</strong><a title="sysrescuecd" href="http://www.sysresccd.org/Download" target="_blank">systemrescuecd.iso</a> (or any LiveCD with a Linux Distro and <strong>GParted</strong> on it. The remaining steps assume you can run GParted)</li>
<li><strong>Attach</strong> the LiveCD to your virtual machine so that it will be booted when it starts</li>
<li>Boot your virtual machine&#8230;</li>
<li><strong>Run GParted;</strong>
<ol>
<li>The virtual machine&#8217;s hard disk will be allocated into the &#8220;old&#8221; partition (which is the smaller size) and an extra, unallocated, partition which is whatever extra space you now have in your new and (larger) hard disk</li>
</ol>
</li>
<li><strong>Resize</strong> the smaller partition (old) to take up all of the (new) disk
<ol>
<li><strong>NOTE:</strong> this assumes your guest OS uses a file system that GParted understands. In my case this was NTFS (Windows) but if you are attempting this to grow something else, and utterly esoteric, I can&#8217;t guarantee it will work. However, it would have to be <em>very</em> esoteric&#8230;</li>
</ol>
</li>
<li>Shut down the virtual machine</li>
<li><strong>Release</strong> the ISO (sysrescd.iso in my example)</li>
<li><strong>Reboot</strong>&#8230;.</li>
<li>Presto, you&#8217;re done! The machine should boot up happily and Windows will tell you that the C: drive is whatever size NEW.VDI was created as</li>
</ol>
<p>Certainly beats using CloneZilla to try and save off the old image and restore it. I tried that too and it didn&#8217;t work but even if it did this method seems simpler.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=65&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2010/10/21/growing-a-virtualbox-vdi-is-easy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing &#8220;Client &#8216;foo&#8217; can only be used from host &#8216;bar.local&#8217; problem on Mac</title>
		<link>http://undercovertechguy.wordpress.com/2010/09/09/fixing-client-foo-can-only-be-used-from-host-bar-local-problem-on-mac/</link>
		<comments>http://undercovertechguy.wordpress.com/2010/09/09/fixing-client-foo-can-only-be-used-from-host-bar-local-problem-on-mac/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 13:54:03 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=62</guid>
		<description><![CDATA[Quick problem fix; there are some strange problems with P4V on Mac OS X which causes a spurious change to the host name in client specifications; everything works fine until one day you fire up P4v and get the error &#8220;Client &#8216;foo&#8217; can only be used from host &#8216;bar.local&#8221;&#8230;.I&#8217;ve found a couple of references to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=62&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quick problem fix; there are some strange problems with P4V on Mac OS X which causes a spurious change to the host name in client specifications; everything works fine until one day you fire up P4v and get the error &#8220;Client &#8216;foo&#8217; can only be used from host &#8216;bar.local&#8221;&#8230;.I&#8217;ve found a couple of references to this on various fora but nothing that seems to solve it directly. NOTE: I run P4 locally on my machine and only use it for my own (local) revision control. As I mention below I doubt if this problem occurs if you&#8217;re running P4 on a proper networked server&#8230;.</p>
<p>Anyway, I have a fix that works for me and it&#8217;s simple; run <strong>p4</strong> to edit your client spec (&#8216;foo&#8217; in my example) and remove the line containing &#8216;<strong>Host</strong>&#8216;&#8230;That line restricts access to a given host and is the one that seems to get &#8220;creatively altered&#8221; somehow to add a &#8220;.local&#8221; extension to it. Remove this restriction and all works.</p>
<p>HOWEVER: this fix assumes you don&#8217;t <em>need</em> host restriction which you might, of course. I suspect it might not be a problem for you anyway then since you&#8217;ll be using something like a properly resolved IP or network name&#8230;so there.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=62&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2010/09/09/fixing-client-foo-can-only-be-used-from-host-bar-local-problem-on-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>installing msttcorefonts on Fedora 13 (fixing Wine problem)</title>
		<link>http://undercovertechguy.wordpress.com/2010/08/20/installing-msttcorefonts-on-fedora-13-fixing-wine-problem/</link>
		<comments>http://undercovertechguy.wordpress.com/2010/08/20/installing-msttcorefonts-on-fedora-13-fixing-wine-problem/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 21:32:20 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=52</guid>
		<description><![CDATA[I had to install msttcorefonts (the Microsoft TTF fonts used by most windows programs) to be able to run Wine in my Fedora 13 install. It was pretty clear that the fonts were missing; all Windows apps I tried to run, including the Wine config tool, were unusable with all text garbled. To fix this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=52&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">I had to install msttcorefonts (the Microsoft TTF fonts used by <em>most</em> windows programs) to be able to run Wine in my Fedora 13 install. It was pretty clear that the fonts were missing; all Windows apps I tried to run, including the Wine config tool, were unusable with all text garbled.</div>
<div>To fix this I had to install the core fonts and as this was a (somewhat) non-trivial task I have decided to document it here:</div>
<div>Fundamentally I followed the steps on <a href="http://benperove.com/howto/install-microsoft-truetype-fonts-in-fedora-and-ubuntu/" target="_blank">Benprove.com</a> but had to do make some modifications to make it work.</div>
<div>Firstly I &#8220;su -&#8221;&#8216;ed to get root access.</div>
<div>Then;</div>
<div>
<ol>
<li><strong>cd /tmp</strong> or somewhere else convenient&#8230;</li>
<li>Download font spec file for the rpm build process (2.0-1 at the time of writing):
<ol>
<li><strong>wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec</strong></li>
</ol>
</li>
<li>Install rpm-build and cabextract:
<ol>
<li><strong>yum install rpm-build cabextract</strong></li>
</ol>
</li>
<li>Install ttmkfdir (required to build usable font files from TTF files):
<ol>
<li><strong>yum install ttmkfdir</strong></li>
</ol>
</li>
<li>Now build the RPM package from the spec file:
<ol>
<li><strong>rpmbuild -ba msttcorefonts-2.0-1.spec</strong></li>
</ol>
</li>
<li>Install <em>chkfontpath</em> (a util to configure X server font paths apparently)&#8230;and <em>xfs</em> which is a deamon that serves fonts to X server clients:
<ol>
<li>Get chkfontpath (look for latest version if you do this):
<ol>
<li><strong>wget </strong><strong>ftp://ftp.pbone.net/mirror/atrpms.net/f13-i386/atrpms/stable/chkfontpath-1.10.1-2.fc13.i686.rpm</strong></li>
</ol>
</li>
<li>Get xfs:
<ol>
<li><strong>yum install xfs</strong></li>
</ol>
</li>
<li>Build chkfontpath:
<ol>
<li><strong>rpm -ivh </strong><strong>chkfontpath-1.10.1-2.fc13.i686.rpm</strong></li>
</ol>
</li>
</ol>
</li>
<li>Disable GPG (signature) checking in the yum config file so open <strong>/etc/yum.conf</strong> in your favourite editor, look for the line &#8220;gpgcheck=1&#8243; in the &#8220;[main]&#8221; section and change it to &#8220;gpgcheck=0&#8243;. Save the file.</li>
<li>Now you can FINALLY install the fonts themselves from the RPM:
<ol>
<li><strong>yum localinstall  /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm</strong></li>
</ol>
</li>
<li><span style="color:#ff0000;"><strong>Clean up by re-enabling gpg check in /etc/yum.conf (DON&#8217;T FORGET THIS!)</strong></span></li>
<li>Log-out and log back in&#8230;</li>
</ol>
</div>
<p>And that was it; Wine is now usable.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=52&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2010/08/20/installing-msttcorefonts-on-fedora-13-fixing-wine-problem/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>rsync backup between a Synology DS207+ and a very big external drive&#8230;</title>
		<link>http://undercovertechguy.wordpress.com/2010/07/06/backup-between-a-synology-ds207-and-a-very-big-external-drive/</link>
		<comments>http://undercovertechguy.wordpress.com/2010/07/06/backup-between-a-synology-ds207-and-a-very-big-external-drive/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 21:23:43 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=41</guid>
		<description><![CDATA[There are some discussions on various fora concerning problems getting external (USB) drives working reliably with some of the Synology DiskStation products. Well, I&#8217;ve got a DS207+ and I&#8217;ve got a FreeCom XS 2TB drive and I&#8217;ve got some problems with it. Basically, with some external drives (my FreeCom one inclusive), when you try to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=41&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are some discussions on various fora concerning problems getting external (USB) drives working reliably with some of the Synology DiskStation products. Well, I&#8217;ve got a DS207+ and I&#8217;ve got a FreeCom XS 2TB drive and I&#8217;ve got some problems with it. Basically, with some external drives (my FreeCom one inclusive), when you try to back up large amounts of data to it (using the DSM interface) &#8211; the drive eventually is ejected and the backup fails. The bigger the job the more likely the ejection&#8230;<br />
I will not speculate as to the cause of this but suffice to say that it was a major show stopper for me when I wanted to back up about 630Gigs of data from the DS to my new drive.</p>
<p>After much trying and testing I think I&#8217;ve finally found a solution that at least seems <em>relatively</em> stable. It involves using rsync directly from a telnet or ssh log-in on the DS to do the backing up.</p>
<p>Here&#8217;s what I&#8217;ve done:</p>
<ul>
<li>Formatted my 2TB drive to the <a href="http://en.wikipedia.org/wiki/Ext3" target="_blank">EXT3</a> linux file format. I tried FAT32 and I tried NTFS but permission problems prevailed. EXT3 seems to work best with the 207+ at least</li>
<li>logged in to the DS using ssh and&#8230;</li>
<li>..ran this <strong>first</strong> just to get the whole directory structure mirrored (this took a LONG time with a couple of restarts, hence the &#8220;ignore-existing&#8221; flag&#8230;)
<ul>
<li><strong>rsync -rv &#8211;progress &#8211;ignore-existing /source/on/DS/  /dest/on/USB/drive</strong></li>
</ul>
</li>
<li>..thereafter, whenever I&#8217;ve backed up from my other machines to the DS or anything else has changed, I run this to update the external drive
<ul>
<li><strong>rsync -rvu &#8211;progress  /source/on/DS/  /dest/on/USB/drive</strong></li>
</ul>
</li>
</ul>
<p>These things mostly work and are stable (sometimes the drive mysteriously ejects but it seems to do less so than if I try to use the DSM interface)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=41&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2010/07/06/backup-between-a-synology-ds207-and-a-very-big-external-drive/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>Permission denied: rsync backup from my Fedora box to my DS207+ (DSM 2.3) NAS&#8230;.</title>
		<link>http://undercovertechguy.wordpress.com/2010/06/17/rsync-backup-from-my-fedora-box-to-my-ds207-nas-privileged-voes/</link>
		<comments>http://undercovertechguy.wordpress.com/2010/06/17/rsync-backup-from-my-fedora-box-to-my-ds207-nas-privileged-voes/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 17:19:33 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=28</guid>
		<description><![CDATA[I&#8217;ve got a NAS that I&#8217;m very happy with; the DS207+ from Synology. I back up my wife&#8217;s massive Photoshop and Ilustrator files from her Mac without problems (using Superduper) &#8211; however, backing up stuff from my Linux box (Fedora) has turned out to be a little bit more tricky. I might have set up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=28&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a NAS that I&#8217;m very happy with; the DS207+ from Synology. I back up my wife&#8217;s massive Photoshop and Ilustrator files from her Mac without problems (using <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html" target="_blank">Superduper</a>) &#8211; however, backing up stuff from my Linux box (Fedora) has turned out to be a little bit more tricky. I might have set up the DS207+ wrongly with respect to the users, groups and privileges from the start (I&#8217;ve had the box longer than I&#8217;ve had Linux) but regardless of what the reason is the practical problem is that trying to back up to the server &#8211; using <a href="http://live.gnome.org/DejaDup">DejaDup</a> or grsync (can be found in the standard repositories both for Ubuntu and Fedora) &#8211; fails with &#8220;access permitted&#8221; problems.</p>
<p>I&#8217;ve tried to rsync using the server&#8217;s IP address;<br />
<code><br />
192.168.0.193:/volume1/Jarl/backup<br />
</code><br />
and I&#8217;ve tried to use a mount point after adding a cifs mount statement to my fstab file:<br />
<code><br />
//192.168.0.193/Jarl /mnt/ds_jarl cifs credentials=/etc/.ds_credentials,_netdev 0 0<br />
</code></p>
<p>To no avail and still I get problems with rsync throwing up &#8220;Permission denied (13)&#8221; errors when it tries to create (or delete) directories.</p>
<p>From what I&#8217;ve been able to gleam from various fora there seems to be an issue that quite a few people have been struggling with in one form or other. If this is related to a subtle difference in the use of CIFS or Samba I don&#8217;t know but the bottom line is that it doesn&#8217;t work&#8230;for me at least.</p>
<p>Anyway, here be what I did to make this work for me. It might not work for you but hopefully it will give you a possible avenue to try out, should you have problems getting rsync to work with your DS207+.</p>
<ul>
<li>Firstly I followed the instructions <a href="http://techgage.com/article/backing_up_your_linux/4" target="_blank">here</a> to create an <em>ssh key file</em>. I subsequently copied one into my<strong> /home/jarl/.ssh</strong> folder (had to create it first) as per instructions. I also copied it over to a new <strong>/homes/admin/.ssh</strong> folder on the DS207+ (simply using the File Station.) Following that I could ssh in without entering a password <strong>BUT</strong> as opposed to what the instructions on said web site says I had to specify that I was the &#8220;admin&#8221; user for this to work. I believe this has something to do with the limitations on who can ssh into the DS207+. In short, the ssh line to log in had to be this:
<ul>
<li><code>ssh -l admin -i /home/jarl/.ssh/rsync-key 192.168.0.193</code></li>
<li>NOTE: the use of &#8220;-l admin&#8221; here!</li>
</ul>
</li>
<li>Next I could compose the full rsync command line and instruct it to use ssh (as admin!) to connect to my NAS and do it&#8217;s thing:
<ul>
<li><code>rsync -rv -o -c -z -e ssh -l admin -i /home/jarl/.ssh/rsync-key 192.168.0.193:/volume1/Jarl/Backup /home/jarl/</code></li>
<li>NOTE: I composed the whole command line using grsync and just added the -e ssh&#8230; part manually</li>
</ul>
</li>
</ul>
<p>This works fine now, although all the files sync&#8217;d up are owned by &#8220;admin&#8221; of course&#8230; </p>
<p>I <strong>will</strong> try to make this work for the standard user as well; it makes no sense that you should <em>have</em>  to be admin to make this work..!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=28&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2010/06/17/rsync-backup-from-my-fedora-box-to-my-ds207-nas-privileged-voes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
		<item>
		<title>A very cool blog indeed: Linux Admin Notes</title>
		<link>http://undercovertechguy.wordpress.com/2010/06/05/a-very-cool-blog-indeed-linux-admin-notes/</link>
		<comments>http://undercovertechguy.wordpress.com/2010/06/05/a-very-cool-blog-indeed-linux-admin-notes/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 20:41:29 +0000</pubDate>
		<dc:creator>jarlostensen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://undercovertechguy.wordpress.com/?p=3</guid>
		<description><![CDATA[I was looking for a code snippets solution for Linux and ended up here: http://linuxconfig.wordpress.com/ &#8211; it&#8217;s a great blog with lots of different snippets of code, shell commands and more for Linux. A gold mine.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=3&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking for a code snippets solution for Linux and ended up here: <a href="http://linuxconfig.wordpress.com/">http://linuxconfig.wordpress.com/</a> &#8211; it&#8217;s a great blog with lots of different snippets of code, shell commands and more for Linux. A gold mine. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/undercovertechguy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/undercovertechguy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/undercovertechguy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/undercovertechguy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/undercovertechguy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/undercovertechguy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/undercovertechguy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/undercovertechguy.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=undercovertechguy.wordpress.com&amp;blog=14014458&amp;post=3&amp;subd=undercovertechguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://undercovertechguy.wordpress.com/2010/06/05/a-very-cool-blog-indeed-linux-admin-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dcfbb017464700c2a06e42b690993e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jarlostensen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
