Sep 16 2009

Scrobble to Libre.fm from Android

Posted by Fab

Update: This hack is no longer necessary, since the version of SLS now available on the market has been patched to enable scrobbling to Libre.fm as well.

This tutorial will enable you to scrobble your played songs from the Android music player to Libre.fm. Thanks to JonTheNiceGuy for explaining to me how to do this, he did basically all the work!

Warning: Attempt this hack on your own risk. This might break your phone, your computer or blow up your house! The Linux Outlaws cannot be held responsible for any consequences anyone might suffer from hacking their phone in this way.

Prerequisites

You will need the following stuff before we can begin:

  1. Install Version 1.5 of the Android SDK and set it up (this might also work with the newer Version 1.6, although I didn’t test that)
  2. Install Eclipse 3.4 or 3.5 and configure it for the SDK as explained here
  3. Make sure you have enabled “USB debugging” on your phone (do this under SettingsApplicationsDevelopment)
  4. Install svn if you haven’t already done so (on Ubuntu, this is a simple aptitude install subversion away)

If, like me, you are using the Samsung i7500 “Galaxy”, you also need a special workaround to get the ADB working with your phone:

  1. Create the file /etc/udev/rules.d/51-android.rules and paste the following text into it: SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
  2. Reload udev: sudo /etc/init.d/udev restart
  3. Replace the ADB binary in the tools directory of your SDK with this one
  4. Plug in your phone and start DDMS

Hacking Simple Last.fm Scrobbler

Once you did all of that, you are ready to start on the main part, hacking Simple Last.fm Scrobbler to report to Libre.fm instead of its “evil” counterpart:

  1. Make yourself a new project folder, change into it and get the source code of SLS with svn: svn checkout http://a-simple-lastfm-scrobbler.googlecode.com/svn/trunk/a_simple_lastfm_scrobbler
  2. Attach your phone to the computer
  3. Open a new Android Application project in Eclipse and import the source code you just fetched
  4. Navigate to srccom.adam.aslfms.service and open the Handshaker.java file
  5. In this file, change the FQDN in line 187 to http://turtle.libre.fm
  6. The whole line should now read: String uri = "http://turtle.libre.fm/?hs=true&p=1.2.1&c="
  7. Save the file and push the green Run button in the Eclipse toolbar, in the popup choose “Android Application”
  8. The modified application should now be installed on the phone and will be started automatically
  9. Just sign in with your  Libre.fm username and password — happy scrobbling!

sls-librefm

If you should be adventurous enough to try this, please give me some feedback on how you got along in the comments section. I will also try to answer any questions you might have, of course.


Sep 12 2009

Two Years

Posted by Fab

On this day two years ago, the very first episode of Linux Outlaws was released to the world.

In the two years that followed, we got an Ogg feed, moved to Libsyn, were crowned #2 Linux podcast by Linux Format Magazine, created the forum, designed our own merchandising, lost a whole show, started doing interviews, were interviewed ourselves, met for the first time, went to LugRadio Live and Linux Tag, moved to a dedicated server, failed several times, started to stream the recordings live, opened the Outlaw Archives, got into the Top 5 on Podcast Alley, had people cover our show’s theme music, recorded more than 100 shows, and most importantly, had a lot of fun in the process!

We now have consistently more than 6,500 downloads per episode and around 70-100 people watching the live stream each week. The forum has over 1,200 registered members and the official microblogging account (@linuxoutlaws) has more than 1,000 followers on Twitter and more than 500 on identi.ca. Pretty amazing for a little project that started as a crazy, random idea that neither of us thought would go anywhere, huh? But the best news of all: We still love doing the show every week and have no intention to stop doing it. So here’s to more fail-laden Linux reporting, crazy jokes, laugh-out-loud moments, Microsoft-bashing and weird music in the third year of the improbable, non-localised podcasting phenomenon that is Linux Outlaws!