Prereqs: Enable universal repositores in /etc/apt/sources.list
Installing & Configuring Software:
In terminal:
sudo apt-get install mpd mpc paprefsNext we need to set up Pulse Audio.
Go to System->Preferences->Pulse Audio PreferencesSet up mpd.conf (use your favorite text editor)
Check "enable network access to local sound device" & "Don't require authentication"
sudo gedit /etc/mpd.confAdd the following to the config file:
audio_output {In the mpd.conf file, look for "music_directory" and change the corresponding path to your music directory.
type "pulse"
name "Local MPD Output"
}
Next, we shall build the database. In terminal, type:
sudo mpd --create-dbFinally, restart mpd by:
sudo /etc/init.d/mpd restartUsing mpc: mpd/mpc is higly scriptable so I recommend create some bash files for yourself. You will find the manual to mpc here: http://linux.die.net/man/1/mpc
Example: Add Radiohead to current playlist
mpc search artist Radiohead | mpc addGood luck
mpc play
Further Reading:
http://mpd.wikia.com/wiki/What_MPD_Is_and_Is_Not
http://mpd.wikia.com/wiki/Hacks
No comments:
Post a Comment