Home-Server mit Ubuntu 6.06 LTS, Teil 9
Last.FM für MPD
Da ich in der Last.fm-Community aktiv bin, würde ich auch gerne MPD zum Scrobblen bringen. Scrobblen ist, so beschreibt es Last.fm selbst, das Protokollieren der am Computer gehörten Musik in einem Online-Profil. Dazu brauche ich mpdscribble (auf scmpc.berlios.de gibt es eine Alternative):
sudo apt-get install mpdscribble
Die eventuell auftretende Warnung kann man ignorieren. Jetzt öffnen wir die Konfigurationsdatei /etc/mpdscribble.conf.
# please note that username and password # are handled by debconf if you chosen to run mpdscribble systemwide username = your_user_name password = md5_of_your_password log = /var/log/mpdscribble.log cache = /var/cache/mpdscribble/cache
Wir brauchen also die MD5-Summe unseres Passworts:
fish@fishbox:/$ echo -n deinpasswort | md5sum af9063199baf3a1cffc4a185dc18daae -
Jetzt müssen wir nur noch die Konfigurationsdatei ändern:
# please note that username and # password are handled by debconf if you chosen to run mpdscribble systemwide username = deinbenutzername password = af9063199baf3a1cffc4a185dc18daae log = /var/log/mpdscribble.log cache = /var/cache/mpdscribble/cache
Nun noch mpdscribble starten:
fish@fishbox:/$ sudo mpdscribble & [1] 6961
Oder, noch besser - gleich als Daemon starten:
fish@fishbox:~$ sudo /etc/init.d/mpdscribble restart * Stopping Music Player Daemon Audioscrobbler Client mpdscribble [fail] * Starting Music Player Daemon Audioscrobbler Client mpdscribble [ ok ]
Wer mpdscribble beim Booten des Servers automatisch starten lassen will, editiert /etc/rc.local:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /etc/init.d/mpdscribble restart exit 0
Abspeichern, fertig!

