ALIX.3C3, OpenBSD, a NAS, cron and Time Machine
Most of the time I know something about the stuff I buy, but in this case it was a little different: I got an ALIX.3C3 to use it
- as a NAS (to us it with OS X Time Machine and the Air Disk Hack)
- as a fancy cron-controlled alarm clock
- and as a littel web server for testing purposes.
I realized a little too late that Debian-Linux doesn’t really work headless (w/out a monitor) with the ALIX. This cost me quite some time. Luckily my friend and co-worker Tom convinced me to install OpenBSD on the ALIX. Alone, I would have never made it that far.
There were a few pitfalls and little pieces of wisdom that I found along the way that wanted to share. Hopefully this blog entry will help someone else on her/his path:
- Don’t use Debian with a headless ALIX (3C3)! It won’t boot unless you do stupid hardware hacks .
- OpenBSD is NOT evil and it is not difficult to understand. Find someone who knows the system, get him a sixpack of beer and inhale all the knowledge that the beer set free.
- cronjobs need to address shell scripts or programs with the full path (I don’t know why it took me so long to find that out, duh)
- mplayer can stream music to your Apple Airport Express Station – don’t even bother about setting up the sound card etc.: # mplayer -ao rtunes:device=192.YOUR.APX.IP:af=inet musicfileOrStreamUrl.mp3
- http://www.openbsd101.com/ is very usefull, but
updatingupgrading from a snapshot to a stable version 4.x (replace the x with the desired release version) of OpenBSD can be done quicker – Thanks again, Tom:- # ftp ftp://ftp.openbsd.org/pub/OpenBSD/4.x/i386/bsd ftp://ftp.openbsd.org/pub/OpenBSD/4.x/i386/base4x.tgz  ftp://ftp.openbsd.org/pub/OpenBSD/4.x/i386/comp4x.tgz ftp://ftp.openbsd.org/pub/OpenBSD/4.x/i386/man4x.tgz  ftp://ftp.openbsd.org/pub/OpenBSD/4.x/i386/misc4x.tgz
- # cp /bsd /obsd (backup your kernel)
- # tar xzpf base4x.tgz -C / (extract the archives to /, keep all rights)
- # tar xzpf comp4x.tgz -C /
- # tar xzpf man4x.tgz -C /
- # tar xzpf misc4x.tgz -C /
- # cp bsd /bsd (copy your fresh kernel to its final destination)
- # config -e -o /bsd /bsd (optinal: add 15% RAM to the cache of the file system)
cachepct 15
quit - # reboot
- Adjust the PKG_PATH in ~/.profile to your the path of your version
- Exit, log in again, done.
- Yes, you are right: You can just replace the whole system and then reboot it. Try this with any other system and you will #fail!
- systat is a cool command
Sidenotes: The ALIX is equipped with a 4 GB Compact Flash Card. 4 GB is more than enough; currently not even 1 GB is used. In addition I attached a 2.5”-USB harddrive for my Time Machine backups.
Next project: Adding the Mir:ror as an interface to set the alarm clock using ruby-mirror.
Tags: airport express, alix, cron, nas, openbsd, osx, update

April 29th, 2009 at 00:13
[...] Connect the USB-mir:ror to the computer (in my case, it’s my ALIX) [...]
May 12th, 2009 at 14:41
Okay. I really do not intend for my comment to come off as elitist here BUT you make a slight semantic mistake. OpenBSD 101 actually does a good job at showing how to UPDATE a OBSD system. What you talk about in the blog post is UPGRADING.
The only reason I’m making this post is I’m always surprised when people mistake updating for upgrading and vice versa. There is a difference. And having worked with OBSD since its inception, I can assure you that UPGRADING an OBSD system is never recommended, doing a clean install is. Then updating the current system with patches from there.
May 17th, 2009 at 23:27
Don’t worry about commenting this entry, please. — Of course OpenBSD 101 does a great job. This is my first OpenBSD installation. Please bear with me and please continue to enrich and/or correct the information that I am spreading on this blog. Thank you. (The mistake above was corrected.)
June 14th, 2009 at 10:07
Debian works fine on the ALIX boards – headless or otherwise – but you can save yourself a load of time by using the distribution from Voyage.
http://linux.voyage.hk IIRC
June 14th, 2009 at 16:39
Thanks, Mez, for the link. I’ll try Voyage as soon as I have some time to install it.
September 18th, 2009 at 17:31
Hello,
I’ve a lot of problems to boot the alix 3c3, just gone fine with Ubuntu but it’s very slow! Can you share please a CF image of your 4Gb CF so I can try to clone on my CF?
Regards,
Alf