Automatic digital music workflow with VortexBox - (part two) integration

I'm a process automation obsessive. Last week I started a three part series on improving my digital music workflow. I wanted to automate more parts of my workflow, from this:
To this:
Five steps down to one!

Recognising that VortexBox will do a large part of this for me, I installed VortexBox in my home network within a VMware 'virtual machine' and got VortexBox up and running. This is all pointless without having any music to play of course, so this week I integrate VortexBox into my existing music network by linking my digital music files to VortexBox. I then describe where bliss fits into the workflow, and finally and most importantly I get to play some music!

A quick warning: this post contains some specific Linux related techie language! All this is possible within Windows and Mac environments too, but my chosen home network technologies tend to be Linux based ones.

We already know from my previous post that VortexBox contains a Squeezebox Server for distributing music around the home. A Squeezebox Server is a piece of software that plays music from a directory on your computer's hard disc. So, to integrate my newly installed VortexBox with internal Squeezebox Server with my existing music, I need to link the nominated directory with my music. My music is already available from my NAS via NFS, so all I need do is 'mount' the NAS's music directory to the nominated directory on the VortexBox. To do this, first I make the music available from the NAS, then I perform the mount on the VortexBox to access the music.

To make the music available from the NAS I add an entry to /etc/exports, which lists all directories made available via NFS:

/mnt/media/music 192.168.0.5(rw,async,no_subtree_check)

This means: make the '/mnt/media/music' directory available to the computer with IP address 192.168.0.5 (the VortexBox, since I've configured it to have a static IP). The music files are available for reading and writing. More on the /etc/exports configuration file here. Then, I reload the configuration file as so:

sudo /etc/init.d/nfs-kernel-server reload

The music is now available from the NAS. Now, I need to mount this music. The directory that the VortexBox assigns to play music from is, by default, /storage/music/flac. So, to mount the music within the VortexBox:

mount 192.168.0.3:/mnt/media/music /storage/music/flac

This means: mount the '/mnt/media/music' filesystem on 192.168.0.3 (the NAS) at /storage/music/flac. Listing the contents of /storage/music/flac lists our music successfully! Now, I don't want to re-issue that mount command every time the VortexBox starts, so I add a line to /etc/fstab:

192.168.0.3:/mnt/media/music /storage/music/flac nfs rw,noatime 0 0

Now, every time VortexBox starts, it will mount the /storage/music/flac directory automatically so my music plays with no effort.

With the directory mounted, and the music files visible on the VortexBox, we can now tell the VortexBox's Squeezebox Server to 'rescan'. Rescanning is the process the Squeezebox Server undertakes to update its internal database and make music available for playback.

Rescan for victory


Where does bliss fit into this? bliss isn't dependent on Squeezebox Server or VortexBox, it works on the digital music files directly. As a result, I have kept bliss running on the NAS, co-located with the music files, rather than install it in VortexBox for now. That said, either configuration would be acceptable. Whenever I move music onto the NAS, bliss recognises the music and conforms the album art against my rules automatically. For instance, if I move an album over with no embedded album art but with a co-located image file, the image file gets embedded into the music files without me doing anything.

Now... the important bit - listening to the music! I started up SqueezePlay to test my work. After choosing the new Squeezebox Server with the 'Choose source' function I soon had music streaming in full FLAC quality.


And there we have VortexBox streaming my music around my house once more. Next week we complete the final steps in our digital music workflow when we setup ripping from CD, automated tagging and album art, and automatic rescanning of the Squeezebox Server.
tags: vortexbox linux squeezebox workflow

The Music Library Management blog

Dan Gravell

I'm Dan, the founder and programmer of bliss. I write bliss to solve my own problems with my digital music collection.