<?xml version="1.0" encoding="UTF-8"?>







<rss version="2.0">
<channel>
  <title>Derek Burt&#039;s Weblog - Linux category</title>
  <link>http://www.derekburt.com/blog/</link>
  <description>Paying the bills with my mad programming skills...</description>
  <language>en</language>
  <copyright>Derek Burt</copyright>
  <lastBuildDate>Tue, 02 Sep 2008 14:26:41 GMT</lastBuildDate>
  <generator>Pebble</generator>
  <docs>http://backend.userland.com/rss</docs>
  <image>
    <url>http://www.derekburt.com/blog/themes/custom/images/me.jpg</url>
    <title>Derek Burt&#039;s Weblog (Linux category)</title>
    <link>http://www.derekburt.com/blog/</link>
  </image>
  
  <item>
    <title>I will soon be a criminal</title>
    <link>http://www.derekburt.com/blog/2008/06/13/1213387571739.html</link>
    
      
        <description>
          &lt;p&gt;
... and so will pretty much everyone else in Canada.
&lt;/p&gt;
&lt;p&gt;
The &lt;a href=&#034;http://www2.parl.gc.ca/HousePublications/Publication.aspx?Docid=3570473&amp;file=4&#034;&gt;Canadian DMCA&lt;/a&gt; as recently tabled this week in the House of Commons will make criminals of us all.  Share files online?  Get ready to pay or go to jail.  Unlocking the cell phone you paid for?  Get ready to pay or go to jail.  Encrypt your e-mail to have some semblance of privacy?  Get ready to pay or go to jail.  Buy a CD or DVD and then copy it to your iPod?  Get ready to pay or go to jail.
&lt;/p&gt;
&lt;p&gt;
The DVD player in my house is on a Linux-based computer that uses an open-source DVD player.  Soon, everytime I watch a DVD (that I legally bought from a store and OWN) in my house I&#039;ll be committing a Federal crime.
&lt;/p&gt;
&lt;p&gt;
Please help stop this insanity.  &lt;a href=&#034;http://www.copyrightforcanadians.ca/action/firstlook/&#034;&gt;Write your MP&lt;/a&gt; and &lt;a href=&#034;http://www.facebook.com/group.php?gid=6315846683&#034;&gt;join the Facebook group&lt;/a&gt;.  I&#039;ve done both - it takes two minutes.
&lt;/p&gt;
&lt;p&gt;
Read more at &lt;a href=&#034;http://www.copyrightforcanadians.ca/&#034;&gt;Copyright for Canadians&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
P.S. - &lt;a href=&#034;http://www.derekburt.com/blog/2007/08/03/1186188292618.html&#034;&gt;Strike  two&lt;/a&gt;, Mr. Harper.  
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <category>Life</category>
    
    <category>Politics</category>
    
    <comments>http://www.derekburt.com/blog/2008/06/13/1213387571739.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2008/06/13/1213387571739.html</guid>
    <pubDate>Fri, 13 Jun 2008 20:06:11 GMT</pubDate>
  </item>
  
  <item>
    <title>Thinking about buying a Mac?</title>
    <link>http://www.derekburt.com/blog/2008/03/19/1205969769112.html</link>
    
      
        <description>
          &lt;p&gt;
A lot of people ask me for advice when they buy computers, or ask me for advice after they have already bought one when it&#039;s too late.  &#034;Windows, Linux, or Mac?&#034; they say.
&lt;/p&gt;
&lt;p&gt;
I say buy whatever you want - the OS is a total commodity.  &lt;a href=&#034;http://www.apple.com/&#034;&gt;Apple&lt;/a&gt; probably makes the best ones, but you&#039;ll pay for it - almost double the cost of a PC.  Don&#039;t believe me?  Check &lt;a href=&#034;http://arstechnica.com/journals/apple.ars/2008/03/18/apple-spanks-rest-of-computer-industry-in-february-sales&#034;&gt;this article&lt;/a&gt; out:
&lt;blockquote&gt;
In unit sales, Macs represented 14 percent of sales last month, up from 9 percent for February 2007. The dollar share, however, is a full 25 percent of the market.
&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
Yep, that means they are twice as expensive.  I&#039;ll stick with &lt;a href=&#034;http://www.centos.org/&#034;&gt;Linux&lt;/a&gt;, thank you very much!  All of the functionality with none of the price (or the proprietary bullshit).
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <category>Life</category>
    
    <comments>http://www.derekburt.com/blog/2008/03/19/1205969769112.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2008/03/19/1205969769112.html</guid>
    <pubDate>Wed, 19 Mar 2008 23:36:09 GMT</pubDate>
  </item>
  
  <item>
    <title>Installing Tracks on Fedora Core 4 using Apache with FastCGI</title>
    <link>http://www.derekburt.com/blog/2007/01/01/1167694112478.html</link>
    
      
        <description>
          &lt;p&gt;
