mpd is my favorite music player. Here's how to install it in Debian Lenny.
You'll need to be root for this (type "su" without the quotes), or add "sudo" before each command.
Install mpd (Music Player Daemon) and mpc (Music Player Command).
apt-get install mpd mpc
Configure mpd. You can use nano (or any text editor) in place of vim if you prefer. I didn't change anything except I commented-out (with the hash symbol) the bind_to_address, as it was causing the following error when I tried to use mpc:
MPD_HOST and/or MPD_PORT environment variables are not set error: problems getting a response from "localhost" on port 6600 : Connection refused
The bind_to_address line should look like this:
Put a symbolic link to your music in mpd's default music directory. Obviously you'll need to replace /home/james/music with the path to your music directory.
ln -s /home/james/music /var/lib/mpd/music
Make sure mpd has permission to read your music files. In my case, because all of my music is on an external NTFS drive, all of the file permissions on my music were a little odd. They belonged to the user "james" (me) and the group "users", and did not allow anyone who was not the owner or not in the group to read them. To fix this I added the user "mpd" (which was created when we installed mpd) to the group "users".
usermod -G users mpd
Create the music database. If you're music files don't scroll down the screen, then mpd isn't finding them. Make sure you made the symbolic link to mpd's default music folder, and that the permissions are set correctly.
Restart mpd, because earlier we changed mpd.conf.
Find and play your music. Replace yourawesomeband with whatever artist you want to listen to.
mpc search artist yourawesomeband | mpc add ; mpc play