<?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; Linux</title>
	<atom:link href="http://www.nathanhunstad.com/blog/tag/linux/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>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>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>Moving from Ghost to Clonezilla</title>
		<link>http://www.nathanhunstad.com/blog/2010/03/moving-from-ghost-to-clonezilla/</link>
		<comments>http://www.nathanhunstad.com/blog/2010/03/moving-from-ghost-to-clonezilla/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 01:47:00 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Clonezilla]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/?p=283</guid>
		<description><![CDATA[Update: In addition to this post, check out my guide on customizing custom-ocs. In a previous post, I talked about using disk imaging software for setting up Windows in a corporate environment. For years, I&#8217;ve used Symantec Ghost, specifically Ghost 8. I&#8217;d previously manually run Ghost from a network drive, booting from a custom floppy [...]]]></description>
			<content:encoded><![CDATA[<p>Update: In addition to this post, check out my guide on <a href="http://www.nathanhunstad.com/blog/2011/03/customizing-clonezillas-custom-ocs/" target="_blank">customizing custom-ocs</a>.</p>
<p>In a <a href="http://www.nathanhunstad.com/blog/2010/02/windows-7-complaints-corporate-edition/" target="_blank">previous post</a>, I talked about using disk imaging software for setting up Windows in a corporate environment. For years, I&#8217;ve used Symantec Ghost, specifically Ghost 8. I&#8217;d previously manually run Ghost from a network drive, booting from a custom floppy bootdisk with a DOS Novell client to allow me to log into our network (we still use Novell). A couple of years ago, I switched to running Ghost from an external USB hard drive that stored all the image files. To make it even more automatic, I wrote a tiny utility in assembly that reads the model info from the computer&#8217;s BIOS and uses the correct image file.</p>
<p>As time went on, though, the shortcomings of Ghost became apparent. The biggest one is speed: by running Ghost in a DOS environment, I was limited to USB 1.1 speeds. Ghosting a 20 GB Windows 7 partition would take around 40 minutes. When you are ghosting many machines at once, the quicker you can do it, the better. I knew of a great, free alternative in <a href="http://clonezilla.org/" target="_blank">Clonezilla</a>, but would it work for what I needed?</p>
<p><span id="more-283"></span></p>
<p>I have been using Clonezilla for backing up my home computer for a while, but running it in interactive mode once every month or two is a lot different from running it constantly (I only use Clonezilla at home to back up my Windows partition; my data is backed up daily using WinRAR). Most important was the ability to detect the model that the external drive was plugged into so it could grab the right image. My DOS COM file wouldn&#8217;t run under Linux, so I either needed to port it over, or find an alternative.</p>
<p>After a short foray into assembly programming in Linux, I figured that somebody smarter than me would have figured this out before, and I was right: <a href="http://www.nongnu.org/dmidecode/" target="_blank">dmidecode</a> will pull that information from the BIOS, no problem. After fiddling around with a shell script, I was able to get the model information from the BIOS and automatically select the image. It took a few days to work out all the kinks, since my Linux expertise is very low, but I was able to get everything to work.</p>
<p>The results? Creating a disk image was sped up by a factor of two or three, and putting that image back onto a disk by a factor of four or five. Being able to put an image on a computer in less than ten minutes makes a big difference.</p>
<p>The only difference between Ghost and Clonezilla is that Clonezilla does not have a utility to change the Windows computer name and SID after the image is put onto the disk. In the past, it was considered that needing to change the SID was required or else all sorts of network errors would happen, so we used Symantec Ghostwalker to do so. However, even Microsoft says that <a href="http://blogs.technet.com/markrussinovich/archive/2009/11/03/3291024.aspx" target="_blank">it&#8217;s not necessary</a> anymore, so we&#8217;ll give it a try. We aren&#8217;t in a Windows domain environment anyway, so it shouldn&#8217;t cause too many problems. Plus, we change the computer name manually as a matter of course regardless.</p>
<p>I always try to use free, open-source software whenever I can, and getting Clonezilla to do what I need it to do was a real victory.</p>
<p>Edit: check out my <a href="http://www.nathanhunstad.com/blog/2010/10/clonezilla-update/" target="_blank">update</a>.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2010/03/moving-from-ghost-to-clonezilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7</title>
		<link>http://www.nathanhunstad.com/blog/2009/05/windows-7/</link>
		<comments>http://www.nathanhunstad.com/blog/2009/05/windows-7/#comments</comments>
		<pubDate>Thu, 07 May 2009 23:52:00 +0000</pubDate>
		<dc:creator>doctorgonzo</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[Lightroom]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Quicken]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nathanhunstad.com/blog/2009/05/windows-7/</guid>
		<description><![CDATA[Windows 7 Release Candidate came out this week. Although I haven’t yet tried it out, I did try out the Windows 7 beta a while back (both the 32-bit and 64-bit versions). It looks like a pretty decent OS, but when the bar you are trying to leap over is Vista, that’s not saying much [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 7 Release Candidate came out this week. Although I haven’t yet tried it out, I did try out the Windows 7 beta a while back (both the 32-bit and 64-bit versions). It looks like a pretty decent OS, but when the bar you are trying to leap over is Vista, that’s not saying much</p>
<p> <span id="more-15"></span>
<p>I’ve been running Windows XP Pro x64 edition on my home computer for over three years now. (Side note: I’ve never had any compatibility problems with 64-bit computing, such as <a href="http://www.pcmech.com/article/adobe-software-running-on-64-bit-os-bad-idea/" target="_blank">not getting Adobe products to run</a>, and I hope that the day will soon come when there is no 32-bit computing anymore.) XP has served me quite well, being more than stable enough, especially in my current config (a Phenom II X4 920 with 8GB of memory and a Radeon HD 4870 video card). When Vista came out, I played around with it briefly and decided that there was no way that I would upgrade to Vista, and the feedback I got from people who had done so did nothing to change my mind.</p>
<p>Windows 7, however, does seem to be slimmer and less irritating than Vista, and so far the reviews have generally been positive. Will I upgrade? I’m not sure; it depends on how much it’s going to cost. The only thing I’m really missing in XP right now is DirectX 10, and since I’m not a gamer that doesn’t matter very much. Other things coming up on the tech horizon, like USB 3.0, may not be supported by XP and that could prompt an upgrade. For now, though, I’m content to wait.</p>
<p>…What about Linux, you may ask? I’ve used Linux a fair bit, mainly on a couple fileservers I’ve set up in the past. I’m definitely pro-open source and pro-free software. Unfortunately, although there are lots of alternatives to Windows programs on Linux (a good list is <a href="http://www.linuxalt.com/" target="_blank">here</a>), noticeably missing is Adobe Lightroom. I also use Quicken for my finances, but the quality of Quicken software has degraded so much with its latest releases that I have just above given up on it, even if it entails a painful migration. Lightroom, however, is still the biggie, and so until Adobe ports it to Linux, I’m sticking with Windows. The next laptop I get, though, will probably be a netbook, and if so, it will run Linux.</p>
<div id="google_plus_one"><g:plusone></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.nathanhunstad.com/blog/2009/05/windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

