<?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>Drew&#039;s Blog &#187; Linux</title>
	<atom:link href="http://drewdahl.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://drewdahl.com</link>
	<description>A Barrage of Liquid Awesome in Geek Form</description>
	<lastBuildDate>Thu, 26 May 2011 08:43:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Using NetworkManager to run scripts after connecting</title>
		<link>http://drewdahl.com/2011/05/03/using-networkmanager-to-run-scripts-after-connecting/</link>
		<comments>http://drewdahl.com/2011/05/03/using-networkmanager-to-run-scripts-after-connecting/#comments</comments>
		<pubDate>Tue, 03 May 2011 23:14:01 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[NetworkManager]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=651</guid>
		<description><![CDATA[For years now, I&#8217;ve had to run vpnc after connecting my school&#8217;s wireless. Truly, it never bothered me; however, at my new job, I need to run route after I connect to their wireless. For whatever reason, that got to me. I didn&#8217;t really want to run route when I wasn&#8217;t on their network (it [...]]]></description>
			<content:encoded><![CDATA[<p>For years now, I&#8217;ve had to run vpnc after connecting my school&#8217;s wireless.  Truly, it never bothered me; however, at my new job, I need to run route after I connect to their wireless.  For whatever reason, that got to me.  I didn&#8217;t really want to run route when I wasn&#8217;t on their network (it likely wouldn&#8217;t have screwed anything up, but still&#8230;).  So, I went about putting a quick bit in /etc/sysconfig/network-scripts/ifup-wireless, and it didn&#8217;t work&#8230; =\  So, after some digging, I&#8217;ve found another way using NetworkManager.  Here&#8217;s what I did:</p>
<p>Because I hate hacking up scripts that services use, I wrote a quick script and put it in <strong>/usr/local/bin/wireless.sh</strong>:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> iwconfig<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-c</span> MY-WORK-ESSID<br />
<span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; route add <span style="color: #660033;">-net</span> 111.111.111.111<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">22</span> gw 222.222.222.222<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> iwconfig<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-c</span> msum-wireless<br />
<span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; vpnc<br />
<span style="color: #000000; font-weight: bold;">fi</span></div></div>
<p>Once that was done, I ran:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>wireless.sh</div></div>
<p>and added the line:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>wireless.sh</div></div>
<p>to the file <strong>/etc/NetworkManager/dispatcher.d/00-netreport</strong> right before the exit.</p>
<p>And that&#8217;s it!  It would be neat if NetworkManager added in similar functionality through the GUI, but until that day, this should work fine.  Also, to note, those scripts are run as root, so be careful!</p>
<p>Update!</p>
<p>Upon upgrading from Fedora 14 to 15, the file 00-netreport was overwritten.  I&#8217;ve done updates to NetworkManager, so that had nothing to do with it.  In any case, if you end up upgrading your distro, there&#8217;s a chance that&#8217;ll get overwritten.  In the event it does, you&#8217;ll just have to paste the line to the script again.  (Another good reason to use a script!)</p>
<p>There may be a better way than what I&#8217;m doing above, but it works for me, so I&#8217;m not going to bother looking for another way.  Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2011/05/03/using-networkmanager-to-run-scripts-after-connecting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Ruby to run commands on a lab of Linux machines</title>
		<link>http://drewdahl.com/2011/02/24/using-ruby-to-run-commands-on-a-lab-of-linux-machines/</link>
		<comments>http://drewdahl.com/2011/02/24/using-ruby-to-run-commands-on-a-lab-of-linux-machines/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 03:19:20 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[highline]]></category>
		<category><![CDATA[net-ssh]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=645</guid>
		<description><![CDATA[Lately, I&#8217;ve been getting acquainted with Rails development at work. It&#8217;s been a pretty steep learning curve (for that matter, I guess it still is), but I&#8217;ve enjoyed it thus far. So, with my new found Ruby skills (or, I guess more-so my new found need to learn Ruby), I wrote a script that uses [...]]]></description>
			<content:encoded><![CDATA[<p>Lately, I&#8217;ve been getting acquainted with Rails development at work.  It&#8217;s been a pretty steep learning curve (for that matter, I guess it still is), but I&#8217;ve enjoyed it thus far.  So, with my new found Ruby skills (or, I guess more-so my new found need to learn Ruby), I wrote a script that uses SSH to iteratively connect to every computer in a lab and update them.  This could be used for just about anything, but for my instance it was updating a lab.  There was a bit more to my script as I needed to recompile some device drivers when there was a new kernel, but for simplicities sake, I&#8217;ve ripped them out. Hope this helps someone else!</p>
<p>First, you&#8217;ll need to install the ruby-ssh library.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> net-ssh<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> highline</div></div>
<p>And, the script is:</p>
<div class="codecolorer-container ruby twitlight" style="border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#008000; font-style:italic;">#!/usr/bin/ruby</span><br />
<br />
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span><br />
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/ssh'</span><br />
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'highline/import'</span><br />
<br />
hosts=<span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#996600;">&quot;host1&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#996600;">&quot;host2&quot;</span> <span style="color:#006600; font-weight:bold;">&#93;</span><br />
<br />
cmds = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;yum -y update&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#996600;">&quot;init 6&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span><br />
<br />
username = <span style="color:#996600;">&quot;root&quot;</span><br />
<br />
<span style="color:#008000; font-style:italic;"># Assuming that all hosts have the same password</span><br />
password = ask<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Enter Password: &quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>q<span style="color:#006600; font-weight:bold;">|</span> q.<span style="color:#9900CC;">echo</span> = <span style="color:#0000FF; font-weight:bold;">false</span> <span style="color:#006600; font-weight:bold;">&#125;</span><br />
<br />
hosts.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>host<span style="color:#006600; font-weight:bold;">|</span><br />
&nbsp; &nbsp; <span style="color:#6666ff; font-weight:bold;">Net::SSH</span>.<span style="color:#9900CC;">start</span><span style="color:#006600; font-weight:bold;">&#40;</span> host , username, <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> password<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>ssh<span style="color:#006600; font-weight:bold;">|</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;Connected to #{host}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; cmds.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>cmd<span style="color:#006600; font-weight:bold;">|</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;Performing #{cmd} on #{host}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output = ssh.<span style="color:#CC0066; font-weight:bold;">exec</span>! cmd <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>ch, stream, data<span style="color:#006600; font-weight:bold;">|</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">if</span> stream == <span style="color:#ff3333; font-weight:bold;">:stderr</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;Error: #{data}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> data<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span></div></div>
<p>And, that&#8217;s all there is to it!  There&#8217;s a real lack of comments, but I feel it&#8217;s pretty self-explanatory.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2011/02/24/using-ruby-to-run-commands-on-a-lab-of-linux-machines/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HowTo Setup Authenticated Postfix</title>
		<link>http://drewdahl.com/2010/05/15/howto-setup-authenticated-postfix/</link>
		<comments>http://drewdahl.com/2010/05/15/howto-setup-authenticated-postfix/#comments</comments>
		<pubDate>Sun, 16 May 2010 00:54:01 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=478</guid>
		<description><![CDATA[I recently had the experience of setting up Postfix. It works really well, in my opinion; however, setting it up wasn&#8217;t the simplest for what I wanted. But, at least it was simpler than sendmail Reading through several articles on the Internet, everyone was giving steps on how to setup postfix to handle e-mail for [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the experience of setting up Postfix.  It works really well, in my opinion; however, setting it up wasn&#8217;t the simplest for what I wanted.  But, at least it was simpler than sendmail <img src='http://drewdahl.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Reading through several articles on the Internet, everyone was giving steps on how to setup postfix to handle e-mail for any FQDN (Fully-Qualified Domain Name).  Well, we don&#8217;t want to be handling someone else&#8217;s e-mail, so we decided to set it up with authentication.  All of the guides on setting up Postfix with SASL authentication are great and all; however, they don&#8217;t address the issue of, what if you want to receive mail as well.  That&#8217;s a simple fix, but moreover, what if you have a service like mailman running?  Mailman isn&#8217;t easily configured to authenticate against the SMTP server to send mail.  So, the following are the configurations that I&#8217;ve come up with to solve all of these problems:</p>
<p>For the file /etc/postfix/main.cf</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:700px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;strong&gt;queue_directory = /var/spool/postfix<br />
command_directory = /usr/sbin<br />
daemon_directory = /usr/libexec/postfix<br />
data_directory = /var/lib/postfix<br />
mail_owner = postfix<br />
myhostname = hostname.domain.tld<br />
mydomain = domain.tld<br />
myorigin = $mydomain<br />
inet_interfaces = all<br />
inet_protocols = all<br />
mydestination = $myhostname, localhost.$mydomain, localhost, localhost.localdomain, $mydomain<br />
unknown_local_recipient_reject_code = 550<br />
mynetworks = 192.168.0.0/24, 127.0.0.1/32<br />
relay_domains = $mydestination<br />
smtpd_sasl_auth_enable = yes<br />
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination<br />
broken_sasl_auth_clients = yes<br />
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases<br />
alias_database = hash:/etc/aliases<br />
recipient_delimiter = +<br />
debug_peer_level = 2<br />
debugger_command =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ddd $daemon_directory/$process_name $process_id &amp; sleep 5<br />
sendmail_path = /usr/sbin/sendmail.postfix<br />
newaliases_path = /usr/bin/newaliases.postfix<br />
mailq_path = /usr/bin/mailq.postfix<br />
setgid_group = postdrop<br />
html_directory = no<br />
manpage_directory = /usr/share/man<br />
sample_directory = /usr/share/doc/postfix-2.6.5/samples<br />
readme_directory = /usr/share/doc/postfix-2.6.5/README_FILES&lt;/strong&gt;</div></div>
<p>Now keep in mind, your values for some of the above WILL be different.  This configuration is on a machine that&#8217;s running mailman as well (thus the /etc/mailman/aliases file).  </p>
<p>And lastly, for SASL auth, edit the file: /usr/lib64/sasl2/smtpd.conf</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;strong&gt;pwcheck_method: saslauthd<br />
mech_list: plain login&lt;/strong&gt;</div></div>
<p>Your lib64 directory may just be lib, depending on the architecture of your box.  All of these edits were made a 64-bit Fedora 12 machine, but they should work for every machine.  </p>
<p>And last note.  After all of the edits have been made, make sure to restart postfix and restart saslauthd with the following:</p>
<p><strong>/etc/init.d/postfix restart<br />
/etc/init.d/saslauthd restart</strong></p>
<p>For questions on what some of the postfix settings mean, you can check out one of the following:</p>
<p>postconf man-page by running &#8220;<strong>man postconf</strong>&#8221; or visit <a href="http://www.postfix.org/postconf.5.html">http://www.postfix.org/postconf.5.html</a></p>
<p>Postfix Documentation at: <a href="http://www.postfix.org/documentation.html">http://www.postfix.org/documentation.html</a></p>
<p>Postfix HowTo&#8217;s at:<a href="http://www.postfix.org/docs.html"> http://www.postfix.org/docs.html</a></p>
<p>Postfix is definition the easiest MTA I&#8217;ve ever had the pleasure of working with, as far as configuration goes.  I hope this helps <img src='http://drewdahl.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2010/05/15/howto-setup-authenticated-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Overview of SELinux and Apache</title>
		<link>http://drewdahl.com/2010/01/17/quick-overview-of-selinux-and-apache/</link>
		<comments>http://drewdahl.com/2010/01/17/quick-overview-of-selinux-and-apache/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:07:07 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=329</guid>
		<description><![CDATA[I found this link on-line and found it to be quite useful. http://www.beginlinux.com/server_training/web-server/976-apache-and-selinux I refer to it often as I forget some of the commands once in a while when I add new files for Apache to serve.]]></description>
			<content:encoded><![CDATA[<p>I found this link on-line and found it to be quite useful.</p>
<p><a href="http://www.beginlinux.com/server_training/web-server/976-apache-and-selinux">http://www.beginlinux.com/server_training/web-server/976-apache-and-selinux</a></p>
<p>I refer to it often as I forget some of the commands once in a while when I add new files for Apache to serve.</p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2010/01/17/quick-overview-of-selinux-and-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBDesigner 4 on Fedora 12</title>
		<link>http://drewdahl.com/2010/01/17/dbdesigner-4-on-fedora-12/</link>
		<comments>http://drewdahl.com/2010/01/17/dbdesigner-4-on-fedora-12/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 19:46:07 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[DBDesigner]]></category>
		<category><![CDATA[Fedora 12]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=317</guid>
		<description><![CDATA[I found this very useful article on running DBDesigner 4 on Fedora 8, here. I followed the directions and found it to work on Fedora 11 and Fedora 12. I&#8217;m sure it&#8217;ll work for just about any distro, so I&#8217;m just reposting the directions here as I find it to be a very useful program. [...]]]></description>
			<content:encoded><![CDATA[<p>I found this very useful article on running DBDesigner 4 on Fedora 8, <a href="http://www.benhaines.co.uk/2007/11/17/running-fabforce-dbdesigner4-in-linux-fedora-8/">here</a>.  I followed the directions and found it to work on Fedora 11 and Fedora 12.  I&#8217;m sure it&#8217;ll work for just about any distro, so I&#8217;m just reposting the directions here as I find it to be a very useful program.</p>
<p>Do not use the original DBDesigner4 download available on the fabForce.net website. Instead download the dbdesigner-fork package from here:</p>
<p><a href="http://sourceforge.net/projects/dbdesigner-fork/">http://sourceforge.net/projects/dbdesigner-fork/</a></p>
<p>Once you have unpacked it. Edit the bin/startdbd_using_kernel2.6 script and remove the assume kernel 2.4.1 text:</p>
<p>Original file contents: LD_ASSUME_KERNEL=2.4.1 LANG=en_US.ISO8859-1 LD_LIBRARY_PATH=./Linuxlib/ ./DBDesignerFork</p>
<p>Edited contents: LANG=en_US.ISO8859-1 LD_LIBRARY_PATH=./Linuxlib/ ./DBDesignerFork</p>
<p>Save it and run it. It should all work as expected on Linux Fedora 8 or indeed any other modern distribution like Ubuntu, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2010/01/17/dbdesigner-4-on-fedora-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess &#8211; No Auth for local access/Auth for outside access</title>
		<link>http://drewdahl.com/2009/12/28/htaccess-no-auth-for-local-accessauth-for-outside-access/</link>
		<comments>http://drewdahl.com/2009/12/28/htaccess-no-auth-for-local-accessauth-for-outside-access/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 03:55:35 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=306</guid>
		<description><![CDATA[For this, we&#8217;ll throw an .htaccess file into the directory you don&#8217;t want anyone to access that&#8217;s served via apache. For this, we&#8217;ll also have to have the following set for the directory in the httpd.conf file: AllowOverides AuthConfig Here&#8217;s what the .htaccess file should look like (with a few modifications for location and network [...]]]></description>
			<content:encoded><![CDATA[<p>For this, we&#8217;ll throw an .htaccess file into the directory you don&#8217;t want anyone to access that&#8217;s served via apache.  For this, we&#8217;ll also have to have the following set for the directory in the httpd.conf file:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AllowOverides AuthConfig</div></div>
<p>Here&#8217;s what the .htaccess file should look like (with a few modifications for location and network if you need):</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AuthType Basic<br />
AuthName &quot;Remote Auth&quot;<br />
AuthUserFile /var/www/html/.htpasswd<br />
Require valid-user<br />
<br />
Order deny,allow<br />
deny from all<br />
allow from 192.168.0<br />
<br />
Satisfy any</div></div>
<p>And then in the same directory, create the .htpasswd file by:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">htpasswd -c .htpasswd username</div></div>
<p>Then when promptd, enter the password for that username.  Make sure both files are owned by apache (or www-data if your webserver runs as such).  Viola!  It works.</p>
<p>(Note: To add more users that the htpasswd file, do the same command as above, without the -c)</p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2009/12/28/htaccess-no-auth-for-local-accessauth-for-outside-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing The Error: DB_RUNRECOVERY: Fatal error, run database recovery</title>
		<link>http://drewdahl.com/2009/12/27/fixing-the-error-db_runrecovery-fatal-error-run-database-recovery/</link>
		<comments>http://drewdahl.com/2009/12/27/fixing-the-error-db_runrecovery-fatal-error-run-database-recovery/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 19:06:06 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora 12]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=298</guid>
		<description><![CDATA[If you get a message similar to this: [username@localhost ~]$ sudo yum update rpmdb: Thread/process 2402/139688794072832 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv-&#38;gt;failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - &#160;(-30974) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed [...]]]></description>
			<content:encoded><![CDATA[<p><strong>If you get a message similar to this:</strong></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[username@localhost ~]$ sudo yum update<br />
rpmdb: Thread/process 2402/139688794072832 failed: Thread died in Berkeley DB library<br />
error: db4 error(-30974) from dbenv-&amp;gt;failchk: DB_RUNRECOVERY: Fatal error, run database recovery<br />
error: cannot open Packages index using db3 - &nbsp;(-30974)<br />
error: cannot open Packages database in /var/lib/rpm<br />
CRITICAL:yum.main:</div></div>
<p>Error: rpmdb open failed</p>
<p><strong>You can fix it by running the following 3 commands:</strong></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[username@localhost ~]$ sudo rm -f /var/lib/rpm/__db*<br />
[username@localhost ~]$ sudo db_verify /var/lib/rpm/Packages<br />
[username@localhost ~]$ sudo rpm --rebuilddb</div></div>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2009/12/27/fixing-the-error-db_runrecovery-fatal-error-run-database-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Clone a VirtualBox HDD (.vdi)</title>
		<link>http://drewdahl.com/2009/12/06/howto-clone-a-virtualbox-hdd-vdi/</link>
		<comments>http://drewdahl.com/2009/12/06/howto-clone-a-virtualbox-hdd-vdi/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 09:29:51 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=292</guid>
		<description><![CDATA[Okay, this will be short and sweet. Here&#8217;s how you clone a VirtualBox HDD in Windows: &#8220;C:\Program Files\Sun\VirtualBox\VBoxManage.exe&#8221; clonevdi &#8220;C:\Users\Andrew\.VirtualBox\HardDisks\Windows XP.vdi&#8221; &#8220;C:\Users\Andrew\.VirtualBox\HardDisks\Windows XP Clone.vdi&#8221; and in Linux: VBoxManage clonevdi /home/andrew/.VirtualBox/HardDisks/WindowsXP.vdi /home/andrew/.VirtualBox/HardDisks/WindowsXPClone.vdi The basic form is &#8220;VBoxManage clonevdi sourcevdi destinationvdi&#8221;. Now you may ask, why clone a virtual machine&#8217;s hard drive? Well, if you want to [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, this will be short and sweet.  Here&#8217;s how you clone a VirtualBox HDD in Windows:</p>
<p>&#8220;C:\Program Files\Sun\VirtualBox\VBoxManage.exe&#8221; clonevdi &#8220;C:\Users\Andrew\.VirtualBox\HardDisks\Windows XP.vdi&#8221; &#8220;C:\Users\Andrew\.VirtualBox\HardDisks\Windows XP Clone.vdi&#8221;</p>
<p>and in Linux:</p>
<p>VBoxManage clonevdi /home/andrew/.VirtualBox/HardDisks/WindowsXP.vdi /home/andrew/.VirtualBox/HardDisks/WindowsXPClone.vdi</p>
<p>The basic form is &#8220;VBoxManage clonevdi sourcevdi destinationvdi&#8221;.  Now you may ask, why clone a virtual machine&#8217;s hard drive?  Well, if you want to back them up, this works for that.  Or, if you want to duplicate that same virtual machine without having to do a second installation/activation.</p>
<p>Also to note, doing it this way will change the HDD&#8217;s UID, so you don&#8217;t get the error: &#8220;A hard disk with UUID {92c7da90-00f3-4bda-b338-57d24dad7f4b} or with the same properties (’/home/andrew/.VirtualBox/HardDisks/WindowsXP.vdi’) is already registered.&#8221;</p>
<p>Also, last thing to note&#8230;  Instead of the directory &#8220;HardDrives&#8221;, yours may be &#8220;VDI&#8221;.  I believe in older versions of VirtualBox it was VDI; however, these days it&#8217;s HardDrives.</p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2009/12/06/howto-clone-a-virtualbox-hdd-vdi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora 12!</title>
		<link>http://drewdahl.com/2009/11/12/fedora-12/</link>
		<comments>http://drewdahl.com/2009/11/12/fedora-12/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 00:56:42 +0000</pubDate>
		<dc:creator>Drew Dahl</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://drewdahl.com/?p=264</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><script id="fedora-banner" src="http://fedoraproject.org/static/js/release-counter-ext.js?lang=en" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://drewdahl.com/2009/11/12/fedora-12/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: drewdahl.com @ 2012-02-06 22:39:12 by W3 Total Cache -->
