Overclock.net › Articles › Spotify On Fedora 16

Spotify On Fedora 16

Describe 'Spotify on Fedora 16' here

Preparation
This is not for the faint of heart. Make sure that you have root access (admin) and have a Spotify account already. Spotify also requires a Facebook account to link to.

Installation
The installation process is a little tedious - make sure you're careful and don't make any typos. You can copy from here, and paste commands into terminal. You can't use the CTRL+V shortcut inside of terminal, but you can go to the Edit menu and hit paste there. Let's get started.

Open up Terminal and enter the following commands:

sudo yum -y install perl-ExtUtils-MakeMaker gcc qt-webkit rpm-build git **Enter password when prompted
cd /tmp
sudo git clone git://git.kitenet.net/alien
cd alien
perl Makefile.PL; make; make install
Next, go to this url: http://repository.spotify.com/pool/non-free/s/spotify/. Copy the filename that ends in amd64.deb - you'll use it in the following steps. At the time of this writing, the file was called spotify-client-qt_0.6.6.10.gbd39032.58-1_amd64.deb, but it will change when spotify is updated. It is very important that you use the current version, as installing older versions may not work.

Back to Terminal:

sudo wget http://repository.spotify.com/pool/non-free/s/spotify/[filename]
sudo /usr/local/bin/alien --to-rpm [filename]
Now you need to change the end of the filename. Delete everything back to the version number, and change it to .x86_64.rpm. From our example file above:

Change spotify-client-qt_0.6.6.10.gbd39032.58-1_amd64.deb to spotify-client-qt_0.6.6.10.gbd39032.58-1.x86_64.rpm. Don't forget to remove the underscore before amd64

Terminal again:

sudo rpm -Uch --nodeps [new filename]
sudo ln -s /usr/lib64/libssl.so.1.0.0g /usr/lib64/libssl.so.0.9.8
sudo ln -s /lib64/libcrypto.so.1.0.0g /lib64/libcrypto.so.0.9.8
Ta-da, you did it! Spotify should now be installed.


Possible Post-Install Hiccups
I had an issue where Spotify ran up the first time without issue, but every time after that it would crash on startup. To remedy this problem if you have it:

Go back into terminal and enter:

sudo mv /usr/bin/spotify /usr/bin/spottify
**Enter password if prompted again
Next, you'll need to open and edit a file using gedit, or your favorite editor:

From terminal again:

sudo gedit /usr/bin/spotify
[/B]Paste the following into the window, and save the file:

#!/bin/bash
/bin/rm -rf ~/.cache/spotify
/usr/bin/spottify
Finally, in terminal again, run this command to make the file we just edited executable:

sudo chmod ugo+x /usr/bin/spotify
After that has been done, you should be able to launch Spotify by going to Applications > Spotify, or using the search to find it!

Comments (1)

Thanks for this, I did something similar earlier before Fedora 16 on arch linux and it worked like a charm
Overclock.net › Articles › Spotify On Fedora 16