<?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>The blog of Nathan Hunstad &#187; Tech</title>
	<atom:link href="http://www.nathanhunstad.com/blog/category/tech-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nathanhunstad.com/blog</link>
	<description>The blog of Nathan Hunstad, covering topics like photography, computers, politics, Minneapolis, and more</description>
	<lastBuildDate>Sun, 05 Feb 2012 18:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google and Privacy</title>
		<link>http://www.nathanhunstad.com/blog/2012/01/google-and-privacy/</link>
		<comments>http://www.nathanhunstad.com/blog/2012/01/google-and-privacy/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 02:14:42 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=646</guid>
		<description><![CDATA[Google unveiled its new privacy policy a week ago, and it has raised quite the commotion on the intertubes. Some people say that Google has gone too far. Members of Congress have sent letters to Google demanding answers. Some wonder if the FTC will get involved. Me? I’m worried in general about privacy, and I [...]]]></description>
			<content:encoded><![CDATA[<p>Google unveiled its new <a href="http://googleblog.blogspot.com/2012/01/updating-our-privacy-policies-and-terms.html" target="_blank">privacy policy</a> a week ago, and it has raised quite the commotion on the intertubes. Some people say that Google has <a href="http://www.huffingtonpost.com/john-m-eger/this-time-google-pushed-t_b_1242124.html" target="_blank">gone too far</a>. Members of Congress have <a href="http://idealab.talkingpointsmemo.com/2012/01/google-answers-lawmakers-privacy-questions-encourages-multiple-accounts.php" target="_blank">sent letters</a> to Google demanding answers. Some wonder if the FTC <a href="http://arstechnica.com/gadgets/news/2012/01/pascals-wager-googles-new-privacy-policy-could-anger-ftc.ars" target="_blank">will get involved</a>. Me? I’m worried in general about privacy, and I had doubts about Google before, but to be honest, Google’s new privacy policy does not bother me all that much.</p>
<p>&nbsp;</p>
<p>First of all, nowhere else is the old adage more true than with Google: if you don’t know what the company is trying to sell you, then they are trying to sell <em>you</em>. Gmail, Google Docs, Google Search, and every other service provided by Google is free. They make money by collecting information about you to tailor advertising, which they sell to others. This should come as a surprise to nobody: why else would Google offer such versatile and useful products for free?</p>
<p>I was honestly surprised that before now, Google was not agglomerating information from all of the different services that Google offers. So for them to do so now is not terribly concerning to me: I think that more targeted YouTube searches, for example, would be useful. If I worry about my searches, I can use Chrome’s incognito mode, or maybe <a href="http://duckduckgo.com/" target="_blank">DuckDuckGo</a>. I can get rid of my Google account, shutting off my Gmail, Google+, and everything else. Would it be a pain? Of course. But as a non-paying customer, what do I expect?</p>
<p>Two issues about Google’s collection of information have the potential to bother me. The first is whether they sell that information to third parties, and they say that they don’t. Should that change without an opt-out, that would be a different ball game. The second, and probably more important, is how well they are actually securing the data they collect. To date, Google has not had any major data breaches that I am aware of. They seem to do a pretty good job securing their data. Again, if that changes in the future, that would be concerning, but at the same time, let’s be honest: plenty of companies have a far worse record when it comes to securing personally identifiable information. Zappos <a href="http://www.nathanhunstad.com/blog/2012/01/zappos-data-breach/" target="_blank">lost my data</a>, and I’m not severing ties with them.</p>
<p>I can understand why people would be concerned about what Google is doing. However, let’s keep things in perspective. Google’s unified privacy policy has probably spurred more debate on the subject than anything else in recent memory, which has probably done more for the cause of privacy awareness than anything even the most ardent supporters could hope for. In addition, Google isn’t doing anything too terribly out-of-bounds with the data they are already collecting. Privacy is a very important issue, certainly. However, not every privacy policy is a terrible one.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Bang </li><li class='my_li'><span class='post-xtra-key'>Currently Listening To:</span> <a target="_blank" href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=Purple+Rain">"Purple Rain", Prince</a> </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2012/01/google-and-privacy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 UTC Time Issue</title>
		<link>http://www.nathanhunstad.com/blog/2012/01/windows-7-utc-time-issue/</link>
		<comments>http://www.nathanhunstad.com/blog/2012/01/windows-7-utc-time-issue/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 19:09:44 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=636</guid>
		<description><![CDATA[I’ve had a problem with my computer lately with the clock being consistently slow, even though it is set to sync to an internet time server every day. Whenever I would manually sync it to an internet time server, the time would be correct for an hour or so, then suddenly lose time. Before, it [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve had a problem with my computer lately with the clock being consistently slow, even though it is set to sync to an internet time server every day. Whenever I would manually sync it to an internet time server, the time would be correct for an hour or so, then suddenly lose time. Before, it was about 5 minutes, but lately, it was 17 minutes. This would cause all sorts of problems, especially when I was working on a file when the time jumped back: suddenly, the latest version of a file had a timestamp 10 minutes earlier than a previous version. Not good! But after extensive testing, I’ve determined the bug.</p>
<p><span id="more-636"></span></p>
<p>The problem stems from a <a href="http://www.ardamis.com/2009/11/24/windows-time-off-when-dual-booting-linux/" target="_blank">registry hack</a> that allows Windows 7 to use UTC in the CMOS real-time clock (RTC). All adult OSes expect that the RTC will be in UTC, and then the OS calculates the corrects time to display for users based on the time zone and daylight savings time. Windows has forever expected the RTC to be in local time, however, which can cause all sorts of problems, such as moving the clock twice for a DST change. Recent versions of Windows have incorporated a registry hack to allow the RTC to be in UTC, but it’s not working perfectly, as I’ve discovered.</p>
<p>For when that hack is in place, when you sync to an internet time server, the correct time is not written to the CMOS RTC, as it is when the RTC time is local time. I believe the problem started on my computer when the CMOS battery was dying and the clock was losing time. When I replaced it, I of course had to set the time in the BIOS manually, and so I got it close enough, thinking that after I did an internet time update it would be written with the correct value. However, this didn’t happen: it kept on losing time. At first, I thought the new battery was dead, so I replaced it, going through the time-setting process again, and guessing even farther off from the correct time. Of course, this incorrect time was the time that Windows kept falling back to after I did manual time updates.</p>
<p>Eventually, after many reboots checking the behaviour of Widows with the RealTimeIsUniversal registry key both “true” and “false”, I discovered that Windows will write the correct time to the CMOS RTC when they key is &#8220;false”, but not “true”. And hence the problem.</p>
<p>The solution, if you want to keep UTC in the RTC, is to use another clock to manually set the correct time in the BIOS, because using internet time update won’t save the correct time. This is not cool and pretty much makes internet time update useless. Hopefully, Microsoft will fix this in a future version of Windows. As I said before, all other OSes work just fine with the CMOS clock being UTC, and it really does make the most sense from a computing standpoint. Get with the program!</p>
<div id="google_plus_one"><g:plusone></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2012/01/windows-7-utc-time-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu on a Dell Inspiron 1501</title>
		<link>http://www.nathanhunstad.com/blog/2011/12/installing-ubuntu-on-a-dell-inspiron-1501/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/12/installing-ubuntu-on-a-dell-inspiron-1501/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 02:55:29 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Inspiron 1501]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=606</guid>
		<description><![CDATA[It’s been a while since I did a tech update, but nothing like doing OS installs on a Friday night. My nearly 5 year old laptop, a Dell Inspiron 1501, is on its last legs. The only thing I use it for is BOINC, so I figured that installing Ubuntu would give it a bit [...]]]></description>
			<content:encoded><![CDATA[<p>It’s been a while since I did a tech update, but nothing like doing OS installs on a Friday night. My nearly 5 year old laptop, a Dell Inspiron 1501, is on its last legs. The only thing I use it for is <a href="http://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;ved=0CDAQFjAA&amp;url=http%3A%2F%2Fboinc.berkeley.edu%2F&amp;ei=yHX-TqTZJoXVgAev5L2XAg&amp;usg=AFQjCNF8LcpB9h3scxAuy0pKiBkAAA7TiQ" target="_blank">BOINC</a>, so I figured that installing <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> would give it a bit more breathing room than Windows. However, when I tried to run the install, I got a screen full of crazy colored vertical lines. Doing a BIOS update did not help. However, a forum thread did lead me to the right solution: setting the nomodeset option before install.</p>
<p>So if you want to install Ubuntu on a Dell Inspiron 1501 laptop and you keep running into the crazy colored vertical lines, during the install, hit F6, then select “nomodeset”. Presto!</p>
<div id="google_plus_one"><g:plusone></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/12/installing-ubuntu-on-a-dell-inspiron-1501/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Closed-source software I use</title>
		<link>http://www.nathanhunstad.com/blog/2011/08/closed-source-software-i-use/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/08/closed-source-software-i-use/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 02:25:16 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=541</guid>
		<description><![CDATA[As I’ve said before, I like using open source software whenever I can. So what close-sourced software do I use? Here&#8217;s the list below the jump: Adobe Lightroom: Really the best software for cataloging and processing digital RAW files. There are some open-source RAW file handlers, like dcraw, but Lightroom has it all in one [...]]]></description>
			<content:encoded><![CDATA[<p>As I’ve said before, I like using open source software <a href="http://www.nathanhunstad.com/blog/2011/08/open-source-for-school/" target="_blank">whenever I can</a>. So what close-sourced software do I use? Here&#8217;s the list below the jump:</p>
<p><span id="more-541"></span></p>
<ul>
<li>Adobe Lightroom: Really the best software for cataloging and processing digital RAW files. There are some open-source RAW file handlers, like <a href="http://www.cybercom.net/~dcoffin/dcraw/" target="_blank">dcraw</a>, but Lightroom has it all in one handy package and I find it really can&#8217;t be matched. I do still use <a href="http://www.gimp.org/" target="_blank">GIMP</a>, though, for bitmap twiddling.</li>
<li>iTunes: I&#8217;ve got too many playlists and ratings in here to switch to something else.</li>
<li>Quicken: The software on this list I truly hate. Again, it&#8217;s an issue of simply having too much data to move anywhere else: 15 years of financial data with tens of thousands of transactions is a tough nut to crack. Quicken is the only software I know of that routinely gets worse with every iteration, and they make you pay for a new version about every three years or so. If there was a good alternative that handled all these transactions and did online banking, I&#8217;d use it.</li>
</ul>
<p>That&#8217;s about it for software I use regularly that isn&#8217;t open source. As you can see, a pretty short list.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Tired </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/08/closed-source-software-i-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open source for school</title>
		<link>http://www.nathanhunstad.com/blog/2011/08/open-source-for-school/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/08/open-source-for-school/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 23:52:35 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=531</guid>
		<description><![CDATA[I&#8217;ve said several times on this blog that I am a strong believer in open source software. I&#8217;ve found that it&#8217;s pretty easy to find open source replacements for most of the things you need to do on a computer on a daily basis. Then past year has shown that this applies just as much [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve said several times on this blog that I am a strong believer in open source software. I&#8217;ve found that it&#8217;s pretty easy to find open source replacements for most of the things you need to do on a computer on a daily basis. Then past year has shown that this applies just as much to students as anybody else, as I went the entire year using <a href="http://www.openoffice.org/" target="_blank">Open Office</a> as my suite of choice for schoolwork. Overall, I found it to be much better than Microsoft Office for just about everything.</p>
<p><span id="more-531"></span></p>
<p>I will admit that OO came up short in one place. I found that for reasons of collaboration, it was generally better to use PowerPoint from beginning to end than to convert between an Impress file and PowerPoint repeatedly. However, for everything else, OO proved to be just as good, and often times less frustrating, than Word. Here are the highlights:</p>
<ul>
<li>Styles: OO Writer is awesome at creating and defining paragraph styles, which really comes in handy when you are formatting your 25,000-word plus capstone project. Sure, Word has styles too, but they just seem to be far less intuitive and harder to use than in Writer.</li>
<li>Footnotes: The reference-handling abilities of OO Writer were incredible. I had dozens of footnotes to keep track of in my paper, some referenced from multiple places. Even when I moved entire sections of my paper around, OO Writer kept track of everything without fail. I&#8217;ve never done anything this extensive in Word, so I&#8217;m not sure how it compares, but OO Writer did everything I wanted easily.</li>
<li>Keyboard shortcuts: OO Writer allows you to create custom keyboard shortcuts, something that comes in handy for inserting all those footnotes. Yes, Word does this as well, so it&#8217;s a wash when you compare the two, but still, it&#8217;s nice that Writer didn&#8217;t forget this important ability.</li>
<li>PDF Creation: You can now rather easily create PDF documents from Word, but in OO, it&#8217;s much more comprehensive, allowing you to specify how the PDF opens, how many levels of bookmarks show in the sidebar, copy protection, and more.</li>
<li>Macros: For my project, I created two spreadsheets, one in Calc and one in Excel. I&#8217;ve been doing VBA programming for about ten years now, so I expected the Excel version to be easier to write. Not so. The macro capabilities in Calc were better than Excel; there were some things I could do easily in Calc that I labored mightily to do in Excel, much to my surprise.</li>
</ul>
<p>There are differences between the two, and like I said, PowerPoint is still better than Impress if you need to share the file with several other people for group editing. However, all in all OO served me very well, and I think I&#8217;ve put it through the wringer enough to demonstrate that it can be used by the student in place of Microsoft Office.</p>
<p>Now, if they made a replacement for OneNote (something I&#8217;ve never used, but I hear all sorts of awesome comments about), they&#8217;d be set.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Stuffed </li><li class='my_li'><span class='post-xtra-key'>Currently Listening To:</span> <a target="_blank" href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=Your+Time+Is+Gonna+Come">"Your Time Is Gonna Come", Led Zeppelin</a> </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/08/open-source-for-school/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computers break in strange ways</title>
		<link>http://www.nathanhunstad.com/blog/2011/05/computers-break-in-strange-ways/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/05/computers-break-in-strange-ways/#comments</comments>
		<pubDate>Thu, 05 May 2011 00:53:53 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=471</guid>
		<description><![CDATA[I’ve been incommunicado for a bit due to yet another computer malfunction. This was a truly bizarre one, and the diagnosis I made, strange and unlikely as I thought it was, turned out to be correct. It’s a reminder that computers can fail in rather odd ways. First, because I back up my stuff, I [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been incommunicado for a bit due to yet another computer malfunction. This was a truly bizarre one, and the diagnosis I made, strange and unlikely as I thought it was, turned out to be correct. It’s a reminder that computers can fail in rather odd ways.</p>
<p><span id="more-471"></span></p>
<p>First, because I <a href="http://www.nathanhunstad.com/blog/2010/06/if-i-didnt-remind-you-before-back-up-your-stuff/" target="_blank">back up my stuff</a>, I was never in any danger of actually losing anything. Since I am in the midst of working on my capstone project for my <a href="http://www.nathanhunstad.com/blog/2010/07/my-7-seconds-of-fame-on-cnn/" target="_blank">MSST degree</a>, I’m backup stuff up in about a half-dozen different ways. I’m not quite sure what it would take to lose what I have, but the complete devastation of a large swath of this country is probably a necessary condition. So as before, this outage was more annoying than anything else.</p>
<p>It started when my computer shut down suddenly and without warning. Upon reboot, the motherboard, as ASUS M3N78-EM, would not detect either of my hard drives. They simply didn’t exist. For one boot in twenty, my drives were detected, but that lasted an hour or two at most. Aside from that problem, nothing else was wrong: the POST was successful, and there were no error messages aside from not detecting drives. I rearranged and moved drives around, even trying them one at a time, but nothing worked. It seemed that the motherboard had failed in such a way as to not be able to detect the drives, but otherwise show no other faults.</p>
<p>Testing this required a new motherboard, which I got from <a href="http://www.memory4less.com/" target="_blank">Memory4Less</a>. I had few options since the board was two years old and out of production. They very helpfully upgraded me to overnight delivery, and I moved everything over from the old motherboard to the new, identical one. And lo and behold, it worked perfectly. Clearly, the old motherboard actually was at fault.</p>
<p>I’ve seen motherboards fail in a lot of different ways. I dealt with a lot of <a href="http://en.wikipedia.org/wiki/Capacitor_plague" target="_blank">burst capacitors</a> in my day. I’ve seen overheating, dead fans, boards zapped by lightning, and the good old liquid spill. But such a singular failure that didn’t affect anything else was a new one to me. Consider yourself warned.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Spring </li><li class='my_li'><span class='post-xtra-key'>Currently Listening To:</span> <a target="_blank" href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=I+Can't+Quit+You+Baby">"I Can't Quit You Baby", Led Zeppelin</a> </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/05/computers-break-in-strange-ways/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing Clonezilla&#8217;s custom-ocs</title>
		<link>http://www.nathanhunstad.com/blog/2011/03/customizing-clonezillas-custom-ocs/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/03/customizing-clonezillas-custom-ocs/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 21:03:14 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Clonezilla]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=449</guid>
		<description><![CDATA[In a (very popular by search engine standards) previous post, I talked about moving from Norton Ghost to Clonezilla. Part of the move from Ghost to Clonezilla was creating a method of automatically determining the computer model I was imaging, and selecting the right image. This is possible by changing the custom-ocs file, and here [...]]]></description>
			<content:encoded><![CDATA[<p>In a (very popular by search engine standards) <a href="http://www.nathanhunstad.com/blog/2010/03/moving-from-ghost-to-clonezilla/" target="_blank">previous post</a>, I talked about moving from Norton Ghost to Clonezilla. Part of the move from Ghost to Clonezilla was creating a method of automatically determining the computer model I was imaging, and selecting the right image. This is possible by changing the custom-ocs file, and here are the changes I made to do it.</p>
<p><span id="more-449"></span></p>
<p>I made a number of minor changes to the stock custom-ocs file, but they were powerful enough to get the job done.</p>
<blockquote><p><span style="font-family: 'Courier New';">mount /dev/sdb2 /home/partimag/ </span></p></blockquote>
<p>This is often overlooked, but make sure that you mount the proper location for your image files! On the external hard drive I used for imaging, I have two partitions: the first is tiny and has the Clonezilla software, the second is huge and holds the images. Hence, I want the second one (/sdb2) mounted as the image store.</p>
<blockquote><p><span style="font-family: 'Courier New';">echo &#8220;Type c to create image; defaults to imaging computer if nothing typed.&#8221;<br />
read -n 1 -t 7 createimg<br />
echo<br />
if [[ $createimg == "c" ]] &amp;&amp; [[ -n "${createimg}" ]]<br />
then<br />
echo &#8220;Image will be created from current machine.&#8221;<br />
else<br />
echo &#8220;Hard drive will be overwritten with disk image.&#8221;<br />
createimg=&#8221;g&#8221;<br />
fi</span></p></blockquote>
<p>This code determines if I want to create a new image from the current machine, or push an image onto the current machine. The “read –n 1 –t 7 createimg” line reads one character (-n 1) into the variable createimg, with a 7 second timeout (-t 7). The “if [[ $createimg == "c" ]] &amp;&amp; [[ -n "${createimg}" ]]” line tests to see if createimg is equal to ‘c’ and not empty. If so, a reassurance that the image will be created from the current machine is displayed.</p>
<blockquote><p><span style="font-family: 'Courier New';">x=`sudo dmidecode -t 1 | grep -i Product | tr -d &#8216;\n&#8217;`<br />
y=${x#*: }<br />
y=${y// /}</span></p></blockquote>
<p>Here is the most important section. This determines the model of the attached computer. It looks hairy (like a lot of bash scripts), but it’s not too bad. It pipes the dmidecode output of system info (-t 1) to grep, which pulls out the line containing “Product”, and then trims the newline. The next line (y=${x#*: }) removes everything before the colon, and the following line (y=${y// /}) removes all the spaces. You are left with a variable containing the Product Name as stored in the BIOS, without spaces. Very convenient.</p>
<blockquote><p><span style="font-family: 'Courier New';">echo The following model has been detected:<br />
echo $y<br />
echo Please press q to abort.<br />
read -n 1 -t 5 abort<br />
if [[ $abort == "q" ]] &amp;&amp; [[ -n "${abort}" ]]<br />
then<br />
echo Aborting!<br />
exit 1<br />
else<br />
echo Continuing&#8230;<br />
fi</span></p></blockquote>
<p>This displays the just-detected model information, and once pauses for input, this time for 5 seconds (-t 5). This way, if something terrible has gone wrong and the wrong model has been detected, or you made a mistake, you can abort. I set it up with timeouts like these so when I plug my external HD into a computer and boot from it, it will automatically push the image onto that machine without any further intervention from me. If you are nervous, then remove the timeouts and do things manually.</p>
<blockquote><p><span style="font-family: 'Courier New';">echo Running Clonezilla<br />
case $y in<br />
OptiPlex780*)<br />
if [[ $createimg == "c" ]]<br />
then<br />
echo Now saving image&#8230;<br />
echo y | /opt/drbl/sbin/ocs-sr -q2 -c -j2 -rm-win-swap-hib -z1 -i 2000 -p poweroff savedisk &#8220;Dell780&#8243; &#8220;sda&#8221;<br />
else<br />
echo Now ghosting machine&#8230;<br />
echo y | /opt/drbl/sbin/ocs-sr -g auto -e1 auto -r -j2 -p reboot restoredisk &#8220;Dell780&#8243; &#8220;sda&#8221;<br />
fi<br />
exit 0<br />
;;</span></p>
<p><span style="font-family: 'Courier New';">*)<br />
echo The computer could not be correctly identified!<br />
exit 1<br />
;;<br />
esac</span></p></blockquote>
<p>Here’s where each individual model is handled. In this sample case block, the only listed model is an OptiPlext780. If ‘c’ was pressed earlier to signal the creation of a new image from the current machine, then the line <span style="font-family: 'Courier New';">echo y | /opt/drbl/sbin/ocs-sr -q2 -c -j2 -rm-win-swap-hib -z1 -i 2000 -p poweroff savedisk &#8220;Dell780&#8243; &#8220;sda&#8221; <span style="font-family: Arial;">does that for us. Going through, it echoes ‘y’ (so we don’t have to hit it manually) to the Clonezilla script that creates an image using partclone, with confirmation, with the hidden data between the MBR and 1st partition, removing the swap and hibernation files, with gzip compression, with the image split into 2000 MB pieces, power off after completion, save the entire disk, call it “Dell780”, and save device “sda”. If c was not pressed, and the image is put onto the machine, then it’s almost the exact same thing, with a few different parameters (“restoredisk” instead of “savedisk”, for example).</span></span></p>
<p><span style="font-family: 'Courier New';"><span style="font-family: Arial;">The default block is run if none of the model numbers match. Always a good sanity check.</span></span></p>
<p><span style="font-family: 'Courier New';"><span style="font-family: Arial;">If you had several different image types for each model, you could add additional prompts with read and case in each model block. The functionality is limited only by your needs and technical expertise.</span></span></p>
<p>Ever since I set up this custom-ocs file, it has run beautifully, needing only tweaks to add new models as necessary. It makes imaging a breeze.</p>
<p><span style="font-family: 'Courier New';"><span style="font-family: Arial;"> </span><br />
</span></p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Monday </li><li class='my_li'><span class='post-xtra-key'>Currently Listening To:</span> <a target="_blank" href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=Run+Like+Hell">"Run Like Hell", Pink Floyd</a> </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/03/customizing-clonezillas-custom-ocs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motorola loses a customer</title>
		<link>http://www.nathanhunstad.com/blog/2011/02/motorola-loses-a-customer/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/02/motorola-loses-a-customer/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 02:20:17 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Customer Service]]></category>
		<category><![CDATA[Smartphone]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=439</guid>
		<description><![CDATA[I have written earlier about my displeasure with Motorola’s delay in upgrading my Cliq XT from Android OS 1.5 to 2.1. That update was in September, when the upgrade was supposed to be out by the end of the year. Fast forward to February, and in the end, Motorola gave up. Unsurprisingly, a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>I have <a href="http://www.nathanhunstad.com/blog/2010/09/upgrade-blues-and-customer-service/" target="_blank">written earlier</a> about my displeasure with Motorola’s delay in upgrading my Cliq XT from Android OS 1.5 to 2.1. That update was in September, when the upgrade was supposed to be out by the end of the year. Fast forward to February, and in the end, Motorola <a href="http://www.engadget.com/2011/02/03/cliq-xt-wont-get-android-2-1-upgrade-motorolas-word-as-good-a/" target="_blank">gave up</a>. Unsurprisingly, a lot of people are incredibly mad, me included. As a result of this fiasco, I will never buy a Motorola device again.</p>
<p><span id="more-439"></span></p>
<p>Although in my post last September I wrote that I didn’t really care if the upgrade to 2.1 came, as time went on and I was unable to install apps more and more frequently because I still had 1.5, it became an issue. The lack of feedback or progress from Motorola was just rubbing salt in the wound. When they finally announced that Cliq XT users would be left out in the cold, I wasn’t too surprised. A lack of surprise didn’t mean a lack of outrage, though.</p>
<p>What was even more infuriating was the fact that the Cliq XT was more than capable of running 2.1. Plenty of people had rooted their phones and done an unofficial upgrade (rooting is to Android phones what jailbreaking is to iPhones). Once I learned that an official upgrade was not happening, I decided to root my phone myself. Rooting your phone is dangerous, and you are definitely on your own if it goes wrong. However, I was not terribly worried, and I followed the instruction at <a href="http://modmymobile.com/forums/559-motorola-cliq-xt-roms/559763-rom-basically-blurless-mm278-b2-motorola-cliqxt-quench-01-07-2011-a.html" target="_blank">this forum</a> and successfully upgraded my phone to 2.1. There were a lot of steps, and it took several hours, but at no point was I afraid that I had screwed up. Knowing Linux definitely helped, but even a novice can handle it if the instructions are followed meticulously (note: I, like everybody else, am not responsible for whatever happens if you decide to root your phone).</p>
<p>Now my phone is happily running 2.1, and the Cliq XT is more than up to the task. This is definitive proof that the reason that Motorola gave up on the upgrade was due to their own resource-hogging MotoBLUR™ technology. What I really don’t understand, though, is why they just didn’t give up on MotoBLUR itself and pushed ahead with the upgrade. Motorola has made it clear that MotoBLUR will not be a part of their future products. They’ve decided that MotoBLUR isn’t worth it, and apparently for good reason. So why don’t they just acknowledge it and make available the BLUR-less version of 2.1 that I have running on my phone, more or less? They’d at least make a lot of people happier than they are now.</p>
<p>All in all, Motorola really demonstrated a complete lack of customer service know-how here. As a result, they’ve lost me as a customer for life, and I know I’m not the only one. As for T-Mobile, we’ll see. I’m going to complain to them and see if they are willing to assuage me. Yes, it’s a bit unfair since the fault is with Motorola and not T-Mobile, but since T-Mobile partners with Motorola, and is in face the outlet that these phones were purchased from, they are going to be held responsible too. I’ve never had a problem with T-Mobile in the past, but our contract is up in a year and Verizon is certainly getting more and more attractive…</p>
<p>Moral of the story: as I said before, under-promise and over-deliver. Not vice-versa.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Frustrated </li><li class='my_li'><span class='post-xtra-key'>Currently Listening To:</span> <a target="_blank" href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=Black">"Black", Pearl Jam</a> </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/02/motorola-loses-a-customer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Computer Utilities: KeePass</title>
		<link>http://www.nathanhunstad.com/blog/2011/02/useful-computer-utilities-keepass/</link>
		<comments>http://www.nathanhunstad.com/blog/2011/02/useful-computer-utilities-keepass/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 03:50:00 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/2011/02/useful-computer-utilities-keepass/</guid>
		<description><![CDATA[Some time ago I blogged about the password manager I had been using for many years: Password Safe. It’s a great program, one that I recommend wholeheartedly. However, I’ve since switched to a new manager: KeePass. Like Password Safe, it is a pretty functional password manager that allows you to automatically generate and save passwords. [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I <a href="http://www.nathanhunstad.com/blog/2009/05/useful-computer-utilities-password-safe/" target="_blank">blogged</a> about the password manager I had been using for many years: <a href="http://passwordsafe.sourceforge.net/" target="_blank">Password Safe</a>. It’s a great program, one that I recommend wholeheartedly. However, I’ve since switched to a new manager: <a href="http://keepass.info/" target="_blank">KeePass</a>. Like Password Safe, it is a pretty functional password manager that allows you to automatically generate and save passwords. Also like Password Safe, KeePass is open-source.</p>
<p>Why did I switch? Well, essentially because I like the interface and functions better in KeePass. The UI looks a bit better, and there is a graphical representation of how strong a password is. Other than that, though, it’s almost identical to Password Safe. Password Safe is even a bit easier to use for the novice, as it doesn’t have quite as many options to fiddle with as KeePass. One issue with KeePass 2.x is that is requires the .NET architecture, which isn’t always available, especially if you plan on using it on a computer that you don’t have control over.</p>
<p>I’d unhesitantly recommend either of the two for your password manager needs. Play with both of them and decide which one you like better. But pick and use some kind of manager. Using strong, random passwords is an important part of security, and password managers help make doing so simpler.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Cyber-educated </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2011/02/useful-computer-utilities-keepass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clonezilla update</title>
		<link>http://www.nathanhunstad.com/blog/2010/10/clonezilla-update/</link>
		<comments>http://www.nathanhunstad.com/blog/2010/10/clonezilla-update/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 23:47:27 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=408</guid>
		<description><![CDATA[A while back I posted about moving from Ghost to Clonezilla. Many months have passed, and after using it to roll out a bit less than a hundred computers, I thought I’d give an update. In short, Clonezilla has worked great. The custom script I created didn’t miss a beat, its speed is fantastic, and [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I <a href="http://www.nathanhunstad.com/blog/2010/03/moving-from-ghost-to-clonezilla/" target="_blank">posted</a> about moving from Ghost to Clonezilla. Many months have passed, and after using it to roll out a bit less than a hundred computers, I thought I’d give an update.</p>
<p><span id="more-408"></span></p>
<p>In short, Clonezilla has worked great. The custom script I created didn’t miss a beat, its speed is fantastic, and I never had a problem with a bad image or any data corruption. In addition, not changing the SID has so far made zero difference in our environment. As long as the computer names aren’t duplicated, we have zero problems.</p>
<p>The only issue I had to deal with wasn’t a Clonezilla issue at all, but a more convoluted method of setting up a default profile in Windows 7. Microsoft has never officially supported copying profiles to the default, although it always worked just fine with Windows XP, and frankly, it’s not worth it to use their Preboot Environment and everything that entails just to set up some custom desktop icons for users. Windows 7 is more complicated than XP, but by following the steps in <a href="http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/0be9b1f0-a21f-4889-9568-6ec455689aa9" target="_blank">this thread</a>, especially the steps involving searching and deleting keys from the Registry, it has worked well.</p>
<p>All in all, Clonezilla works great and I do not foresee the need to switch back to a product like Ghost.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div><ul class='my_ul'>
<li class='my_li'><span class='post-xtra-key'>Current Mood:</span> Friday! </li><li class='my_li'><span class='post-xtra-key'>Currently Listening To:</span> <a target="_blank" href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=Back+in+the+U.S.S.R.">"Back in the U.S.S.R.", The Beatles</a> </li></ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2010/10/clonezilla-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

