Download Linux Journal | April 2009 | Issue 180
Transcript
concentrated his report on a single application—music: Without a doubt, the device that attracts the most attention from guests visiting my house is the Slim Devices Squeezebox sitting in the living room. They usually don’t notice it at first, but there’s always that “double-take” moment when I change the music using my laptop or my iPod Touch. I store my music in the basement on a Dell machine running Ubuntu with a bunch of FireWire disks attached for media files. This server runs Slim Devices’ GPL-licensed SqueezeCenter software, which is a dæmon that is mostly written in Perl, surprisingly enough. I happen to know Perl quite well as I programmed with it on a full-time basis for many years, so I was actually quite reluctant to buy this device when I first saw it. What I desperately wanted to avoid was a situation that required work just to get my music playing. And imagine a dinner party going silent because of a segfault in your own code! I did, however, end up making a few changes to the software, which was only possible due to the open nature of it (at one point, I had reconfigured it to use MPlayer internally rather than LAME because MPlayer wasn’t as abusive to the CPU). One thing I really like about it is that I have a plugin installed that keeps a log of everything that gets played, which means that I could actually tell you what I was playing at 8:14pm last Thursday. One of my forthcoming weekend projects is to syndicate this onto my personal Web site, probably with a programming language that I’m looking to learn (OCaml is near the top of my list these days). I access the music on my basement server when I’m at work by port-forwarding HTTP connections on my router to either Apache or to the SqueezeCenter’s built-in streaming capabilities, depending on what I want to do. My router runs dd-wrt, a Linux-based firmware that runs on various types of home routers. It’s very stable and provides a bunch of cool features that will appeal to power users. Asked for last words on the subject, Phil adds, “We run RHEL and CentOS at StyleFeeder, some on EC2 and some at Contegix in St. Louis. We run behind Apache and nginx on the Web tier. We own zero servers and run dd-wrt on our office LAN as well....Typing one-handed with a baby in the other....” Babies are a new hack for Phil. —DOC SEARLS