One of the first things I&#039;m trying to get going in 2007 is a way to be more productive while at the same time not losing my mind with all the stuff I have to do, which is the mental state that I&#039;m in right now.  I just finished reading a fantastic book on the subject, &lt;a href=&#034;http://en.wikipedia.org/wiki/Getting_things_done&#034;&gt;Getting Things Done&lt;/a&gt;, and have decided to get started with it.  One of the key concepts of the approach is to have a place where all your projects and tasks are stored, and for me, it makes sense that that place be an electronic one.
&lt;/p&gt;
&lt;p&gt;
I tried getting the &lt;a href=&#034;http://ca.dir.groups.yahoo.com/group/gtdfornotesgroup/&#034;&gt;GTD template for Lotus Notes&lt;/a&gt; going since I use &lt;a href=&#034;http://en.wikipedia.org/wiki/Lotus_Notes&#034;&gt;Lotus Notes&lt;/a&gt; at work, but it didn&#039;t work out for me since I&#039;m using a pre-Beta of the next version of Notes, &lt;a href=&#034;http://www-142.ibm.com/software/sw-lotus/products/product4.nsf/wdocs/hannover&#034;&gt;Hannover&lt;/a&gt;, and I&#039;m experiencing unrelated problems at the moment.  I did some searching and found an application called &lt;a href=&#034;http://www.rousette.org.uk/projects/&#034;&gt;Tracks&lt;/a&gt; that also might be able to help me out.  I thought it was interesting because I had heard about it before and it was also based on &lt;a href=&#034;http://www.rubyonrails.com/&#034;&gt;Ruby on Rails&lt;/a&gt;, the so-called latest and greatest web development platform.  
&lt;/p&gt;
&lt;p&gt;
As it turns out, my first experience with Ruby on Rails has been pretty much brutal.  As with all things geek-related, it&#039;s hard to install and use.  Below what I did to get it going on my &lt;a href=&#034;http://fedora.redhat.com/&#034;&gt;Fedora&lt;/a&gt; Core 4 web server, but &lt;a href=&#034;http://en.wikipedia.org/wiki/YMMV&#034;&gt;VMMV&lt;/a&gt;.  For the record, this document assumes you already have &lt;a href=&#034;http://httpd.apache.org/&#034;&gt;Apache&lt;/a&gt; and &lt;a href=&#034;http://www.mysql.com/&#034;&gt;MySQL&lt;/a&gt; installed and running.
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;
&lt;b&gt;Get Tracks and prepare it and your database&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
I started with the &lt;a href=&#034;http://www.rousette.org.uk/projects/manual/index&#034;&gt;installation manual&lt;/a&gt; and tried following the steps.  First, download Tracks and unzip it where you want it to be stored.  In my case, I&#039;m keeping it in &lt;code&gt;/srv&lt;/code&gt;.
&lt;code&gt;
&lt;pre&gt;
[root@eloise]# cd /srv
[root@eloise srv]# wget http://www.rousette.org.uk/projects/files/tracks-1.043.zip
[root@eloise public]# unzip tracks-1.043.zip 
&lt;/pre&gt;
&lt;/code&gt;
I like to make the whole folder owned by the webserver:
&lt;code&gt;
&lt;pre&gt;
[root@eloise srv]# chown -Rf apache:apache tracks-1.043
&lt;/pre&gt;
&lt;/code&gt;
Next, get your database set up.
&lt;code&gt;
&lt;pre&gt;
[root@eloise srv]#mysql -u root -p
    mysql&gt; CREATE DATABASE tracks104;
    mysql&gt; GRANT ALL PRIVILEGES ON tracks104.* TO yourmysqluser@localhost \
     IDENTIFIED BY &#039;password-goes-here&#039; WITH GRANT OPTION;
&lt;/pre&gt;
&lt;/code&gt;
Copy the file &lt;code&gt;config/database.yml.tmpl&lt;/code&gt; to &lt;code&gt;config/database.yml&lt;/code&gt;, &lt;code&gt;config/environment.rb.tmpl&lt;/code&gt; to &lt;code&gt;config/environment.rb&lt;/code&gt; and &lt;code&gt;log.tmpl&lt;/code&gt; to &lt;code&gt;log&lt;/code&gt;.
&lt;code&gt;
&lt;pre&gt;
[root@eloise srv]# cd /srv/tracks-1.043/config
[root@eloise config]# cp database.yml.tmpl database.yml 
[root@eloise config]# cp environment.rb.tmpl environment.rb 
[root@eloise config]# cd .. 
[root@eloise tracks-1.043]# cp -rf log.tmpl log 
&lt;/pre&gt;
&lt;/code&gt;
Open the &lt;code&gt;config/database.yml&lt;/code&gt; file, and enter your username and password details for the database you just set up under the &#039;production&#039; and &#039;development&#039; sections.
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi config/database.yml 
&lt;/pre&gt;
&lt;/code&gt;
Open the file config/environment.rb and look at the last line which should read: SALT = &#034;change-me&#034;. Change the word change-me to something else of your choosing.
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi config/environment.rb 
&lt;/pre&gt;
&lt;/code&gt;
It&#039;s at this point that the default instructions pretty much fall apart for us Fedora Core users.
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;b&gt;Install Ruby and put it on Rails&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
I found a great &lt;a href=&#034;http://digitalmediaminute.com/howto/fc4rails/#installROR&#034;&gt;part&lt;/a&gt; of the well-written guide &lt;a href=&#034;http://digitalmediaminute.com/howto/fc4rails/&#034;&gt;Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4&lt;/a&gt; that really helped me out.  A lot of the steps below are based on it, except I am using Apache and not &lt;a href=&#034;http://en.wikipedia.org/wiki/Lighttpd&#034;&gt;Lighttpd&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
First, install the necessary libraries:
&lt;code&gt;
&lt;pre&gt;
[root@eloise]# yum install ruby ruby-libs ruby-devel irb rdoc
&lt;/pre&gt;
&lt;/code&gt;
Looks simple, doesn&#039;t it?  Well ... surprise!  It&#039;s not!  Now you have to download the &#034;Ruby&#034; platform installer and do a bunch of stuff from there:
&lt;code&gt;
&lt;pre&gt;
root@eloise]# cd /tmp
root@eloise tmp]# wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
[root@eloise tmp]# tar -zxvf rubygems-0.9.0.tgz
[root@eloise tmp]# cd rubygems-0.9.0
[root@eloise rubygems-0.9.0]# ruby setup.rb
&lt;/pre&gt;
&lt;/code&gt;
You should see a message like this:
&lt;code&gt;
&lt;pre&gt;
 Successfully built RubyGem
&lt;/pre&gt;
&lt;/code&gt;
Now you can clean up and install Rails:
&lt;code&gt;
&lt;pre&gt;
[root@eloise rubygems-0.9.0]# cd ..
[root@eloise tmp]# rm ruby* -drf
[root@eloise tmp]# gem install rails --include-dependencies
&lt;/pre&gt;
&lt;/code&gt;
You should receive a message indicating that rails has been installed successfully.
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;b&gt;Set up Tracks&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
Here&#039;s where we continue with the installation manual.  It says to execute the following command in your tracks installation folder:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# rake migrate
&lt;/pre&gt;
&lt;/code&gt;
Unfortunately for us, it&#039;s probably going to fail with a message similar to this:
&lt;code&gt;
&lt;pre&gt;
No such file or directory - /tmp/mysql.sock
&lt;/pre&gt;
&lt;/code&gt;
I had a look at the &lt;a href=&#034;http://dev.rousette.org.uk/wiki/Tracks/Install/Debian&#034;&gt;Debian installation guide&lt;/a&gt; and it had the fix there.  What you need to go is edit the &lt;code&gt;database.yml&lt;/code&gt; file again and add a reference for the MySQL socket file, which is in a different location in Fedora.
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi config/database.yml 
&lt;/pre&gt;
&lt;/code&gt;
What you want to do is add a &#034;socket&#034; line as follows for your development and production environments:
&lt;code&gt;
&lt;pre&gt;
development:
  adapter: mysql
  database: tracks104
  host: localhost
  username: yourdbusername
  password: yourdbpassword
  socket: &#039;/var/lib/mysql/mysql.sock&#039;

production:
  adapter: mysql
  database: tracks104
  host: localhost
  username: yourdbusername
  password: yourdbpassword
  socket: &#039;/var/lib/mysql/mysql.sock&#039;
&lt;/pre&gt;
&lt;/code&gt;
Then, you can execute the migrate command again:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# rake migrate
&lt;/pre&gt;
&lt;/code&gt;
Unfortunately (again), it&#039;s probably going to fail with a different error message:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# rake migrate
(in /srv/tracks-1.043)
rake aborted!
Mysql::Error: Lost connection to MySQL server during query: SELECT version FROM schema_info

(See full trace by running task with --trace)
&lt;/pre&gt;
&lt;/code&gt;
Now, I&#039;m not sure what I did to resolve this, but I think the basic thing was that there is some kind of version compatibility in the way MySQL stores privileges or passwords because of an upgrade I did in the past or something.  I did a few things to get it going.  First, I edited the &lt;code&gt;/etc/my.cnf&lt;/code&gt; file and changed the &lt;code&gt;old_passwords&lt;/code&gt; line:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi /etc/my.cnf
&lt;/pre&gt;
&lt;/code&gt;
I commented out the previous line and created a new one with a different value:
&lt;code&gt;
&lt;pre&gt;
#old_passwords=1
old_passwords=0
&lt;/pre&gt;
&lt;/code&gt;
That didn&#039;t seem to work so I tried to flush the privileges:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# mysql -u root -p
    mysql&gt; flush privileges;
    mysql&gt; exit
&lt;/pre&gt;
&lt;/code&gt;
That didn&#039;t seem to work either so I executed a script that tries to resolve the problem:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# mysql_fix_privilege_tables --password=yourdbpassword
&lt;/pre&gt;
&lt;/code&gt;
I restarted:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# /sbin/service mysqld restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
&lt;/pre&gt;
&lt;/code&gt;
Now I decided to overwrite the password for my database user just to make sure it was stored correctly:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# mysql -u root -p
    mysql&gt; SET PASSWORD for tracks@localhost=PASSWORD(&#039;yourdbpassword&#039;);
    mysql&gt; exit
&lt;/pre&gt;
&lt;/code&gt;
I restarted and ran the script again, this time it seemed to work:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# /sbin/service mysqld restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
[root@eloise tracks-1.043]# rake migrate
&lt;/pre&gt;
&lt;/code&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;b&gt;Set up Apache&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
To get it going in Apache, the easiest way is to create your own app-specific configuration file:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi /etc/httpd/conf.d/tracks.conf
&lt;/pre&gt;
&lt;/code&gt;
Populate it as follows:
&lt;code&gt;
&lt;pre&gt;
Alias /youraliasname/ &#034;/srv/tracks-1.043/public/&#034;
&amp;#60;Directory /srv/tracks-1.043/public/&amp;#62;
      Options ExecCGI FollowSymLinks
      AllowOverride all
      Allow from all
      Order allow,deny
&amp;#60;/Directory&amp;#62;
&lt;/pre&gt;
&lt;/code&gt;
You will notice that I used an alias because that&#039;s just &lt;a href=&#034;http://en.wikipedia.org/wiki/Jason_Reso&#034;&gt;how I roll&lt;/a&gt;.  If you use an alias, you will have to modify the &lt;code&gt;.htaccess&lt;/code&gt; file accordingly.  
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi public/.htaccess
&lt;/pre&gt;
&lt;/code&gt;
Add this line around where the comments tell you to:
&lt;code&gt;
&lt;pre&gt;
RewriteBase /youraliasname
&lt;/pre&gt;
&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
The application should now be available for you to access at &lt;code&gt;http://yourservername/youraliasname&lt;/code&gt;.  That doesn&#039;t mean you can use it, though, &#039;cause it will probably be horribly slow!
&lt;/p&gt;
&lt;p&gt;
To try to fix this, you can change the environment to &#034;production&#034;.  By default, it&#039;s set to &#034;development&#034; which has a bunch of debugging stuff on that you don&#039;t need.  To change it, edit the &lt;code&gt;environment.db&lt;/code&gt; file:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# vi config/environment.rb 
&lt;/pre&gt;
&lt;/code&gt;
Change the environment by changing the line as follows:
&lt;code&gt;
&lt;pre&gt;
ENV[&#039;RAILS_ENV&#039;] = &#039;production&#039;
&lt;/pre&gt;
&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Now that you&#039;ve tried again, you&#039;ll probably notice that it&#039;s still super slow.  In that case, there&#039;s even more work to be done!
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;b&gt;Improve performance (slightly) with FastCGI&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
First, you need to install the &lt;a href=&#034;http://www.fastcgi.com/&#034;&gt;FastCGI&lt;/a&gt; development libraries and the Ruby FastCGI bindings.
&lt;code&gt;
&lt;pre&gt;
[root@eloise tracks-1.043]# cd /tmp
[root@eloise tmp]# wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz 
[root@eloise tmp]# tar -zxvf fcgi-2.4.0.tar.gz 
[root@eloise tmp]# cd fcgi-2.4.0 
[root@eloise fcgi-2.4.0]# ./configure 
[root@eloise fcgi-2.4.0]# make 
[root@eloise fcgi-2.4.0]# make install 
[root@eloise fcgi-2.4.0]# cd ..
[root@eloise tmp]# rm fcgi* -drf
&lt;/pre&gt;
&lt;/code&gt;
&lt;code&gt;
&lt;pre&gt;
[root@eloise tmp]# wget http://sugi.nemui.org/pub/ruby/fcgi/ruby-fcgi-0.8.6.tar.gz
[root@eloise tmp]# tar -zxvf ruby-fcgi-0.8.6.tar.gz 
[root@eloise tmp]# cd ruby-fcgi-0.8.6 
[root@eloise ruby-fcgi-0.8.6]# ruby install.rb config 
[root@eloise ruby-fcgi-0.8.6]# ruby install.rb setup 
[root@eloise ruby-fcgi-0.8.6]# ruby install.rb install 
[root@eloise ruby-fcgi-0.8.6]# cd .. 
[root@eloise tmp]# rm ruby-fcgi-0.8.6* -drf
&lt;/pre&gt;
&lt;code&gt;
&lt;p&gt;
Now you need to get it going with Apache.  I found a guide called &lt;a href=&#034;http://wiki.bestpractical.com/index.cgi?RHEL4InstallGuide&#034;&gt;Red Hat Enterprise Linux 4 + RT 3.4.2 + FastCGI 2.4.2 Install Guide&lt;/a&gt; that helped me get through figuring out how to install this.  In order to compile the needed Apache module, you have to download the Apache development kit:
&lt;code&gt;
&lt;pre&gt;
[root@eloise public]# yum install httpd-devel
&lt;/pre&gt;
&lt;/code&gt;
Then, download and extract the module source:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tmp]# wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
[root@eloise tmp]# tar -xzvf mod_fastcgi-2.4.2.tar.gz
&lt;/pre&gt;
&lt;/code&gt;
You&#039;ll need to edit some files before you can compile.
&lt;code&gt;
&lt;pre&gt;
[root@eloise tmp]# cd mod_fastcgi-2.4.2
[root@eloise mod_fastcgi-2.4.2]# cp Makefile.AP2 Makefile
[root@eloise mod_fastcgi-2.4.2]# vi Makefile
&lt;/pre&gt;
&lt;/code&gt;
Change this line as follows to match up with the Fedora environment:
&lt;code&gt;
&lt;pre&gt;
top_dir      = /etc/httpd
&lt;/pre&gt;
&lt;/code&gt;
Then you can compile, install, and clean up:
&lt;code&gt;
&lt;pre&gt;
[root@eloise mod_fastcgi-2.4.2]# make
[root@eloise mod_fastcgi-2.4.2]# make install
[root@eloise mod_fastcgi-2.4.2]# cd ..
[root@eloise tmp]# rm mod_fastcgi* -drf
&lt;/pre&gt;
&lt;/code&gt;
You need to make some directories available to the module for it to use:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tmp]# mkdir /etc/httpd/logs/fastcgi
[root@eloise tmp]# mkdir /etc/httpd/logs/fastcgi/dynamic
[root@eloise tmp]# chown apache:apache /etc/httpd/logs/fastcgi
[root@eloise tmp]# chown apache:apache /etc/httpd/logs/fastcgi/dynamic
&lt;/pre&gt;
&lt;/code&gt;
Now you need to set up the app to use FastCGI.  First, edit &lt;code&gt;.htaccess&lt;/code&gt; again:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tmp]# vi /srv/tracks-1.043/public/.htaccess
&lt;/pre&gt;
&lt;/code&gt;
Comment out the existing line below and add your own to point to the &lt;code&gt;dispatch.fcgi&lt;/code&gt; file:
&lt;code&gt;
&lt;pre&gt;
#RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
&lt;/pre&gt;
&lt;/code&gt;
Now, edit your &lt;code&gt;tracks.conf&lt;/code&gt; file:
&lt;code&gt;
&lt;pre&gt;
[root@eloise tmp]# vi /etc/httpd/conf.d/tracks.conf
&lt;/pre&gt;
&lt;/code&gt;
You need to add a line to the top and to the bottom so the file reads as follows:
&lt;code&gt;
&lt;pre&gt;
LoadModule fastcgi_module modules/mod_fastcgi.so
Alias /youraliasname/ &#034;/srv/tracks-1.043/public/&#034;
&lt;Directory /srv/tracks-1.043/public/&gt;
      Options ExecCGI FollowSymLinks
      AllowOverride all
      Allow from all
      Order allow,deny
&lt;/Directory&gt;
FastCgiIpcDir /tmp
&lt;/pre&gt;
&lt;/code&gt;
Restart the server:
&lt;code&gt;
&lt;pre&gt;
[root@eloise public]# /sbin/service httpd restart
&lt;/pre&gt;
&lt;/code&gt;
The restart will probably fail with an error like this:
&lt;code&gt;
&lt;pre&gt;
FastCgiIpcDir /tmp: can&#039;t create dynamic directory &#034;/tmp/dynamic&#034;: access for se
rver (uid -1, gid -1) failed: read not allowed
&lt;/pre&gt;
&lt;/code&gt;
I found a bunch of info on &lt;a href=&#034;http://forums.sw-soft.com/printthread.php?s=6e2a6dc17918aedc1dbbaed2d9be5f10&amp;threadid=5515&amp;perpage=31&#034;&gt;this page&lt;/a&gt; that helped.  You&#039;ll need to make a directory that FastCGI just created accessible to it:
&lt;code&gt;
&lt;pre&gt;
[root@eloise public]# chmod 777 dynamic
&lt;/pre&gt;
&lt;/code&gt;
Now, restart Apache and you should be set!
&lt;code&gt;
&lt;pre&gt;
[root@eloise public]# /sbin/service httpd restart
&lt;/pre&gt;
&lt;/code&gt;
&lt;/p&gt;
&lt;/ol&gt;
&lt;p&gt;
You now have a fully functioning installation of Tracks that is somewhat fast but probably feels sluggish.  You&#039;ve also just wasted a couple hours of your time.  The steps involved to get this going just amazed me.  If anyone has any suggestions on a better way to do it, please let me know!  What a huge pain in the ass!
&lt;/p&gt;







        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <comments>http://www.derekburt.com/blog/2007/01/01/1167694112478.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2007/01/01/1167694112478.html</guid>
    <pubDate>Mon, 01 Jan 2007 23:28:32 GMT</pubDate>
  </item>
  
  <item>
    <title>How I spent my summer vacation</title>
    <link>http://www.derekburt.com/blog/2006/09/18/1158594360113.html</link>
    
      
        <description>
          &lt;p&gt;
