Tuesday, February 22, 2011

Spotify

Installation

Download the windows installer off the spotify website

cd to your download directory

% WINEPREFIX=/foo/spotify wine /foo/Spotify\ Installer.exe

% emacs ~/spotify.sh
-----------------v---CUT---v------------------------
!/bin/sh

wine /foo/spotify/.wine/drive_c/Program\ Files/Spotify/spotify.exe

-----------------^---CUT---^------------------------

% chmod +x spotify.sh

We now want to make sure local mp3 files will play:

% su
# wget http://blog.mrfjo.org/winemp3.acm.so -O /usr/lib/wine/winemp3.acm.so

This will grab an MP3 decoder that actually works and overwrite the other one. If you do not want it to overwrite, then first rename the file:

# mv /usr/lib/wine/winemp3.acm.so /usr/lib/wine/winemp3.acm.so.old

# exit

to start spotify you have two options, command line:

% ./spotify.sh &

or you can do what I did and create a quicklaunch and place it in your dock or wherever you want it. I will not go over this since every WM is different. Consult your WM on how to do this. (KDE, XFCE, FLUXBOX...)