<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>The Ignition Project: Spotify on Linux: Easy Edition</title>
    <link>http://www.ignition-project.com/articles/2011/08/04/spotify-on-linux-easy-edition</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Open Source Collaboration Solutions</description>
    <item>
      <title>Spotify on Linux: Easy Edition</title>
      <description>&lt;p&gt;Here&amp;#8217;s a script I just wrote that installs Spotify on Linux with Wine. Works great with Wine 1.3.24 on Gentoo Linux x86_64 with PulseAudio (which works great and isn&amp;#8217;t choppy or anything).&lt;/p&gt;

&lt;p&gt;P.S. In the Spotify installer, don&amp;#8217;t tell it to start when done.&lt;/p&gt;

&lt;pre&gt;
#!/bin/sh

# Download spotify and winetricks
wget http://download.spotify.com/Spotify%20Installer.exe -O /tmp/spotify.exe
wget http://winetricks.org/winetricks -O /tmp/winetricks
chmod +x /tmp/winetricks

# Configure $WINEPREFIX
export WINEPREFIX="$HOME/.wine-spotify"
wineboot

# Set some various registry keys (Spotify recommends you use 44100/Emulation)
wine reg add HKEY_CURRENT_USER\\Software\\Wine\\Drivers /v Audio /t REG_SZ /d pulse /f
wine reg add HKEY_CURRENT_USER\\Software\\Wine\\DirectSound /v DefaultSampleRate /t REG_SZ /d 44100 /f
wine reg add HKEY_CURRENT_USER\\Software\\Wine\\DirectSound /v HardwareAcceleration /t REG_SZ /d Emulation /f

# Install some required packages (IE6 may provide WinInet, if so then it's safe to remove that)
/tmp/winetricks wininet ie6 corefonts tahoma winhttp wmp10 secur32

# Copy the WMP10 MP3 decoder on top of Wine's, tell Wine to use it instead.
cp -fv $WINEPREFIX/drive_c/windows/system32/l3codecp.acm $WINEPREFIX/drive_c/windows/system32/winemp3.acm
wine reg add HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides /v winemp3.acm /t REG_SZ /d native,builtin /f

# Install Spotify.
wine /tmp/spotify.exe

# Remove temporary files
rm /tmp/spotify.exe
rm /tmp/winetricks
&lt;/pre&gt;</description>
      <pubDate>Thu, 04 Aug 2011 22:50:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:b3edae28-4381-4d04-a00e-26361570d31f</guid>
      <author>Keith Gable</author>
      <link>http://www.ignition-project.com/articles/2011/08/04/spotify-on-linux-easy-edition</link>
      <category>Howto</category>
      <category>Linux</category>
      <category>wine</category>
      <category>bash</category>
      <category>script</category>
      <category>spotify</category>
    </item>
  </channel>
</rss>

