I use mplayer to play music. It doesn't require a GUI and is quite configurable. To play music softly in the background without having to throttle the mixer so that other sound sources play at their normal volume, use the audio filter
mplayer -af volume=-30 -loop 0 *mp3 -shuffle
mplayer -af volume=-30 -loop 0 -playlist all.pl -shuffle
Where the format of the playlist is simply the path of each music file. If invoking mplayer from the music root, paths can be relative. To invoke mplayer from anywhere use absolute paths.
Here is a bash shell script that walks the music tree and builds a playlist.
Redirect
it's output to a file: tree_walk > ~/favorites.pl
#!/bin/sh -
##########################################################
## This will create a list of the complete paths ##
## of all files in the current and sub-directories ##
##########################################################
# Version 1.0 7/19/2009
pp=$(pwd)
for thing in * .* ; do
[ "$thing" = '.' -o "$thing" = '..' -o -L "$thing" ] && continue
if [ -d "$thing" ]; then
if [ ! -x "$thing" ]; then
echo "directory $thing not executable" 1>&2
exit
fi
cd "$thing"
$0
cd ..
else
echo "$pp/$thing"
fi
done
![]() |
This site best viewed with a browser |
| Warning: This is a Debian centric site and MAY contain peanuts. | |
| Many thanks to Debra Lynn and Ian Murdock for making Debian possible | |
| First created Feb 24, 2011 ~ Last revised February 24, 2011 |