<?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>Ohjeah! &#187; Computers</title>
	<atom:link href="http://www.ohjeah.net/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ohjeah.net</link>
	<description>The writings of JRO...</description>
	<lastBuildDate>Wed, 09 Jun 2010 20:58:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Interesting..</title>
		<link>http://www.ohjeah.net/2010/04/29/interesting/</link>
		<comments>http://www.ohjeah.net/2010/04/29/interesting/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 13:54:13 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[mstp]]></category>
		<category><![CDATA[pxe]]></category>
		<category><![CDATA[vlans]]></category>
		<category><![CDATA[vrrp]]></category>
		<category><![CDATA[wds]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=269</guid>
		<description><![CDATA[As a follow-up to my previous post regarding pxe with wds, I recently came across  a new issue which I&#8217;ve not seen before:
&#8220;There was a problem initializing WDS mode.&#8221;
This error started after a recent migration of the network to vlans, mstp, and vrrp at the core.  The pxe/wds/dhcp servers have changed addresses however remain in [...]]]></description>
			<content:encoded><![CDATA[<p>As a follow-up to <a href="http://www.ohjeah.net/2008/09/24/pxe-and-kickstart-automated-installations-for-linux-via-wds/">my previous post</a> regarding pxe with wds, I recently came across  a new issue which I&#8217;ve not seen before:</p>
<p><strong>&#8220;There was a problem initializing WDS mode.&#8221;</strong></p>
<p>This error started after a recent migration of the network to vlans, mstp, and vrrp at the core.  The pxe/wds/dhcp servers have changed addresses however remain in the same VLAN.  All configurations have been updated accordingly, dhcpd options, correct ip-helper addresses, etc..</p>
<p>While I haven&#8217;t had much time to look at it, a quick work-around seems to place the client within the same vlan as the wds server.  I&#8217;ll try to look at this some more when I have time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2010/04/29/interesting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Summer Is Over</title>
		<link>http://www.ohjeah.net/2009/08/31/summer-is-over/</link>
		<comments>http://www.ohjeah.net/2009/08/31/summer-is-over/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 20:37:31 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=250</guid>
		<description><![CDATA[I&#8217;ve been a bit occupied over the Summer and have fallen behind on my posts.  Now that it&#8217;s getting a bit cooler outside, I should be around more.  On a side note, here are a few things I&#8217;ve been playing with over the past few months and will probably make my initial return posts about:

Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a bit occupied over the Summer and have fallen behind on my posts.  Now that it&#8217;s getting a bit cooler outside, I should be around more.  On a side note, here are a few things I&#8217;ve been playing with over the past few months and will probably make my initial return posts about:</p>
<ul>
<li><strong>Windows 7 </strong>- I&#8217;ve been using it since beta, RC and RTM.. I like it</li>
<li><strong>10Ggb Networking</strong> &#8211; Starting using 10Gb iSCSI with our homemade SAN.</li>
<li><strong>Cisco ASA</strong> &#8211; Replaced all PIX at various locations with spankin new ASAs..</li>
<li><strong>Barracuda Web Filter</strong> &#8211; Replaced Websense with Barracuda Web Filter for big savings.</li>
<li><strong>Barracudaware</strong> &#8211; Barracuda purchased Yostemite Backup and lowered the retail price even more.  It is now my recommended backup software for any network.</li>
<li><strong>AT&amp;T Opt-E-man vs. XO T3</strong> &#8211; Should have performance results comparing our 50mb Opt-E-man vs. our XO T3 soon, which is the better deal?</li>
<li><strong>RSTP Redundancy</strong> &#8211; Completed our fully redundant Layer2 network with some additional procurve switches and RSTP.  In the process of pushing a new vlan scheme with MSTP for load balancing and redundancy.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/08/31/summer-is-over/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mstsc In Linux!</title>
		<link>http://www.ohjeah.net/2009/06/25/mstsc-in-linux/</link>
		<comments>http://www.ohjeah.net/2009/06/25/mstsc-in-linux/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 16:53:49 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mstsc]]></category>
		<category><![CDATA[rdesktop]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=241</guid>
		<description><![CDATA[Simple shell script to help me with my habit of always trying to use mstsc to launch remote desktop connections even on my Linux workstation..  You can add other misc rdesktop flags as you feel necessary.  Put it in /usr/bin etc

#!/bin/bash
# Usage: mstsc /v:host (or mstsc host)
&#160;
iuser=&#34;username&#34;
ihost=$1
ohost=${ihost/\/v:/}
&#160;
rdesktop -g 1280x1024 -u $iuser -z $ohost &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Simple shell script to help me with my habit of always trying to use mstsc to launch remote desktop connections even on my Linux workstation..  You can add other misc rdesktop flags as you feel necessary.  Put it in /usr/bin etc</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Usage: mstsc /v:host (or mstsc host)</span>
&nbsp;
<span style="color: #007800;">iuser</span>=<span style="color: #ff0000;">&quot;username&quot;</span>
<span style="color: #007800;">ihost</span>=$<span style="color: #000000;">1</span>
<span style="color: #007800;">ohost</span>=<span style="color: #800000;">${ihost/\/v:/}</span>
&nbsp;
rdesktop <span style="color: #660033;">-g</span> 1280x1024 <span style="color: #660033;">-u</span> <span style="color: #007800;">$iuser</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$ohost</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/06/25/mstsc-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstalling Websense Desktop Client</title>
		<link>http://www.ohjeah.net/2009/04/29/uninstalling-websense-desktop-client/</link>
		<comments>http://www.ohjeah.net/2009/04/29/uninstalling-websense-desktop-client/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 14:38:56 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[content filtering]]></category>
		<category><![CDATA[wdc]]></category>
		<category><![CDATA[websense]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=220</guid>
		<description><![CDATA[We&#8217;ve been using Websense as our content filtering solution for about a year now, primarily utilizing the Remote Desktop Client in conjunction with the Remote Filtering service to handle our remote users and offices.  While Websense is probably the most featured packed content filtering solution, it comes at a cost due to a per [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">We&#8217;ve been using Websense as our content filtering solution for about a year now, primarily utilizing the Remote Desktop Client in conjunction with the Remote Filtering service to handle our remote users and offices.  While Websense is probably the most featured packed content filtering solution, it comes at a cost due to a per user licensing model and heavy hardware requirements.</p>
<p style="text-align: left;">Barracuda recently entered the content filtering market with their appliance, and after a 30-day demo of their 610 model we decided it was the way to go. While it lacks some of the features of Websense, it will free up 2 servers and $8,000/yr in software renewals which is well worth the initial appliance cost.</p>
<p style="text-align: left;">The primary downside to the Barracuda was the lack of a Remote Filtering agent, which means our remote users and offices will have to proxy through our central office.  With our new 50mb Opteman on the way, and utilizing Frontmotion Firefox ADM to force proxy settings, this won&#8217;t be a problem.</p>
<p style="text-align: left;"><strong>However..</strong></p>
<p style="text-align: left;">Attempting to remove the Websense Desktop Client turned out to be more of a hassle then expected.  When attempting to use the same .msi for the uninstall as used for the initial install, I would get &#8220;This action is only valid for products that are installed&#8221; as seen here:</p>
<p style="text-align: left;"><a rel="attachment wp-att-222" href="http://www.ohjeah.net/2009/04/29/uninstalling-websense-desktop-client/error/"><img class="size-medium wp-image-222 aligncenter" title="error" src="http://www.ohjeah.net/wp-content/uploads/2009/04/error-300x122.png" alt="error" width="300" height="122" /></a></p>
<p style="text-align: left;">After ensuring the .msi I was using was identical to what was used for the installation, I reinstalled the WDC then proceeded to remove it immediately which worked without issue.  With a little GPO help, I was able to push this out to all workstations:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span> off
REM WDC_Uninstall.bat
REM Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2009</span> Jared Orzechowski <span style="color: #000000; font-weight: bold;">&amp;</span>lt;jaredo at ameritech dot net<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> exist <span style="color: #ff0000;">&quot;C:\Program Files\Websense\WDC&quot;</span> GOTO :Uninstall
GOTO :End
&nbsp;
:Uninstall
<span style="color: #7a0874; font-weight: bold;">echo</span> Removing Remote Client Filter
net use Y: \\domain.com\DFS\Client_installs\CPMClient <span style="color: #000000; font-weight: bold;">/</span>Y
start <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">wait</span> msiexec <span style="color: #000000; font-weight: bold;">/</span>i Y:\CPMClient.msi <span style="color: #007800;">REINSTALL</span>=ALL <span style="color: #007800;">REINSTALLMODE</span>=veums <span style="color: #007800;">PASSPHRASE</span>=somepass <span style="color: #007800;">REBOOT</span>=NO <span style="color: #000000; font-weight: bold;">/</span>qn
<span style="color: #ff0000;">&quot;C:\Program Files\Websense\WDC\wdc.exe&quot;</span> <span style="color: #660033;">-ds</span> somepass
sc stop WebsenseDesktopClient
start <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">wait</span> msiexec <span style="color: #000000; font-weight: bold;">/</span>x<span style="color: #7a0874; font-weight: bold;">&#123;</span>14D74337-01C2-4F8F-B44B-67FC613E5B1F<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">/</span>qn <span style="color: #000000; font-weight: bold;">/</span>norestart
net use Y: <span style="color: #000000; font-weight: bold;">/</span>DELETE <span style="color: #000000; font-weight: bold;">/</span>Y
<span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #000000; font-weight: bold;">/</span>S <span style="color: #000000; font-weight: bold;">/</span>Q <span style="color: #ff0000;">&quot;C:\Program Files\Websense\WDC&quot;</span>
GOTO :End
&nbsp;
:End
<span style="color: #7a0874; font-weight: bold;">echo</span> Operation Complete..</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/04/29/uninstalling-websense-desktop-client/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cleaner Fonts In Wine</title>
		<link>http://www.ohjeah.net/2009/03/16/217/</link>
		<comments>http://www.ohjeah.net/2009/03/16/217/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 14:11:50 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=217</guid>
		<description><![CDATA[This should work on most newer versions of wine, just run regedit (registry editor) and add/modify the following.

&#91;HKEY_CURRENT_USER\Control Panel\Desktop&#93;
&#34;FontSmoothing&#34;=&#34;2&#34;
&#34;FontSmoothingType&#34;=dword:00000002
&#34;FontSmoothingGamma&#34;=dword:00000578
&#34;FontSmoothingOrientation&#34;=dword:00000001

]]></description>
			<content:encoded><![CDATA[<p>This should work on most newer versions of wine, just run regedit (registry editor) and add/modify the following.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>HKEY_CURRENT_USER\Control Panel\Desktop<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #ff0000;">&quot;FontSmoothing&quot;</span>=<span style="color: #ff0000;">&quot;2&quot;</span>
<span style="color: #ff0000;">&quot;FontSmoothingType&quot;</span>=dword:00000002
<span style="color: #ff0000;">&quot;FontSmoothingGamma&quot;</span>=dword:00000578
<span style="color: #ff0000;">&quot;FontSmoothingOrientation&quot;</span>=dword:00000001</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/03/16/217/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Update Password Script</title>
		<link>http://www.ohjeah.net/2009/03/04/linux-update-password-script/</link>
		<comments>http://www.ohjeah.net/2009/03/04/linux-update-password-script/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 15:51:47 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=199</guid>
		<description><![CDATA[In my last post I showed a good example for using expect in a script.  Here is another good example I use for updating local user passwords across a group of servers without using ssh keys.  This assumes the user you are resetting can ssh to the host and the old password is the same [...]]]></description>
			<content:encoded><![CDATA[<p>In my last post I showed a good example for using expect in a script.  Here is another good example I use for updating local user passwords across a group of servers without using ssh keys.  This assumes the user you are resetting can ssh to the host and the old password is the same on all hosts.<span id="more-199"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># $Id: password_change.sh 6 2009-03-09 18:57:02Z jaredo $</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Copyright (c) 2009 Jared Orzechowski &amp;lt;jaredo at ameritech dot net&amp;gt;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Description:  This script will ssh to servers and change the specified</span>
<span style="color: #666666; font-style: italic;"># users password (assuming user can ssh).  Requires expect package.</span>
&nbsp;
<span style="color: #007800;">USER</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #007800;">OLDPW</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #007800;">NEWPW</span>=<span style="color: #ff0000;">&quot;&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> resetpw<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
          <span style="color: #7a0874; font-weight: bold;">echo</span>
          <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Attempting to reset password for <span style="color: #007800;">$USER</span> on host $1..&quot;</span>
&nbsp;
              <span style="color: #007800;">CMD</span>=<span style="color: #ff0000;">&quot;ssh -l root $1 passwd <span style="color: #007800;">$USER</span>&quot;</span>
              expect <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;
              match_max 100000
              spawn <span style="color: #007800;">$CMD</span>
&nbsp;
              expect {
                <span style="color: #000099; font-weight: bold;">\&quot;</span>Are you sure you want to continue connecting (yes/no)?<span style="color: #000099; font-weight: bold;">\&quot;</span> {
                send <span style="color: #000099; font-weight: bold;">\&quot;</span>yes<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\&quot;</span>
                exp_continue
                }
                <span style="color: #000099; font-weight: bold;">\&quot;</span>s password:<span style="color: #000099; font-weight: bold;">\&quot;</span> {
                send <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$OLDPW</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\&quot;</span>
                exp_continue
                }
                <span style="color: #000099; font-weight: bold;">\&quot;</span>UNIX password:<span style="color: #000099; font-weight: bold;">\&quot;</span> {
                send <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$NEWPW</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\&quot;</span>
                exp_continue
                expect -re <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$USER</span>*<span style="color: #000099; font-weight: bold;">\&quot;</span>
                }
              }
              &quot;</span>
        <span style="color: #000000; font-weight: bold;">else</span>
          <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Missing hostname..&quot;</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Syntax: resetpw hostname</span>
<span style="color: #666666; font-style: italic;">#Example:</span>
resetpw myserver1
resetpw myserver2
resetpw myserver3
resetpw myserver4</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/03/04/linux-update-password-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Server Shutdown</title>
		<link>http://www.ohjeah.net/2009/03/03/remoe-server-shutdown/</link>
		<comments>http://www.ohjeah.net/2009/03/03/remoe-server-shutdown/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 17:34:08 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=188</guid>
		<description><![CDATA[One of my recent projects was to initiate a server-wide shutdown should our UPS ever run low.  I currently have Zenoss monitoring the health status of the UPS, including the remaining charge on the battery.  Using Zenoss thresholds, I can make a script execute if the battery ever runs low.
Our Zenoss deployment currently runs on [...]]]></description>
			<content:encoded><![CDATA[<p>One of my recent projects was to initiate a server-wide shutdown should our UPS ever run low.  I currently have Zenoss monitoring the health status of the UPS, including the remaining charge on the battery.  Using Zenoss thresholds, I can make a script execute if the battery ever runs low.</p>
<p>Our Zenoss deployment currently runs on CentOS, so I put down a method to shut down each type of host from a linux platform.  After much researching and testing, this is what I came up with (and am currently using in my shutdown script).</p>
<p><strong>For Windows:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net rpc SHUTDOWN <span style="color: #660033;">-C</span> <span style="color: #ff0000;">&quot;Automated shutdown&quot;</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-I</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$server</span>&quot;</span> <span style="color: #660033;">-W</span> <span style="color: #007800;">$domain</span> <span style="color: #660033;">-U</span> <span style="color: #007800;">$username</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">$password</span></pre></div></div>

<p>I replaced my arguments with some that would be more readable.  User and password are separated with %.</p>
<p><strong>For Linux:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CMD</span>=<span style="color: #ff0000;">&quot;ssh -l <span style="color: #007800;">$username</span> <span style="color: #007800;">$server</span> shutdown -h now&quot;</span>
              expect <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;
              match_max 100000
              spawn <span style="color: #007800;">$CMD</span>
&nbsp;
              expect {
                <span style="color: #000099; font-weight: bold;">\&quot;</span>Are you sure you want to continue connecting (yes/no)?<span style="color: #000099; font-weight: bold;">\&quot;</span> {
                send <span style="color: #000099; font-weight: bold;">\&quot;</span>yes<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\&quot;</span>
                exp_continue
                }
                <span style="color: #000099; font-weight: bold;">\&quot;</span>password:<span style="color: #000099; font-weight: bold;">\&quot;</span> {
                send <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$password</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\&quot;</span>
                expect -re <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$username</span>*<span style="color: #000099; font-weight: bold;">\&quot;</span>
                }
              }
              &quot;</span></pre></div></div>

<p>I wanted to shutdown linux servers without using keys but had to overcome the &#8220;do you want to connect&#8221; prompt.  In order to do that I had to use exact which can be installed with &#8220;yum install exact&#8221;</p>
<p>By turning these into functions and passing arguments, you can make a shutdown script in a couple of minutes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/03/03/remoe-server-shutdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter</title>
		<link>http://www.ohjeah.net/2009/03/03/twitter/</link>
		<comments>http://www.ohjeah.net/2009/03/03/twitter/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 14:16:41 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=184</guid>
		<description><![CDATA[Integrated Twitter into my blog, feel free to follow it at here .
]]></description>
			<content:encoded><![CDATA[<p>Integrated Twitter into my blog, feel free to follow it at <a href="http://www.twitter.com/jaredo">here</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/03/03/twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware &#8211; Windows AMD PCNet Family Adapater Issue</title>
		<link>http://www.ohjeah.net/2009/02/16/vmware-windows-amd-pcnet-family-adapater-issue/</link>
		<comments>http://www.ohjeah.net/2009/02/16/vmware-windows-amd-pcnet-family-adapater-issue/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 19:56:05 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=167</guid>
		<description><![CDATA[Since we have ESX, I usually don’t get to spend much time playing around with VMware-Server.  Interested to see the new interface in VMware-Server 2, I installed it on one of my CentOS servers.
The installation was a breeze with the rpm package and running the configuration script was pretty flawless.  So I logged [...]]]></description>
			<content:encoded><![CDATA[<p>Since we have ESX, I usually don’t get to spend much time playing around with VMware-Server.  Interested to see the new interface in VMware-Server 2, I installed it on one of my CentOS servers.<img class="alignright size-full wp-image-172" title="dm" src="http://www.ohjeah.net/wp-content/uploads/2009/02/dm.jpg" alt="dm" width="260" height="260" /></p>
<p>The installation was a breeze with the rpm package and running the configuration script was pretty flawless.  So I logged in through the Remote Management Console (https/port 8333), and created a fresh host.  After copying over a Win2k3 iso, mounted the image and began the installation.</p>
<p>(On a side note I was doing this remotely, and found out that in order to use the Remote Console Client, I needed to allow ports 8333 and 902 through the firewall)</p>
<p>The initial Windows installation zipped right through, however, when I went to configure the network adapter none was listed.  So I took a look at the Device Manager and BAM!</p>
<p><strong>This device cannot start. (Code 10)</strong></p>
<p>Having never come across this on VMware/Windows installation, I decided to reinstall my Windows host.  Same thing..  So let’s install the driver.. that we need to download.. with no network card..</p>
<p>Lucky for us we have VMware!  Downloaded the latest PCNet Family drivers for Windows 2003, tossed them in an .iso image, and mounted it to the Virtual CD-Rom for the host. Once I extracted/updated the driver, everything was running smooth again.</p>
<p>Download the .iso image here: <a href="http://www.ohjeah.net/wp-content/uploads/2009/02/v4.iso">AMD Driver v4</a><br />
MD5: 78159679b644e64c0ca5618bc4de1995<a href="http://www.ohjeah.net/wp-content/uploads/2009/02/v4.iso"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/02/16/vmware-windows-amd-pcnet-family-adapater-issue/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Auto Logon with Windows XP</title>
		<link>http://www.ohjeah.net/2009/01/05/auto-logon-with-windows-xp/</link>
		<comments>http://www.ohjeah.net/2009/01/05/auto-logon-with-windows-xp/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 21:48:44 +0000</pubDate>
		<dc:creator>jro</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Logon]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.ohjeah.net/?p=152</guid>
		<description><![CDATA[Sometimes I need to remind myself where this is located.  This is primarily useful when you have shared domain workstations that need to logon automatically.  Be sure to lock this workstation down!
KB #315231
This article describes how to configure Microsoft Windows 		  XP to automate the logon process by storing your password and other pertinent [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need to remind myself where this is located.  This is primarily useful when you have shared domain workstations that need to logon automatically.  Be sure to lock this workstation down!</p>
<p><a href="http://support.microsoft.com/kb/315231">KB #315231</a></p>
<p>This article describes how to configure Microsoft Windows 		  XP to automate the logon process by storing your password and other pertinent 		  information in the registry database. This feature permits other users to start 		  your computer and to use the account that you establish to automatically log 		  on.</p>
<p><strong>Important</strong> If you turn on autologon, using Windows XP becomes more 		  convenient. However, using this feature can pose a security risk.</p>
<p><strong>Important</strong> This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:<span id="more-152"></span></p>
<div class="indent"><a class="KBlink" href="http://support.microsoft.com/kb/322756/">KB #322756</a> <span class="pLink"> </span> How to back up and restore the registry in Windows</div>
<p>If 		  you set a computer for automatic logon, anyone who can physically gain access 		  to the computer can also gain access to everything that is on the computer, 		  including any network or networks that the computer is connected to. 		  Additionally, if you turn on automatic logon, the password is stored in the 		  registry in plain text. The specific registry key that stores this value is 		  remotely readable by the Authenticated Users group. Therefore, only use this 		  setting if the computer is physically secured and if you make sure that users 		  who you do not trust cannot remotely see the registry.</p>
<p>You can use 		  Registry Editor to add your log on information. To do this, follow these steps:</p>
<ol>
<li>Click <strong class="uiterm">Start</strong>, click <strong class="uiterm">Run</strong>, 				type <span class="userInput">regedit</span>, and then click <strong class="uiterm">OK</strong>.</li>
<li>Locate the following registry key:
<div class="indent">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</div>
</li>
<li>Using your account name and password, double-click the 				<strong class="uiterm">DefaultUserName</strong> entry, type your user name, and then click 				<strong class="uiterm">OK</strong>.</li>
<li>Double-click the <strong class="uiterm">DefaultPassword</strong> entry, 				type your password under the value data box, and then click 				<strong class="uiterm">OK</strong>.If there is no <strong>DefaultPassword</strong> value, create the value. To do this, follow these steps:
<ol>
<li>In Registry Editor, click <strong class="uiterm">Edit</strong>, click 					 <strong class="uiterm">New</strong>, and then click <strong class="uiterm">String Value</strong>.</li>
<li>Type <span class="userInput">DefaultPassword</span> as the 					 value name, and then press ENTER.</li>
<li>Double-click the newly created key, and then type your 					 password in the <strong class="uiterm">Value Data</strong> box.</li>
</ol>
<p>If no DefaultPassword string is specified, Windows XP 				automatically changes the value of the AutoAdminLogon registry key from <strong>1</strong> (true) to <strong>0</strong> (false) to turn off the AutoAdminLogon feature.</li>
<li>Double-click the <strong class="uiterm">AutoAdminLogon</strong> entry, 				type <span class="userInput">1</span> in the <strong class="uiterm">Value Data</strong> box, and then 				click <strong class="uiterm">OK</strong>.If there is no AutoAdminLogon entry, 				create the entry. To do this, follow these steps:
<ol>
<li>In Registry Editor, click <strong class="uiterm">Edit</strong>, click 					 <strong class="uiterm">New</strong>, and then click <strong class="uiterm">String Value</strong>.</li>
<li>Type <span class="userInput">AutoAdminLogon</span> as the value 					 name, and then press ENTER.</li>
<li>Double-click the newly created key, and then type 					 <span class="userInput">1</span> in the <strong class="uiterm">Value Data</strong> box.</li>
</ol>
</li>
<li>Quit Registry Editor.</li>
<li>Click <strong class="uiterm">Start</strong>, click 				<strong class="uiterm">Restart</strong>, and then click <strong class="uiterm">OK</strong>.</li>
</ol>
<p>After your computer restarts and Windows XP starts, you can log 		  on automatically.</p>
<p>If you want to bypass the automatic logon to log on 		  as a different user, hold down the SHIFT key after you log off or after Windows 		  XP restarts. Note that this procedure applies only to the first logon. To 		  enforce this setting for future logoffs, the administrator must set the 		  following registry key:</p>
<div class="indent">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</p>
<p><strong>Value:</strong><strong>ForceAutoLogon<br />
Type: REG_SZ<br />
Data: 1</strong></div>
<p>You can also use turn on automatic logon without 		  editing the registry in Microsoft Windows XP Home Edition and in Microsoft 		  Windows XP Professional on a computer that is not joined to a domain. To do this, follow these 		  steps:</p>
<ol>
<li>Click <strong class="uiterm">Start</strong>, and then click 				<strong class="uiterm">Run</strong>.</li>
<li>In the <strong class="uiterm">Open</strong> box, type <span class="userInput">control 				userpasswords2</span>, and then click <strong class="uiterm">OK</strong>.<strong>Note</strong> When users try to display help information in the User Accounts window in Windows XP Home Edition, the help information is not displayed. Additionally, users receive the following error message:
<div class="kb_errormsgbody">
<div class="kb_errorcontent">
<div class="errormsg">Cannot find the <var>Drive</var>:\Windows\System32\users.hlp Help file. Check to see that the file exists on your hard disk drive. If it does not exist, you must reinstall it.</div>
</div>
</div>
</li>
<li>Clear the &#8220;Users must enter a user name and password to use this computer&#8221; check box, and then click <strong class="uiterm">Apply</strong>.</li>
<li>In the <strong class="uiterm">Automatically Log On</strong> window, type the password in the <strong class="uiterm">Password</strong> box, and then retype the password in the <strong class="uiterm">Confirm Password</strong> box.</li>
<li>Click <strong class="uiterm">OK</strong> to close the <strong class="uiterm">Automatically Log On</strong> window, and then click <strong class="uiterm">OK</strong> to close the <strong class="uiterm">User Accounts</strong> window.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ohjeah.net/2009/01/05/auto-logon-with-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
