23
Aug

How To: Install shell-fm to Play last.fm Radio via Terminal

Here’s how to install shell-fm as tested on Fedora 14. shell-fm is a great little command line tool that will play last.fm radio and even has some features that last.fm doesn’t have (artist autoban, no advertisements, and more). You can read more about it here. Alright, let’s get to the install instructions!

Open a terminal and issue the following commands in order:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
su -c 'yum install -y git libmad-devel libao-devel'
mkdir ~/src
cd ~/src
git clone git://github.com/jkramer/shell-fm.git
cd shell-fm/
make
su -c 'make install'

At this point, you should now have a fully functional shell-fm program. However, I would recommend creating a configuration file first by using the following commands in order (you could probably copy/paste these, remembering to replace username and password with your own):

mkdir ~/.shell-fm
cat > ~/.shell-fm/shell-fm.rc << EOF 
username=username
password=password (plain text)
default-radio=lastfm://artist/The%20Beatles/similarartists
EOF

Then, finally run the program:

shell-fm

As always, be sure to check out the man pages for more information!

man shell-fm

I’ve had a terrific experience with both this utility and last.fm. I would rate it much higher than Pandora or Slacker radio. The music is much more extensive and I don’t get any repeats during an eight hour day. My thanks goes out to both last.fm and shell-fm. Great job guys! Keep up the good work.

Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:


There's 1 Comment So Far

  • Ferodynamics
    May 27th, 2011 at 1:49 am

    I wrote up something similar to this but alas that blog is now redirecting to my main site. Rather than dig through a mysqldump, here I am via Google.

    Takes a while to get gcc installed and all the other stuff downloaded but your instructions here are vital. Amazing how much you need to download to get this little guy working, but definitely worth it. I had this working in 13 but too much time on my hands, decided to upgrade from 13 to 14 to 15. But 15 killed me, had to start over from zero with a backup. So I was trying to get .shell-fm/shell-fm.rc working under my old username, but shell-fm.rc won’t work unless you copy it under the user you compiled the program with.

Share your thoughts, leave a comment!