<?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>Stampy</title>
	<atom:link href="http://stampy.net/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://stampy.net/blog</link>
	<description>How did I do that?</description>
	<lastBuildDate>Fri, 04 Dec 2009 22:22:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>for loop for scping files to a list of servers</title>
		<link>http://stampy.net/blog/?p=61</link>
		<comments>http://stampy.net/blog/?p=61#comments</comments>
		<pubDate>Fri, 04 Dec 2009 22:06:04 +0000</pubDate>
		<dc:creator>jgolden</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash for]]></category>

		<guid isPermaLink="false">http://stampy.net/blog/?p=61</guid>
		<description><![CDATA[This little command line statement will copy a folder of files to the list (space separated) of hosts in your client list.
for i in `cat client_list.txt`;do `scp -r directory root@$i:~/`;done
You also need to load keychain on your desktop and have your ssh key loaded on the server to avoid typing your password for each host.
You [...]]]></description>
			<content:encoded><![CDATA[<p>This little command line statement will copy a folder of files to the list (space separated) of hosts in your client list.</p>
<p>for i in `cat client_list.txt`;do `scp -r directory root@$i:~/`;done</p>
<p>You also need to load keychain on your desktop and have your ssh key loaded on the server to avoid typing your password for each host.</p>
<p>You can also run a single command on each server like this example using df -h:</p>
<p>for i in `cat client_list.txt`;do echo $i; ssh root@$i &#8216;df -h&#8217;;done</p>
]]></content:encoded>
			<wfw:commentRss>http://stampy.net/blog/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac: Switch from ulgy 3D dock to cool 2D one</title>
		<link>http://stampy.net/blog/?p=60</link>
		<comments>http://stampy.net/blog/?p=60#comments</comments>
		<pubDate>Sat, 28 Nov 2009 06:35:02 +0000</pubDate>
		<dc:creator>jgolden</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://stampy.net/blog/?p=60</guid>
		<description><![CDATA[Just use the command:
defaults write com.apple.dock no-glass -boolean YES; killall Dock
]]></description>
			<content:encoded><![CDATA[<p>Just use the command:</p>
<p>defaults write com.apple.dock no-glass -boolean YES; killall Dock</p>
]]></content:encoded>
			<wfw:commentRss>http://stampy.net/blog/?feed=rss2&amp;p=60</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wuff &#8212;- Wuff!!!</title>
		<link>http://stampy.net/blog/?p=47</link>
		<comments>http://stampy.net/blog/?p=47#comments</comments>
		<pubDate>Fri, 27 Feb 2009 18:28:16 +0000</pubDate>
		<dc:creator>jgolden</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://stampy.net/blog/?p=47</guid>
		<description><![CDATA[When using a mac to connect to screen running on my linux box, I would getÂ  message: &#8220;Wuff &#8212;- Wuff!!!&#8221; whenever I used the backspace (delete) key.
This is super annoying, here is the fix:
Add:
alias screen='TERM=screen screen'

to the .bashrc of the screen user on your linux box.
]]></description>
			<content:encoded><![CDATA[<p>When using a mac to connect to screen running on my linux box, I would getÂ  message: &#8220;Wuff &#8212;- Wuff!!!&#8221; whenever I used the backspace (delete) key.</p>
<p>This is super annoying, here is the fix:</p>
<p>Add:</p>
<pre style="padding-left: 30px;"><code>alias screen='TERM=screen screen'
</code></pre>
<p>to the .bashrc of the screen user on your linux box.</p>
]]></content:encoded>
			<wfw:commentRss>http://stampy.net/blog/?feed=rss2&amp;p=47</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create Western Digital Data Lifeguard Diagnostic bootable USB drive in Ubuntu Linux</title>
		<link>http://stampy.net/blog/?p=9</link>
		<comments>http://stampy.net/blog/?p=9#comments</comments>
		<pubDate>Thu, 19 Feb 2009 05:42:40 +0000</pubDate>
		<dc:creator>jgolden</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[freedos]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[western digital]]></category>

		<guid isPermaLink="false">http://stampy.net/blog/?p=9</guid>
		<description><![CDATA[I am building a new software linux RAID array consisting of 4 1TB Western Digital green drives to replace my aging array of 6 200GB maxtor drives that are quickly reaching the end of their usable life. When I recieved the new drives one of them was making a bad clicking noise and was obviously [...]]]></description>
			<content:encoded><![CDATA[<p>I am building a new software linux RAID array consisting of 4 1TB Western Digital green drives to replace my aging array of 6 200GB maxtor drives that are quickly reaching the end of their usable life. When I recieved the new drives one of them was making a bad clicking noise and was obviously bad. I needed to confirm this for the return by running the Western Digital Diagnostic Tools. I had a few problems though, I am not running windows, nor do I have a working cd/dvd drive in the server not to mention not having a working bootable dos cd.</p>
<p>What is the solution?</p>
<p>A combo of freedos, grub and bootable USB.</p>
<p><span id="more-9"></span>First things first, insert your USB drive, then unmount it.</p>
<p>*note, during this process your usb drive will be totally cleared, so don&#8217;t use one with anything important on it.</p>
<p>You don&#8217;t need a ton of space, so you can use any old USB drive. All the software only takes up 2.1M on my drive.</p>
<h2>Partition and Formatting</h2>
<p>First create a partition, this assumes your usb drive is /dev/sdb (you can grep dmeg to check):</p>
<p>sudo cfdisk /dev/sdb</p>
<p>Remove all partitions, then create a FAT32 partition,Â  write, then quit</p>
<p>Now you can format the partition in FAT16, you can try FAT32 but FAT16 is recommended :<br />
sudo mkdosfs -F16 /dev/sdb1</p>
<h2>Download and install FreeDOS</h2>
<p>Create temp dir and mount the usb drive:</p>
<p>sudo mkdir /mnt/usb (temp mounting dir)</p>
<p>sudo mount /dev/sdb1 /mnt/usb</p>
<p>cd /mnt/usb</p>
<p>wget http://odin.fdos.org/fdodin06.bin.zip</p>
<p>unzip fdodin06.bin.zip fdodin06.144</p>
<p>rm -f fdodin06.bin.zip</p>
<h2>Grub install</h2>
<p>cd /mnt/usb</p>
<p>mkdir grub</p>
<p>cp /boot/grub/stage* /mnt/usb/grub/</p>
<p>cp /usr/lib/syslinux/memdisk /mnt/usb/</p>
<p>Create a GRUB config (menu.lst) :<br />
File: /mnt/usb/grub/menu.lst</p>
<p>default=0<br />
timeout=10<br />
root=(hd0,0)<br />
title FreeDOS<br />
kernel /memdisk<br />
initrd /fdodin06.144</p>
<p>And finally, you can install GRUB, run :</p>
<p>grub</p>
<p>grub&gt; device (hd5) /dev/sdx (replace sdx with the device you are using)</p>
<p>grub&gt; root (hd5,0)</p>
<p>grub&gt; setup (hd5)</p>
<p>grub&gt; quit</p>
<h2>Download and extract WD tools</h2>
<pre id="line217"><span class="attribute-value">wget "</span><span class="attribute-value">http://websupport.wdc.com/rd.asp?p=sw30&amp;t=122&amp;lang=en&amp;s=http://support.wdc.com/download/dlg/Diag504fCD.iso</span><span class="attribute-value">"

Download the ISO then extract the files inside to your usb drive. The floppy executables require windows.

Also remove the ;1 from the end of each file.
</span></pre>
<h2>Boot from USB drive</h2>
<p>This part is motherboard specific, but on my motherboard I had to select Hard drive as the first boot device, then choose from the USB drive from the list of available hard drives in the bios.</p>
<h2>Run WD tools</h2>
<p>You should see the grub boot screen when the usb drives boots.</p>
<p>&#8220;FreeDOS&#8221; should be your only choice, so select that.</p>
<p>It will boot the the A:\&gt;Â  but the WD software is on C, so type: c: &lt;enter&gt;</p>
<p>then: dir</p>
<p>and you should see a list of files that includes DLGDIAG5.exe</p>
<p>so run that software with: C:\&gt; DLGDIAG5.EXE</p>
<p>You should now be running the WD diagnostics successfully.</p>
<p>Much of this was adpated from the gentoo wiki for use with ubuntu, thanks!:</p>
<p>http://en.gentoo-wiki.com/wiki/FreeDOS_Flash_Drive</p>
]]></content:encoded>
			<wfw:commentRss>http://stampy.net/blog/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>First Post!</title>
		<link>http://stampy.net/blog/?p=3</link>
		<comments>http://stampy.net/blog/?p=3#comments</comments>
		<pubDate>Thu, 19 Feb 2009 04:47:23 +0000</pubDate>
		<dc:creator>jgolden</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[First Post]]></category>

		<guid isPermaLink="false">http://stampy.net/blog/?p=3</guid>
		<description><![CDATA[First post on my blog. I&#8217;m creating this so I remember how to do stuff. I always come up with cool stuff, but if I don&#8217;t write it down some where I will forget. What better place to write it down then a blog where I can access it from anywhere and/or help other people [...]]]></description>
			<content:encoded><![CDATA[<p>First post on my blog. I&#8217;m creating this so I remember how to do stuff. I always come up with cool stuff, but if I don&#8217;t write it down some where I will forget. What better place to write it down then a blog where I can access it from anywhere and/or help other people if they have the same problem or want to do the same thing.</p>
<p><img class="alignnone size-full wp-image-5" title="outofhere" src="http://stampy.net/blog/wp-content/uploads/2009/02/outofhere.jpg" alt="outofhere" width="585" height="429" /></p>
]]></content:encoded>
			<wfw:commentRss>http://stampy.net/blog/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
