
I’ve gotten back from my second year at K-State. Thank God finals are finally over. I’ve gotten all of my stuff setup in my room back home. I’ve got a pretty good setup going now. I’ve got my Xbox, this server and laptop plugged into my WRT54GS. I can use everything I need from the comfort of my bed. Oh, wondrous luxury. I’ve got my speakers plugged into the sound card on my server and through a combination of mp3blaster and my own custom script, I can play music on those speakers from anywhere through putty. I think it’s pretty sweet.
Here’s a copy of my shell script:
-
#!/bin/sh
-
#
-
# Music Script 0.1
-
#
-
# Plays specified or default playlist using mp3blaster.
-
#
-
-
default=/home/kyleh/playlists/syntax.m3u
-
custom=$1
-
-
# If no playlist is given, play the default
-
if [ $# -ne 1 ]
-
then
-
mp3blaster -a "$default" -p allrandom
-
else
-
# If custom playlist is readable
-
if [ -s "$custom" ]
-
then
-
mp3blaster -a "$custom" -p allrandom
-
else
-
echo "ERROR: Unable to open custom playlist, opening default"
-
mp3blaster -a "$default" -p allrandom
-
fi
-
fi
-
-
exit 0
Here’s a link to my script: music.zip