Technitribe

interesting problems (and a few solutions, too)

Technitribe
  • About the Authors
  • Log In
  • Log Out
  • Lost Password
  • Register
  • Reset Password
    • 12 Oct 2012

      Running despotify on Fedora 17 x64

      Written by Tim Bielawa

      Spotify is pretty damn cool. I think we can all agree on this. What’s even cooler (if you’re an Open Source/Linux geek) is running a third-party ncurses client to connect to Spotify. Here’s what I had to do on Fedora 17 (64 bit).

      1. Install the necessary packages to checkout and build the application
        1. Per the Open Grieves instructions, install the following packages: subversion libtool libogg-devel libvorbis-devel pulseaudio-libs pulseaudio-libs-devel zlib-devel gstreamer-devel libao-devel openssl-devel ncurses-devel
      2. Checkout the despotify source code from SVN
        1. svn co https://despotify.svn.sourceforge.net/svnroot/despotify despotify
      3. Move into the despotify/srcdirectory
        1. cd despotify/src
      4. Build and install the application
        1. make
        2. sudo make install
      5. Because we’re specifically talking about an x64 installation we need to fix how libdespotify.so.0 got installed. Now, I’m sure there’s a more intelligent way to do this (please tell me if you know by commenting on this blog post, or hit me up on twitter: @tbielawa), but lacking the necessary knowledge, I opted use symbolic links (note: this fixes the “despotify: error while loading shared libraries: libdespotify.so.0:" cannot openerror message you may be seeing)
        1. cd /usr/lib64
        2. sudo ln -s ../lib/libdespotify.so.0
      6. Run the application (protip: Press the “?” key to see a list of shortcuts. ctrl+e is a shortcut for :connect)
        1. despotify
      7. If you try and log in now you’re most likely going to receive a “User not found” error message. Per the information in this thread on the archlinux forumsI did the following:
        1. Logged into the Spotify web interface
        2. Went into the “Edit Profile” page
        3. Went to the “Set a password for your devices” page
        4. This page will give you a number you will use as your despotify user name, save it somewhere for the next step. Click the link/button to receive an email which allows you to set the password for this account
        5. Read said email, click link in email, set “device” account password
      8. Now, using the account credentials created in the last step, you can log into the despotify application

      That’s everything I had to do. So, is it worth it? No. Not really. But it was a fun little experiment/challenge.

      The interface is immature, at best. It’s lacking most/all of the functionality I really enjoy in the official Spotify client, such as creating and listening to artist/song based radios, receiving/sending music suggestions to friends, Starring songs for offline listening later, etc…

      What you can do is search for artists/tracks and play the results, and, impress your friends? I guess. (probably not though)

      • Tags »
      • 64 bit despotify fedora 17 Linux spotify

    2 Comment on “Running despotify on Fedora 17 x64”

    • David S.

      06 Nov 2012 06:11 pm

      Hi,

      thanks for assembling such a helpfull guide.
      The problem with the libdespotify.so.0 bothered me as well.
      But, shouldn’t “1. cd /usr/lib” at your step 5 be “1. cd /usr/lib64/” so you make a symbolic link into the lib64 folder? At least that worked for me. 😉

      Cheers,
      David

    • Tim Bielawa

      06 Nov 2012 10:11 pm

      Good catch. Fixed that for ya!

      Glad the post helped you out, and thanks for the comment!

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    • The Authors
    • Virtual Disk Guide

      Interested in virtualization? Do QCOWs rule your filesystem? Are you a libvirt or KVM+QEMU wizard? I wrote a book about virtual disk management. Check out the The Linux Sysadmin's Guide to Virtual Disks online for free at ScribesGuides.com.


      Consider supporting the author by purchasing a hard copy of the first edition for just $10.00 on Lulu.com.

    • bitmath

      bitmath is a Python library for dealing with file size units (GiB's, kB's, etc) in a sane way. bitmath supports arithmetic, rich comparison, conversion, automatic best human-readable representation, and many other utility functions. Read some examples on the docs site or check out the source on GitHub.

    • latest posts

      • Querying block device sizes in Python on Linux and Mac OS X February 4, 2023
      • Using jq to filter an array of objects from JSON September 9, 2019
      • Two Year Break — And we’re back! November 16, 2018
    • tags

      bitmath blog conference css dblatex DNS DocBook eclipse Emacs Erlang Fedora fedora 22 filter GNU Screen Haiku Introduction java jboss LCSEE Linux locale locales fix slicehost ubuntu Macports module nist nXML-Mode opengl open source OS X package packaging pki prefix units presentation project pypi Python scholarship si summit Tutorial ubuntu xcode XML XMPP
    • h4ck teh world

      tbielawatbielawa
      • Issue Comment
        bitmath
        February 6, 2023 - 12:55 am UTC
      • Issue Comment
        bitmath
        February 6, 2023 - 12:54 am UTC
      • Push
        bitmath
        February 6, 2023 - 12:51 am UTC
      • Issue Comment
        bitmath
        February 6, 2023 - 12:36 am UTC
      • Push
        bitmath
        February 6, 2023 - 12:30 am UTC

Creative Commons License
Technitribe by Tim Bielawa is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.