A while back I contorted myself to get a 64-bit FreeBSD 6.0 driver for my HighPoint RocketRaid 2220 RAID controller. Now that I have a 2TB ReadyNAS box, that old 1TB FreeBSD box is falling into disuse, so I thought I’d repurpose it as a dedicated Azureus download machine.
A few weeks ago my father pointed out that the date stamps on my blog posts were behind by a week. Upon investigation, I found that bonzo’s clock was a week behind. I updated it and declared victory.
Then, he pointed it out again a few days ago. Sure enough, it had slipped by several days. When I logged into the VMWare Console to check for options to sync the clock or whatever, I noticed a repeated error from the FreeBSD kernel that I’ve been getting on bonzo forever and always ignored:
calcru: runtime went backwards from [some big number] usec to [another] usec for pid [pid]
I’ve been running SVN 1.2.1 forever. Now I need to rebuild it to generate updated Apache modules for Apache 2.2.
In /usr/ports/devel/subversion, I do a make deinstall to remove the old version, and a make install WITH_MOD_DAV_SVN=yes WITH_PERL=yes WITH_PYTHON=yes WITH_RUBY=yes WITH_JAVA=yes to build the Apache module that exposes the SVN repository for WebDAV over HTTP, and bindings for all the major languages.
Ack. First problem:
You should build `www/apache22' with db4 support to use subversion with it.
Please rebuild `www/apache22' with option `WITH_BERKELEYDB=(db4|db41|db42)' and try again.
Or you can disable db4 support. Only 'fs' repository backend will be available.
To disable db4 support, define WITHOUT_BDB.
My respository is an ‘fs’ type, which is more stable. So, I can live w/o BDB. I certainly have no desire to compile Apache again.
I’m in Baghdad now, where my only link to the ‘net is a high-latency satellite. Mozilla Thunderbird can’t hack the delays this introduces, and thus times out when attempting to fetch my IMAP mailbox on ender. Thus, rather than use one of the other shitty IMAP clients, I’ve decided to pull the trigger on SquirrelMail.
I have previously attempted to install RoundCube, but found it a bit too immature at this point, so I’ve decided to go with something tried and true: SquirrelMail.
Fortunately, the FreeBSD ports collection includes SM, and a pre-built package based on 1.4.5 is available. Unfortunately, the pre-built package uses Apache 1.3, while I run Apache 2 on bonzo. This leads to all sorts of fun:
When I first created bonzo, I allocated 96MB of RAM in VMWare. As I ran Gallery 2, Drupal, ByteHoard, etc, it became clear from the out-of-memory errors that I needed to boost the memory space. I since increased the allocation to 256MB, but the swap file is still only 160MB. Consequently, I’m plagued by kernel out of space space errors like:
Dec 5 18:09:18 bonzo kernel: swap_pager_getswapspace(6): failed
and
Dec 6 03:03:07 bonzo kernel: swap_pager: out of swap space
Dec 6 03:03:07 bonzo kernel: swap_pager_getswapspace(4): failed
Dec 6 03:03:07 bonzo kernel: pid 15958 (httpd), uid 80, was killed: out of swap space
Because HP DVD drives sucks, prospertine is temporarily without a CD/DVD burner, so I need to use the one in aenea.
I’d never burned a CD outside of Windows before, so I didn’t know where to begin. Turns out FreeBSD includes a tool, burncd, that interfaces with the burner itself. I just need to burn the Fedora Core 4 install CDs, so I already have the CD images, making it pretty straightforward.
There’s more info in the handbook, under Creating and Using Optical Media.
I’m trying this, straight from the handbook:
Yesterday while I was at work, there was a brief power fluctuation in my townhouse. Since I’m still setting up aenea, she isn’t yet in my server closet, or hooked up to an UPS. So, predictably, she lost power.
This is somewhat bad, since the Highpoint RocketRaid 2220 SATA RAID controller that powers her 1TB RAID 5 disk array does not deal at all well with unorderly shutdowns, since the RAID logic is implemented in a software driver, not hardware.
Predictably, I suffered some file system damage. I now can’t boot, because /var seems sufficiently damaged to cause a panic in some ffs_whatever module. Thankfully it was /var and not, say, /usr, but nonetheless it sucks badly.
I just installed the apache2 and php5 ports on aenea, and found that accessing .php files via Apache returned the PHP source code, instead of running the PHP server-side.
I had to add the following entries into /usr/local/etc/apache2/httpd.conf in order to get mod_php to pick up the files:
#Register PHP mime types
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
That worked, but index.php wasn’t run automatically if I navigate to a directory. For that I added index.php to the end of the DirectoryIndex directive:
DirectoryIndex index.html index.html.var index.php
Ever since I got my Linksys wireless music system, I’ve wanted an open source UPnP music server to stream my music to it. As one might expect, it ships w/ Musicmatch Jukebox, which has a UPnP server feature, but MMJB isn’t open source and only runs on Windows. My music is stored on aenea, a FreeBSD 6.0 box, so why can’t I run a media server there, where it makes the most sense?
I’ve found three potentially non-shitty media servers thus far:
As is the case with most trendy open source projects today, they’re all written for Linux. Since I use FreeBSD, there’s inevitably some degree of contortion required to make them work.
First is the installation of the FreeBSD port of libupnp, which is in /usr/ports/devel/upnp.
Now that I have aenea running ok under FreeBSD 6.0, I want to update the ports collection. Under OpenBSD, this is just a matter of getting the latest ports tree using CVS or CVSup.
The FreeBSD handbook has a useful section on getting the ports tree, which describes using CVSup to get the very latest ports from CVS.
First I install CVSup, which is pretty straightforward. I already have the -Release ports tree, which contains CVSup in net/cvsup-without-gui.