Newspeak

October 28, 2005

Last.fm Ubuntu package

Filed under: music, tech — Stephen Paulger @ 12:11 am

I have created an Ubuntu package of Last.fm Player 1.0.5 (2.7 Mb). It also adds a Gnome menu icon in the ‘Sound & Video’ submenu (Thanks to Mr_T for help with that). If you don’t know Last.fm you should check it out, same goes for Ubuntu.

If you have any suggestions on things that need to go in the package let me know. I’ll try to keep an up to date Ubuntu package on the site from now on.

7 Comments »

  1. I tried installing your package, but I can’t seem to hear any sound. I’m suspecting that its because I use Kubuntu, and this package was made for Gnome, so you specified the use of esd instead of arts. Am I right? And if not, do you have any ideas what actually is wrong?

    Comment by Amol — October 29, 2005 @ 2:36 am

  2. I haven’t set anything up related to the sound. For KDE users there is really no advantage in installing the package over what is available from the Last.fm site. I am actually using ALSA. As I don’t know much about how sounds works in linux your best bet is getting help from the Last.fm forum for the player.

    I did have a similar problem before when I used esd and it seems to be common with the Last.fm player, one thread suggests that running the player with the artsdsp command helps.

    If you want to do that after installing the package modify the /usr/bin/lastfm file. Change the second line to “artsdsp /opt/lastfm/player”.

    If that works please let me know.

    Comment by Stephen Paulger — October 29, 2005 @ 3:26 am

  3. yeah, artsdsp did the trick. and yeah, I realize there’s no real performance advantage in installing the package, I just like having all my programs go through apt.

    Comment by Amol — October 29, 2005 @ 4:17 pm

  4. i don’t figure out how to make lastfm player work with an argument given (lastfm://somemusic) but when i will, you can add a gnome protocol handler for lastfm:// this way:

    # gconftool-2 -t string -s /desktop/gnome/url-handlers/lastfm/command “/usr/bin/lastfm %s”

    # gconftool-2 -t bool -s /desktop/gnome/url-handlers/lastfm/needs_terminal false

    # gconftool-2 -t bool -s /desktop/gnome/url-handlers/lastfm/enabled true

    then, clicking on a lastfm link will popup lastfm from your epiphny browser.

    Comment by ben — November 16, 2005 @ 12:10 am

  5. i made 2 mistakes in my previous comment:
    - first, the url_handler must not be /usr/bin/lastfm but /opt/lastfm/player

    - second, the gconftool-2 commands i gave were for “user” configuration, not system-wide configuration.

    So, during the installation of the ubuntu/debian package, you can add
    (as root) those commands for gnome:

    # killall gconfd-2

    # gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –type string –set /desktop/gnome/url-handlers/lastfm/command “/opt/lastfm/player %s”

    # gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –type bool –set /desktop/gnome/url-handlers/lastfm/enabled true

    # gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –type bool –set /desktop/gnome/url-handlers/lastfm/needs_terminal false

    And this works: you can click on a lastfm link on your gnome browser and it launches the lastfm player with the url as argument.

    but this give not a gconf schema for lastfm, so this is not completely perfect.

    Comment by ben — November 16, 2005 @ 5:49 am

  6. Paul Telford, a debian maintainer, has made recent (unofficial yet) packages of last.fm player for both debian and ubuntu linux. check them at:
    http://people.debian.org/~pxt/lastfm/

    Comment by ben — January 18, 2006 @ 10:21 pm

  7. Hey- thanks a lot for this.

    I am a linux newb. I just repartitioned and reinstalled XP and installed ubutnu last night.
    As I was setting up all my XP prefs (dragging my Application Data dir from a backup HD back onto the OS HD ;) ) listening to last.fm I thought to myself “Self, if I could find last.fm for ubuntu, I would totally kick the MS habit.”

    Needless to say, the only reason to boot ‘doze now is if I am too happy and need to feel less good.

    Thanks again.

    Comment by Roger L. Waggener — July 11, 2006 @ 5:28 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress