<?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"
	>

<channel>
	<title>Decompiled</title>
	<atom:link href="http://www.edwardstafford.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edwardstafford.com/blog</link>
	<description>Code, Rants, Raves, Reviews and Mutterings from the IT trenches.</description>
	<pubDate>Tue, 28 Oct 2008 21:28:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>RSS: What is it, and how do I use it?</title>
		<link>http://www.edwardstafford.com/blog/2008/10/20/rss-what-is-it-and-how-do-i-use-it/</link>
		<comments>http://www.edwardstafford.com/blog/2008/10/20/rss-what-is-it-and-how-do-i-use-it/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 21:29:28 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[News]]></category>

		<category><![CDATA[RSS]]></category>

		<category><![CDATA[Social Media]]></category>

		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/?p=39</guid>
		<description><![CDATA[RSS What?
RSS - We&#8217;ve all heard about it (or at least should have by now), but may not really understand what it is, what it does, and how it can add value to what we do every day.
RSS, originally an acronym for &#8220;Rich Site Summary&#8221; today is known as &#8220;Really Simple Syndication&#8221; and is a [...]]]></description>
			<content:encoded><![CDATA[<h2>RSS What?</h2>
<p style="text-align: left;">RSS - We&#8217;ve all heard about it (or at least should have by now), but may not really understand what it is, what it does, and how it can add value to what we do every day.</p>
<p style="text-align: left;">RSS, originally an acronym for &#8220;<strong>Rich Site Summary</strong>&#8221; today is known as &#8220;<strong>Really Simple Syndication</strong>&#8221; and is a technology that allow us to aggregate news and information with very little effort and time. In the &#8220;Old Days&#8221; of the internet, in order to keep track of sites or news we found online, we had to rely on the option of Bookmarking or creating &#8220;favorites&#8221; in our browser, and then manually visiting these sites to see if there were any new updates or additions. If your in a position where you need to keep up on lots of topics, news, and changes that happen daily, then you will likely build a collection of bookmarks that could grow well into the hundreds. Let&#8217;s face it, at that point there is no efficient way you can manually organize and check each of these sites individually and still keep up with all your daily responsibilities at the same time.</p>
<h2>RSS To The Rescue!</h2>
<p style="text-align: left;">Why is RSS a better option than Bookmarking? Simple! Time, Effort, Near Real-time news access. Think of it like this: Instead of making the time and effort it takes to run out to your local news stand for the various daily news papers, the news is now delivered right to your doorstep. Now consider the morning news edition, the evening edition, the late edition, etc. That adds up to a lot of news papers and a lot of trips to the news stand. And what about breaking news? There&#8217;s a good chance you&#8217;d miss out on something timely if you had to go get it yourself. RSS takes all the time and effort away from getting your news and information and delivers it ALL to you, keeping you informed and up-to-date!</p>
<h2>Wow, That&#8217;s Great, But How Do I Use it?</h2>
<p>To get started with RSS, you first need a RSS or &#8220;feed&#8221; reader. There are many available, but my favorites are Netvibes (<a title="Netvibes Web Service - RSS" href="http://netvibes.com" target="_blank">netvibes.com</a>) and Google Reader. For the record, I use netvibes for all my RSS needs. Because readers have different methods for adding and managing feeds, I will not cover that portion here and save it for another post.</p>
<p>Once you have decided on a reader, the next thing you need to do is find the RSS Feeds you want delivered.  How do you do that? RSS feeds have adopted an icon that makes identifying them easy.</p>
<div id="attachment_40" class="wp-caption aligncenter" style="width: 110px"><a href="http://www.edwardstafford.com/blog/wp-content/uploads/100px-feed-iconsvg.png" target="_blank"><img class="size-medium wp-image-40" title="RSS Icon" src="http://www.edwardstafford.com/blog/wp-content/uploads/100px-feed-iconsvg.png" alt="Standard RSS Icon" width="100" height="100" /></a><p class="wp-caption-text">Standard RSS Icon</p></div>
<p style="text-align: center;"><strong></strong></p>
<p style="text-align: center;">
<div id="attachment_41" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.edwardstafford.com/blog/wp-content/uploads/croppercapture-15.png" target="_blank"><img class="size-medium wp-image-41" title="Rss Icon shown in Firefox Browser Address Bar" src="http://www.edwardstafford.com/blog/wp-content/uploads/croppercapture-15-300x19.png" alt="RSS Address Bar Icon" width="300" height="19" /></a><p class="wp-caption-text">RSS Icon in Firefox Address Bar</p></div>
<p style="text-align: center;"><strong></strong></p>
<p style="text-align: left;">If you see this icon on a web page or in your FireFox Browser Address Bar, then the site or page you are on has a live RSS feed that you can &#8220;<strong>subscribe</strong>&#8221; to or add to your RSS Reader. Some sites may also simply provide a &#8220;subscribe&#8221; link but be careful to be sure it is an RSS feed link and NOT an email newsletter subscription link.</p>
<div id="attachment_43" class="wp-caption alignleft" style="width: 199px"><a href="http://www.edwardstafford.com/blog/wp-content/uploads/copylink.png"><img class="size-medium wp-image-43" title="Copy Link Location" src="http://www.edwardstafford.com/blog/wp-content/uploads/copylink.png" alt="Copy Link Location" width="189" height="183" /></a><p class="wp-caption-text">Copy Link Location</p></div>
<p style="text-align: left;">Once you have located the RSS Feed link you can right-click the link and select &#8220;<strong>Copy Link Location</strong>&#8220;. This will copy the URL of the RSS feed to the clipboard of your computer. Once you&#8217;ve copied the URL, you will need to paste it into your preferred RSS feed reader where it will display headlines, links and descriptions of the host web page or site.</p>
<p style="text-align: left;"><em>Again, depending on your preferred reader, adding feeds may differ and I will not describe the different methods for each reader here. Consult the FAQ or instructions available from your Feed Reader for information on that.</em></p>
<div style="clear:both">In some limited cases, the &#8220;copy link location&#8221; option does not always produce a usable RSS feed link. If this happens, you are still able to click through on the link which will open a new page listing the RSS feed either in a readable web page format, or in the native RSS XML syntax. From this page, now you can simply copy the URL directly from the Browser&#8217;s Address Bar and paste it into your Reader.</div>
<div style="clear:both">
<div id="attachment_45" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.edwardstafford.com/blog/wp-content/uploads/screencap_rssurl.png"><img class="size-medium wp-image-45" title="RSS Feed URL" src="http://www.edwardstafford.com/blog/wp-content/uploads/screencap_rssurl-300x216.png" alt="RSS Feed Url Seen in Firefox" width="300" height="216" /></a><p class="wp-caption-text">RSS Feed Url Seen in Firefox</p></div>
</div>
<div style="clear:both">
<p style="text-align: center;">
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/10/20/rss-what-is-it-and-how-do-i-use-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>5 Tips for better Wiki pages.</title>
		<link>http://www.edwardstafford.com/blog/2008/10/12/5-tips-to-consider-when-contributing-to-a-wiki/</link>
		<comments>http://www.edwardstafford.com/blog/2008/10/12/5-tips-to-consider-when-contributing-to-a-wiki/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 00:12:36 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Business]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[How-to]]></category>

		<category><![CDATA[Social Media]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[Wiki]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/?p=38</guid>
		<description><![CDATA[Wikis are great for sharing, documenting and archiving information. We Recently launched one for our company&#8217;s intranet to improve communication and allow better collaboration. Because wikis are intended to be an open platform to promote communication and collaboration equally across the organization, we try to encourage everyone to contribute. Unfortunately, I quickly learned that people [...]]]></description>
			<content:encoded><![CDATA[<p>Wikis are great for sharing, documenting and archiving information. We Recently launched one for our company&#8217;s intranet to improve communication and allow better collaboration. Because wikis are intended to be an open platform to promote communication and collaboration equally across the organization, we try to encourage everyone to contribute. Unfortunately, I quickly learned that people can have different ideas regarding good page format, or may not know how to properly format a page at all. This can quidkly lead to mess of unruly pages that are difficult to read and navigate. So, I put together a list of five tips that I thought would help make formating wiki page content a little easier and make the pages less challanging to read and navigate.</p>
<p>When creating a new page, or editing an existing one, keep these tips in mind.</p>
<ol>
<li> <strong>Say No To Word:</strong> Unless the wiki has a built-in feature to deal gracefully with Microsoft Word syntax, Please Please Please&#8230;avoid copy-and-paste from word documents. Word documents create ugly HTML syntax that is difficult to edit and manage within the wiki (or any wysiwyg or web editor for that matter). It also creates pages that are structurally difficult to read and navigate without additional formatting and editing. As an alternative, save word documents as Rich Text Files, or plain text files then copy-and-paste into the wiki from there, then edit and format the content in the wiki using the wiki editing tools.</li>
<li><strong>Use Headers and sub-headers</strong>: Add headers and sub-headers when appropriate to organize your content on the wiki page. Using headers will not only help to visually separate each important section of your page, but they will also auto-create a page index or TOC (Table of contents) making it easy for users to find and navigate page content.</li>
<li><strong>Making The list:</strong> Use Ordered (numbered) lists and Unordered (bulleted) lists when creating lists of items. This makes each item in a list easy to identify and improves readability.</li>
<li><strong>Use An Opening Introduction:</strong><strong> </strong>If your creating a new wiki page, always try include some information in a small paragraph at the top of each page describing what the content is about, and how it can be used. It is also helpful to include a small description below each heading and sub-heading as well. This helps readers to quickly identify the content and how it can be used.</li>
<li><strong>Can I Quote You On That? :</strong> Provide citations and supporting links to references when possible. Besides giving credit where credit is due, citations allows readers to confirm the validity of your input and lead them to additional sources of reference.</li>
</ol>
<p>Do you have any other tips? Please leave a comment and share them here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/10/12/5-tips-to-consider-when-contributing-to-a-wiki/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu Jaunty Jackalope Caters to Web Applications and the Cloud</title>
		<link>http://www.edwardstafford.com/blog/2008/09/09/ubuntu-jaunty-jackalope-caters-to-web-applications-and-the-cloud/</link>
		<comments>http://www.edwardstafford.com/blog/2008/09/09/ubuntu-jaunty-jackalope-caters-to-web-applications-and-the-cloud/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 23:12:02 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Google]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Canonical]]></category>

		<category><![CDATA[Cloud Computing]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/?p=37</guid>
		<description><![CDATA[I&#8217;ll admit, I am a fan of Ubuntu. I run it on all my personal and home computers with the exception of one (8 in total) and have nothing to complain about. Now the new version, expected to be released in April 2009,  is expected to see improvements in booting and operational speeds. That is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll admit, I am a fan of Ubuntu. I run it on all my personal and home computers with the exception of one (8 in total) and have nothing to complain about. Now the new version, expected to be released in April 2009,  is expected to see improvements in booting and operational speeds. That is always a good thing, but what I don&#8217;t understand are the claims that the new OS version, code named &#8220;Jaunty Jackalope&#8221; will cater to Web Applications and the Cloud (cloud computing). I have not heard of any other company making such claims, and I wonder exactly how they plan to &#8220;cater&#8221;.  As far as I can see, no other details have been discussed. It&#8217;s unclear if Canonical will make OS or code changes somehow to improve support for web applications, or just make them more available through the UI.</p>
<p><strong>Change of Plans - As I was writing the above, Something occurred to me.<br />
</strong></p>
<p><strong>Some points of interest<br />
</strong></p>
<ul>
<li>Google uses a custom version of Ubuntu for internal operations.</li>
<li> Google has generated a lot of Buzz recently about entering the office application market opposite Microsoft.</li>
<li>Canonical/Ubuntu has made impressive progress bringing an alternative desktop operating system to market and is regarded by some as an acceptable replacement to Microsoft.</li>
<li>Following the Quote from Mark Shuttleworth himself, it does sound like Canonical and Google have been at least talking about ways to &#8220;finalize Jaunty plans&#8221;.
<pre>"We will be gathering forces in Mountain View on 8th - 12th December to
survey the upstream landscape and finalize Jaunty plans, enjoying the
excellent hospitality of Google and Silicon Valley's abundance of talent
and innovation." - Mark Shuttleworth</pre>
</li>
</ul>
<p><strong>Warning - Pure Speculation Follows:</strong></p>
<p>Is it possible that Canonical&#8217;s intention to cater to web apps means teaming up or forming some sort of partnership with Google to use or push Google&#8217;s suite of web applications (Google Apps) while providing a competitive operating system to rival Microsoft?</p>
<p><strong>References</strong>:<br />
<a href="http://bits.blogs.nytimes.com/2008/09/09/the-jaunty-jackalope-hops-aboard-ubuntus-ark/?partner=rssnyt&amp;emc=rss" target="_blank">http://bits.blogs.nytimes.com</a><br />
<a href="https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-September/000481.html" target="_blank">https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-September/000481.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/09/09/ubuntu-jaunty-jackalope-caters-to-web-applications-and-the-cloud/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How-to: Active Directory Authentication with WordPress</title>
		<link>http://www.edwardstafford.com/blog/2008/07/15/36/</link>
		<comments>http://www.edwardstafford.com/blog/2008/07/15/36/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 22:25:45 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[IT Administration]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Social Media and Networking]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Active Directory]]></category>

		<category><![CDATA[blogging]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/2008/07/15/36/</guid>
		<description><![CDATA[Why Use Active Directory with WordPress?
I recently set up a WordPress Blog internally for our company to use over our intranet to help improve communication, collaborate, share and develop ideas, and stay informed about company announcements or current events.. etc.
One of the requirements I had was to allow authentication against our Active Directory. Yes, we [...]]]></description>
			<content:encoded><![CDATA[<h2>Why Use Active Directory with WordPress?</h2>
<p>I recently set up a WordPress Blog internally for our company to use over our intranet to help improve communication, collaborate, share and develop ideas, and stay informed about company announcements or current events.. etc.</p>
<p>One of the requirements I had was to allow authentication against our Active Directory. Yes, we operate a Windows network primarily, but you can also authenticate against other LDAP directories as well. This was important from an IT position as well as the participants of the blog. I felt people would be more likely to participate if they didn&#8217;t have to manage separate user accounts for each service on the intranet. I also set up a Wiki that is Active Directory enabled. I&#8217;ll post about that at a later time. The point is, it makes little sense to create different credentials for each user with each new service. It not only becomes a hassle for IT to track and manage the accounts, it&#8217;s also a drag for participants to keep track of and manage their username and password pairs for each service. The result would most likely lead to lack of use and that is not what we want.</p>
<p>Integrating the existing Active Directory accounts means that each participant can access these services using the same credentials they use to access or log into their network accounts and desktops. When time comes to change passwords, you need only to update the Active Directory account and your done. Simple! What could be better?</p>
<h2><strong>Starting Point</strong></h2>
<p>The first thing we needed to do was find out how to include AD Authentication with WordPress 2.5. There are a small number of plugins that claim to allow AD Authentication, but from what I came across, most of them were older and no longer actively maintained. But&#8230;there were two in particular that still showed signs of being actively maintained and had promise.</p>
<p>The first was was aptly called &#8220;<a href="http://wordpress.org/extend/plugins/active-directory-authentication/" target="_blank">Active Directory Authentication</a>&#8221;</p>
<p>The other plugin and the ultimately the one I managed to successfully include is <a href="http://wordpress.org/extend/plugins/wpdirauth/" target="_blank">wpDirAuth</a>.</p>
<h2>The Trials</h2>
<p>Although I was able to get wpDirAuth to work with WordPress 2.5, there was a catch. The current &#8220;Official&#8221; release of wpDirAuth as of this writing is version 1.2 which is not compatible with WordPress 2.5 so there was some work involved to make this happen. I visited the wpDirAuth plugin page to look at the install directions. They seemed easy enough. It wasn&#8217;t until I actually installed and activated the plugin that I realized it wouldn&#8217;t work. My next stop was the support channel that the author set up to help troubleshoot install and authentication issues. It was here that I learned there was a patch already available and provided by a generous wpDirAuth user - <strong>Adam Yearout.</strong> I applied the patch and then tried to login with my network credentials again, and &#8230; No luck! By now I was scratching my head. Searching and reading all the information I could find, I finally found myself on the wpDirAuth Developer Support Channel. This was another channel set up specifically for developers. It was here that I uncovered some clues as to what was happening and a small code tweak that was necessary to overcome the problem. Apparently, the author of the plugin assumed that the login name was also the name associated with the Active Directory Account Email, which in most cases is true, but not always. For example username: johndoe would by default have an email johndoe@domain.com. In my case, my email and name and login name were not the same, so the logic that the plugin author used would not work. The good news is that the fix is a fairly simple one if you know where to look and the dev channel contained all the clues needed to find the info.</p>
<h2>Setting up wpDirAuth with WordPress 2.5</h2>
<p>For this how-to, I am using wordpress 2.5 installed on an Ubuntu 8.04 LTS server With Apache2 and PHP5. There is no GUI and I am not running an ftp server on this server so all settings and changes are completed using putty over SSL.<span id="more-36"></span></p>
<p>So lets get to it. Setting up AD Authentication was not as straight forward as I had hoped and required a few extra steps along the way.</p>
<p>The first step is to <a title="download the wpDirAuth plugin" href="http://downloads.wordpress.org/plugin/wpdirauth.1.2.zip">download the wpDirAuth plugin</a> from the WordPress plugins section.</p>
<p>From a terminal or if logged into the server via Putty, change to your home directory and get the latest version of the wpDirAuth plugin.</p>
<div class="myCode">cd /home/your_account_name<br />
wget http://downloads.wordpress.org/plugin/wpdirauth.1.2.zip</div>
<div class="myNotes"><strong>Note</strong>: the file is compressed as a .zip so you may need to run:</p>
<p>sudo apt-get install unzip</p>
<p>before you can extract the files.</p></div>
<p>Next extract the files by executing:</p>
<div class="myCode">unzip wpdirauth.1.2.zip</div>
<p>Now you have a new directory called wpdirauth.1.2 in your home directory.<br />
Move into the new directory and list the contents using</p>
<div class="myCode">cd wpdirauth.1.2<br />
ls</div>
<p>Now you will see the wpdirauth directory. You need to move this entire directory to your WordPress plugins directory.</p>
<div class="myNotes"><strong>Note</strong>:The following instructions and paths are specific to my server. You may need alter these instructions to meet your needs.</div>
<p>To move the extracted wpdirauth directory, make sure you are in the wpdirauth.1.2 directory and execute the command:</p>
<div class="myCode">cp -r wpdirauth /var/www/wpblog/wp-content/plugins</div>
<p>Now we need to move into the actual WordPress Blog directory where our files are hosted by executing the command:</p>
<div class="myCode">cd /var/www/wpblog/wp-content/plugins</div>
<p>Now if you execute</p>
<div class="myCode">ls</div>
<p>you should see the wpdirauth plugin folder. Once again, we will change directories and move into the hosted wpdirauth directory using:</p>
<div class="myCode">cd wpdirauth</div>
<p>This is where the editing (and the fun) begins.<br />
Remember, we need to make some changes before we activate this plugin in WordPress 2.5 or it will not work.</p>
<h2>Patching the wpdirauth plugin</h2>
<p>Before making any changes to our files, it&#8217;s alway a good idea to make some backups.</p>
<p>From the wpdirauth execute the command:</p>
<div class="myCode">cp wpdirauth.php wpdirauth.php.orig</div>
<p>Next apply the patch that was just downloaded. This patch will make changes to the wpdirauth.php file, and update the Plug-in version for 1.2 to 1.3</p>
<p>Apply the patch by executing the command:</p>
<div class="myCode">patch -p1 &lt; ../wpDirAuth-1.2-to-1.3.patch</div>
<div class="myNotes">Note: You need patch installed to execute the following command. If Patch is not installed, you can install it by executing:</p>
<p>sudo apt-get install patch</p></div>
<h2>Editing the plugin</h2>
<p>Once the patch is installed, your Active Directory authentication should for most people. But we are not done yet.</p>
<p>There is an issue related to Active Directory users names and their email addresses. Active Directory user accounts that are also created with an email address, are by default given an address equal to the login name.<br />
For example an Active Directory user created with a login name of johndoe would have an email address of johndoe@domain.com. The problem arises in the way that wpDirAuth authenticates against Active Directory using the email address. If at some point, the users default email address is changed, the login name does not match the email address and authentication fails. The fix is a simple one if you know where to look.</p>
<p>To prevent authentication failure due to the login name and email mismatch, you need to make a small edit to the wpdirauth.php file. Start by executing the following command:</p>
<div class="myCode">sudo nano wpdirauth.php</div>
<div class="myNotes"><strong>Note</strong>: I am using nano to edit files on the system. You can use any text editor you have available on your system.</div>
<p>Next, scroll through the file till you find the  wpDirAuth_auth() function at line 246. It should be about 1/4 of the way down the page. Edit this function as follows:</p>
<p>At about line 273 find the line</p>
<div class="myCode">if ($accountSuffix) $username .= $accountSuffix;</div>
<p>and delete or comment it out.</p>
<p>Next move down to about line 284 and look for the line that reads:</p>
<div class="myCode">$filterQuery = &#8220;($filter=$username)&#8221;;</div>
<p>Add a new line after this and enter the following:</p>
<div class="myCode">if ($accountSuffix) $username .= $accountSuffix;</div>
<p>Basicly, we are just moving the line &#8220;if ($accountSuffix) $username .= $accountSuffix;&#8221; down a few lines and adding it after the line &#8221; $filterQuery = &#8220;($filter=$username)&#8221;; &#8221;</p>
<p>This is the snippet of the the  wpDirAuth_auth() function after I made the changes look like this.</p>
<div class="myCode">function wpDirAuth_auth($username, $password)<br />
{<br />
&#8230;.&lt;PHP Code Lines removed for sample&gt;&#8230;.</p>
<p><strong>/**<br />
* This section commented out to enable AD email/username mismatch.<br />
* if ($accountSuffix) $username .= $accountSuffix;<br />
*/</strong></p>
<p><strong></strong>/**<br />
* Only setup protocol value if ldaps is required to help with older AD<br />
* @see http://groups.google.com/group/wpdirauth-support/&#8230;<br />
*/</p>
<p>$protocol = ($enableSsl) ? &#8216;ldaps://&#8217; : &#8221;;</p>
<p>if (!$filter) $filter = WPDIRAUTH_DEFAULT_FILTER;</p>
<p>$filterQuery = &#8220;($filter=$username)&#8221;;</p>
<p><strong> /**<br />
* Next Line added to enable AD email/username mismatch<br />
*/</strong></p>
<p>if ($accountSuffix) $username .= $accountSuffix;</p>
<p>// Connection pool loop - Haha, PooL LooP<br />
foreach ($controllers as $dc) {</p>
<p>&#8230;.&lt;PHP Code Lines removed for sample&gt;&#8230;.</p></div>
<h2>Activating the Plugin</h2>
<p>One requirement that may still be missing is php&#8217;s LDAP support. If you do not already have support for LDAP enabled in php, you will need to enable it before you can authenticate against the Active Directory.<br />
To enable LDAP in PHP, execute the following command</p>
<div class="myCode">sudo apt-get install php5-ldap</div>
<p>At this point, and assuming everything went well, it&#8217;s time to log into your WordPress Blog as the WordPress Admin and navigate to the &#8220;settings&#8221; page. From here, you will see a &#8220;Directory Auth&#8221; link at the top of your settings page. click this link to access the Directory Auth setup page and fill in the required fields as they apply to your Active Directory set up.</p>
<p><strong>Enable Directory Authentication</strong> = yes<br />
<strong> Require SSL Login</strong> = Yes if you use SSL Auth, No if you do not.<br />
<strong> Enable SSL Connectivity</strong> = yes if you are using SSL or LDAPS connections, No if you are not.<br />
<strong> Directory Servers (Domain Controllers) </strong>= DNS Name or IP Address of your Active Directory Domain Controller<br />
<strong> Account  Filter</strong> = samAccountName or field to search the username to locate the directory profile. For AD, samAccountName should work.<br />
<strong> Account Suffix</strong> = @yourdomain.com - This is the suffix for you local domain usen in email addressing in the AD for you local network.<br />
<strong> Base DN</strong> = DC=domainname,DC=com - Note this will vary depending on you local network and complexity of your AD<br id="dp9s" /><strong>Bind DN</strong> = Blank if you allow Anonymous Binding to your Directory or a username use to pre-bind if you do not.<br />
<strong>Bind Password </strong>= Blank if you allow Anonymous Binding to your Directory or the password of the user used to pre-bind if you do not.</p>
<p>The remainder of the fields are self explanatory and are not critical to successful authentication.</p>
<div class="myNotes"><strong>Note</strong>: One of the easiest ways to get the correct Base DN for Active Directory is to use the ADSI Edit utility</div>
<p>Now save the changes and log out of the Wordpress Admin account.<br />
Next attempt to login to WordPress using an Active Directory User Account.</p>
<p>You should now have Active Directory Authentication enabled and working with WordPress.</p>
<p>Remember, your mileage may vary depending on your specific needs and existing network and Active Directory structure.</p>
<p>Have any other tips, or want to share your experience with AD authentication in Wordpress? Leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/07/15/36/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zone Alarm Plus Microsoft Update Prevents Internet Access</title>
		<link>http://www.edwardstafford.com/blog/2008/07/10/zone-alarm-plus-microsoft-update-prevents-internet-access/</link>
		<comments>http://www.edwardstafford.com/blog/2008/07/10/zone-alarm-plus-microsoft-update-prevents-internet-access/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 02:24:08 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/?p=34</guid>
		<description><![CDATA[I received a number of call from friends, family, and clients complaining that they were unable to access the internet on Wednesday July 9th. The first one had me puzzled. Running through the typical troubleshooting process. and finally disabeling the Zone Alarm Firewall which resolved the access issues. Then the next call came in with [...]]]></description>
			<content:encoded><![CDATA[<p>I received a number of call from friends, family, and clients complaining that they were unable to access the internet on Wednesday July 9th. The first one had me puzzled. Running through the typical troubleshooting process. and finally disabeling the Zone Alarm Firewall which resolved the access issues. Then the next call came in with the same issue, Then another..etc. The common factor for all these systems were that each system was was running windows XP SP2 and Zone Alarm. So What was it about Zone Alarm that all of a sudden prevented access to the internet?</p>
<p><strong>The Problem</strong></p>
<p>After a bit of poking, proding and searching, I came across the cause to this problem. Microsoft released a few security patches on Tuesday. One of these patches  (<a href="http://support.microsoft.com/kb/951748" target="_blank">KB951748</a>) was released to address a DNS flaw that could lead to <a href="http://en.wikipedia.org/wiki/DNS_cache_poisoning" target="_blank">DNS cache poisoning</a><span id="intellitxt">. </span>Unfortunately, the hotfix conflicts with Zone Alarm and prevents internet access. Systems that were setup to automatically download and install Windows Updates received this patch.</p>
<p>What I can&#8217;t believe is that I&#8217;ve seen and heard &#8220;Professional&#8221; support people actually suggest the fix is to uninstall the firewall. Seriously? Are you Kidding? That is not a solution!</p>
<p>Other suggestions were touninstall the hotfix. Although this would work, you might still be open to the DNS flaw and at risk. Another was to turn the firewall settings to Medium protection. Not as bad as removing the firewall, but still not really an option.</p>
<p><strong>So how does one overcome this annoying issue?</strong></p>
<p>Zone Labs recommended solution is to download and install a new version of Zone Alarm released to resolve this little issue.</p>
<div style="padding-left: 10px;">
<li><a href="http://download.zonealarm.com/bin/free/1043_zl/zaSuiteSetup_70_483_000_en.exe">ZoneAlarm Internet Security Suite</a></li>
<li><a href="http://download.zonealarm.com/bin/free/1043_zl/zapSetup_70_483_000_en.exe">ZoneAlarm Pro</a></li>
<li><a href="http://download.zonealarm.com/bin/free/1043_zl/zaAvSetup_70_483_000_en.exe">ZoneAlarm Antivirus</a></li>
<li><a href="http://download.zonealarm.com/bin/free/1043_zl/zaasSetup_70_483_000_en.exe">ZoneAlarm Anti-Spyware</a></li>
<li><a href="http://download.zonealarm.com/bin/free/1025_zl/zlsSetup_70_483_000_en.exe">ZoneAlarm Basic Firewall</a></li>
</div>
<p>Other less desirable and <strong>temporary </strong>options are:</p>
<p>Uninstall The offending Microsoft HotFix</p>
<ol type="1">
<li>Click the &#8220;Start Menu&#8221;</li>
<li>Click &#8220;Control Panel&#8221;, or click &#8220;Settings&#8221; then &#8220;Control Panel&#8221;</li>
<li>Click on &#8220;Add or Remove Programs&#8221;</li>
<li>On the top of the add/remove programs dialog box, you should see a checkbox that says &#8220;show updates&#8221;. Select this checkbox</li>
<li>Scroll down until you see &#8220;Security update for Windows (KB951748)&#8221;</li>
<li>Click &#8220;Remove&#8221; to uninstall the hotfix</li>
</ol>
<p>Set Zone Alarms protection to Medium</p>
<ol type="1">
<li>Navigate to the &#8220;ZoneAlarm Firewall&#8221; panel</li>
<li>Click on the &#8220;Firewall&#8221; tab</li>
<li>Move the &#8220;Internet Zone&#8221; slider to medium</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/07/10/zone-alarm-plus-microsoft-update-prevents-internet-access/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Good People Rock!</title>
		<link>http://www.edwardstafford.com/blog/2008/04/02/good-people-day-08/</link>
		<comments>http://www.edwardstafford.com/blog/2008/04/02/good-people-day-08/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 01:55:34 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Social Media and Networking]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/2008/04/02/good-people-day-08/</guid>
		<description><![CDATA[On April 2nd, Gary Vaynerchuk (blog-twitter) was hit with a double dose of motivation, posting not one, but 2 videos. His first was a Big Giant Internet Wide Global THANK YOU!! which got him thinking about doing the right thing and helping others and just being a good person. In his own words, &#8220;We need [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm1.static.flickr.com/70/176034043_d0fed3e6a3_m.jpg" title="Life is good" style="padding: 0px 10px 10px 0px; float: left" alt="Life is good" height="140" width="240" />On April 2nd, Gary Vaynerchuk (<a href="http://garyvaynerchuk.com/" target="_blank">blog</a>-<a href="http://twitter.com/garyvee" target="_blank">twitter</a>) was hit with a double dose of motivation, posting not <a href="http://garyvaynerchuk.com/2008/04/02/a-simple-message-to-you/" target="_blank">one</a>, but <a href="http://garyvaynerchuk.com/2008/04/02/april-3rd-2008-is-good-people-day-pass-it-on/" target="_blank">2 videos</a>. His first was a Big Giant Internet Wide Global THANK YOU!! which got him thinking about doing the right thing and helping others and just being a good person. In his own words, &#8220;We need this message of doing good and helping others&#8221;. A lot of the conversations surrounding Social Media,  the internet and life in general are about how to exploit it and turn a profit, Gossip, and conroversy. Does any of that really matter? Well, enough already! Gary has made an official call to action to spend the day on <strong>4-3-2008</strong> spreading the love and talking about Good People!!</p>
<p><strong>A Few Good Men (and Women)</strong></p>
<p><strong>Do know any good people? </strong>Spread the word, talk about them, blog about them, twitter about them, tag them. Do whatever it takes to let world know that <strong>Good People DO exist</strong>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/04/02/good-people-day-08/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HTML Email vs Plain Text Email.</title>
		<link>http://www.edwardstafford.com/blog/2008/03/14/html-email-vs-plain-text-email/</link>
		<comments>http://www.edwardstafford.com/blog/2008/03/14/html-email-vs-plain-text-email/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 20:44:06 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Business]]></category>

		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/2008/03/14/html-email-vs-plain-text-email/</guid>
		<description><![CDATA[I was recently asked &#8220;why only allow plain text email formats for not only reading messages received, but also for our bulk outbound messages&#8221;. Apparently, some of the natives have grown restless and want to include large bold colorful type and pictures and bells and whistles with their messages. Whats the problem with that? Well, [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently asked &#8220;why only allow plain text email formats for not only reading messages received, but also for our bulk outbound messages&#8221;. Apparently, some of the natives have grown restless and want to include large bold colorful type and pictures and bells and whistles with their messages. Whats the problem with that? Well, there are several.</p>
<p>I&#8217;m pretty sure that most people (I&#8217;m talking average people here) don&#8217;t know what HTML even means, never mind how to properly write and test it. HTML is the mark up language used for writing web pages, not email messages. It has a specific form, syntax, structure, and should conform to current standards. If not written correctly, you will experience problems of one sort or another. Then there is the problem of writing for different displays, engines, platforms etc. Each of these also introduces their own set of quirks, hacks and workarounds.</p>
<p>HTML email also has a history of security related vulnerabilities and issues, for example:</p>
<ul>
<li>embeded content</li>
<li>scripts</li>
<li>the ability to include links whose text is different from it&#8217;s target</li>
<li>tracking and beacons</li>
</ul>
<p>It&#8217;s no secret that Microsoft has released warnings on a number of seperate occasions stating that opening a specially crafted HTML email messages in their popular email software would lead to your system being compromised &#8220;just by opening the message&#8221;. That&#8217;s it, end of story. (this is not an invitation to bash microsoft)</p>
<p>HTML is also popular with SPAM and PHISING and because of that, spam filters are likely to give HTML messages a much higher SPAM score, increasing the chances of that message getting buried by a filter.</p>
<p>These are very generic samples and I could write pages on the subject but they also give an example of how inbound HTML can represent a security risk and how outbound messages are put at an increased risk of not reaching the target, or being unreadable.</p>
<p>According to RFC 2822, plain text is the default format for email and therefore is supported in all compliant readers. HTML formats however are not required to be supported. There is also an issue of non-standard support and proprietary rules  among HTML rendering engines and software, which introduces compatibility issues and broken pages or layouts or even in some cases, completely blank pages.</p>
<p><strong>Here&#8217;s my perspective. If the intention, and ultimately your business, is to get your message to your target or audience, don&#8217;t you want to know that they will be able to read it. Plain text gives you that guarantee. HTML is not as reliable.</strong></p>
<p><u><strong>So what do you think?</strong></u></p>
<ul>
<li> Do you prefer HTML email over Plain Text?</li>
<li>Does your company disable or limit inbound HTML email?</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/03/14/html-email-vs-plain-text-email/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wikis and Web Sites and Apps, Oh My!</title>
		<link>http://www.edwardstafford.com/blog/2008/03/10/social-media-breakfast-6-with-jeff-pulver/</link>
		<comments>http://www.edwardstafford.com/blog/2008/03/10/social-media-breakfast-6-with-jeff-pulver/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 20:57:32 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/2008/03/10/social-media-breakfast-6-with-jeff-pulver/</guid>
		<description><![CDATA[I know that I&#8217;ve been a bit off when it comes to writing for this blog and I could come up with a nember of legitimate excuses..but I won&#8217;t. I&#8217;ll give just one. Truth is, I&#8217;ve been having so much fun trying out new software, applications, web sites, and other geeky stuff that I just [...]]]></description>
			<content:encoded><![CDATA[<p>I know that I&#8217;ve been a bit off when it comes to writing for this blog and I could come up with a nember of legitimate excuses..but I won&#8217;t. I&#8217;ll give just one. Truth is, I&#8217;ve been having so much fun trying out new software, applications, web sites, and other geeky stuff that I just didn&#8217;t want to stop. It&#8217;s not for lack of subject matter..no..just the opposite. There has been to much subject matter.</p>
<ul>
<li>Installing and testing different Wikis (by the way, I really like <a href="http://wiki.opengarden.org/" title="Deki Wiki at opengarden.org" target="_blank">Deki Wiki</a> so far)</li>
<li>Signing up for and poking about on different Social Media sites and web apps.</li>
<li>Trying out different OSS alternatives to Microsoft and Windows based software</li>
<li>Experimenting with Social Media in business</li>
<li>Even writing my own .Net <a href="http://twitter.com/pixel8r" title="My Twitter Page" target="_blank">twitter</a> client for windows called <a href="http://twitterpatter.wordpress.com" title="TwitterPatter Blog" target="_blank">TwitterPatter</a></li>
</ul>
<p>Honestly, there is no good reason why I couldn&#8217;t just take some time to share what I discovered or learned over the past few weeks. I sort of feel like a kid being called home at the end of a long summer day and thinking &#8220;Aw, just a little longer&#8230;??&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/03/10/social-media-breakfast-6-with-jeff-pulver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How Twitter has changed my life</title>
		<link>http://www.edwardstafford.com/blog/2008/02/14/26/</link>
		<comments>http://www.edwardstafford.com/blog/2008/02/14/26/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 19:11:43 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Personal]]></category>

		<category><![CDATA[Social Media and Networking]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/2008/02/14/26/</guid>
		<description><![CDATA[Yesterday morning (Feb 13/08), I attended the Social Media Breakfast 5 (SMB5) where the focus of the event was set by a single statement: â€œHow Twitter has changed my life â€” and can change yoursâ€.
The event was hosted by Bryan Person and featured presentations by:
Scott Monty @scottmonty 
Laura Fitton @pistachio 
Doug Haslam @dough 
Jim Storer [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday morning (Feb 13/08), I attended the <a href="http://www.socialmediabreakfast.com/" title="Social Media Breakfast" target="_blank" id="lp0u">Social Media Breakfast</a> 5 (SMB5) where the focus of the event was set by a single statement: <strong>â€œHow Twitter has changed my life â€” and can change yoursâ€.</strong></p>
<p>The event was hosted by <a href="http://www.bryper.com/">Bryan Person</a> and featured presentations by:</p>
<p style="margin-left: 40px"><strong>Scott Monty <a href="http://twitter.com/scottmonty" title="@scottmonty" target="_blank" id="s99:">@scottmonty</a> </strong><br />
<strong>Laura Fitton <a href="http://twitter.com/pistachio" title="@pistachio" target="_blank" id="pjnb">@pistachio</a> </strong><br />
<strong>Doug Haslam <a href="http://twitter.com/dough" title="@dough" target="_blank" id="yl0r">@dough</a> </strong><br />
<strong>Jim Storer <a href="http://twitter.com/jstorer" title="@jstorer" target="_blank" id="i.yg">@jstorer</a> </strong></p>
<p><strong>You can view their presentations at: </strong><br />
<font size="1"><a href="http://topazpartners.blogspot.com/2008/02/social-media-breakfast-presentaions-how.html" title="http://topazpartners.blogspot.com/2008/02/social-media-breakfast-presentaions-how.html" id="lsto">http://topazpartners.blogspot.com/2008/02/social-media-breakfast-presentaions-how.html</a> </font><br />
<strong><br />
</strong>Each speaker was allowed 5 minutes to present his/her story and experience, describing how twitter has changed their life and each presented some really great thoughts. It was very interesting to see how they each made twitter work for them.</p>
<p>In keeping with that theme, I figured I could write a quick post to share my experience with twitter, and how it has changed my life with more of a personal twist. <span id="more-26"></span>Let me begin by sharing a little something about myself that you are probably not aware of. Simply put, <u>I struggle with social anxiety</u>. I do not do well in crowds or groups where I am unfamiliar with others or in a setting/environment that I am not familiar with.</p>
<p><strong>Now back to the point:<br />
</strong></p>
<p>Since I&#8217;ve started <a href="http://twitter.com/pixel8r" title="using twitter regularly" target="_blank" id="xjyb">using twitter regularly</a>, it was pretty obvious how useful and valuable it was. Twitter has provided a way to make connections with other people who shared similar interests and ideas. I also found twitter users that, even though I have not made a two-way connection, I choose to &#8220;follow&#8221; for the ideas and bits of info and knowledge they share - the ability to virtually &#8220;pick their brains&#8221;. For me, this is significant because in the &#8220;real&#8221; world, it is difficult for me to engage others whom I am not already familiar with. Unfortunately, this has given people the impression that I am anti-social, snobbish, and even intimidating (huh?) which couldn&#8217;t be further from the truth.</p>
<p><a href="http://www.mzinga.com/default.asp?"></a><strong><br />
</strong> <strong>So, how has twitter changed my life?<br />
</strong>Twitter has allowed me to make connections, have conversations and get to know people in a way that removes the anxiety. When an opportunity comes about to meet these people in a real world setting, I am more at ease and feel as if I already know them to some degree which helps to reduce the anxiety significantly. I still have a lot of work to do to manage anxiety, but twitter has given me a tool to ease the process and helps to break down the wall that my anxiety creates.</p>
<p>So there you have it.<br />
Has twitter changed your life? Want to leave a comment?<br />
I&#8217;d love to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/02/14/26/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Set A Static IP In Ubuntu or Linux Using The Command Line</title>
		<link>http://www.edwardstafford.com/blog/2008/01/06/how-to-set-a-static-ip-in-ubuntu-or-linux-using-the-command-line/</link>
		<comments>http://www.edwardstafford.com/blog/2008/01/06/how-to-set-a-static-ip-in-ubuntu-or-linux-using-the-command-line/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 20:01:28 +0000</pubDate>
		<dc:creator>Ed Stafford</dc:creator>
		
		<category><![CDATA[IT Administration]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.edwardstafford.com/blog/2008/01/06/how-to-set-a-static-ip-in-ubuntu-or-linux-using-the-command-line/</guid>
		<description><![CDATA[After installing Ubuntu Linux 7.10 Server Edition, I found that the IP address was assigned by DHCP served by my home router. This is fine for getting the server installed, but under most conditions, you will want to assign a static IP for your server. This Blog post will show you how to do just [...]]]></description>
			<content:encoded><![CDATA[<p>After installing Ubuntu Linux 7.10 Server Edition, I found that the IP address was assigned by DHCP served by my home router. This is fine for getting the server installed, but under most conditions, you will want to assign a static IP for your server. This Blog post will show you how to do just that. One of the issues with the Ubuntu server editions is that everything is done from a command line. There is no pretty windowed GUI.</p>
<p>One thing to note is that these commands need to be issued from either root or using sudo. I prefer to use the sudo su method to avoid having to type sudo each time I issue a command. (<strong>WARNING</strong>) if you do use sudo su, remember to exit the root when you are done.</p>
<p>In this example, I will be assigning the a static IP address of <strong>192.168.1.2</strong> to the primary network interface on my server.<br />
My network subnet is <strong>192.168.1.0</strong><br />
My network gateway is <strong>192.168.1.3</strong><br />
And my netmask is <strong>255.255.255.0</strong><br />
<span id="more-23"></span></p>
<p><strong>1. Gain root privledges</strong></p>
<blockquote></blockquote>
<p><code><strong>sudo su</strong></code></p>
<blockquote></blockquote>
<p>Enter your password when prompted You should now have root access.</p>
<p><strong>2. Backup your  interfaces file</strong></p>
<p><code><strong>cp /etc/network/interfaces /etc/network/interfaces.backup</strong></code></p>
<p>It is important to always create a backup of important files in case you need to restore your original files/settings.</p>
<p><strong>3.  Edit the Interfaces file </strong><br />
Now using a text editor, modify the /etc/network/interfaces file. I prefer to use nano, but you can use any editor you prefer. For this example, I am going to use 192.168.1.2 as my static ip address.</p>
<p>The original the interfaces file looks like this:</p>
<p><code><strong># This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).<br />
# The loopback network interface</strong>  <strong><br />
auto lo<br />
iface lo inet loopback</strong>  <strong><br />
# The primary network interface</strong>  <strong><br />
auto eth0<br />
iface eth0 inet dhcp</strong></code></p>
<p>To set a static IP, you need to change the line under &#8220;The primary network interface&#8221; to something like this.</p>
<p><code><strong># The primary network interface<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.2<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.3</strong></code></p>
<p><strong>5. Confirm Your Changes</strong><br />
Your edited interfaces file should now look something like this.<br />
<code><strong># This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).<br />
# The loopback network interface<br />
auto lo<br />
iface lo inet loopback<br />
# The primary network interface</strong><br />
<strong>auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.2<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.3</strong></code></p>
<p><strong>6. Save Your Changes and Restart Networking</strong></p>
<p>If your changes are correct, you now need to save them to the interfaces file. If you used Nano, to save the new file, you press Ctrl-o to write the changes (hit enter when asked to overwrite the existing file) and the Ctrl-x to quit nano.</p>
<p>Once your changes are saved you need to restart the networking service on the server by issuing the following command.</p>
<p><code>/etc/init.d/networking restart</code></p>
<p><strong>7. Test and Confirm</strong><br />
If everything went well, you now have a static IP assigned to the eth0 network interface.<br />
To test and make sure your changes were applied successfully, issue this command:</p>
<p><code>ifconfig eth0</code></p>
<p>Your output should look something like this:<br />
<code><br />
eth0      Link encap:Ethernet  HWaddr 00:02:E3:09:C2:FB<br />
inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0<br />
inet6 addr: fe80::202:e3ff:fe09:c2fb/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:512598 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:5428 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:30923166 (29.4 MB)  TX bytes:547585 (534.7 KB)<br />
Interrupt:10 Base address:0x6000</code></p>
<p>Note the second line<br />
inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0<br />
now shows the correct static ip, Bcast and Mask information that we assigned.</p>
<p><strong>If you gained root by using the sudo su option, remember to exit root by simply issuing the &#8220;exit&#8221; command.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwardstafford.com/blog/2008/01/06/how-to-set-a-static-ip-in-ubuntu-or-linux-using-the-command-line/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
