<?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>Michael Conigliaro &#187; Linux</title>
	<atom:link href="http://conigliaro.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://conigliaro.org</link>
	<description>cat /dev/brain &#124; grep technology &#62;&#62; blog</description>
	<lastBuildDate>Wed, 06 Jan 2010 02:37:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Puppet&#8217;s Exec Resource to Run Commands Manually</title>
		<link>http://conigliaro.org/2009/09/25/using-puppets-exec-resource-to-run-commands-manually/</link>
		<comments>http://conigliaro.org/2009/09/25/using-puppets-exec-resource-to-run-commands-manually/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 17:54:30 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=570</guid>
		<description><![CDATA[The title of this post may seem confusing. The whole point of Puppet is to promote efficiency by eliminating manual administrative tasks, so why would anyone want to use Puppet to do things manually? Well, one simple example is when you want to install software from source, or from a binary package that is not [...]]]></description>
			<content:encoded><![CDATA[<p>The title of this post may seem confusing. The whole point of Puppet is to promote efficiency by eliminating manual administrative tasks, so why would anyone want to use Puppet to do things manually? Well, one simple example is when you want to install software from source, or from a binary package that is not supported by the <a href="http://reductivelabs.com/trac/puppet/wiki/TypeReference#package">package</a> type. Your first instinct may be to use <a href="http://reductivelabs.com/trac/puppet/wiki/TypeReference#exec">exec</a> to do something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="puppet" style="font-family:monospace;">exec { &quot;install-foo&quot;:
    command =&gt; &quot;curl -s -o /tmp/foo.run http://example.com/foo.run \
                &amp;&amp; chmod o+x /tmp/foo.run \
                &amp;&amp; /tmp/foo.run &quot;,
    creates =&gt; &quot;/usr/local/bin/foo&quot;,
}</pre></div></div>

<p>This is pretty straightforward. The &#8220;command&#8221; parameter downloads and installs the package, while the &#8220;creates&#8221; parameter tells Puppet not to execute the command again as long as &#8220;/usr/local/bin/foo&#8221; exists. This keeps Puppet from unnecessarily downloading and reinstalling the program over and over again, but what happens when there&#8217;s a new version of foo.run? How does puppet know when it&#8217;s time to upgrade? </p>
<p>There may be better ways of doing this, but here&#8217;s a simple approach that has worked well for me:</p>

<div class="wp_syntax"><div class="code"><pre class="puppet" style="font-family:monospace;">$serial = &quot;2009092501&quot;
$serialfile = &quot;/var/log/puppet/foo.serial&quot;
exec { &quot;install-foo&quot;:
    command =&gt; &quot;curl -s -o /tmp/foo.run http://example.com/foo.run \
                &amp;&amp; chmod o+x /tmp/foo.run \
                &amp;&amp; /tmp/foo.run \
                &amp;&amp; echo \&quot;$serial\&quot; &gt; \&quot;$serialfile\&quot;&quot;,&quot;,
    unless  =&gt; &quot;test \&quot;`cat $serialfile 2&gt;/dev/null`\&quot; = \&quot;$serial\&quot;&quot;,
}</pre></div></div>

<p>Notice that after running the command, I echo the value of $serial into the file at $serialfile. Then I use the &#8220;unless&#8221; parameter to check if the contents of $serialfile equals the value stored in $serial. If the values match, the command will not be executed. But now when I want to upgrade the foo package, all I need to do is update the value of $serial.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/09/25/using-puppets-exec-resource-to-run-commands-manually/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Citrix Receiver and SSL Error 61 on Linux</title>
		<link>http://conigliaro.org/2009/09/15/citrix-receiver-and-ssl-error-61-on-linux/</link>
		<comments>http://conigliaro.org/2009/09/15/citrix-receiver-and-ssl-error-61-on-linux/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 03:01:41 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=516</guid>
		<description><![CDATA[Are you getting an error like this?
You have chosen not to trust &#8220;Go Daddy Secure Certificate Authority&#8221;, the issuer of the server&#8217;s security certificate (SSL error 61).
The solution is to download the appropriate root certificates (Godaddy&#8217;s are here) and save them to /usr/lib/ICAClient/keystore/cacerts.

wget -P /usr/lib/ICAClient/keystore/cacerts --no-check-certificate https://certs.godaddy.com/repository/gd-class2-root.crt https://certs.godaddy.com/repository/gd_intermediate.crt https://certs.godaddy.com/repository/gd_cross_intermediate.crt

Edit: One of my co-workers has a [...]]]></description>
			<content:encoded><![CDATA[<p>Are you getting an error like this?</p>
<blockquote><p>You have chosen not to trust &#8220;Go Daddy Secure Certificate Authority&#8221;, the issuer of the server&#8217;s security certificate (SSL error 61).</p></blockquote>
<p>The solution is to download the appropriate root certificates (<a href="https://certs.godaddy.com/repository/">Godaddy&#8217;s are here</a>) and save them to <strong>/usr/lib/ICAClient/keystore/cacerts</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-P</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ICAClient<span style="color: #000000; font-weight: bold;">/</span>keystore<span style="color: #000000; font-weight: bold;">/</span>cacerts <span style="color: #660033;">--no-check-certificate</span> https:<span style="color: #000000; font-weight: bold;">//</span>certs.godaddy.com<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>gd-class2-root.crt https:<span style="color: #000000; font-weight: bold;">//</span>certs.godaddy.com<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>gd_intermediate.crt https:<span style="color: #000000; font-weight: bold;">//</span>certs.godaddy.com<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>gd_cross_intermediate.crt</pre></div></div>

<p><strong>Edit:</strong> <a href="http://andkorn.org/wiki/doku.php?id=howtos:computers:linux:citrixclient_amd64">One of my co-workers has a script that will do this for you</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/09/15/citrix-receiver-and-ssl-error-61-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mass File Rename with Linux</title>
		<link>http://conigliaro.org/2009/09/10/mass-file-rename-with-linux/</link>
		<comments>http://conigliaro.org/2009/09/10/mass-file-rename-with-linux/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 00:53:26 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=511</guid>
		<description><![CDATA[When people ask me why I love Linux so much, I tell them it&#8217;s the little things; like being able to do very simple mass file renaming on the command line:

rename &#34;s/foo/bar/&#34; *.baz

The first parameter is a Perl expression. The second is a file glob. This command will replace the string foo with the string [...]]]></description>
			<content:encoded><![CDATA[<p>When people ask me why I love Linux so much, I tell them it&#8217;s the little things; like being able to do very simple mass file renaming on the command line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rename <span style="color: #ff0000;">&quot;s/foo/bar/&quot;</span> <span style="color: #000000; font-weight: bold;">*</span>.baz</pre></div></div>

<p>The first parameter is a <a href="http://perldoc.perl.org/perlretut.html">Perl expression</a>. The second is a file glob. This command will replace the string <strong>foo</strong> with the string <strong>bar</strong> in all filenames ending in <strong>.baz</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/09/10/mass-file-rename-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My RHCE Exam Experience</title>
		<link>http://conigliaro.org/2009/09/08/my-rhce-exam-experience/</link>
		<comments>http://conigliaro.org/2009/09/08/my-rhce-exam-experience/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 17:06:18 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=465</guid>
		<description><![CDATA[On September 4th, 2009, I took the new 3.5 hour, single-section RHCE exam. This was my first time taking the exam, and to be perfectly honest, it was nowhere near as challenging as I thought it would be. While I don&#8217;t want to downplay the significance of the RHCE certification or give anyone the false [...]]]></description>
			<content:encoded><![CDATA[<p>On September 4th, 2009, I took the <a href="http://www.redhat.com/certification/faq/">new</a> 3.5 hour, single-section <a href="http://www.redhat.com/certification/rhce/">RHCE</a> exam. This was my first time taking the exam, and to be perfectly honest, it was nowhere near as challenging as I thought it would be. While I don&#8217;t want to downplay the significance of the RHCE certification or give anyone the false impression that the exam is necessarily easy, I <em>do</em> want to emphasize that contrary to popular belief, it is quite possible to self-study your way to a perfect score. Not only was I able to breeze through the entire list of test objectives, I had time to thoroughly check <em>and double-check</em> all of my work with almost an hour to spare. This meant I was done long before anyone else in the room, including those who took the official Red Hat training courses. So how did I accomplish this feat?</p>
<p>The first thing you should know is that I had already been working professionally with Linux for ~10 years before I began studying for the exam. I doubt that so much experience is really necessary, but because the exam measures actual competency on live systems rather than your ability to memorize or &#8220;read between the lines,&#8221; I think it&#8217;s highly unlikely that someone with little or no working knowledge of Linux could successfully cram for this test. So I&#8217;d have to say that experience is an important prerequisite, but I&#8217;d also have to say that experience alone is almost certainly not enough. Considering the wide range of subject matter, it&#8217;s very likely that you&#8217;ll be tested on something you&#8217;ve never had to touch before.</p>
<p>In my opinion, the hardest thing about self-studying for the RHCE exam is knowing how much you need to know about each study point in the <a href="http://www.redhat.com/certification/rhce/prep_guide/">RHCE Prep Guide</a>. In other words, when it says something like &#8220;you need to know basic configuration of x,&#8221; it&#8217;s hard to know exactly what &#8220;basic configuration&#8221; means. Although I&#8217;ve signed an NDA preventing me from revealing any details about the exam itself, I can tell you that nearly all of my study material came from two places:</p>
<ol>
<li><a href="http://www.amazon.com/gp/product/0072264543?ie=UTF8&amp;tag=michaeconigl-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0072264543">RHCE Red Hat Certified Engineer Linux Study Guide</a> by Michael Jang</li>
<li><a href="http://www.redhat.com/docs/manuals/enterprise/">Red Hat Deployment Guide</a></li>
</ol>
<p>The rest of my study material came from search engines. I spent a lot of time comparing other people&#8217;s study notes to mine and reading anecdotes about the RHCE exam. While the result of this was usually a temporary blow to my confidence (there are a lot of horror stories out there!), I did find a few blogs and forum posts with some helpful information. Usually it was just an alternative way of doing something, but it was also nice to come across the occasional words of encouragement from a self-studied RHCE. Just knowing that other people had done it gave me a slight confidence boost (as I hope this post does for some of you).</p>
<p>The first thing I did was read Michael Jang&#8217;s book cover to cover, just trying to absorb what I considered to be the most important information from each chapter (i.e. concepts rather than commands). This took me a week or two. When I was done, I set up a test environment using <a href="http://www.virtualbox.org/">VirtualBox</a>. Then I decided it would help to have a condensed, single-page study guide to refer to, so I created a &#8220;wikified&#8221; version of the RHCE Prep Guide which I called my <a href="/wiki/rhce">RHCE &#8220;cheat sheet&#8221;</a>. For the next few weeks, I went through each study point on the &#8220;cheat sheet&#8221; and used my study material to test and document everything I thought I might need to know.</p>
<p>I found Michael Jang&#8217;s book to be a great study guide (the labs and example problems were a huge help), but I wasn&#8217;t completely happy with the amount of detail on some topics, as well as how it tends to follow the Red Hat course outlines rather than just sticking to the RHCE Prep Guide. I also found quite a few typos and just plain incorrect information, so that&#8217;s where the Red Hat Deployment Guide came in. While I was working on the RHCE &#8220;cheat sheet,&#8221; I would usually read the appropriate chapter(s) from Michael Jang&#8217;s book first, then I would supplement it with the appropriate chapter(s) from the Red Hat Deployment Guide. If I felt particularly weak in a certain area, I would also peruse the man pages and any HOWTOs I could find online. This was a long, arduous process, but it helped ensure that I wasn&#8217;t missing any important details.</p>
<p>For the last couple weeks, I tested myself by putting the &#8220;cheat sheet&#8221; away, doing a minimal install of CentOS in my test environment, and trying to configure everything I could without referring to any documentation whatsoever. Since the test takes place on a live system, I assumed from the beginning that the man pages would be available, but in order to save time, I wanted to make sure I could do everything off the top of my head. As a result, I ended up memorizing almost everything on the &#8220;cheat sheet,&#8221; which is probably why I was able to complete the exam so quickly.</p>
<p>Since I didn&#8217;t have a study partner, preparing for the troubleshooting section of the exam was a bit of a challenge. I did come across an interesting project called <a href="http://trouble-maker.sourceforge.net/">Trouble Maker</a> which directly addresses this problem, but unfortunately, it has not been updated in several years and does not work on recent versions of CentOS. For a while, I actually considered writing my own trouble maker program, but I ultimately decided that this would be too much work. Luckily, I have a few friends who know enough about Linux to make a machine unbootable, so we made a game of it. I would give them my root password and challenge them to do something that would keep me from using my computer, then I would try to fix it as fast as I could.</p>
<p>When it was all said and done, I spent roughly six weeks (studying a few hours each day) to prepare for the RHCE. Considering how easy the exam was for me, I believe that I worked a lot harder than I needed to, but <a href="/2009/09/04/rhce-exam-results/">the results</a> were clearly well worth the effort. The best advice I can give to prospective RHCEs is to take your time and practice until you can do everything in the RHCE Prep Guide off the top of your head. If you feel weak in anything, do yourself a favor and postpone the exam.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/09/08/my-rhce-exam-experience/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>RHCE Exam Results</title>
		<link>http://conigliaro.org/2009/09/04/rhce-exam-results/</link>
		<comments>http://conigliaro.org/2009/09/04/rhce-exam-results/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 23:16:41 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=460</guid>
		<description><![CDATA[The results are in, and I got a perfect score!

Dear Michael T Conigliaro:
&#160;
The results of your RHCE Certification Exam are reported below.  The
RHCE Certification Exam allows candidates to qualify for the
Red Hat Certified Engineer (RHCE) and Red Hat Certified Technician
(RHCT) certificates.  Please note that the RHCE designation is
understood to both include and supersede [...]]]></description>
			<content:encoded><![CDATA[<p>The results are in, and I got a perfect score!</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Dear Michael T Conigliaro:
&nbsp;
The results of your RHCE Certification Exam are reported below.  The
RHCE Certification Exam allows candidates to qualify for the
Red Hat Certified Engineer (RHCE) and Red Hat Certified Technician
(RHCT) certificates.  Please note that the RHCE designation is
understood to both include and supersede the RHCT designation.
&nbsp;
RHCE requirements: score of 70 or higher on RHCT components (100 points)
                   score of 70 or higher on RHCE components (100 points)
&nbsp;
RHCT requirement:  score of 70 or higher on RHCT components (100 points)
&nbsp;
RHCT components score:                             100.0
RHCE components score:                             100.0
&nbsp;
RHCE Certification:                                PASS
&nbsp;
Congratulations -- you are now certified as a Red Hat Certified
Engineer!  Your RHCE Certificate number is 805009592042441.
The attached file is your personal print-ready certificate.
&nbsp;
You are entitled to print this document and use it to demonstrate
that you are an RHCE, provided you remain an RHCE in good standing.
You may not modify or change the document's contents in any way, nor 
may you appropriate any elements of this document for use in other 
electronic documents or printed materials.  You may only print the 
document in its entirety.  Any other use of the document must be
approved by Red Hat, Inc.
&nbsp;
Your RHCE number should be available for verification at Red Hat 
Certification Central:
&nbsp;
http://www.redhat.com/training/certification/verify/?rhce_cert_display:certno=805009592042441&amp;rhce_cert_display:verify_cb=Verify
&nbsp;
You can verify the certificates of other RHCEs and RHCTs at 
&nbsp;
https://www.redhat.com/training/certification/verify
&nbsp;
Please visit RHCE Connection, our web site exclusively for RHCEs:
&nbsp;
https://www.redhat.com/training/certification/
&nbsp;
There you will find special offers from Red Hat, logo art, forums, job
listings, and more.  You can also use the site to manage your contact
information.  In order to access the site, you will need a PIN number.
You can have the PIN sent to the email address we have on file at
&nbsp;
https://www.redhat.com/training/certification/lostpin.html
&nbsp;
If you wish to connect to the forums directly:
&nbsp;
https://certforums.redhat.com
&nbsp;
Certification in Red Hat Enterprise Linux opens up new opportunities. 
We hope you will keep Red Hat updated with your experiences and successes
with Red Hat Enterprise Linux.
&nbsp;
Please feel free to contact us with ideas and suggestions as to ways
we can enhance our Red Hat Enterprise Linux training and certification 
programs at
&nbsp;
https://www.redhat.com/training/certification/comments.html
&nbsp;
Thank you very much for your interest in Red Hat Enterprise Linux!
&nbsp;
Red Hat Certification Central</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/09/04/rhce-exam-results/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>So I&#8217;ve Decided to Take The RHCE Exam</title>
		<link>http://conigliaro.org/2009/08/21/so-ive-decided-to-take-the-rhce-exam/</link>
		<comments>http://conigliaro.org/2009/08/21/so-ive-decided-to-take-the-rhce-exam/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:55:28 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=447</guid>
		<description><![CDATA[According to the Internets, the RHCE is the &#8220;crown jewel of Linux certifications,&#8221; and since I don&#8217;t have any Linux certifications at the moment, I&#8217;ve decided to give it a shot. After taking the Pre-assessment Questionnaires about a month ago and seeing that I was in pretty good shape already, I decided to self-study using [...]]]></description>
			<content:encoded><![CDATA[<p>According to the Internets, the <a href="http://www.redhat.com/certification/rhce/">RHCE</a> is the &#8220;crown jewel of Linux certifications,&#8221; and since I don&#8217;t have <em>any</em> Linux certifications at the moment, I&#8217;ve decided to give it a shot. After taking the <a href="https://www.redhat.com/apps/training/assess/">Pre-assessment Questionnaires</a> about a month ago and seeing that I was in pretty good shape already, I decided to self-study using <a href="http://www.amazon.com/gp/product/0072264543?ie=UTF8&#038;tag=michaeconigl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0072264543">Michael Jang&#8217;s book</a> and the <a href="http://www.redhat.com/docs/manuals/enterprise/">Red Hat Deployment Guide</a> rather than taking thousands of dollars worth of Red Hat classes. The more perceptive among you may have noticed my new <a href="/wiki">wiki</a> containing my <a href="/wiki/rhce">RHCE &#8220;Cheat Sheet&#8221;</a>. Hopefully someone else out there will find it useful.</p>
<p>Even though I can do about 95% of the stuff on the <a href="http://www.redhat.com/certification/rhce/prep_guide/">RHCE Prep Guide</a> off the top of my head, the horror stories I&#8217;ve been reading about this test are making me pretty nervous. Any tips from current RHCEs would be appreciated. Also, if anyone is interested in logging into my test machine at home and doing something to make it unbootable, that would help me practice for the troubleshooting part of the exam.</p>
<p>I&#8217;m scheduled to take the test in Philadelphia on September 4th, which coincidentally, is my birthday. I guess I won&#8217;t know if that&#8217;s a good thing or a bad thing until I get the test results. </p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/08/21/so-ive-decided-to-take-the-rhce-exam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Active Directory Authentication with Winbind on Red Hat Linux</title>
		<link>http://conigliaro.org/2008/12/19/active-directory-authentication-with-winbind-on-red-hat-linux/</link>
		<comments>http://conigliaro.org/2008/12/19/active-directory-authentication-with-winbind-on-red-hat-linux/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 17:19:58 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=552</guid>
		<description><![CDATA[This example assumes that you have properly configured DNS servers, so that the Kerberos realm can be discovered via DNS. This should get taken care of for you automatically on Active Directory domains:

_kerberos             IN  TXT  EXAMPLE.COM
_kerberos._udp      [...]]]></description>
			<content:encoded><![CDATA[<p>This example assumes that you have properly configured DNS servers, <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzakh/rzakhdefinerealmsdns.htm">so that the Kerberos realm can be discovered via DNS</a>. This should get taken care of for you automatically on Active Directory domains:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">_kerberos             IN  TXT  EXAMPLE.COM
_kerberos._udp        IN  SRV  0 0 88 server.example.com.
_kerberos._tcp        IN  SRV  0 0 88 server.example.com.
_kpasswd._udp         IN  SRV  0 0 464 server.example.com.
_kpasswd._tcp         IN  SRV  0 0 464 server.example.com.
_ldap._tcp.dc._msdcs  IN  SRV  0 0 389 server.example.com.</pre></div></div>

<p>On your Linux box, set the fully-qualified hostname in <strong>/etc/sysconfig/network</strong> and <strong>/etc/hosts</strong>. Note that the first part of your hostname must be no longer than 15 characters and unique in the domain:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># /etc/sysconfig/network
HOSTNAME=myhostname.example.com</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># /etc/hosts
127.0.0.1  myhostname.example.com  myhostname  localhost.localdomain localhost</pre></div></div>

<p>Make sure your Linux box has a properly configured DNS client (probably pointing at your domain controllers):</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">search example.com
nameserver 192.168.1.10</pre></div></div>

<p>Since Kerberos is very sensitive to clock drift, it&#8217;s a good idea to configure your Linux box as an NTP client to your domain controllers. Edit <strong>/etc/ntp.conf</strong> like so:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">server server.example.com</pre></div></div>

<p>Install Winbind and configure the service to start automatically:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> samba-common
chkconfig winbind on</pre></div></div>

<p>Use Red hat&#8217;s <strong>authconfig</strong> command to configure Winbind authentication:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">authconfig \
  <span style="color: #660033;">--disablecache</span> \
  <span style="color: #660033;">--enablewinbind</span> \
  <span style="color: #660033;">--enablewinbindauth</span> \
  <span style="color: #660033;">--smbsecurity</span>=ads \
  <span style="color: #660033;">--smbworkgroup</span>=EXAMPLE \
  <span style="color: #660033;">--smbrealm</span>=EXAMPLE.COM \
  <span style="color: #660033;">--enablewinbindusedefaultdomain</span> \
  <span style="color: #660033;">--winbindtemplatehomedir</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/%</span>U \
  <span style="color: #660033;">--winbindtemplateshell</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> \
  <span style="color: #660033;">--enablekrb5</span> \
  --krb5<span style="color: #007800;">realm</span>=EXAMPLE.COM \
  <span style="color: #660033;">--enablekrb5kdcdns</span> \
  <span style="color: #660033;">--enablekrb5realmdns</span> \
  <span style="color: #660033;">--enablelocauthorize</span> \
  <span style="color: #660033;">--enablemkhomedir</span> \
  <span style="color: #660033;">--enablepamaccess</span> \
  <span style="color: #660033;">--updateall</span></pre></div></div>

<p>Now you should be able to join your Linux box to the domain:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net ads <span style="color: #c20cb9; font-weight: bold;">join</span> <span style="color: #660033;">-U</span> Administrator</pre></div></div>

<p>Start (or restart) the Winbind service:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service restart winbind</pre></div></div>

<p>At this point, your Linux box should be participating on the Windows domain. You can test this by issuing <strong>wbinfo -u</strong> (to list all users in the domain), <strong>wbinfo -g</strong> (to list all groups in the domain), and <strong>getent passwd administrator</strong> (to list account information for the domain administrator).</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2008/12/19/active-directory-authentication-with-winbind-on-red-hat-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing an LVM + EXT3 Partition</title>
		<link>http://conigliaro.org/2008/11/05/resizing-an-lvm-ext3-partition/</link>
		<comments>http://conigliaro.org/2008/11/05/resizing-an-lvm-ext3-partition/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 21:35:47 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.gyrate.org/?p=171</guid>
		<description><![CDATA[I do this often enough, so I might as well make my life easier and document it!
To grow/extend a partition:

lvextend --size &#91;size&#93; &#91;device&#93;
resize2fs &#91;device&#93; &#91;size&#93;

To shrink/reduce a partition:

resize2fs &#91;device&#93; &#91;size&#93;
lvreduce --size &#91;size&#93; &#91;device&#93;

]]></description>
			<content:encoded><![CDATA[<p>I do this often enough, so I might as well make my life easier and document it!</p>
<p>To grow/extend a partition:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lvextend <span style="color: #660033;">--size</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>device<span style="color: #7a0874; font-weight: bold;">&#93;</span>
resize2fs <span style="color: #7a0874; font-weight: bold;">&#91;</span>device<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>To shrink/reduce a partition:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">resize2fs <span style="color: #7a0874; font-weight: bold;">&#91;</span>device<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
lvreduce <span style="color: #660033;">--size</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>device<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2008/11/05/resizing-an-lvm-ext3-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic Reboot after Kernel Panic (Ubuntu)</title>
		<link>http://conigliaro.org/2008/06/17/automatic-reboot-after-kernel-panic-ubuntu/</link>
		<comments>http://conigliaro.org/2008/06/17/automatic-reboot-after-kernel-panic-ubuntu/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 01:28:43 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.gyrate.org/2008/06/17/automatic-reboot-after-kernel-panic-ubuntu/</guid>
		<description><![CDATA[I don&#8217;t know why Ubuntu server doesn&#8217;t have this enabled by default, but you should add the following to /etc/sysctrl.conf:

kernel.panic=60

This will automatically reboot your server 60 seconds after a kernel panic.
]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know why Ubuntu server doesn&#8217;t have this enabled by default, but you should add the following to <strong>/etc/sysctrl.conf</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">kernel.panic=60</pre></div></div>

<p>This will automatically reboot your server 60 seconds after a kernel panic.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2008/06/17/automatic-reboot-after-kernel-panic-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>fish:// and SSHFS</title>
		<link>http://conigliaro.org/2006/09/23/fish-and-sshfs/</link>
		<comments>http://conigliaro.org/2006/09/23/fish-and-sshfs/#comments</comments>
		<pubDate>Sat, 23 Sep 2006 17:01:54 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.gyrate.org/2006/09/23/fish-and-sshfs/</guid>
		<description><![CDATA[I&#8217;m probably the last KDE user to find out about this, but if you have access to an SSH server somewhere, open up Konqueror and type this in the address bar:

fish://your-server.com

It&#8217;s just like managing files on a remote Samba share, only it&#8217;s done completely over SSH!
Unfortunately, fish:// only works from within KDE applications, but that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m probably the last KDE user to find out about this, but if you have access to an SSH server somewhere, open up Konqueror and type this in the address bar:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">fish://your-server.com</pre></div></div>

<p>It&#8217;s just like managing files on a remote Samba share, only it&#8217;s done completely over SSH!</p>
<p>Unfortunately, <strong>fish://</strong> only works from within KDE applications, but that&#8217;s where <a href="http://fuse.sourceforge.net/sshfs.html">SSHFS</a> (<strong>S</strong>ecure <strong>SH</strong>ell <strong>F</strong>ile<strong>S</strong>ystem) comes in.  With this tool, you can easily <a href="http://ubuntu.wordpress.com/2005/10/28/how-to-mount-a-remote-ssh-filesystem-using-sshfs/">mount any remote filesystem over SSH</a> for access by all of your applications.  Goodbye FTP!</p>
<p>Some people may be interested in <a href="http://www.winscp.net">WinSCP</a>, which provides similar functionality on Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2006/09/23/fish-and-sshfs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
