NSLU2 and MPD

Having a functionnal setup for playing music on my unslung box, I decided to install and configure mpd on it for more flexibility.

Mpd is available as an ipkg package but some work must be done to make it work. I had to create /opt/etc/mpd.conf with the following content:

port                    “6600″
music_directory         “/share/flash/data/public/mp3″
playlist_directory      “/share/flash/data/public/mpd/playlists/”
db_file                 “/share/flash/data/public/mpd/mpd.db”
log_file                “/share/flash/data/public/mpd/mpd.log”
error_file              “/share/flash/data/public/mpd/mpd.error”
state_file              “/share/flash/data/public/mpd/state”
audio_output_format “44100:16:2″
mixer_type “oss”
mixer_device “/dev/mixer”
mixer_control “Vol”

and create the appropriate directories on the hard drive, then execute mpd –create-db and finally restart the daemon.

On my laptop, I installed Sonata from the repos and ended up with a perfectly usable setup. Here is a screenshot:

Sonata and MPD

I still need to change the ownership of some of these files to make it more secure, because at the moment, it is run as root…

Reference:

http://www.chimeric.de/blog/2008/0816_pimp_your_nslu2_-_mpd_/last.fm

http://www.nslu2-linux.org/wiki/HowTo/SlugAsAudioPlayer

http://www.757.org/~joat/wiki/index.php/NSLU2_and_MPD

Reply


Twitter Updates
    Archives
    Categories