It&#039;s been a long time, sweetie ...
&lt;/p&gt;
&lt;p&gt;
Okay, okay, a very long time.  Not only that, but I still don&#039;t feel like writing complete thoughts, so here&#039;s a bunch of point-form about the summer and what I&#039;ve been up to:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Summer means &lt;a href=&#034;http://en.wikipedia.org/wiki/Big_Brother_%28US%29&#034;&gt;Big Brother&lt;/a&gt; in the Burt household, and I&#039;ve watching every season for almost seven years now.  My lady &lt;a href=&#034;http://en.wikipedia.org/wiki/Janelle_Pierzina&#034;&gt;Jedi Janie&lt;/a&gt; almost made it to the end, so I&#039;m content with the way things went down.  I really wish there was a Canadian version of this show, because I would seriously own it. 
&lt;/li&gt;
&lt;li&gt;
The 8th Annual GREAT CANADIAN CABIN PARTY was another success.  The new hot tub at the cabin was a fantastic addition!  Everyone was pretty lame, with most folks going to bed and getting up early, but at least I had an excuse - I found out later that I had a throat infection.  This year I stayed at the cabin almost an extra week afterwards, but it was a brutal time because I spent most of the time in bed or eating ice cream.
&lt;/li&gt;
&lt;li&gt;
As I &lt;a href=&#034;http://www.derekburt.com/blog/2006/07/06/1152211762208.html&#034;&gt;mentioned earlier&lt;/a&gt;, I made the switch to &lt;a href=&#034;http://en.wikipedia.org/wiki/Linux&#034;&gt;Linux&lt;/a&gt; on each and every computer I use at work and at home, and I haven&#039;t looked back.  &lt;a href=&#034;http://www.microsoft.com/windows&#034;&gt;Windows&lt;/a&gt; sucks.
&lt;/li&gt;
&lt;li&gt;
I got a &lt;a href=&#034;http://www-307.ibm.com/pc/support/site.wss/quickPath.do?quickPathEntry=1951a31&amp;sitestyle=lenovo&#034;&gt;new laptop&lt;/a&gt; with gobs of RAM at work and it&#039;s pretty awesome.  It has a huge battery and seemingly lasts forever.  I do have one problem, though - the screen resolution is incredibly high (1400x1050).  It gives me a new appreciation for web design, because lots of sites either look bad or are hard to read, and they are sometimes both.
&lt;/li&gt;
&lt;li&gt;
The word of the summer was &lt;b&gt;wedding&lt;/b&gt;.
&lt;ul&gt;
&lt;li&gt;
I MC&#039;d my buddy Janson&#039;s wedding, and it went like clockwork.  We had a blast for the remainder of the reception as well.  Good times.
&lt;/li&gt;
&lt;li&gt;
Sofi and I drove all the way to Sundre, AB for my friend Christine&#039;s wedding.  It was also good times.  I went up early to Banff to meet up with Colby and Shannon and then later picked up Sofi at the airport in Calgary and we all had a great weekend in Sundre.  It was super awesome to visit with lots of folks from Assiniboia and surrounding area that made it up for the wedding.  I&#039;m looking forward to our 10 year high school reunion next year!
&lt;/li&gt;
&lt;li&gt;
We drove down to the &lt;a href=&#034;http://www.natashaandstephen.com/&#034;&gt;Boodlini wedding&lt;/a&gt; in Carlyle in August and stayed at my sister&#039;s in Redvers in between the festivities.  Not only was it quite possibly the coolest wedding I have ever been to, but we had a great time to match.  How many weddings can you think of that involve gorilla suits, cookies, Angel Sombrutski, rave music, baseball games, hay rides, and mandatory shots at the receiving line.  I can&#039;t begin to describe how fantastic every minute of it was - just perfect and a perfect reflection of the happy couple.  I also got to ride in a combine for the first time in my life at my sister&#039;s b/f Clayton&#039;s farm.  Small town Saskatchewan rules.
&lt;/li&gt;
&lt;li&gt;
I just got back from an amazing week in Toronto that culminated in Nick&#039;s wedding to Allison.  I am very proud to say that Nick asked me to be a member of his wedding party, and I accepted.  He is a true friend, unlike some others that come to mind.  I won&#039;t get into all the debauchery over the week, but sufficed to say, it was a good way to cap off the summer.  I would, however, be remiss if I didn&#039;t mention a few vague keywords and highlights:
&lt;ul&gt;
&lt;li&gt;&#034;What makes you think I won&#039;t cut you?&#034; - fun with weapons&lt;/li&gt;
&lt;li&gt;...at Degrassi High!&lt;/li&gt;
&lt;li&gt;Tryin&#039;a catch me ridin&#039; dirty!&lt;/li&gt;
&lt;li&gt;&#034;What&#039;s &#039;homer-red&#039; mean?&#034;&lt;/li&gt;
&lt;li&gt;The glass floor&lt;/li&gt;
&lt;li&gt;The Grey Goat&lt;/li&gt;
&lt;li&gt;Boodlini pizza&lt;/li&gt;
&lt;li&gt;Gibson&#039;s Finest&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;http://hojoaurora.com/&#034;&gt;Hojo Aurora&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lunch with Candace in Greektown ... &#034;Do you want to have Greek or ... Greek?&#034;
&lt;li&gt;The theme from &#034;The Golden Girls&#034;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
I spent a lot of my spare time this summer work on a new website for &lt;a href=&#034;http://www.cips.ca/regina&#034;&gt;CIPS Regina&lt;/a&gt;.  It turned out okay and I&#039;m pretty impressed with the CMS system we got going on the backend.
&lt;/li&gt;
&lt;li&gt;
I bought a set of golf clubs and immediately improved my game by about twenty strokes.  Too bad I likely won&#039;t improve much further ;)
&lt;/li&gt;
&lt;li&gt;I had an omnipresent feeling of unease all summer, and I&#039;m not sure why.  I think I&#039;m over it now, though.  The good news is that for me, unlike &lt;a href=&#034;http://uregina.ca/~hillblai&#034;&gt;Blair&lt;/a&gt;, if something bad does happen to me, something twice as good will happen shortly thereafter.  Speaking of Blair, his website is back up and running - you should have a look and leave him a nasty comment ... it&#039;s really fun.
&lt;/li&gt;
&lt;li&gt;
I received my professional designation this summer, so I am now officially &lt;b&gt;Derek Burt, &lt;a href=&#034;http://www.cips.ca/standards/isp/&#034;&gt;I.S.P.&lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;
&lt;li&gt;
This summer was a pretty active one for me.  I started running outdoors pretty seriously and was racking up some decent daily and weekly distance until I put my program on hold for holidays.  I am getting X-rays soon for a possible stress fracture in my leg, but it hasn&#039;t stopped me running, playing soccer in the park, or playing slo-pitch with my work team.  We had a great season weather-wise and I made the most of it.
&lt;/li&gt;
&lt;li&gt;
Over the last four months or so I&#039;ve had the opportunity to watch some decent movie movies:
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Brilliant&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#034;http://us.imdb.com/title/tt0083987/&#034;&gt;Ghandi&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Great&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#034;http://us.imdb.com/title/tt0120586/&#034;&gt;American History X&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0106856/&#034;&gt;Falling Down&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0428803/&#034;&gt;March of the Penguins&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Fun&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0317919/&#034;&gt;M:I 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0376994/&#034;&gt;X-Men: The Last Stand&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0078346/&#034;&gt;Superman&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Whatever&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0452604/&#034;&gt;Cowboy del Amor&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0417217/&#034;&gt;Two for the Money&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0415306/&#034;&gt;Talladega Nights: The Ballad of Ricky Bobby&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0141105/&#034;&gt;Free Enterprise&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0382625/&#034;&gt;The Da Vince Code&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0069947/&#034;&gt;Day of the Jackal&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0375679/&#034;&gt;Crash&lt;/a&gt;&lt;li&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0443632/&#034;&gt;The Sentinel&lt;/a&gt;&lt;li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Boooooooooo !!!&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#034;http://us.imdb.com/title/tt0383574/&#034;&gt;Pirates of the Caribbean: Dead Man&#039;s Chest&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;http://slashdot.org/article.pl?sid=06/09/01/0452217&#034;&gt;&#034;Interestingly, frequent Internet use is associated with a decline in local knowledge and interest in living in the local area.&#034;&lt;/a&gt; - I&#039;ll say.  This summer I finally admitted to myself deep down inside that living in this province is starting to eat me up inside.  I&#039;ve lived in this province my entire life, and the grass keeps getting greener and greener everywhere else.  There isn&#039;t a day that goes by that I don&#039;t think to myself that I live in a socialist wasteland of sloth and selfishness.  Don&#039;t get me wrong, this is a fantastic place to live, but the economic, social, and physical safety we enjoy comes at a big price - our future.  Hundreds of thousands of people have left this province, why haven&#039;t I?
&lt;/il&gt;
&lt;li&gt;
I finally broke down and switched almost all my banking to &lt;a href=&#034;http://www.pcfinancial.ca/&#034;&gt;PC Financial&lt;/a&gt;.  It just got to the point where I couldn&#039;t take any more fees.     The moment I switched I immediately saved $150 a year and they even gave me $10 just for setting up a payroll deposit.    They also pay obscene amounts of interest.  I used to be the biggest advocate of credit unions in the world, but now &lt;a href=&#034;http://www.conexuscu.ca/&#034;&gt;Conexus&lt;/a&gt; is so big they couldn&#039;t give a flying fuck about me or any other of their customers.  It&#039;s amazing that after decades of loyalty they would treat me worse than most banks would if I just walked off the street.  I still have my mortgage and car loan there, but eventually they will be gone, too.  Why put up with impersonal service from them when I can go to a bank and get impersonal service for less?
&lt;/li&gt;
&lt;li&gt;
My hair is way too long.  It&#039;s insane.  
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
P.S. - I might not have come back from the dead if it weren&#039;t for the many folks I ran into over the course of the summer, some I hadn&#039;t seen in literally years, who told me they keep up with me via this site, even if it&#039;s only once in a while.  To you I say this: I write here because you don&#039;t call.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Music</category>
    
    <category>Linux</category>
    
    <category>Life</category>
    
    <category>Politics</category>
    
    <category>Movies</category>
    
    <comments>http://www.derekburt.com/blog/2006/09/18/1158594360113.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2006/09/18/1158594360113.html</guid>
    <pubDate>Mon, 18 Sep 2006 15:46:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Stop Windows Please</title>
    <link>http://www.derekburt.com/blog/2006/07/06/1152211762208.html</link>
    
      
        <description>
          &lt;blockquote&gt;
