<?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>You are such a geek... &#187; howto</title>
	<atom:link href="http://geekyschmidt.com/tag/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://geekyschmidt.com</link>
	<description>Binary makes me giggle</description>
	<lastBuildDate>Sun, 15 Jan 2012 17:15:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Dual Time Machine Wielding Backups!</title>
		<link>http://geekyschmidt.com/2011/12/29/dual-time-machine-wielding-backups</link>
		<comments>http://geekyschmidt.com/2011/12/29/dual-time-machine-wielding-backups#comments</comments>
		<pubDate>Thu, 29 Dec 2011 16:08:49 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[timemachine]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=1891</guid>
		<description><![CDATA[<p>With the purchase of the Apple Thunderbolt Display my Air now has a jumbo-frame enabled ethernet port at its disposal. My current backup strategy is to utilize an encrypted external USB laptop drive while on the road and to just rsync the latest backup when I get home. This has been working great for a [...]]]></description>
			<content:encoded><![CDATA[<p>With the purchase of the Apple Thunderbolt Display my Air now has a jumbo-frame enabled ethernet port at its disposal. My current backup strategy is to utilize an encrypted external USB laptop drive while on the road and to just rsync the latest backup when I get home. This has been working great for a year straight (saved my greasy bacon when the airlines forgot my bag) but I figured it was time to reevaluate with my fancy monitor in the mix.</p>
<h4><strong>The Ingredients:</strong></h4>
<ol>
<li>Apple Thunderbolt Display</li>
<li>MacBook Air 11&#8243;</li>
<li>OS X 10.7 Lion which added the tmutil command</li>
<li>Iomega eGo USB Drive</li>
<li>Debian 6.0 Server with oodles of encrypted disk space</li>
<li>Gigabit network</li>
<li><a href="http://controlplane.dustinrue.com/" target="_blank">ControlPlane</a> for geolocation detection</li>
</ol>
<h4><strong>Secret Magic Scripts:</strong></h4>
<p>First we need to create a HOME script. This will be called when the MacBook Air detects that it is on a super-fast connection instead of that yucky Wifi.</p>
<p><em><span style="text-decoration: underline;">sudo vi /opt/local/bin/switchtimemachinehome.sh</span></em></p>
<pre style="padding-left: 30px;">#!/bin/bash
#This will change your Time Machine setting the backup to your home server
sleep 5
tmutil setdestination afp://username:<a title="[GMCP] Compose a new mail to password@192.168" href="https://mail.google.com/mail/u/0/?view=cm&amp;fs=1&amp;tf=1&amp;to=password@192.168" rel="noreferrer" target="_blank">password@</a>10.10.10.1/TimeMachineNAS/
sleep 5
tmutil startbackup</pre>
<p>Obviously you will want to modify the username:password and destination. Something that will trip you up (hopefully) is your complex password does not work in the URL. If this is the case then please use the below AppleScript to modify it for you. Standard POSIX/UNIXy type things do not work.</p>
<p><span style="text-decoration: underline;"><em>Open AppleScript Editor and put in the following and run</em></span></p>
<pre style="padding-left: 30px;"><strong>set</strong> theText <strong>to</strong> "I want to pass this text, via GET, to a url!"
<strong>set</strong> theText <strong>to</strong> text returned <strong>of</strong> (<strong>display dialog</strong> "encode what" default answer theText)
<strong>set</strong> theTextEnc <strong>to</strong> urlencode(theText) <strong>of</strong> <strong>me</strong>
<strong>display dialog</strong> theTextEnc default answer theTextEnc

<strong>on</strong> urlencode(theText)
<strong>set</strong> theTextEnc <strong>to</strong> ""
<strong>repeat</strong> <strong>with</strong> eachChar <strong>in</strong> <em>characters</em> <strong>of</strong> theText
<strong>set</strong> useChar <strong>to</strong> eachChar
<strong>set</strong> eachCharNum <strong>to</strong> <strong>ASCII number</strong> <strong>of</strong> eachChar
<strong>if</strong> eachCharNum = 32 <strong>then</strong>
<strong>set</strong> useChar <strong>to</strong> "+"
<strong>else</strong> <strong>if</strong> (eachCharNum ≠ 42) <strong>and</strong> (eachCharNum ≠ 95) <strong>and</strong> (eachCharNum &lt; 45 <strong>or</strong> eachCharNum &gt; 46) <strong>and</strong> (eachCharNum &lt; 48 <strong>or</strong> eachCharNum &gt; 57) <strong>and</strong> (eachCharNum &lt; 65 <strong>or</strong> eachCharNum &gt; 90) <strong>and</strong> (eachCharNum &lt; 97 <strong>or</strong> eachCharNum &gt; 122) <strong>then</strong>
<strong>set</strong> firstDig <strong>to</strong> <strong>round</strong> (eachCharNum / 16) rounding down
<strong>set</strong> secondDig <strong>to</strong> eachCharNum <strong>mod</strong> 16
<strong> </strong></pre>
<pre style="padding-left: 30px;"><strong>if</strong> firstDig &gt; 9 <strong>then</strong>
<strong>set</strong> aNum <strong>to</strong> firstDig + 55
<strong>set</strong> firstDig <strong>to</strong> <strong>ASCII character</strong> aNum
<strong>end</strong> <strong>if</strong>

<strong>if</strong> secondDig &gt; 9 <strong>then</strong>
<strong>set</strong> aNum <strong>to</strong> secondDig + 55
<strong>set</strong> secondDig <strong>to</strong> <strong>ASCII character</strong> aNum
<strong>end</strong> <strong>if</strong>
<strong> </strong></pre>
<pre style="padding-left: 30px;">set numHex <strong>to</strong> ("%" &amp; (firstDig <strong>as</strong> <em>string</em>) &amp; (secondDig <strong>as</strong> <em>string</em>)) <strong>as</strong> <em>string</em>
<strong>set</strong> useChar <strong>to</strong> numHex
<strong>end</strong> <strong>if</strong>
<strong>set</strong> theTextEnc <strong>to</strong> theTextEnc &amp; useChar <strong>as</strong> <em>string</em>

<strong>end</strong> <strong>repeat</strong>
<strong>return</strong> theTextEnc
<strong>end</strong> urlencode</pre>
<p>After that we need to give ControlPlane something to call when we are on the road and have nothing but that simple USB drive we lug around.</p>
<p><span style="text-decoration: underline;"><em>sudo vi /opt/local/bin/switchtimemachinemobile.sh</em></span></p>
<pre style="padding-left: 30px;">#!/bin/bash
#This will change your Time Machine setting the backup to your home server
sleep 5
tmutil setdestination /Volumes/RubbageHolder/
sleep 5
tmutil startbackup</pre>
<p>Lets now make both files executable or the scripts will fail</p>
<p style="padding-left: 30px;"><em>sudo chmod +x /opt/local/bin/switchtimemachinehome.sh</em></p>
<p style="padding-left: 30px;"><em>sudo chmod +x /opt/local/bin/switchtimemachinemobile.sh</em></p>
<h4><strong>Letting the Penguins talk to the Fruit:</strong></h4>
<p>In order for our Debian server to be useful we need to give it a secret decoder ring. This means installing some software and announcing itself a certain way for the Mac machines to recognize it as a Mac Server. You can also do this with a standard Mac server, but I prefer my servers to be Linux/BSD based. <em>NOTE: If you are securing your backups using encrypted USB drives, but fail to encrypt your home NAS &#8211; SHAME ON YOU! </em>So lets get started by issuing a SSH to our home server.</p>
<ol>
<li>sudo apt-get install netatalk avahi-daemon</li>
<li>sudo vi /etc/netatalk/AppleVolumes.default</li>
<li>Add the line: <em>/share/Backup           &#8220;TimeMachineNAS&#8221;         options:tm </em>to the end of the file</li>
</ol>
<div>Now Apple uses some secret sauce to make things auto discovered. Zeroconf, Bonjour, Avahi, etc. Call it what you will, but what it does it announce the capabilities of a server to a client without direct queries. There are tons of options for avahi on linux, but I am going to walk you through the basics. One note is that your home server will show-up looking like the now defunct Xserver. You are welcome.</div>
<div></div>
<div><em>sudo vi /etc/avahi/services/afpd.service </em>and then add the below:</div>
<div>
<div>
<pre style="padding-left: 30px;">&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
&lt;service-group&gt;
&lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;

&lt;service&gt;
 &lt;type&gt;_afpovertcp._tcp&lt;/type&gt;
 &lt;port&gt;548&lt;/port&gt;
&lt;/service&gt;

&lt;service&gt;
 &lt;type&gt;_device-info._tcp&lt;/type&gt;
 &lt;port&gt;0&lt;/port&gt;
 &lt;txt-record&gt;model=Xserve&lt;/txt-record&gt;
&lt;/service&gt;

&lt;service&gt;
 &lt;type&gt;_adisk._tcp&lt;/type&gt;
 &lt;port&gt;9&lt;/port&gt;
 &lt;txt-record&gt;sys=waMA=00:00:00:00:00<em>,adVF=0x100</em>&lt;/txt-record&gt;
 &lt;txt-record&gt;dk0=adVF=0x83,adVN=<em>TimeMachineNAS</em>&lt;/txt-record&gt;
&lt;/service&gt;

&lt;/service-group&gt;</pre>
</div>
</div>
<div>Be sure to replace waMA= to your actual MAC address. I used a bridged adapter for failover, but normally this would be your eth0. Verify this by <em>sudo ifconfig -a</em></div>
<div></div>
<div>Next we need to allow the netatalk services to speak UDP for faster backups. <em>sudo vi /etc/netatalk/afpd.conf</em> and then add to the bottom of the file:</div>
<div style="padding-left: 30px;">- -udp -noddp -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so</div>
<div style="padding-left: 30px;"></div>
<div>Lastly lets restart all the services to ensure our NAS is ready to accept the TimeMachine backups by issuing <em>sudo /etc/init.d/netatalk restart</em> AND <em>sudo /etc/init.d/avahi-daemon restart</em></div>
<div></div>
<p><h4><strong>Convince the Mac its right at home:</strong></h4>
<div>
<div>
<div>To convince the Mac machine that its talking to an approved machine we have to open a Terminal and type in the following command: <em>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</em></div>
<p><h4><em></em><strong>Location, Location, Location:</strong></h4>
<div>The next few steps are important and complicated, but its the logic we assign to your Mac to know which location it is in. ControlPlane can provide many rules to determining location such as network adapter, bluetooth, time of day, etc. Since I have that spiffy new Thunderbolt Display I am lucky enough to have a guaranteed en3 network adapter each time I plugin. Your adapter may vary, but the logic in the following screenshots states: <em><strong>IF</strong> en3 (Display Adapter) is active <strong>THEN</strong> assume the location of the laptop is home.</em> Inversely if en3 is not active then assume the machine is away. For me this works great for when the laptop is upstairs, but still in the house. I obviously wouldn&#8217;t want to backup 256GiB over the wifi link.</div>
<div></div>
</p>
<p><div>1. Open ControlPlane and ensure that it is started at login and that Enable automatic switching is in use</div>
<div></div>
<div><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/1.png" rel="lightbox[1891]"><img class="size-full wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/1.png" alt="" width="413" height="377" /></a></div>
<div></div>
<div>2. Under evidence sources ensure that NetworkLink (or whatever you are using as the rule indicator) is checked</div>
</p>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/2.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/2.png" alt="" width="389" height="379" /></a></p>
<div>3. Create two new Contexts; Home and Away</div>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/3.5.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/3.5.png" alt="" width="393" height="393" /></a></p>
<div>4. Click the &#8220;+&#8221; and add a new rule</div>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/4.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/4.png" alt="" width="477" height="362" /></a></p>
<p>5. First rule states the en3 link is active and context is HOME</p>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/5.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/5.png" alt="" width="320" height="178" /></a></p>
<div>6. Next create an en3 is INACTIVE rule and assign it to Away. Your Rules screen should look like the below</div>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/7.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/7.png" alt="" width="477" height="362" /></a></p>
<div>7. With rules and contexts in place we can assign actions to those Context by executing our shell script <em><span style="text-decoration: underline;">switchtimemachinehome.sh</span></em> on Context Home&#8230;</div>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/8.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/8.png" alt="" width="498" height="491" /></a></p>
<div>8. And executing shell script <span style="text-decoration: underline;"><em>switchtimemachinemobile.sh</em></span> on Context Away</div>
<p style="text-align: center;"><a href="http://geekyschmidt.com/wp-content/uploads/2011/12/9.png" rel="lightbox[1891]"><img class=" wp-image-1900 aligncenter" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/12/9.png" alt="" width="498" height="491" /></a></p>
<div></div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2011/12/29/dual-time-machine-wielding-backups/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Why is my /dev/sda missing?!?!</title>
		<link>http://geekyschmidt.com/2011/03/12/why-is-my-devsda-missing</link>
		<comments>http://geekyschmidt.com/2011/03/12/why-is-my-devsda-missing#comments</comments>
		<pubDate>Sat, 12 Mar 2011 22:09:41 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[dm-crypt]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysfs]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=1711</guid>
		<description><![CDATA[<p>I am in the midst of testing some of the latest Linux kernels and realized that my old kernel config was wiped. In my desire to finish the build I forgot to select a VERY important option if you are using dm-crypt and LUKS. If you cannot access your /boot then there is no way [...]]]></description>
			<content:encoded><![CDATA[<p>I am in the midst of testing some of the latest Linux kernels and realized that my old kernel config was wiped. In my desire to finish the build I forgot to select a VERY important option if you are using dm-crypt and LUKS. If you cannot access your /boot then there is no way to upgrade your kernel. Chicken and egg issue. Another issue maybe that you lost your /dev/sda1 or other nodes due to udev overtaking. Here is the fix in the situation:</p>
<ol>
<li>cat /proc/partitions</li>
<li>Notice the Major/Minor columns associated with the partition you wish to mount. I will use /dev/sda1 as an example</li>
<li>mknod /dev/sda b 8 0</li>
<li>mknod /dev/sda1 b 8 1</li>
<li>mount /dev/sda1 /mnt/tmp</li>
</ol>
<p>Now you can copy your new kernel over outside the dm-crypt and boot correctly!</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2011/03/12/why-is-my-devsda-missing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tor != VPN &#8211; A Simple Explanation</title>
		<link>http://geekyschmidt.com/2011/02/22/tor-vpn-a-simple-explanation</link>
		<comments>http://geekyschmidt.com/2011/02/22/tor-vpn-a-simple-explanation#comments</comments>
		<pubDate>Tue, 22 Feb 2011 15:17:34 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[anonymous]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tor]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=1686</guid>
		<description><![CDATA[<p><a href="http://geekyschmidt.com/wp-content/uploads/2011/02/antoine-dodson.jpg" rel="lightbox[1686]"></a>I can&#8217;t take it anymore! I lurk on irc.freenode.net and /r/netsec and have seen a few too many mornings now that some person is safe, they used Tor. There is a big misunderstanding in what Tor actually does and protects. Here is my log in the fire to help explain the technology. Lets [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1691" class="wp-caption aligncenter" style="width: 346px"><a href="http://geekyschmidt.com/wp-content/uploads/2011/02/antoine-dodson.jpg" rel="lightbox[1686]"><img class="size-full wp-image-1691 " style="margin: 2px; border: 2px solid black;" title="antoine-dodson" src="http://geekyschmidt.com/wp-content/uploads/2011/02/antoine-dodson.jpg" alt="" width="336" height="243" /></a><p class="wp-caption-text">Shameless exploit of meme I know...</p></div>
<p><a href="http://geekyschmidt.com/wp-content/uploads/2011/02/antoine-dodson.jpg" rel="lightbox[1686]"></a>I can&#8217;t take it anymore! I lurk on irc.freenode.net and /r/netsec and have seen a few too many mornings now that some person is safe, <em>they used Tor. </em>There is a big misunderstanding in what Tor actually does and protects. Here is my log in the fire to help explain the technology. Lets start with the basics&#8230;</p>
<p><span style="text-decoration: underline;">What is Tor?</span></p>
<ul>
<li><strong>Tor</strong> is a system intended to enable online anonymity, composed of client software and a network of servers which can hide information about users&#8217; locations and other factors which might identify them. Use of this system makes it more difficult to trace internet traffic to the user, including visits to Web sites, online posts, instant messages, and other communication forms. It is intended to protect users&#8217; personal freedom, privacy, and ability to conduct confidential business, by keeping their internet activities from being monitored. The software is open-source and the network is free of charge to use. <em><span style="font-size: x-small;">Source: http://en.wikipedia.org/wiki/Tor_(anonymity_network)</span></em></li>
</ul>
<p>So Tor helps you hide information about your location and personal information. A note here that is generally forgotten: <strong>A misconfigured Tor node does not guarantee anonymity. </strong>Lets walk through a standard Tor exchange with a user using Tor to get to http://google.com.</p>
<p><img class="alignnone size-full wp-image-1687" title="Tor HTTP Transmission" src="http://geekyschmidt.com/wp-content/uploads/2011/02/Tor-HTTP-Transmission.png" alt="" width="551" height="208" /></p>
<ol>
<li>The user opens the browser that is configured to tunnel through their Tor node proxy server</li>
<li>The HTTP request is sent to the nearest known node and begins its transport through the Tor network</li>
<li>All communication within the node is encrypted using TLS/SSLv3 (shown with the red lines)</li>
<li>The HTTP request finds its way to the Exit Node shown in Green</li>
<li>Once the traffic leaves the Tor network through the exit node it is back to unencrypted HTTP requests</li>
<li>Our little robber dude is snatching your packets up</li>
</ol>
<p>What we learn is that the same attack vectors exist for unencrypted traffic wether you are using Tor or not. As George Fuechsel from IBM would say &#8220;Garbage In, Garbage Out.&#8221; Likewise if you toss unencrypted traffic in you get unencrypted traffic out. Lets run this scenario again, but this time use the encrypted search function of Google by visiting: <a href="https://encrypted.google.com/">https://encrypted.google.com/</a></p>
<p><a href="http://geekyschmidt.com/wp-content/uploads/2011/02/Tor-HTTPS-Transmission.png" rel="lightbox[1686]"><img class="alignnone size-full wp-image-1689" title="Tor HTTPS Transmission" src="http://geekyschmidt.com/wp-content/uploads/2011/02/Tor-HTTPS-Transmission.png" alt="" width="552" height="225" /></a></p>
<ol>
<li>The user opens the browser that is configured to tunnel through their Tor node proxy server</li>
<li>The HTTPS request is sent to the nearest known node and begins its transport through the Tor network</li>
<li>All communication within the node is encrypted using TLS/SSLv3 (shown with the red lines)</li>
<li>The HTTP request finds its way to the Exit Node shown in Green</li>
<li>Once the traffic leaves the Tor network through the exit node it is back to HTTPS requests</li>
<li>Our little robber dude is left wondering what, who, and why the traffic was traversing Tor</li>
</ol>
<p>By using HTTPS we have moved the attack vector from simple packet capturing to now the need to crack HTTPS. I focused entirely on HTTP, but it extends to <span style="font-weight: bold; text-decoration: underline;">ALL </span>traffic types. That is why if you are using Instant Messenger or IRC through Tor you need to rely on TLS or OTR to provide encryption in addition to the standard clients. I hope this clears up some of the misunderstanding about what Tor is and what it protects (or doesn&#8217;t protect).</p>
<p>&#8212; UPDATE &#8212;</p>
<p>After receiving countless comments about this being the same vulnerability with VPN technologies, yes you are correct. Unless your end-to-end traffic begins and ends inside the tunnel then you are vulnerable to the same exploits. The difference is many users relate Tor=Anonymity and Security. In addition most users would not have access to an IPsec or OpenVPN end-point. Many on the other hand are turning to Tor after they hear word like encryption, proxy, and anonymous thrown around in the same breath. I would argue that due to the lack of understanding in how Tor and by an extension of that VPNs work, people are left with a false sense of security. As my Air Force security instructor taught me in BIP200 &#8220;You can&#8217;t lock the front door and leave the windows open and expect someone to not be able to break in.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2011/02/22/tor-vpn-a-simple-explanation/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Configuring OpenBSD svnd for Encrypted Volumes</title>
		<link>http://geekyschmidt.com/2011/01/24/configuring-openbsd-svnd-for-encrypted-volumes</link>
		<comments>http://geekyschmidt.com/2011/01/24/configuring-openbsd-svnd-for-encrypted-volumes#comments</comments>
		<pubDate>Mon, 24 Jan 2011 18:04:58 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[crypto]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[svnd]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=1616</guid>
		<description><![CDATA[<p>I have covered just about everything possible for drive encryption in OpenBSD. My last post is on using the least recommended option for encrypted volumes. It is slower, unsupported, and unfortunately the best option for seamless operations :) The best way to think about svnd is if you have used truecrypt, it is very similar in that [...]]]></description>
			<content:encoded><![CDATA[<p>I have covered just about everything possible for drive encryption in OpenBSD. My last post is on using the least recommended option for encrypted volumes. It is slower, unsupported, and unfortunately the best option for seamless operations :) The best way to think about svnd is if you have used truecrypt, it is very similar in that you create an image rather than actually encrypting the entire partition. Using some fancy linking and auto mounts you can use it for hosting your /home /tmp and others. The instructions are below, but unlike the last howto it assumes your system is already installed. This is because svnd does not require you to modify the system prior to /install and can be a good security implementation to use if you are already up and running:</p>
<p><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/112.png" rel="lightbox[1616]"><img class="size-medium wp-image-1617 alignnone" title="1" src="http://geekyschmidt.com/wp-content/uploads/2011/01/112-300x197.png" alt="" width="300" height="197" /></a></p>
<p><strong>1. Create a salt file for random data that we will later use to encrypt the volume. I post mine in /etc/saltmine, but you can place it anywhere.</strong></p>
<p><strong><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/211.png" rel="lightbox[1616]"><img class="size-medium wp-image-1618 alignnone" title="2" src="http://geekyschmidt.com/wp-content/uploads/2011/01/211-300x197.png" alt="" width="300" height="197" /></a></strong></p>
<p><strong>2. We need to setup a volume to </strong><span style="font-weight: 800;">encrypt</span><strong>. I am going to assume you are using this to encrypt your /home directory, but the same instructions work for any folder you might be doing this with. This example assumes a 1GiB file. Enter the command: <em>dd if=/dev/zero of=/home_crypt bs=1m count=1024</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/34.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1619" title="3" src="http://geekyschmidt.com/wp-content/uploads/2011/01/34-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>3. With the image file created we can tell svnd to encrypt the volume and associate it with a dev node. In the command you will see that we are specifying the number of rounds with the -K and our salt file with -S. You will need to note that we are using svnd1 and the -K -S values as they will be needed to mount. <em>vnconfig  -v -c -K 1440 -S /etc/saltmine svnd1 /home_crypt</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/42.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1620" title="4" src="http://geekyschmidt.com/wp-content/uploads/2011/01/42-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>4.<em> </em>Now we initialize a black MBR on the image: <em>fdisk -iy svnd1</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/52.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1621" title="5" src="http://geekyschmidt.com/wp-content/uploads/2011/01/52-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>5. We need to create a filesystem so that we can mount and copy our preexisting data across. This will look very much like your install process when you began. For more information on howto use disklabel, reference the man pages. The key here is that we issue:<em> disklabel -E svnd1</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/62.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1622" title="6" src="http://geekyschmidt.com/wp-content/uploads/2011/01/62-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>6. Now we create the filesystem:<em> newfs /dev/rsvnd1a</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/72.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1623" title="7" src="http://geekyschmidt.com/wp-content/uploads/2011/01/72-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>7. In order for us to mount this as our home drive we must move our preexisting data.<em> mv /home /home.orig</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/82.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1624" title="8" src="http://geekyschmidt.com/wp-content/uploads/2011/01/82-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>8. Create a home directory and mount your svnd image:<em> mkdir /home &amp;&amp; mount /dev/svnd1a /home </em></strong><strong>There you have it. You can rsync your data back from your prior home folder with<em>: rsync -av /home.orig/* /home</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/9.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1625" title="9" src="http://geekyschmidt.com/wp-content/uploads/2011/01/9-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>9. Now lets walk through unmounting the file. The difference between mounting a standard drive versus this is that we have two steps, unmounting and removing the association with the svnd file. <em>umount /home &amp;&amp; vnconfig -v -u /dev/svnd1</em></strong></p>
<p><strong><em><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/122.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1628" title="12" src="http://geekyschmidt.com/wp-content/uploads/2011/01/122-300x197.png" alt="" width="300" height="197" /></a></em></strong></p>
<p><strong>10. To ensure on reboot you are autoprompted for the password before logging in (and therefore keeping your /home intact) we need to edit /etc/rc.local What we do here is automate the vnconfig command from earlier </strong></p>
<p><strong><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/132.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1629" title="13" src="http://geekyschmidt.com/wp-content/uploads/2011/01/132-300x197.png" alt="" width="300" height="197" /></a></strong></p>
<p><strong>11. Likewise to mounting on startup, we want to unmount on shutdown. Edit the /etc/rc.shutdown file and ensure the umount commands and removal of the svnd association are present</strong></p>
<p><strong><a href="http://geekyschmidt.com/wp-content/uploads/2011/01/142.png" rel="lightbox[1616]"><img class="alignnone size-medium wp-image-1630" title="14" src="http://geekyschmidt.com/wp-content/uploads/2011/01/142-300x197.png" alt="" width="300" height="197" /></a></strong></p>
<p><strong>12. On reboot you will be stopped until you enter your passphrase from earlier. Success!</strong></p>
<p>&#8212;- Great tip from David @ www.davidkrause.com &#8212;-</p>
<p>I can&#8217;t seem to leave a comment on your article but fstab has support<br />
for encrypted svnds.  Then you don&#8217;t have to pass so many options to<br />
vnconfig.</p>
<p>For example:</p>
<p>/home/mnt/mydir /dev/svnd1c vnd rw,-K=20000,-S=/home/mnt/mydir.slt 0 0<br />
/dev/svnd1a /home/mydir ffs rw,sync,noauto,nodev,nosuid 0 0</p>
<p>Then you can run:<br />
mount /home/mnt/mydir<br />
mount /home/mydir</p>
<p>I have some local changes to /etc/rc and /etc/rc.shutdown to make this<br />
nicer though.  Without this the boot will hang until the key is entered,<br />
but some people might want that.  Then the second part does the fsck and<br />
mounts the final partition since it&#8217;s noauto.</p>
<p>David</p>
<p>&#8212; rc  Thu Jan 20 01:29:49 2011<br />
+++ /etc/rc     Tue Jan 18 00:37:59 2011<br />
@@ -495,7 +495,13 @@<br />
fi<br />
echo &#8216;.&#8217;</p>
<p>-mount -a<br />
+echo &#8220;Press Control-C within the next 10 secounds to mount vnd.&#8221;<br />
+sleep 10<br />
+if [ $? -eq 0 ]; then<br />
+       mount -a -t novnd<br />
+else<br />
+       mount -a<br />
+fi</p>
<p>swapctl -A -t noblk</p>
<p>@@ -564,6 +570,17 @@<br />
fi<br />
done<br />
fi<br />
+<br />
+# mount any vnd-backed filesystems (must be after dev_mkdb runs)<br />
+for vnd in `vnconfig -l | fgrep covering | cut -d: -f1`; do<br />
+       for vndpart in `grep ^/dev/s$vnd /etc/fstab | awk &#8216;{ print $1 }&#8217;`; do<br />
+               echo &#8220;mounting vnd $vndpart&#8221;<br />
+               fsck -p $vndpart<br />
+               if [ $? -eq 0 ]; then<br />
+                       mount $vndpart<br />
+               fi<br />
+       done<br />
+done</p>
<p>[ -f /etc/rc.securelevel ] &amp;&amp; . /etc/rc.securelevel<br />
if [ X"${securelevel}" != X"" ]; then</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2011/01/24/configuring-openbsd-svnd-for-encrypted-volumes/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sony Vaio P788K Ubuntu 9.10 Load</title>
		<link>http://geekyschmidt.com/2010/03/22/sony-vaio-p788k-ubuntu-9-10-load</link>
		<comments>http://geekyschmidt.com/2010/03/22/sony-vaio-p788k-ubuntu-9-10-load#comments</comments>
		<pubDate>Mon, 22 Mar 2010 23:48:32 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[sony]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vaiop]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=1168</guid>
		<description><![CDATA[<p>Ubuntu 9.10 is the last usable version of Linux for use with the <a href="https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/" target="_blank">GMA500 craptasic video card</a>. As it stands today I cannot recommend using Linux full-time on the laptop. As a hardcore linux geek that saddens me in my heart. Hopefully with the release of the <a href="http://www.phoronix.com/scan.php?page=news_item&#38;px=NzY2Mg" target="_blank">&#8220;new&#8221; drivers</a> we will [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 9.10 is the last usable version of Linux for use with the <a href="https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/" target="_blank">GMA500 craptasic video card</a>. As it stands today I cannot recommend using Linux full-time on the laptop. As a hardcore linux geek that saddens me in my heart. Hopefully with the release of the <a href="http://www.phoronix.com/scan.php?page=news_item&amp;px=NzY2Mg" target="_blank">&#8220;new&#8221; drivers</a> we will be good to all switchback to a big boy OS. Thanks to <a href="http://westhoffswelt.de" target="_blank">Jakob Westhoff</a> for his notes on the Vaio X which helped a good bit here. Notes below:</p>
<ul>
<li dir="ltr">Install Windows 7 to active Verizon Gobi Modem  and Firmware</li>
<li dir="ltr">Install GMA 500 Graphics driver
<ul>
<li dir="ltr">wget <a href="http://dl.dropbox.com/u/1338581/Gma500/scripts/poulsbo.sh">http://dl.dropbox.com/u/1338581/Gma500/scripts/poulsbo.sh</a> &amp;&amp; sh ./poulsbo.sh</li>
<li dir="ltr">add mem=2000 <a href="file:///etc/default/grub">/etc/default/grub</a></li>
<li dir="ltr">update-grub</li>
<li dir="ltr">After reboot dpkg-reconfigure psb-kernel-source</li>
</ul>
</li>
<li dir="ltr">Edit <a href="file:///etc/apt/sources.list">/etc/apt/sources.list</a> to include  universe and multiverse</li>
<li dir="ltr">sudo apt-get dist-upgrade</li>
<li dir="ltr">reboot</li>
<li dir="ltr">Update system to include <a href="file:///home/nickers/Desktop/Ubuntu%209.10%20Install%20Vaio%20P.html#ssd%20optimizations">SSD  optimizations</a></li>
<li dir="ltr">Install sony-laptop-zseries module
<ul>
<li dir="ltr"><a href="http://www.logic.at/people/preining/software/">http://www.logic.at/people/preining/software/</a></li>
<li dir="ltr">sudo -i</li>
<li dir="ltr">mkdir -p <a href="file:///usr/share/sony-laptop">/usr/share/sony-laptop</a></li>
<li dir="ltr">Extract np5 into directory</li>
<li dir="ltr">ln -sf  ../share/sony-laptop/sony-laptop-zseries-0.9np5 <a href="file:///usr/src/sony-laptop-zseries-0.9np5">/usr/src/sony-laptop-zseries-0.9np5</a></li>
<li dir="ltr">dkms add -m sony-laptop-zseries -v 0.9np5</li>
<li dir="ltr"><a href="file:///etc/init.d/dkms_autoinstaller">/etc/init.d/dkms_autoinstaller</a> start</li>
<li dir="ltr">vi <a href="file:///etc/modules">/etc/modules</a></li>
</ul>
</li>
<li dir="ltr">Turn on WWAN hardware
<ul>
<li dir="ltr">mkdir <a href="file:///lib/firmware/gobi">/lib/firmware/gobi</a></li>
<li dir="ltr">Copy files from:
<ul>
<li dir="ltr">C:\Program Files\Qualcomm\Images\Sony\1\AMSS.mbn</li>
<li dir="ltr">C:\Program Files\Qualcomm\Images\Sony\1\Apps.mbn</li>
<li dir="ltr">C:\Program Files\Qualcomm\Images\Sony\1\UQCN.mbn</li>
<li dir="ltr">to <a href="file:///lib/firmware/gobi">/lib/firmware/gobi</a></li>
</ul>
</li>
<li dir="ltr">Download qcserial and extract to <a href="file:///usr/src/">/usr/src/</a>
<ul>
<li dir="ltr"><a href="http://westhoffswelt.de/data/blog/vaiox_gobi2000/qcserial_with_gobi2000_support.tar.gz">http://westhoffswelt.de/data/blog/vaiox_gobi2000/qcserial_with_gobi2000_support.tar.gz</a></li>
<li dir="ltr">cd <a href="file:///usr/src/qcserial">/usr/src/qcserial</a></li>
<li dir="ltr">make</li>
<li dir="ltr">make install</li>
<li dir="ltr">echo &#8220;qcserial&#8221; &gt;&gt;/etc/modules</li>
</ul>
</li>
<li dir="ltr">Download gobi loader for Linux and extract  to <a href="file:///usr/src">/usr/src</a>
<ul>
<li dir="ltr"><a href="http://westhoffswelt.de/data/blog/vaiox_gobi2000/gobi_loader_with_gobi2000_support.tar.gz">http://westhoffswelt.de/data/blog/vaiox_gobi2000/gobi_loader_with_gobi2000_support.tar.gz</a></li>
<li dir="ltr">make</li>
<li dir="ltr">make install</li>
</ul>
</li>
</ul>
</li>
<li dir="ltr">Enable Suspend
<ul>
<li dir="ltr">Install PSB fix in <a href="file:///etc/pm/sleep.d/99_psb_fix">/etc/pm/sleep.d/99_psb_fix</a></li>
<li dir="ltr">Touch <a href="file:///etc/pm/sleep.d/98smart-kernel-video">/etc/pm/sleep.d/98smart-kernel-video</a></li>
<li dir="ltr">Install USB Wakeup fix for QCSerial Gobi issue in <a href="file:///usr/lib/pm-utils/sleep.d/00usbsleep">/usr/lib/pm-utils/sleep.d/00usbsleep</a></li>
</ul>
</li>
<li dir="ltr">Enable console framebuffer
<ul>
<li dir="ltr">Edit <a href="file:///etc/default/grub">/etc/default/grub</a></li>
<li dir="ltr">set gfxmode=1024&#215;768
<ul>
<li dir="ltr">You can do the full 1600&#215;768, but on the console I  prefer larger fonts</li>
</ul>
</li>
<li dir="ltr">Edit <a href="file:///etc/grub.d/00_header">/etc/grub.d/00_header</a>
<ul>
<li>
<ul>
<li dir="ltr">if  loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ;  then</li>
<li dir="ltr"> set gfxmode=${GRUB_GFXMODE}</li>
<li dir="ltr"> set gfxpayload=keep</li>
</ul>
</li>
<li dir="ltr">IT HAS TO GO UNDER &#8220;set gfxmode&#8230;&#8221;</li>
</ul>
</li>
</ul>
</li>
<li dir="ltr">Enable scroll trackpoint
<ul>
<li dir="ltr">sudo vi <a href="file:///etc/hal/fdi/policy/mouse-wheel.fdi">/etc/hal/fdi/policy/mouse-wheel.fdi</a></li>
</ul>
</li>
<li dir="ltr">Install RFkill Applet to disable radios
<ul>
<li dir="ltr"><a href="http://www.logic.at/people/preining/software/rfkill-applet-0.6.tar.gz">http://www.logic.at/people/preining/software/rfkill-applet-0.6.tar.gz</a></li>
<li dir="ltr">Execute with the following installer: <a href="file:///home/nickers/Desktop/Ubuntu%209.10%20Install%20Vaio%20P.html#rfkill%20install.sh">rfkill  install.sh</a></li>
<li dir="ltr">Reboot and add to panel</li>
</ul>
</li>
<li dir="ltr">Internal Mic Fix
<ul>
<li dir="ltr">sudo apt-get install  linux-backports-modules-alsa-2.6.31-20-generic</li>
<li dir="ltr">sudo add-apt-repository ppa:ricotz/unstable</li>
<li dir="ltr">sudo apt-get update &amp;&amp; sudo apt-get  dist-upgrade</li>
<li dir="ltr">Edit <a href="file:///etc/modprobe.d/alsa-base.conf">/etc/modprobe.d/alsa-base.conf</a></li>
<li dir="ltr">Add at the bottom of the file
<ul>
<li dir="ltr">options snd-hda-intel model=toshiba-s06 power_save=10  power_save_controller=N</li>
</ul>
</li>
<li dir="ltr">On Sound Preferences change Profile to  Analog Stereo Duplex</li>
<li dir="ltr">Turn speaker volume up HIGH</li>
</ul>
</li>
</ul>
<p><span id="more-1168"></span><strong>Ubuntu Linux 9.10 SSD Optimizations</strong></p>
<p>Disable Access Time Attributes<br />
Edit your /etc/fstab. Modify the root partitions settings. Add noatime and nodiratime to defaults.</p>
<p>/dev/sda2 / ext4 noatime,nodiratime,errors=remount-ro 0       1</p>
<p>Optimizing the Kernel<br />
Add the following to the /etc/sysctl.conf</p>
<p>vm.swappiness=0<br />
vm.vfs_cache_pressure=50</p>
<p>Optimizing the Scheduler<br />
Edit /etc/default/grub and add noop to end of mem=2000MB</p>
<p>GRUB_CMDLINE_LINUX_DEFAULT=&#8221;quiet splash mem=2000MB elevator=noop&#8221;</p>
<p>Run sudo update-grub afterward</p>
<p><!--more--><strong>RFKill Install.sh &#8211; </strong>the program doesn&#8217;t include an install program. Here is a small script</p>
<p>#!/bin/bash</p>
<p>sudo cp rfkill-applet.py /usr/bin/rfkill-applet<br />
sudo chmod a+x /usr/bin/rfkill-applet<br />
sudo cp rfkill-applet.server /usr/lib/bonobo/servers/<br />
sudo chmod a+x /usr/lib/bonobo/servers/rfkill-applet.server<br />
sudo cp rfkill-applet.png /usr/share/pixmaps<br />
sudo cp rfkill-applet-hardoff.png /usr/share/pixmaps<br />
sudo cp rfkill-applet.config /etc/</p>
<p><!--more--><strong>/etc/hal/fdi/policy/mouse-wheel.fdi</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;</p>
<p>&lt;match key=&#8221;info.product&#8221; string=&#8221;PS/2 Generic Mouse&#8221;&gt;<br />
&lt;merge key=&#8221;input.x11_options.EmulateWheel&#8221; type=&#8221;string&#8221;&gt;true&lt;/merge&gt;<br />
&lt;merge key=&#8221;input.x11_options.EmulateWheelButton&#8221; type=&#8221;string&#8221;&gt;2&lt;/merge&gt;<br />
&lt;merge key=&#8221;input.x11_options.YAxisMapping&#8221; type=&#8221;string&#8221;&gt;4 5&lt;/merge&gt;<br />
&lt;merge key=&#8221;input.x11_options.Emulate3Buttons&#8221; type=&#8221;string&#8221;&gt;true&lt;/merge&gt;<br />
&lt;merge key=&#8221;input.x11_options.EmulateWheelTimeout&#8221; type=&#8221;string&#8221;&gt;200&lt;/merge&gt;<br />
&lt;/match&gt;</p>
<p><!--more--><strong>/usr/lib/pm-utils/sleep.d/00usbsleep</strong></p>
<p># disable wakeup events when suspending from USB<br />
echo disabled &gt; /sys/bus/usb/devices/usb1/power/wakeup<br />
echo disabled &gt; /sys/bus/usb/devices/usb2/power/wakeup<br />
echo disabled &gt; /sys/bus/usb/devices/usb3/power/wakeup<br />
echo disabled &gt; /sys/bus/usb/devices/usb4/power/wakeup</p>
<p><!--more--><strong>/etc/pm/sleep.d/99_psb_fix</strong></p>
<p>#!/bin/sh</p>
<p>ACTION=$1</p>
<p>case &#8220;$ACTION&#8221; in<br />
suspend|hibernate)<br />
fgconsole &gt;/tmp/xconsole.pm-sleep.tmp<br />
;;<br />
resume|thaw)<br />
chvt 1<br />
chvt `cat /tmp/xconsole.pm-sleep.tmp`<br />
;;</p>
<p>esac</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2010/03/22/sony-vaio-p788k-ubuntu-9-10-load/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lexmark Drivers for Ubuntu/Debian</title>
		<link>http://geekyschmidt.com/2009/05/05/lexmark-drivers-for-ubuntudebian</link>
		<comments>http://geekyschmidt.com/2009/05/05/lexmark-drivers-for-ubuntudebian#comments</comments>
		<pubDate>Tue, 05 May 2009 10:18:17 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lexmark]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Techie]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=970</guid>
		<description><![CDATA[<p>Lexmark provides subpar Linux drivers for any distro, but Ubuntu/Debian is horrible. At work we moved from HP Printers to Lexmark. The situation reminds me of ATI hardware in the late-90&#8242;s, great hardware and crappy drivers. I converted the Red Hat RPM for Debian based systems. Attached below:</p> <p>To install sudo dpkg -i<a href="http://geekyschmidt.com/wp-content/uploads/2009/05/drivers-lexprtdrv_552-2_i386.deb"> drivers-lexprtdrv_552-2_i386.deb</a></p>]]></description>
			<content:encoded><![CDATA[<p>Lexmark provides subpar Linux drivers for any distro, but Ubuntu/Debian is horrible. At work we moved from HP Printers to Lexmark. The situation reminds me of ATI hardware in the late-90&#8242;s, great hardware and crappy drivers. I converted the Red Hat RPM for Debian based systems. Attached below:</p>
<p>To install sudo dpkg -i<a href="http://geekyschmidt.com/wp-content/uploads/2009/05/drivers-lexprtdrv_552-2_i386.deb"> drivers-lexprtdrv_552-2_i386.deb</a></p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2009/05/05/lexmark-drivers-for-ubuntudebian/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error in Service Module</title>
		<link>http://geekyschmidt.com/2009/04/17/error-in-service-module</link>
		<comments>http://geekyschmidt.com/2009/04/17/error-in-service-module#comments</comments>
		<pubDate>Sat, 18 Apr 2009 01:34:59 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=968</guid>
		<description><![CDATA[<p>If you are on a OpenSuSE or SuSE SLES/SLED machine and have recently mounted /var to a new parition, you might get the following error:</p> <p>&#8220;Error in service module&#8221;<br /> If it keeps you from logging in, boot single user and touch /var/log/lastlog as root</p>]]></description>
			<content:encoded><![CDATA[<p>If you are on a OpenSuSE or SuSE SLES/SLED machine and have recently mounted /var to a new parition, you might get the following error:</p>
<p><span class="MsgBodyText">&#8220;Error in service module&#8221;</span><br />
If it keeps you from logging in, boot single user and touch /var/log/lastlog as root</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2009/04/17/error-in-service-module/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix for Songbird showing songs still on iPod</title>
		<link>http://geekyschmidt.com/2009/01/03/fix-for-songbird-showing-songs-still-on-ipod</link>
		<comments>http://geekyschmidt.com/2009/01/03/fix-for-songbird-showing-songs-still-on-ipod#comments</comments>
		<pubDate>Sun, 04 Jan 2009 03:24:28 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[songbird]]></category>
		<category><![CDATA[Techie]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=939</guid>
		<description><![CDATA[<p>I formatted my iPod recently and noticed that Songbird still thought the Library had media on it. Loading up a factory restore didn&#8217;t help. To clear the iPod cache here is the location:</p> <p>In the profiles directory you will see a db folder. Remove all iPod* folders and restart Songbird. Now the Library will show [...]]]></description>
			<content:encoded><![CDATA[<p>I formatted my iPod recently and noticed that Songbird still thought the Library had media on it. Loading up a factory restore didn&#8217;t help. To clear the iPod cache here is the location:</p>
<p>In the profiles directory you will see a db folder. Remove all iPod* folders and restart Songbird. Now the Library will show the blankness that is your iPod.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2009/01/03/fix-for-songbird-showing-songs-still-on-ipod/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move from Physical to Virtual with CloneZilla</title>
		<link>http://geekyschmidt.com/2008/12/17/move-from-physical-to-virtual-with-clonezilla</link>
		<comments>http://geekyschmidt.com/2008/12/17/move-from-physical-to-virtual-with-clonezilla#comments</comments>
		<pubDate>Wed, 17 Dec 2008 19:44:29 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[clonezilla]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualize]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=793</guid>
		<description><![CDATA[<p>Just a side note for when I forget how I fixed this&#8230;</p> <p>When using CloneZilla you can capture server images and redeploy them unless there are hardware differences. To fix issues with hardware changes between physical server hardware and VMware here are my fix actions:</p> Windows 2003 Enterprise Change the hard drive to IDE from [...]]]></description>
			<content:encoded><![CDATA[<p>Just a side note for when I forget how I fixed this&#8230;</p>
<p>When using CloneZilla you can capture server images and redeploy them unless there are hardware differences. To fix issues with hardware changes between physical server hardware and VMware here are my fix actions:</p>
<ul>
<li>Windows 2003 Enterprise
<ul>
<li>Change the hard drive to IDE from SCSI. Windows will blue screen when you boot after image deployment since it cannot find the drive to boot from. You will get the error: <a href="http://support.microsoft.com/kb/324103" target="_blank">0x0000007b</a></li>
<li>After booting windows 2003 you can then install the BusLogic or LSI SCSI drivers</li>
</ul>
</li>
<li>Red Hat Linux 5
<ul>
<li>Boot with the first CD of the install set and instead of an install, use linux rescue.</li>
<li>Once booted chroot /mnt/sysimage</li>
<li>Blank out the /etc/modprobe.conf</li>
<li>mv /boot/initrd-2.6.18-20.el5.img /boot/initrd-2.6.18-20.el5.img.orig</li>
<li>mkinitrd /boot/initrd-2.6.18-20.el5.img 2.6.18-20.el5</li>
<li>reboot</li>
</ul>
</li>
<li>Windows XP
<ul>
<li>Change the hard drive to IDE from SCSI. Windows XP in the default install does not include the two SCSI adapters VMware supports, BusLogic or LSI Logic.</li>
<li>During the CloneZilla restore you are given a few options. The ones to select to ensure a successful MBR restore are:
<ul>
<li>-t1</li>
<li>-j1</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>These settings will allow you to move your physical clonezilla images to vmware.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2008/12/17/move-from-physical-to-virtual-with-clonezilla/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NetBackup with RHEL5 &#8211; CentOS IPTables</title>
		<link>http://geekyschmidt.com/2008/10/24/netbackup-with-rhel5-centos-iptables</link>
		<comments>http://geekyschmidt.com/2008/10/24/netbackup-with-rhel5-centos-iptables#comments</comments>
		<pubDate>Fri, 24 Oct 2008 22:39:43 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Techie]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[netbackup]]></category>
		<category><![CDATA[veritas]]></category>

		<guid isPermaLink="false">http://geekyschmidt.com/?p=711</guid>
		<description><![CDATA[<p>First you need to open the iptables firewall settings:</p> <p>## NetBackup Client Firewall Ports<br /> iptables -D RH-Firewall-1-INPUT -j REJECT &#8211;reject-with icmp-host-prohibited</p> <p>iptables -A RH-Firewall-1-INPUT -m state &#8211;state NEW -p tcp &#8211;dport bpcd-j ACCEPT &#8211;src &#60;ip of master server&#62;</p> <p>iptables -A RH-Firewall-1-INPUT -j REJECT &#8211;reject-with icmp-host-prohibited</p> <p>/etc/init.d/iptables restart</p> </p> <p>]]></description>
			<content:encoded><![CDATA[<p>First you need to open the iptables firewall settings:</p>
<p>## NetBackup Client Firewall Ports<br />
iptables -D RH-Firewall-1-INPUT -j REJECT &#8211;reject-with icmp-host-prohibited</p>
<p>iptables -A RH-Firewall-1-INPUT -m state &#8211;state NEW -p tcp &#8211;dport bpcd-j ACCEPT &#8211;src &lt;ip of master server&gt;</p>
<p>iptables -A RH-Firewall-1-INPUT -j REJECT &#8211;reject-with icmp-host-prohibited</p>
<p>/etc/init.d/iptables restart</p>
<div id=":2y" class="ArwC7c ckChnd"><span style="color: #888888;"></p>
<div style="margin-left: 30pt;"></div>
<p></span></div>
]]></content:encoded>
			<wfw:commentRss>http://geekyschmidt.com/2008/10/24/netbackup-with-rhel5-centos-iptables/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

