MPD (Music Player Daemon)
Table of Contents
MPD allows access from any address and uses a password for security.
The config file is well explained.
MPD Sima
MPD Sima adds tracks to the play queue using similar artists from last.fm.
Listing 3: /etc/mpd-sima.cfg
# For exhaustive options lits see manual: man 5 mpd_sima.cfg # or /usr/share/doc/mpd-sima/examples/ [MPD] host = localhost port = 6600 password = <password> [log] logfile = /var/log/mpd-sima/mpd-sima.log # Possible values: debug, info, warning, error # PAY ATTENTION: *DEBUG LEVEL MIGHT PRINT OUT YOUR PASSWORD* verbosity = info # These settings deal with MPD_sima core behaviour. [sima] internal = Crop, Lastfm, Random #contrib = ## HISTORY_DURATION (in hours) history_duration = 16 [lastfm] ## QUEUE_MODE # Possible values: track, top, album queue_mode = track track_to_add = 3 depth = 8 cache = True priority = 35 [crop] # Keep all played tracks consume=-1 [random] flavour=sensible priority= 30 # vim: syntax=cfg fileencoding=utf-8
mpdscribble
mpdscribble scrobbles song plays to last.fm (or other scrobbling services) to record your music habits.
Listing 4: /etc/mpdscribble.conf
## mpdscribble - an audioscrobbler for the Music Player Daemon. ## http://mpd.wikia.com/wiki/Client:mpdscribble # HTTP proxy URL. #proxy = http://the.proxy.server:3128 # The location of the pid file. mpdscribble saves its process id there. #pidfile = /var/run/mpdscribble.pid # Change to this system user after daemonization. #daemon_user = mpdscribble # The location of the mpdscribble log file. The special value # "syslog" makes mpdscribble use the local syslog daemon. On most # systems, log messages will appear in /var/log/daemon.log then. # "-" means log to stderr (the current terminal). log = syslog # How verbose mpdscribble's logging should be. Default is 1. verbose = 1 # How often should mpdscribble save the journal file? [seconds] #journal_interval = 600 # The host running MPD, possibly protected by a password # ([PASSWORD@]HOSTNAME). Defaults to $MPD_HOST or localhost. host = <password>@localhost # The port that the MPD listens on and mpdscribble should try to # connect to. Defaults to $MPD_PORT or 6600. #port = 6600 [last.fm] url = http://post.audioscrobbler.com/ username = <user> password = <password> # The file where mpdscribble should store its Last.fm journal in case # you do not have a connection to the Last.fm server. journal = /var/cache/mpdscribble/lastfm.journal #[libre.fm] #url = http://turtle.libre.fm/ #username = my_username #password = my_password #journal = /var/cache/mpdscribble/librefm.journal #[jamendo] #url = http://postaudioscrobbler.jamendo.com/ #username = my_username #password = my_password #journal = /var/cache/mpdscribble/jamendo.journal #[file] #file = /var/log/mpdscribble/log