&lt;p&gt;&lt;b&gt;
&lt;a href=&#034;http://www.intelliadmin.com/blog/2006/07/why-windows-takes-so-long-to-shut-down.html&#034;&gt;Why Windows takes so long to shut down&lt;/a&gt;
&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
We all have been there. It is 4:55 and you want to get out of work...But you want to make sure your system is shutdown for the night. You dutifully close all of your applications and start shutting down
&lt;/p&gt;
&lt;p&gt;
5 minutes later it *finally* powers off
&lt;/p&gt;
&lt;/blockquote
&lt;p&gt;
If you happen to be using &lt;a href=&#034;http://www.microsoft.com/windows/&#034;&gt;Windows&lt;/a&gt; and that ever happens to you, click on the link above to find out how you can get Windows to shut down in seconds instead of minutes.
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;H/T: &lt;a href=&#034;http://erik.thauvin.net/linkblog/?date=2006-07-04#Beat%3A567&#034;&gt;Erik&lt;/a&gt;
&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;
Note: this tip no longer applies to me - I gave Windows the boot on my last remaining machine (my work laptop) a few weeks ago.  I am officially Windows-free! :)  If I could have gotten Windows to &lt;i&gt;start&lt;/i&gt; in less than 10 minutes I might have kept it around longer ...
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <category>Life</category>
    
    <comments>http://www.derekburt.com/blog/2006/07/06/1152211762208.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2006/07/06/1152211762208.html</guid>
    <pubDate>Thu, 06 Jul 2006 18:49:22 GMT</pubDate>
  </item>
  
  <item>
    <title>Occam&#039;s razor</title>
    <link>http://www.derekburt.com/blog/2006/05/28/1148880913457.html</link>
    
      
        <description>
          &lt;p&gt;
