Music Player Daemon
server = stores music files and runs daemon which plays and can stream
client = connects and controls and receives stream
- 1 HOWTO: Install
- 2 HOWTO: Scrobble To Last FM
- 3 HOWTO: Stream With Icecast Server
- 4 HOWTO: Fix: error: playlist is at the max size
- 5 HOWTO: Separate Users
- 6 HOWTO: Remote To Local
- 7 HOWTO: Minion Firefox Extension MPC Client
- 8 HOWTO: Everyday Shuffle
- 9 HOWTO: Playlists
- 10 HOWTO: Search, Add, Play
- 11 HOWTO: What Version and Features
- 12 Man Page
- 13 Information
HOWTO: Scrobble To Last FM
mpdscribble is a daemon available in the AUR (if you prefer, mpdscribble-git is also available). This is arguably the best alternative, because it is the semi-official MPD scrobbler and uses the new "idle" feature in MPD for more accurate scrobbling. Also, you do not need root access to configure it, because it does not need any changes to /etc at all. Visit the official website for more information.
After you have installed mpdscribble, do the following (not as root):
Create the file ~/.mpdscribble/mpdscribble.conf and add the following:
[mpdscribble] host = your mpd host # optional, defaults to $MPD_HOST or localhost port = your mpd port # optional, defaults to $MPD_PORT or 6600 log = /home/YOUR_USERNAME/.mpdscribble/mpdscribble.log verbose = 2 sleep = 1 musicdir = your music directory proxy = your proxy # optional, e. g. http://your.proxy:8080, defaults to none [last.fm] # last.fm section, comment if you do not use last.fm url = http://post.audioscrobbler.com/ username = your last.fm username password = your last.fm password journal = /home/YOUR_USERNAME/.mpdscribble/lastfm.journal [libre.fm] # libre.fm section, comment if you do not use libre.fm url = http://turtle.libre.fm/ username = your libre.fm username password = your libre.fm password journal = /home/YOUR_USERNAME/.mpdscribble/librefm.journal
Please note that passwords can also be written down as MD5:
echo -n 'PASSWORD' | md5sum | cut -f 1 -d " "
Add mpdscribble to the file in which you start mpd as well (e.g. ~/.xinitrc):
pidof mpdscribble >& /dev/null if [ $? -ne 0 ]; then mpdscribble & fi
HOWTO: Stream With Icecast Server
HOWTO: Fix: error: playlist is at the max size
If you want to be able to play more than 16,384 songs then edit /etc/mpd.conf...
Then restart the server and re-run the song update...
sudo service mpd restart mpc update (wait a few minutes) mpc clear mpc ls Music |mpc add
HOWTO: Separate Users
TO BE COMPLETED.
Yes, you can have different client users of MPD.
Create the ~/.mpdconf file, add the configuration lines, and make some folders, then start the MPD daemon as you...
.mpd .mpd/state .mpd/database .mpd/pid .mpd/log .mpd/playlists .mpd/playlists/classical.m3u .mpdconf
mpd --no-daemon --verbose ~/.mpdconf
HOWTO: Remote To Local
Italic = remote Bold = local
There are 2 ways to do this.
1. Use a dedicated music player on the local computer to play the stream directly from the remote MPD server, then use an MPD client on the local computer to control the songs from the remote MPD server.
e.g. using the VLC media player...
[MPD Server] --> http:8000 --> [VLC Client] = Audio [MPD Server] --> tcp:6600 --> [MPD Client] = Control
2. Use an MPD server running on the local computer to add the stream from the remote MPD server, then use an MPD client on the local computer to control the songs from the local or remote MPD server!
[MPD Server] --> http:8000 --> [MPD Server] --> [VLC Client] = Audio [MPD Server] --> tcp:6600 --> [MPD Client] = Control
Confusing? Yes. Nice? Yes :-)
root@mpd-server# service mpd start user@mpd-server$ mpc clear; mpc ls Music/ |mpc add; mpc suffle; mpc play user@mpd-client$ mpc -h 192.168.0.2 play user@mpd-client$ cvlc http://192.168.0.2:8000 user@mpd-client$ MPD_HOST=192.168.0.2; MPD_PORT=6600; export MPD_HOST; export MPD_PORT; sonata
root@mpd-server# service mpd start root@mpd-client# service mpd start user@mpd-client$ mpc clear; mpc add http://192.168.0.2:8000; mpc play user@mpd-client$ sonata
HOWTO: Minion Firefox Extension MPC Client
To fix the Server not connected error...
Go to about:config page. Look for the value 'extensions.mpm.server'. If it does not exist, create a new one (right click -> string), with a value '192.168.1.2:6600:', where '192.168.1.2' is the ipaddress of YOUR mpd server.
HOWTO: Everyday Shuffle
mpc stop mpc clear mpc ls Music |mpc add mpc shuffle mpc play
mpc stop mpc clear mpc update mpc search artist 'In This Moment' |mpc add mpc save inthismoment mpc help mpc lsplaylists mpc load inthismoment mpc play
HOWTO: Search, Add, Play
mpc stop mpc clear mpc findadd artist 'Nine Inch Nails' mpc play
mpc stop mpc clear mpc findadd genre 'Jazz' mpc shuffle mpc play
mpc findadd album 'Innuendo' artist 'Queen'
Or there is a BASH script to do it...
HOWTO: What Version and Features
MPD Clients ==