2010-01-29, 14:58
How to install SpotyXBMC on XBMClive 9.11 32bit.
Update: GMT+1 15:54: I've gotten time to properly test it, and it's an amazing plugin/app. No bugs encountered so far.
1. Boot your XBMC computer, and log on to it’s terminal. I used putty:
Login with your username and password, should be user: xbmc pass: xbmc
2. Start by downloading the archives you need:
3. Unpack the archives:
tar zxvf libspotify-0.0.3-linux6-i686.tar.gz
tar zxvf alpha009_ubuntu32.tar.gz
4. Install libspotify:
cd libspotify-0.0.3-linux6-i686
sudo make install prefix=/usr/
When install is complete, type command “cd ..” and press enter.
5. Copy the Spotify logo to the correct folder:
sudo cp spotify_core_logo.png /usr/share/xbmc/media/
6. Create advancedsettings.xml:
sudo nano advancedsettings.xml
When the file editor opens, paste the following text (remember to change user/pass):
<advancedsettings>
<spotify>
<enable>true</enable>
<username>your user name</username>
<password>your password</password>
<cachefolder>~/.xbmc/spotifytemp/</cachefolder>
<maxsearchartists>30</maxsearchartists>
<maxsearchalbums>30</maxsearchalbums>
<maxsearchtracks>150</maxsearchtracks>
</spotify>
</advancedsettings>
Once you have pasted, press CTRL+O to write the changes, and then CTRL+X to close the file.
7. Copy the advancedsettings.xml file to the correct folder:
cp advancedsettings.xml /home/xbmc/.xbmc/userdata/
8. Rename xbmc.bin from the alpha009 archive, and copy it to the right folder:
sudo mv xbmc.bin xbmcnew.bin
sudo cp xbmcnew.bin /usr/share/xbmc/
9. Rename original xbmc.bin to something else, so that we can use the new bin we just moved:
cd /usr/share/xbmc/
Type command “ls” just to check if old .bin and new .bin is there, it should look like this:
(Click for larger image)
If both files are there, proceed.
10. Rename the original xbmc.bin:
sudo mv xbmc.bin xbmcold.bin
11. Replace with modified bin from Alpha009 archive:
sudo mv xbmcnew.bin xbmc.bin
sudo chmod +x xbmc.bin
When that is done, you would want to reboot the machine.
sudo reboot
After the reboot, just go to music -> library. And select spotify.
NOTE: The "library" option did not show up on my computer. That's because I didn't have a music library. Added some albums to a share, set content - and voilà. I could select library and spotify from the music menu.
Hope this guide is useful to you! :-)
Update: GMT+1 15:54: I've gotten time to properly test it, and it's an amazing plugin/app. No bugs encountered so far.
1. Boot your XBMC computer, and log on to it’s terminal. I used putty:
Login with your username and password, should be user: xbmc pass: xbmc
2. Start by downloading the archives you need:
Code:
sudo wget http://developer.spotify.com/download/libspotify/libspotify-0.0.3-linux6-i686.tar.gz
sudo wget http://cloud.github.com/downloads/akezeke/spotyxbmc/alpha009_ubuntu32.tar.gz
3. Unpack the archives:
tar zxvf libspotify-0.0.3-linux6-i686.tar.gz
tar zxvf alpha009_ubuntu32.tar.gz
4. Install libspotify:
cd libspotify-0.0.3-linux6-i686
sudo make install prefix=/usr/
When install is complete, type command “cd ..” and press enter.
5. Copy the Spotify logo to the correct folder:
sudo cp spotify_core_logo.png /usr/share/xbmc/media/
6. Create advancedsettings.xml:
sudo nano advancedsettings.xml
When the file editor opens, paste the following text (remember to change user/pass):
<advancedsettings>
<spotify>
<enable>true</enable>
<username>your user name</username>
<password>your password</password>
<cachefolder>~/.xbmc/spotifytemp/</cachefolder>
<maxsearchartists>30</maxsearchartists>
<maxsearchalbums>30</maxsearchalbums>
<maxsearchtracks>150</maxsearchtracks>
</spotify>
</advancedsettings>
Once you have pasted, press CTRL+O to write the changes, and then CTRL+X to close the file.
7. Copy the advancedsettings.xml file to the correct folder:
cp advancedsettings.xml /home/xbmc/.xbmc/userdata/
8. Rename xbmc.bin from the alpha009 archive, and copy it to the right folder:
sudo mv xbmc.bin xbmcnew.bin
sudo cp xbmcnew.bin /usr/share/xbmc/
9. Rename original xbmc.bin to something else, so that we can use the new bin we just moved:
cd /usr/share/xbmc/
Type command “ls” just to check if old .bin and new .bin is there, it should look like this:
(Click for larger image)
If both files are there, proceed.
10. Rename the original xbmc.bin:
sudo mv xbmc.bin xbmcold.bin
11. Replace with modified bin from Alpha009 archive:
sudo mv xbmcnew.bin xbmc.bin
sudo chmod +x xbmc.bin
When that is done, you would want to reboot the machine.
sudo reboot
After the reboot, just go to music -> library. And select spotify.
NOTE: The "library" option did not show up on my computer. That's because I didn't have a music library. Added some albums to a share, set content - and voilà. I could select library and spotify from the music menu.
Hope this guide is useful to you! :-)