I had the e-mail below typed and ready to send when I re-read it one last time and realized that while I had tested some of my video cables when I first experienced the problem, I had not tested all of them.  I did so and, sure enough, I found a cable that had gone bad.  I replaced it with a new one today and - poof! - the system works just fine again.
&lt;/p&gt;
&lt;blockquote&gt;
To: 	mythtv-users@mythtv.org&lt;br /&gt;
Subject: 	dark picture on recordings from PVR-350&lt;br /&gt;
Date: 	Sat, 27 May 2006 18:55:53 -0600&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
Hi all,
&lt;/p&gt;
&lt;p&gt;
When I am watching live TV or viewing recordings, the picture quality is very dark and somewhat blurry.  This behaviour began sometime between May 13 and May 15, because when I bring up a list of recorded programs in MythWeb, the difference in brightness is quite obvious.  When I play recordings recorded May 13 or earlier (or any videos, DVDs, etc.) the picture is bright and the quality is superb.  If I watch live TV or a program recorded after May 14, the picture is dark and the resolution seems somewhat poor.  I have tried plugging my input (a Bell ExpressVu standard def. satellite receiver) directly into the TV rather than through Myth and the picture quality is great.
&lt;/p&gt;
&lt;p&gt;
I am using Fedora Core 4 with a PVR-350 for my input.  I did not make any changes to the system; this behaviour seems to have happened on its own.  I was previously running version 
0.18.2.20051227-1 from atrpms which I installed in early January and made very little modification to the system after that, other than updating the kernel and IVTV drivers to 0.4.3.  
&lt;/p&gt;
&lt;p&gt;
The only thing I could find my logs from between May 13 and 15 that was anything other than regular log messages from my system was this:
&lt;/p&gt;
&lt;p&gt;
DB Error (KickDatabase):&lt;br /&gt;
Query was:&lt;br /&gt;
SELECT NULL;&lt;br /&gt;
Driver error was [2/2002]:&lt;br /&gt;
QMYSQL3: Unable to execute query&lt;br /&gt;
Database error was:&lt;br /&gt;
Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
DB Error (KickDatabase):&lt;br /&gt;
Query was:&lt;br /&gt;
SELECT NULL;&lt;br /&gt;
Driver error was [2/2002]:&lt;br /&gt;
QMYSQL3: Unable to execute query&lt;br /&gt;
Database error was:&lt;br /&gt;
Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
DB Error (Error in JobQueue::GetJobCmd()):&lt;br /&gt;
Query was:&lt;br /&gt;
SELECT cmds FROM jobqueue WHERE id = 586;&lt;br /&gt;
Driver error was [2/2002]:&lt;br /&gt;
QMYSQL3: Unable to execute query&lt;br /&gt;
Database error was:&lt;br /&gt;
Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
DB Error (KickDatabase):&lt;br /&gt;
Query was:&lt;br /&gt;
SELECT NULL;&lt;br /&gt;
Driver error was [2/2002]:&lt;br /&gt;
QMYSQL3: Unable to execute query&lt;br /&gt;
Database error was:&lt;br /&gt;
Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)
&lt;/p&gt;
&lt;p&gt;
DB Error (KickDatabase):&lt;br /&gt;
Query was:&lt;br /&gt;
SELECT NULL;&lt;br /&gt;
Driver error was [2/2002]:&lt;br /&gt;
QMYSQL3: Unable to execute query&lt;br /&gt;
Database error was:&lt;br /&gt;
Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)
&lt;/p&gt;
&lt;p&gt;
DB Error (Error in JobQueue::ChangeJobComment()):&lt;br /&gt;
Query was:&lt;br /&gt;
UPDATE jobqueue SET comment = &#039;3% Completed @ 37.382 fps.&#039; WHERE id = 586;&lt;br /&gt;
Driver error was [2/2002]:&lt;br /&gt;
QMYSQL3: Unable to execute query&lt;br /&gt;
Database error was:&lt;br /&gt;
Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)
&lt;/p&gt;
&lt;p&gt;
It&#039;s my guess that there are settings somewhere related to the channel settings or to recording properties that create the poor quality picture, since I can still playback good quality recordings without any difficulty.
&lt;/p&gt;
&lt;p&gt;
I recently upgraded to the latest *everything* about a week ago but while the system is running solid (including 0.19.20060121-2 from atrpms and the latest IVTV drivers), the picture quality is still terrible.  I deleted and recreated the capture card, video sources, and input, but no luck.  I have also played with the picture controls with MythTV and the IVTV drivers themselves with no luck.  I am beginning to think the only way to solve this problem would be to re-create the entire box from scratch.
&lt;/p&gt;
&lt;p&gt;
Can anyone point me in the right direction as to where I might start looking for a resolution to this problem?  I&#039;ve tried searching the lists and Googling but haven&#039;t found anyone describing these symptoms yet and I just don&#039;t know what to try next.
&lt;/p&gt;
&lt;p&gt;
Thanks,
&lt;/p&gt;
&lt;p&gt;
Derek
&lt;/p&gt;
&lt;p&gt;
-- 
&lt;/blockquote&gt;
&lt;p&gt;
I am an idiot.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <comments>http://www.derekburt.com/blog/2006/05/28/1148880913457.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2006/05/28/1148880913457.html</guid>
    <pubDate>Mon, 29 May 2006 05:35:13 GMT</pubDate>
  </item>
  
  <item>
    <title>Setting up MoinMoin on Fedora Core 4</title>
    <link>http://www.derekburt.com/blog/2006/03/18/1142731908358.html</link>
    
      
        <description>
          &lt;p&gt;
