How to enable last.fm audioscrobbler for xmms2 on Ubuntu Hardy

After having switched my default music player to xmms2, I needed to enable the scrobbling of my tracks to last.fm. Because you have to install some packages and because there isn't a gui to configure the audioscrobbler client, I thought I would post this. You probably wouldn't be here if you didn't know xmms2 (!=xmms), but if you don't, you can read more about it here.

Installing the packages

The name of the audioscrobbler client is xmms2-scrobbler. You can get it from the repositories. Except for one, all dependencies will be taken care of by apt. The additional package we need is called libevent-loop-ruby. So we do:

sudo apt-get install xmms2-scrobbler libevent-loop-ruby

Configuring the client

The client tries to read the configuration in ~/.xmms2/ instead of ~/.config/xmms2/ where the files are located. So we make a symlink:
ln -s ~/.config/xmms2 ~/.xmms2

Next we have to create a directory where the configuration files of the scrobbler client will reside.
mkdir -p ~/.config/xmms2/clients/xmms2-scrobbler

In this new directory we have to create a file for your last.fm credentials.
nano ~/.config/xmms2/clients/xmms2-scrobbler/config

In this file we enter only the following 2 lines:

user: YOUR_YOURNAME_HERE
password: YOUR_PASSWORD_HERE

Save en exit (CTRL-x, y, ENTER)

After this we have to symlink the actual xmms2-scrobbler script to the startup directory of xmms2, so that it will start at the launch of xmms2.
ln -s /usr/bin/xmms2-scrobbler ~/.config/xmms2/startup.d/

Now restart xmms2 if it was running, or just start it if it wasn't and check your last.fm profile:
xmms2 quit
xmms2-laucher

Problems

Sometimes xmms2 doesn't start and gives errors instead. This is probably because the daemon is still running. To kill the daemon do
ps aux | grep xmms2d
Then kill the xmms2d daemon
sudo kill PID_OF_XMMS2D_HERE

More

The xmms2 audioscrobbler plugin is written by Tilman Sauerbeck. Visit his non-blog for more information and the latest release.
I switched to xmms2 after having used xmms, audacious, amarok, exaile, cmus, moc and some others. My problem has always been that I had to choose between a lightweight player without library or a heavy, slow starting one with a library. With xmms2 I don't have to choose anymore. The players I use also have to be easy to control. My solution for this was to use the xmms2 plugin for gkrellm (package is called gkrellxmms2). So with this setup I have a leightweight, fast starting musicplayer with a large library (+50K tracks) that's easy to use and feature filled. Sure, xmms2 isn't a 'just press play' kinda music player, but once I figured out how to operate it, it was bliss.

Comments

thanks for this. funny that the package maintainer didn't add it to the post-inst script. I couldn't figure out how to get it working for the life of me.

I agree with your feelings about this software. it's quite elegant once configured properly.

Thank you.

I'm a bit indifferent to xmms2 so far. I'm still adjusting though.

didn't know where to write this, but this theme is the best I have ever seen in my entire life!!

wow! :D

sorry for the irrelevant to the topic comment :S

I dropped xmms2 in favor of mpd, which comes very close to the perfect music player for my needs

Thanks very much! I'm really diggin' xmms2 on linux mint gloria right now.

Thanks very much!!! :)

It's best music player :)

I like music.security+

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.
RSS feed