I found it really painful that I could not run the Spotify Linux client natively on my Ubuntu box because I have a free Spotify account. I was recently told that I could try running it using Wine. For some reason, I have never really given Wine much thought, but this was enough incentive for me to give it a shot.
It was not really straightforward, but the following worked for me:
- Install Wine: Open Synaptic package manager, and select Wine. Click apply.
- Open the “Configure Wine” feature. Click on the audio tab, and select OSS drivers. Set hardware acceleration to emulation. Keep the other default values. Click OK.
- Download the Spotify Windows Installer on to your local disk. Right click it, select the permissions tab, and select the “Allow executing file as program” checkbox.
- Right click the executable and select “Open with Wine….” option.
- After the installation, launch the client (it automatically launched for me).
- Try playing a song from your Spotify playlists. If it works, then you are golden, else look further.
- In my case, it reported to have a problem with my soundcard.
- For some reason, if I launch Spotify directly using Wine as wine “C:/users/kv/Application Data/Spotify/spotify.exe” (or whatever the executable path is on your machine”, it was not using the right audio drivers).
-
So I try using padsp, which is the PulseAudio OSS wrapper which I think came natively bundled on my Ubuntu box.padsp starts the specified program and redirects its access to OSS compatible audio devices (/dev/dsp and auxiliary devices) to a PulseAudio sound server (directly from the man page).
- Running it as padsp wine “C:/users/kv/Application Data/Spotify/spotify.exe” worked for me. Sound works without a hitch. I created a launcher on my desktop with the command above. Now I can run spotify on linux using wine with a double-click.