I recently had the opportunity to set up a piece of software called &lt;a href=&#034;http://moinmoin.wikiwikiweb.de/&#034;&gt;MoinMoin&lt;/a&gt;:
&lt;blockquote&gt;
MoinMoin is an advanced, easy to use and extensible WikiEngine with a large community of users. Said in a few words, it is about collaboration on easily editable web pages. MoinMoin is Free Software licensed under the GNU GPL.
&lt;/blockquote&gt;
A &lt;a href=&#034;http://en.wikipedia.org/wiki/Wiki&#034;&gt;Wiki&lt;/a&gt; is an easy way to set up a collaborative website in a hurry and on the cheap.
&lt;/p&gt;
&lt;p&gt;
Here&#039;s some easy steps (with commands) to get it going on your &lt;a href=&#034;http://fedora.redhat.com/&#034;&gt;Fedora Core&lt;/a&gt; 4 system.  This guide is assuming you already have &lt;a href=&#034;http://en.wikipedia.org/wiki/Apache_HTTP_Server&#034;&gt;Apache&lt;/a&gt; running on your server and that you are only interested in hosting one Wiki site, because that&#039;s all I&#039;ve used it for so far.
&lt;ol&gt;
&lt;li&gt;
Install MoinMoin
&lt;code&gt;
&lt;pre&gt;
yum install moin
&lt;/pre&gt;
&lt;/code&gt;
You might need to install &lt;a href=&#034;http://en.wikipedia.org/wiki/Mod_python&#034;&gt;mod_python&lt;/a&gt; as well (since it runs on &lt;a href=&#034;http://en.wikipedia.org/wiki/Python_programming_language&#034;&gt;Python&lt;/a&gt;), so in that case your command might look like this:
&lt;code&gt;
&lt;pre&gt;
yum install moin mod_python
&lt;/pre&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
For the purposes of this installation, we&#039;re going to assume that you&#039;d like your Wiki to live in the folder  &lt;code&gt;/var/www/moin/mywiki&lt;/code&gt;.  MoinMoin works a little bit differently than other software.  Rather than an explicit install directory, some configuration and other data are stored in the &#034;install folder&#034;, while the software itself lives elsewhere.  You are expected to copy these default folders to somewhere else and have your Wiki point to there.  
&lt;code&gt;
&lt;pre&gt;
cp -R /usr/share/moin/data /var/www/moin/mywiki
cp -R /usr/share/moin/underlay /var/www/moin/mywiki
cp -R /usr/share/moin/config/wikiconfig.py /var/www/moin/mywiki
&lt;/pre&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
You need to set appropriate permissions to ensure that your web server (usually running using a user called &lt;code&gt;apache&lt;/code&gt;) can read and write to the appropriate directories while stopping other users from getting access to it.
&lt;code&gt;
&lt;pre&gt;
chown -R apache:apache /var/www/moin   
chmod -R ug+rwX /var/www/moin    
chmod -R o-rwx /var/www/moin
&lt;/pre&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
You have to configure your web server to serve up your Wiki instance.  It&#039;s easier to do this in a separate configuration file rather than editing the main &lt;code&gt;httpd.conf&lt;/code&gt; file, so create a new one in your Apache configuration folder (i.e. &lt;code&gt;/etc/httpd/conf.d/moin.conf&lt;/code&gt;) and open it in your favourite text editor.  Now paste the following into the file (the &lt;code&gt;Alias /wiki&lt;/code&gt; line is not a typo - MoinMoin needs to refer to that path to get it to work, it helps it run more than one Wiki but also restricts you from having just &#034;wiki&#034; as your folder name to the outside world):
&lt;code&gt;
&lt;pre&gt;
Alias /wiki/ &#034;/usr/share/moin/htdocs/&#034;
&amp;#60;Location /mywiki&amp;#62;
    SetHandler python-program
    # Add the path of your wiki directory
    PythonPath &#034;[&#039;/var/www/moin/mywiki&#039;] + sys.path&#034;
    PythonHandler MoinMoin.request::RequestModPy.run
    # Location value must match the Apache Location value!
    PythonOption Location /mywiki
&amp;#60;/Location&amp;#62;
&lt;/pre&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
Open the Moin configuration file you copied over earlier (&lt;code&gt;wikiconfig.py&lt;/code&gt;) and edit it.  You only have to modify it in a few places:
&lt;code&gt;
&lt;pre&gt;
    # Site name, used by default for wiki name-logo [Unicode]
    sitename = u&#039;The title of my new Wiki&#039;

    # Where your mutable wiki pages are. You want to make regular
    # backups of this directory.
    data_dir = &#039;/var/www/moin/mywiki/data/&#039;

    # Where read-only system and help page are. You might want to share
    # this directory between several wikis. When you update MoinMoin,
    # you can safely replace the underlay directory with a new one. This
    # directory is part of MoinMoin distribution, you don&#039;t have to
    # backup it.
    data_underlay_dir = &#039;/var/www/moin/mywiki/underlay/&#039;
&lt;/pre&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
Everything should be set up for you now.  Restart your web server and you&#039;ll be set!
&lt;code&gt;
&lt;pre&gt;
/sbin/service httpd restart
&lt;/pre&gt;
&lt;/code&gt;
This is a basic setup - if you&#039;d like more or different functionality, read the docs and give it a go!
&lt;/li&gt;
&lt;/ol&gt;
&lt;/p&gt;
&lt;p&gt;
Comments and feedback are welcome!
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <comments>http://www.derekburt.com/blog/2006/03/18/1142731908358.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2006/03/18/1142731908358.html</guid>
    <pubDate>Sun, 19 Mar 2006 01:31:48 GMT</pubDate>
  </item>
  
  </channel>
</rss>
