Archive for the ‘tech’ Category

Introducing Blofeld

Thursday, July 22nd, 2010

I’m happy to announce the initial “release” of a project I’ve been working on for quite some time now: Blofeld.

What is Blofeld?

In short, Blofeld is a music server. You install it on a Linux PC and tell it where your music is, and it provides a web interface that allows you to listen to that music almost anywhere you have internet access and a web browser. Blofeld is fairly similar to applications like Jinzora, Subsonic or Ampache.

So, why not use one of those apps you just mentioned?

There are a few reasons I decided to write Blofeld. First of all, I really just wanted a project to work on and an excuse to learn some interesting technology. Additionally, I found most of the existing options to be severely lacking in a few areas. Particularly, I find that they’re…

  • Very slow to import/update the library
  • Difficult to install and configure
  • Too complicated (have you seen some of the transcoding or ACL stuff?)
  • Invasive (e.g., modifying tags or adding images to the music folder)
  • Generally clunky and just not very friendly

Features

Blofeld is a very young project, but it still has a fairly respectable set of features. Currently it supports:

  • Automatic on-the-fly transcoding
  • Extremely fast library import/update
  • Cover art (including embedded art)
  • Nearly any audio container and codec
  • A modern, friendly web interface
  • Themes
  • Song downloads (in a zip file, with artwork)
  • Basic users, groups and permissions
  • JSON based API

What does it look like?

Blofeld is completely themeable, but here are a few screenshots of the default theme.

Installing on Linux

If you’re using Ubuntu Linux, you can install Blofeld from my PPA. You can do that by running these commands in a terminal:

# Add the PPA to your Software Sources
sudo add-apt-repository ppa:dwhayes/ppa
# Update the package list
sudo apt-get update
# Install the package
sudo apt-get install blofeld

Once you have it installed, you should be able to just run blofeld at the terminal and a configuration file will be created for you at ~/blofeld/blofeld.cfg. Edit it using your favorite text editor (you probably only need to change the path option, which should point to the folder that contains your music).

Run blofeld on the terminal again to start the application. Blofeld will immediately start scanning your music into its library. Point your web browser to http://localhost:8083 and you should be greeted with the web interface. You can stop Blofeld by hitting ctrl+c on your keyboard in the terminal where you started the program.

If you would prefer to have Blofeld run as a system service (i.e., start up when you turn your computer on and run in the background), then you’ll need to edit /etc/default/blofeld and set ENABLE_DAEMON=true and then run sudo start blofeld. This will create a configuration file at /etc/blofeld/blofeld.cfg which you need to edit (again, be sure and set the path to your music directory). Run sudo start blofeld again to actually start the application, and Blofeld will start automatically when your computer boots up from now on.

If you’re using Linux, but not Ubuntu, then download the latest release and follow the instructions in the INSTALL file.

Installing on Windows

Version 0.2.5 introduces Windows support. There are 2 different Windows builds available:

The installer will install the program on your system and all of the configuration, cache and log files will be stored as part of your user profile. CouchDB and GStreamer are included as part of the installer.

The zip file is intended to run the program out of a directory you could put anywhere you like. All of the configuration information, cached files and logs will be stored in the directory with the program. This is suitable for running as a portable application. If you plan to use this build, you will need to install CouchDB from Apache and GStreamer 0.2.17 Beta 2 from OSSBuild before you can run the application.

The first time you run the program, nothing will appear to happen. Blofeld will create a configuration file for you and then exit. If you used the zip file, you should find a file called blofeld.cfg in the directory with the application. If you used the installer, this file is probably in either "C:\Documents and Settings\[YourName]\Application Data\Blofeld" (Windows 2000/XP/2003) or "C:\Users\[YourName]\AppData\Roaming\Blofeld" (Windows Vista/7/2008). Obviously, you’d need to replace [YourName] with your actual username. Probably all you need to do at this point is check the configuration file and make sure that the path is actually pointing to the directory containing your music (e.g., path = C:\Users\Dave\Music).

At this point, you can run the program again. Once again, it will look like nothing is happening, but Blofeld is working in the background to scan all of your music into its library. To use the application, open up a web browser and navigate to http://localhost:8083 and you should be greeted with the web interface. Hopefully you can figure things out from there.

Being that this is the first release with Windows support, expect to run into problems. If you do, please report it (you can just leave a comment on this post if you like).

What’s with the stupid name?

Blofeld is named for the Bond villain, Ernst Stavro Blofeld. I have no idea why.

Linux Browser Shootout with Peacekeeper

Tuesday, June 30th, 2009

