Page 1 of 1

[HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: May 1st, '16, 15:13
by morgano
For Spotify 1.x see next post

[HOW TO] install old Spotify 0.x (only 64 bit) on Mageia 6

As usual, Spotify 0.x can be installed using Leamas script, see notes in bottom of this post.
If you upgraded your system you probably need not reinstall.

HOWEVER Spotify (at least 0.9.x) need an old version of a lib; it need libgcrypt.so.11 (package lib64gcrypt11) that Mageia 6 do not have.
Like recent fedora and other distros, Cauldron (at least as of yet) but instead have libgcrypt.so.20 (package lib64gcrypt20)

First i tried simply linking like this
Code: Select all
§ su -
# cd ‎/usr/lib64
# ln -s libgcrypt.so.20 libgcrypt.so.11
but that did not work; starting Spotify from terminal it say:
Code: Select all
/lib64/libgcrypt.so.11: version `GCRYPT_1.2' not found (required by /home/kajsa/.local/lib/spotify-client/libcef.so)
So I undid that again.

Then i simply grabbed that file from my mga5 install and put it in mga6, and it just works
More precisely on a current mga5, /usr/lib64/libgcrypt.so.11 is a softlink to /usr/lib64/libgcrypt.so.11.8.3, which i copied and put in my mga6 as /usr/lib64/libgcrypt.so.11, making sure to have the correct ownership root:root and chmod 755.

Notes:
§ The system tray icon do not work properly, but that is still the state of several tray icons here...
§ Probably better to build/rebuild libgcrypt.so.11 for mga6 - this above is a "quick fix"
§ All above is for 64 bit system. 32 bits 0.x version was long ago. But 1.x exist for 32 bit, see below.
§ Spotify "offifcially" did not support Linux, but they release .deb packages for Debian and Ubuntu
§ I installed it using https://github.com/leamas/spotify-make which install these in Fedora, OpenSuse, Mageia...
Using Leamas-Spotify still today 2016-09-29 convert and install the old but golden spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb
Backup location 0.9.17.8: http://repository.spotify.com/pool/non-free/s/spotify/ (64 bit only)
§ Possible another installer in case leamas fail in future: https://github.com/aspiers/opensuse-spotify-installer/

HOW TO install current Spotify 1.x (test on Mageia 6 64bit)

PostPosted: Jun 29th, '16, 23:56
by morgano
§ Spotify Linux client is moving forward again: https://community.spotify.com/t5/Help-D ... -p/1300404
§ Spotify 1.x exist in both 64 and 32 bit versions, in http://repository.spotify.com/pool/non- ... fy-client/ but like before only .deb packages
§ A community issue tracking effort including tips on getting it working.
https://community.spotify.com/t5/Help-D ... -p/1192307

HOW TO install current Spotify 1.x:
1. From http://repository.spotify.com/pool/non- ... fy-client/ , retrieve a version for 32 or 64 bit depending on your arch ( I used spotify-client_1.0.32.96.g3c8a06e6-37_amd64.deb . I *guess* the latest version there is "testing" and the elder "stable".)
2. Made rpm of it using # alien -rv spotify-client_1.*
3. Installed it using # rpm -i --nodeps spotify-client*.rpm
4. start it using $ spotify (normal user) in terminal, so you can see output. (Yes there are much errors also when it runs OK. *IF* it dont work maybe you can see why. I e you may need to install the package libatomic1)
5. If it runs OK, close it and make shortcut :)

COMMENTS

a) I first had spotify 0.9.17 installed and running OK by leamas script as per post above.
This spotify 1.x then recognised all settings from that old version.

b) At 3 above i first tried
Code: Select all
# LC_ALL=C rpm -i *.rpm
error: Failed dependencies:
        libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit) is needed by spotify-client-1.0.32.96.g3c8a06e6-38.x86_64
        libcurl.so.4(CURL_OPENSSL_3)(64bit) is needed by spotify-client-1.0.32.96.g3c8a06e6-38.x86_64
        libssl.so.1.0.0(OPENSSL_1.0.0)(64bit) is needed by spotify-client-1.0.32.96.g3c8a06e6-38.x86_64

But we have all those *.so.* files, (in core packages lib64openssl1.0.0 and lib64curl4 installed by default)
- but it seem to think the parts like "(OPENSSL_1.0.0)(64bit)" are part of filenames ( bug of alien ? )

c) per this instruction Spotify is installed for all users (except program shortcut)

d) (the old .so file needed for old 0.x Spotifiy in first post in this thread is not needed for 1.x)

Odd Spotify notes

PostPosted: Jun 30th, '16, 01:05
by morgano
See links to forum etc in posts above

In case the player fouls up
One common trick is to clear cache ( rm -rf $HOME/.cache/spotify/Storage )

Web player
If everything else fails, there is now a web based player https://play.spotify.com/ - not as snappy as the native client of course.

Start link, Icon
spotify.desktop file is in /usr/share/spotify/
Icons are in /usr/share/spotify/icons

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 19th, '16, 23:57
by pete910
This has made my Daughter and Son happy, Thus making my like better ;)

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Sep 8th, '17, 13:38
by morgano
Updated info
Web player
is not working any more on several Linux systems. Not on my Mageia 6 in Chromium nor Firefox even when browser identifýing as Edge as some hint say. May be Flash related, viewtopic.php?f=7&t=11763 . If any get it working please update here.

The native player
seem to have lib incompatibility on Mageia 7 (Now Cauldron). https://github.com/leamas/spotify-make/issues/55 May be solved similar to in top post above.

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 17th, '17, 17:08
by pedro
I just installed mageia 6, and found your post on how to install Spotify.
Im following the second post "HOW TO install current Spotify 1.x:"
I downloaded "spotify-client_1.0.64.407.g9bd02c2d-26_amd64.deb", but I dont seem to have Alien on my system. How do I make a .rpm from the .deb?

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 17th, '17, 17:18
by pedro
Sorry! Just found out I had "Only packages with GUI" activated in the package installer :)

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 17th, '17, 18:26
by pedro
Works fine!

First when installing I got this, but after installing the lobatomic packages from the repo it works.
$ spotify
spotify: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

--

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 17th, '17, 18:27
by pedro
Thank you for sharing this tutorial!

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 25th, '17, 14:18
by ozky
Spotify is available as flatpak too to Mageia 6 and Cauldron.
https://flathub.org/apps.html
Install flatpak from Mageia repos first and then give this command as user to terminal,no any hacks are needed only one command.
Code: Select all
flatpak install --user --from https://flathub.org/repo/appstream/com.spotify.Client.flatpakref

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 26th, '17, 22:52
by pedro
ozky wrote:Spotify is available as flatpak too to Mageia 6 and Cauldron.
https://flathub.org/apps.html
Install flatpak from Mageia repos first and then give this command as user to terminal,no any hacks are needed only one command.
Code: Select all
flatpak install --user --from https://flathub.org/repo/appstream/com.spotify.Client.flatpakref


I tried this and it works!

Start Spotify with the command:
Code: Select all
flatpak run com.spotify.Client

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 27th, '17, 12:51
by ozky
You don't need to start it from terminal flatpak add desktop menu entry,but i noticed it will need logout and login then you can start it from menu.

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 27th, '17, 21:54
by pedro
ozky wrote:You don't need to start it from terminal flatpak add desktop menu entry,but i noticed it will need logout and login then you can start it from menu.


Yes I did that :)

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 28th, '17, 14:38
by morgano
Thank you for the updates on this subject :)
It is nice that there is flatpack now.

Re: [HOW TO] Spotify 0.x and 1.x on Mageia 6

PostPosted: Nov 28th, '17, 23:53
by ozky
You are welcome. :)