Table of Contents

Pitchfork_&_MPD_with_PulseAudio

Installation

Pitchfork

sudo apt-get install apache2 php5 php-pear mpd

sudo chmod 777 /var/www/pitchfork/config

sudo cp /var/www/pitchfork/doc/pitchfork.conf /etc/apache2/conf.d/

MPD

fgrep ‘music_directory’ /etc/mpd.conf

sudo mpd –create-db

audio_output {

       type    "pulse"
       name    "PulseAudio on //MachineName//"

}

sudo /etc/init.d/mpd restart

You should now be able to log into Pitchfork by accessing http://localhost/pitchfork (substituting 'localhost' with the machine's IP address or hostname, if accessing from another computer). Pitchfork will initially display a configuration page, but all of the defaults can be left, so you can safely just click the 'Save' button. If everything worked properly, you should see your music and it should be playable.

Running PulseAudio as a System-Wide Daemon

Normally PulseAudio will run as a per-user service, but on a headless box where you generally won't be logging in to Gnome this isn't very helpful. As such it's preferable to run PulseAudio as a system-wide daemon so that any user can access it. There are issues related to running PulseAudio like this, which are detailed on the relevant page of the PulseAudio site, but for most purposes they aren't much of a concern.

sudo mv /var/run/pulse/default-sink /var/run/pulse/default-sink.bak sudo mv /var/run/pulse/default-source /var/run/pulse/default-source.bak sudo mv /var/run/pulse/volume-restore.table /var/run/pulse/volume-restore.table.bak sudo ln -s ~/.pulse/default-sink /var/run/pulse/default-sink sudo ln -s ~/.pulse/default-source /var/run/pulse/default-source sudo ln -s ~/.pulse/volume-restore.table /var/run/pulse/volume-restore.table

sudo chmod -R g+rw /var/log/mpd sudo chmod g+rw /var/run/mpd

Current Issues