Some time ago, I discovered a great tool from Futuremark called Peacekeeper. Peacekeeper is a browser benchmarking tool that gives you the ability to benchmark as many different browsers as you like, save the results and compare them to one another as well as some other common browsers.

Given some of the grumblings about Firefox performance on Linux, and the current debate about WebKit vs. Gecko, I thought it might be fun to take a handful of popular Linux browsers and see how they compare from a purely performance standpoint. (more…)

7 Cool Things to Do With Linux

Friday, January 16th, 2009

So you’ve taken the plunge and installed Linux. You’ve followed all the HOWTOs all over the net. You’ve got your wireless card working flawlessly. You’ve got your video card working (and you’ve begun to loathe that spinning cube). You’ve installed all the “restricted” software like Adobe Flash, Sun Java and Google Earth. You’ve got all the patent restricted codecs and even DVD playback working just like you want. Now what? You want to know what you can do with Linux outside of the surfing, emailing, chatting and media consumption you normally do? Well, here are a few things to keep you busy. (more…)

Have we exhausted meaningful Linux-related content?

Monday, June 23rd, 2008

I’ve been sitting here clicking through pages with StumbleUpon for quite a while now. I also subscribe to the Linux/Unix feed over at Digg, and it seems like it’s been quite a while since I’ve seen something new. It seems like every other page is either a table of Windows/Linux equivalent software or the top however many packages to install on clean Ubuntu install. Maybe I’ve just be into it for long enough that this information doesn’t seem useful to me, but I really think it’s approaching absurd levels of redundancy.

Eh, I’m probably just being overly negative. I just want something interesting to read for a change. Come to think of it, can we please do away with the “Top 10…” thing all together? It’s pretty played out and annoying at this point. Just like the overuse of the adjective “quietly” in headlines. Just take a look at Digg or Google News. “Apple quietly intros this…” “Microsoft quietly does that…” Please, stop.

Screwed by Windows, once again

Friday, February 22nd, 2008

Over the past couple weeks I’ve been working on a song. Not one of my own, mind you, so no reason to get excited or anything, but it was interesting nonetheless. Jon recorded a band a while back (I’ll refrain from naming them here, but they sound kind of like a mix between AC/DC and the Toadies… with more sexual innuendo, if that’s possible) and asked me if I’d do a completely stereotypical and distasteful dance remix of one of the songs. I’d love to!

See, I haven’t really worked on music much lately. I got burned out on it pretty bad after I moved to Nashville, and it wasn’t really enjoyable for a long time. I’ve worked on a few little things, mostly tuning vocals for a song here and there, but nothing really big. In the midst of this gigantic hiatus, some interesting things have happened. Namely, the release of REAPER. Ever since I heard about it, I’ve been dying to get the chance to do some real work with it. This remix was perfect for finally getting to dig in and start learning some of the nuts and bolts.

The workstation I’m using is an Athlon FX62, 2GB of RAM… it normally runs Ubuntu Linux and works as a home theater PC. But, for working with REAPER, I needed Windows. Thankfully, some months ago when I set the computer up, I had enough foresight to know I would want to do this and installed Windows Vista. Now, Vista was not my first choice. I wanted to install Windows XP. Unfortunately, Windows XP needs a driver floppy for my SATA controller. Not only do I not have the driver floppy for it, I don’t have the floppy drive to put it in. So, XP thinks I don’t have any hard drives. That leaves me with Windows Vista. And really, it wasn’t that bad. I used it to play through Call of Duty 4 (which, incidentally, is the greatest game ever in the history of everything) and a few other things aside from playing around with REAPER.

Fast forward to last week, when I started working on the remix. I was having fun, learning my way around REAPER, exercising some musical creativity and whatnot. Everything was good. Until yesterday that is. Yesterday, Jon came over to hang out while I finished the track up (I was going to turn it in today). As it turns out, Microsoft pushed out an update for Vista that locked my computer into an endless cycle of reboots. Turn the computer on, it says something like “Installing updates state 3 of 3 0%” or something and then reboots. Microsoft have not offered a fix other than to reinstall Windows. How ridiculous is that? They pushed out an official update that kills who knows how many thousands of people’s computers and essentially all they can say is, “Oops.” Needless to say, the song wasn’t finished. I haven’t quite decided what to do with the 45GB of new hard drive space I have now that I obliterated that Vista partition. Maybe you have some suggestions.

I’ve always had a distaste for Microsoft products, but I would use them as a necessary evil to partake of some of my favorite software… things like REAPER and CoD4. But, not anymore. I’ll just run REAPER in Wine from now on and if I want to play games, I’ll buy a PS3 or a Wii. Microsoft will not be getting any more of my money.

There’s also a Yahoo News article on my issue if you’d like to read a little bit more about it.