<?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>Cain Manor</title> <atom:link href="http://cainmanor.com/feed/" rel="self" type="application/rss+xml" /><link>http://cainmanor.com</link> <description>Your Guide To All Things Cain™</description> <lastBuildDate>Mon, 01 Apr 2013 18:28:01 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>The Stars Died So That You Could Be Here Today</title><link>http://cainmanor.com/personal/the-stars-died/</link> <comments>http://cainmanor.com/personal/the-stars-died/#comments</comments> <pubDate>Thu, 13 Dec 2012 14:51:02 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Personal]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1315</guid> <description><![CDATA[This is my favorite quote for this dark, rainy time of year&#8230; The amazing thing is that every atom in your body came from a star that exploded. And, the atoms in your left hand probably came from a different star than your right hand. It really is the most poetic thing I know about ...</p><p><a
href="http://cainmanor.com/personal/the-stars-died/" class="more-link">Continue reading &#8216;The Stars Died So That You Could Be Here Today&#8217; &#187;</a>]]></description> <content:encoded><![CDATA[<p>This is my favorite quote for this dark, rainy time of year&#8230;</p><p
style="padding-left: 30px;">The amazing thing is that every atom in your body came from a star that exploded. And, the atoms in your left hand probably came from a different star than your right hand. It really is the most poetic thing I know about physics: You are all stardust. You couldn’t be here if stars hadn’t exploded, because the elements &#8211; the carbon, nitrogen, oxygen, iron, all the things that matter for evolution &#8211; weren’t created at the beginning of time. They were created in the nuclear furnaces of stars, and the only way they could get into your body is if those stars were kind enough to explode. So, forget Jesus. The stars died so that you could be here today.</p><p>Quote by <a
title="Wiki Entry" href="http://en.wikipedia.org/wiki/Lawrence_M._Krauss" target="_blank">Lawrence M. Krauss</a> sourced from <a
href="http://en.wikiquote.org/wiki/Lawrence_M._Krauss" target="_blank">Wikiquote</a>.</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/personal/the-stars-died/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tips for installing VMware Single Sign-on in vSphere 5.1.0a</title><link>http://cainmanor.com/tech/tips-for-installing-vmware-single-sign-on-in-vsphere-5-1/</link> <comments>http://cainmanor.com/tech/tips-for-installing-vmware-single-sign-on-in-vsphere-5-1/#comments</comments> <pubDate>Tue, 11 Dec 2012 04:50:37 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Tech]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1310</guid> <description><![CDATA[I’ve lost many hours of my life trying to get VMware Single Sign-on(SSO) installed for an installation of vSphere 5.1.  Here are some of the tips that I used to finally get it installed. First a few details.  The vSphere install was on a Windows 2008 server, and the database backend was Oracle 11g. Read ...</p><p><a
href="http://cainmanor.com/tech/tips-for-installing-vmware-single-sign-on-in-vsphere-5-1/" class="more-link">Continue reading &#8216;Tips for installing VMware Single Sign-on in vSphere 5.1.0a&#8217; &#187;</a>]]></description> <content:encoded><![CDATA[<p>I’ve lost many hours of my life trying to get VMware Single Sign-on(SSO) installed for an installation of vSphere 5.1.  Here are some of the tips that I used to finally get it installed.</p><p>First a few details.  The vSphere install was on a Windows 2008 server, and the database backend was Oracle 11g.</p><p><span
id="more-1310"></span></p><ul><li>Read the <a
title="vSphere Installation and Setup" href="http://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.install.doc/GUID-7C9A1E23-7FCD-4295-9CB1-C932F2423C63.html" target="_blank">documentation</a>.  It’s rather long, but most of it isn’t going to be relevant to your situation.  Kudos to VMware for releasing <a
title="VMware Documentation" href="http://www.vmware.com/support/pubs/vsphere-esxi-vcenter-server-pubs.html">documentation</a> in ePub format.</li><li>Use this <a
title="64-bit Oracle Data Access Components (ODAC) Downloads" href="http://www.oracle.com/technetwork/topics/winx64soft-089540.html">link</a> and download the ODAC drivers.  Install everything.</li><li>Don’t use this <a
title="Instant Client Downloads  for Microsoft Windows (x64)" href="http://www.oracle.com/technetwork/topics/winx64soft-089540.html" target="_blank">link</a>.  Could not get these drivers to work.</li><li>Set your %ORACLE_HOME% and %TNS_ADMIN% system (not user) variables.   Oracle was installed on c:\Oracle, and I was installing version 11.2.0.3.20 on a brand new server.  My %ORACLE_HOME% was set to C:\Oracle\product\11.2.0\client_1, and my  %TNS_ADMIN% was C:\Oracle\product\11.2.0\client_1\Network\Admin.  Your  %TNS_ADMIN% is where your sqlnet.ora and tnsnames.ora must live.  You can copy examples from a “Samples” directory for guidance.  The tnsames.ora must be correct for the next step to work.</li><li>Once they are installed, you’ll need to create your ODBC drivers in Windows.  The requirement is for a 64 bit system DSN.  Make sure to use this &#8220;Data Sources (ODBC )&#8221;, which is found in &#8220;Control Panel\All Control Panel Items\Administrative Tools.”  If you use this, you WILL get the 64 bit ODBC drivers, and you’ll find them in the dropdown box under “System DSN -&gt; TNS Service Name.”</li><li>The server must have a PTR (reverse) record.</li><li>IIS must either be uninstalled or disabled.  I’ve disabled it.  In Windows 2008, it’s referred to as “World Wide Web Publishing Service”, not IIS.</li></ul><p>Now that you have this done, you’re ready to install SSO service.  You want to get the newest image you can.  There have been several revisions since I started this exercise (5.1, 5.1.0a, and lastly 5.1.0a build 880471.)  There are vast difference between   each of those releases, with improvements and clarifications in each release, as it relates to Single Sign-on, and I would expect the improvements to continue.</p><p>Once SSO is installed, the only other error I ran into was a requirement that the database user have additional DBA privileges.  Should this happen, you’ll get a nice, descriptive error box with all the information you need to give your DBA.</p><p>Good Luck!!</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/tips-for-installing-vmware-single-sign-on-in-vsphere-5-1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Gmail Security 102</title><link>http://cainmanor.com/tech/gmail-security-102/</link> <comments>http://cainmanor.com/tech/gmail-security-102/#comments</comments> <pubDate>Wed, 04 Jul 2012 19:55:39 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Online]]></category> <category><![CDATA[Tech]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1284</guid> <description><![CDATA[Google has a very nice security feature everyone should be using.  It&#8217;s called 2-step verification.  It&#8217;s relatively simple to setup, and there is a little bit of administrative overhead, but you should do it just the same.    These instructions are for Google Apps, but they should work for everyone. As a Google App administrator, ...</p><p><a
href="http://cainmanor.com/tech/gmail-security-102/" class="more-link">Continue reading &#8216;Gmail Security 102&#8217; &#187;</a>]]></description> <content:encoded><![CDATA[<p>Google has a very nice security feature everyone should be using.  It&#8217;s called <a
href="https://support.google.com/accounts/bin/topic.py?hl=en&amp;topic=28786">2-step verification</a>.  It&#8217;s relatively simple to setup, and there is a little bit of administrative overhead, but you should do it just the same.    These instructions are for Google Apps, but they should work for everyone.<br
/> <span
id="more-1284"></span></p><p>As a Google App administrator, the first thing you need to do is allow your users to enable 2-step verification.   This step is only for Google App Administrators.</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-01.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1286" title="2-step verification 01" src="http://photos.cainmanor.com/2012/07/2-step-verification-01.jpg" alt="" width="1084" height="332" /></a></p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-02.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1287" title="2-step verification 02" src="http://photos.cainmanor.com/2012/07/2-step-verification-02.jpg" alt="" width="687" height="471" /></a></p><p>With this enabled, you can now setup 2-step verification for your account.  Everything below should apply to both Google App and regular Gmail users.</p><p>Go into Account Settings</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-03.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1288" title="2-step verification 03" src="http://photos.cainmanor.com/2012/07/2-step-verification-03.jpg" alt="" width="1070" height="301" /></a></p><p>&nbsp;</p><p>And turn 2-step verification on (it defaults to off.)</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-04.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1289" title="2-step verification 04" src="http://photos.cainmanor.com/2012/07/2-step-verification-04.jpg" alt="" width="547" height="323" /></a></p><p>From the Account &gt; Security, under &#8220;2-step verification&#8221;, click Edit.  Verify your 2-step verification is ON.</p><p>Now that it&#8217;s on, let&#8217;s go in and setup your access.  When you set this up, Google will send an SMS message to your phone.</p><p>From this point on, if you have a &#8220;dumb phone&#8221;, you can continue to get SMS messages whenever you need access.  I&#8217;ve got an iPhone, so this tutorial will focus on that.   You&#8217;ll need to get the <a
title="Google Authenticator in the App Store" href="http://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8" target="_blank">Google Authenticator</a> in the App Store.   You&#8217;ll then need to set it up with this account, and that just involves opening the app, pointing your phone at the on screen barcode, and then entering the resulting code into the web form.    You only have to do that once to set it up.  Afterwards, you&#8217;ll need to enter a code once every 30 days for whatever computer you&#8217;re on (if you check the &#8220;remember me for 30 days&#8221; checkbox.&#8221;), along with your password for access.</p><p>At this point, your Google account is secure, but you have a single point of failure.  If you lose your phone, you&#8217;ve got no way into your account.  Google is a few steps ahead of you.  First, you should add a &#8220;Backup phone number.&#8221;   This cannot be your iPhone phone number, since you&#8217;re using the Google Authenticator.  If you can, use someone close to you &#8211; your friends, your kids, your spouse.  Additionally, whoever you designate for your backup phone number should also have 2-step authentication.  If they don&#8217;t, you&#8217;re not getting the full security that this process provides.  There have been <a
title="Cloudflare Hack" href="http://blog.cloudflare.com/post-mortem-todays-attack-apparent-google-app">exploits</a>.</p><p>The third, and final, way to get into your account is using Printable backup codes.  These are one time use codes that will let you get into your account.   Print two copies out and tape one to the back of your wallet, and keep the other someplace safe at home or work.   There are 10 codes on this printout, and each is a one time use code.  Be aware the next time you generate the printable backup codes, any existing codes are invalidated.</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-05.jpg" rel="lightbox[1284]"><img
class="alignnone  wp-image-1290" title="2-step verification 05" src="http://photos.cainmanor.com/2012/07/2-step-verification-05.jpg" alt="" width="804" height="330" /></a></p><p>Now that google is secure, you need to get access for those apps that don&#8217;t place nice with 2-step authentication (such as the iPhone Mail app and Sparrow.)  To do that, you&#8217;ll need to get &#8220;Application-specific passwords.&#8221;</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-06.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1291" title="2-step verification 06" src="http://photos.cainmanor.com/2012/07/2-step-verification-06.jpg" alt="" width="767" height="110" /></a></p><p>You&#8217;ll want to use a descriptive name for the password you generate.</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-07.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1292" title="2-step verification 07" src="http://photos.cainmanor.com/2012/07/2-step-verification-07.jpg" alt="" width="557" height="108" /></a></p><p>You&#8217;ll get a long one time use password.  My understanding is these passwords don&#8217;t expire.</p><p><a
href="http://photos.cainmanor.com/2012/07/2-step-verification-08.jpg" rel="lightbox[1284]"><img
class="alignnone size-full wp-image-1293" title="2-step verification 08" src="http://photos.cainmanor.com/2012/07/2-step-verification-08.jpg" alt="" width="662" height="245" /></a></p><p>You may want to bookmark <a
href="https://accounts.google.com/b/0/IssuedAuthSubTokens" target="_blank">this</a> page.  In addition to generating one time use passwords, it has a list of who has authorization to your account, and also allows you to revoke access (I found aol.com was authorized, for some reason.  Not any more!)  Should you lose your phone, you can remove all authorization from all devices.  Handy.</p><p>I wish I could say there was more to it.  There isn&#8217;t.  It&#8217;s remarkably easy, and seemingly robust and definitely secure.</p><p>Happy Computing!!</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/gmail-security-102/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Why my iPad 3 has Verizon LTE</title><link>http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/</link> <comments>http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/#comments</comments> <pubDate>Fri, 27 Apr 2012 17:20:28 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Online]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[Work]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1263</guid> <description><![CDATA[I was thinking back to an earlier post, about AT&#38;T&#8217;s 3G coverage. This time around, I finally had a choice to go with Verizon. It&#8217;s LTE, which is a better technology (and AT&#38;T&#8217;s LTE is probably similar, but there isn&#8217;t LTE in Seattle for AT&#38;T.)  Here&#8217;s the results for my new Verizon LTE iPad (ignore ...</p><p><a
href="http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/" class="more-link">Continue reading &#8216;Why my iPad 3 has Verizon LTE&#8217; &#187;</a>]]></description> <content:encoded><![CDATA[<p>I was thinking back to an earlier <a
title="Why my iPad doesn’t have 3G" href="http://cainmanor.com/interesting/why-my-ipad-doesnt-have-3g/">post</a>, about AT&amp;T&#8217;s 3G coverage. This time around, I finally had a choice to go with Verizon. It&#8217;s LTE, which is a better technology (and AT&amp;T&#8217;s LTE is probably similar, but there isn&#8217;t LTE in Seattle for AT&amp;T.)  Here&#8217;s the results for my new Verizon LTE iPad (ignore where it says iPhone. I&#8217;m using the same app on both the iPhone and iPad, but it&#8217;s not a universal app.)</p><div
id="attachment_1264" class="wp-caption alignnone" style="width: 310px"><a
href="http://photos.cainmanor.com/2012/04/SpeedTestResults-LTE.png" rel="lightbox[1263]"><img
class="size-full wp-image-1264 " title="SpeedTestResults - LTE" src="http://photos.cainmanor.com/2012/04/SpeedTestResults-LTE.png" alt="" width="300" height="135" /></a><p
class="wp-caption-text">Verizon LTE</p></div><p>For comparison, I went back and tested my iPhone again, now with a new 4G icon. The last time I did this, just about two years ago, I was about half a mile away from where I&#8217;m at now. Two years, and half a mile closer to Seattle, and I get this.</p><p><span
id="more-1263"></span></p><div
id="attachment_1265" class="wp-caption alignnone" style="width: 310px"><a
href="http://photos.cainmanor.com/2012/04/SpeedTestResults-ATT-4G.png" rel="lightbox[1263]"><img
class="size-full wp-image-1265 " title="SpeedTestResults - AT&amp;T 4G" src="http://photos.cainmanor.com/2012/04/SpeedTestResults-ATT-4G.png" alt="" width="300" height="135" /></a><p
class="wp-caption-text">AT&amp;T 4G</p></div><p>This is much better, but I&#8217;m in so close to Downtown Seattle that I was looking at Pike Place Market from the window of my office. For those not familiar, this is about as close to the heart of Seattle as you can be.</p><p>Now that the iPad has the same connectivity as I do at home, it&#8217;s a true take anywhere device. As an IT guy, I&#8217;m glad to be able to work anywhere (even though the iPad isn&#8217;t officially supported.)  I don&#8217;t think AT&amp;T is quite there yet, but I expect my new Verizon LTE iPhone 5 will be.</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Push SSH public keys to multiple host</title><link>http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/</link> <comments>http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/#comments</comments> <pubDate>Tue, 02 Aug 2011 18:27:52 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[OS-X]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Work]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1251</guid> <description><![CDATA[I&#8217;m starting a new job where I need to have my SSH keys pushed to hundreds of Red Hat servers. The special sauce is a command called ssh-copy-id. However, using this command requires you answering a (yes/no) question, then shortly thereafter enter your password. Painful. Here&#8217;s how push your keys without the pain. The first ...</p><p><a
href="http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/" class="more-link">Continue reading &#8216;Push SSH public keys to multiple host&#8217; &#187;</a>]]></description> <content:encoded><![CDATA[<p>I&#8217;m starting a new job where I need to have my SSH keys pushed to hundreds of Red Hat servers. The special sauce is a command called ssh-copy-id.  However, using this command requires you answering a (yes/no) question, then shortly thereafter enter your password.  Painful. Here&#8217;s how push your keys without the pain.<br
/> <span
id="more-1251"></span><br
/> The first problem is having to answer (yes/no) for each server.  Normally you see this&#8230;</p><div
class="wp_syntax"><table><tr><td
class="code"><pre class="bash" style="font-family:monospace;">The authenticity of host <span style="color: #ff0000;">'myfirsthost.work.cainmanor.com (10.256.33.106)'</span> can<span style="color: #ff0000;">'t be established.
RSA key fingerprint is fc:40:7c:de:b8:ac:a2:f5:d4:11:d0:0e:b2:77:8a:63.
Are you sure you want to continue connecting (yes/no)? yes</span></pre></td></tr></table></div><p>To stop this prompt, we need to edit your ~/.ssh/config file.  Add these two lines</p><div
class="wp_syntax"><table><tr><td
class="code"><pre class="bash" style="font-family:monospace;">StrictHostKeyChecking no
<span style="color: #007800;">UserKnownHostsFile</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></td></tr></table></div><p>Setting your UserKnownHostsFile should only be a temporary fix.  After you&#8217;ve pushed your keys, you should comment out both of those settings.</p><p>Your password is the next problem.  We can solve that with sshpass.  sshpass takes your password and passes it on when ssh ask for it.  There are three ways to do it, all of them insecure.  Read the man page and decide which of those you want to use.  For my purposes I just put it on the command line &#8211; I&#8217;m on my personal machine with no other users, and only I know the passwords to the box.  Don&#8217;t do this on a shared server.</p><p>Here is an example of how to push your public key one.  Try it on a new server to make sure you get the results you expect.</p><div
class="wp_syntax"><table><tr><td
class="code"><pre class="bash" style="font-family:monospace;">sshpass <span style="color: #660033;">-p</span> <span style="color: #ff0000;">'MY_PASSWORD'</span> ssh-copy-id gregc<span style="color: #000000; font-weight: bold;">@</span>new_host_with_no_keys</pre></td></tr></table></div><p>Now that we&#8217;ve got the prompts turned off, we&#8217;ll wrap a script around this.  How you get the list of appropriate hostnames or IP&#8217;s is your business.</p><div
class="wp_syntax"><table><tr><td
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> X <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> my_host_that_need_keys<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">do</span>
sshpass <span style="color: #660033;">-p</span> <span style="color: #ff0000;">'MY_PASSWORD'</span> ssh-copy-id gregc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #800000;">${X}</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div><p>Happy Computing!!</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>