Aktionen
Install MPD¶
this is based on http://www.forum-raspberrypi.de/Thread-tutorial-music-player-daemon-mpd-und-mpc-auf-dem-raspberry-pi
update package-list¶
sudo apt-get update
install needed packages¶
sudo apt-get install mpd mpc alsa-utils
sound settings¶
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 1
configuration¶
sudo vim /etc/mpd.conf
to use MPD via network you need to comment following line out
... #bind_to_address ...
adjust output
... audio_output { type "alsa" name "My ALSA Device" device "hw:0,0" # optional # format "44100:16:2" # optional # mixer_device "default" # optional # mixer_control "PCM" # optional # mixer_index "0" # optional } ...
load modules after reboot¶
sudo vim /etc/modules
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. snd-bcm2835
set permissions¶
sudo chmod g+w /var/lib/mpd/music/ /var/lib/mpd/playlists/
sudo chgrp audio /var/lib/mpd/music/ /var/lib/mpd/playlists/
add music¶
files
put .mp3's into directory /var/lib/mpd/music
¶
playlists for online streams
put .pls or .m3u into directory /var/lib/mpd/playlists
¶
http://wiki.ubuntuusers.de/Internetradio/Stationen#Radiosender-Deutschland
restart and database update¶
sudo /etc/init.d/mpd restart
sudo mpc update
Von Jeremias Keihsler vor fast 8 Jahren aktualisiert · 2 Revisionen