Manjaro Difference between revisions of "Spotify"

Difference between revisions of "Spotify"

From Manjaro
imported>Woqer
(Marked this version for translation)
 
(21 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<languages/>
__TOC__
[[File:250px-Spotify.svg.png|center]]
[[File:250px-Spotify.svg.png|center]]
<translate>
<!--T:1-->
[http://en.wikipedia.org/wiki/Spotify Spotify] is a commercial music streaming service providing digital rights management-restricted content from record labels including Sony, EMI, Warner Music Group and Universal.


'''Spotify''' is a commercial music streaming service providing digital rights management-restricted content from record labels including Sony, EMI, Warner Music Group and Universal. Launched in October 2008 by Swedish startup Spotify AB, the service had approximately 10 million users as of 15 September 2010, about 2.5 million of whom were paying users. Total users reached 20 million by December 2012, 5 million of whom pay a monthly subscription fee that varies based on locale.
<!--T:2-->
Spotify operates under a freemium model (basic services are free, while additional features are offered via paid subscriptions). Spotify makes its revenues by selling premium streaming subscriptions to users and advertising placements to third parties.  


The system is currently available using Microsoft Windows, OS X, Linux, iOS, Android, BlackBerry, Windows Mobile, Windows Phone, S60 (Symbian), webOS, Samsung Smart TV, Squeezebox, Boxee, Sonos, WD TV, Roku, MeeGo, Telia Digital-tv, Openpandora and TiVo. As of December 2013 Spotify is not available in the Windows Store for Windows 8.


Music can be browsed by artist, album, record label, genre or playlist as well as by direct searches. On computers, a link allows the listener to purchase selected material via partner retailers.
=Installing Spotify= <!--T:3-->


A six-month free trial period is activated upon account registration or first login with a Facebook account, allowing the user to listen to an unlimited amount of music supported by visual and radio-style advertising. After the trial, Spotify has a listening limit of 10 hours per month, divided into 2.5-hour weekly portions (unused hours carry over). The only locations exempt from this rule are the United States, Hong Kong, Singapore, Malaysia, Australia and New Zealand where ad-supported unlimited streaming continues on Spotify Free. An "Unlimited" subscription removes advertisements and time limits and a "Premium" subscription introduces extra features such as higher bitrate streaming, offline access to music and mobile app access. Users can try Spotify Premium for 48 hours by logging into Spotify Mobile for the first time, or get a 30-day trial for their first month.[25] An active Facebook account is required to use Spotify if the user has signed up using Facebook, but as of 30 August 2012 the option to make a Spotify username was again offered. Subscriptions are restricted to people with credit/debit cards or PayPal accounts registered in certain countries. [http://en.wikipedia.org/wiki/Spotify]
<!--T:4-->
Spotify can be installed via a variety of methods based on your personal preferences.


{{note| '''You can install Spotify native application as Spotify Linux Preview or in Wine environment as Spotify client for Windows.'''}}


= Installing Spotify Linux Preview =
==Installing from the Arch User Respository(AUR)== <!--T:5-->


== NEW installation guide ==
<!--T:6-->
Spotify can be installed from the [[Arch User Repository|AUR]] using your favorite package manager or the command:
pamac build spotify


Install libgcrypt15 from AUR repositories, the official version in manjaro (update 2014-01-26) is 1.6, not compatible with spotify. We will need also some openssl package.


yaourt -S openssl098
==Installing as Flatpak Application== <!--T:7-->
yaourt -S libgcrypt15


Then install spotify from AUR and ffmpeg-compat (recommended dependency, needed for playing local files)
<!--T:8-->
If you have [[Flatpak|flatpak]] installed you can install Spotify with:
flatpak install spotify


yaourt -S spotify
sudo pacman -S ffmpeg-compat


Now we need to link some libraries
=Tips & Tricks= <!--T:11-->


sudo ln -s /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
sudo ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d
sudo ln -s /usr/lib/libsmime3.so /usr/lib/libsmime3.so.1d
sudo ln -s /usr/lib/libssl3.so /usr/lib/libssl3.so.1d
sudo ln -s /usr/lib/libplds4.so /usr/lib/libplds4.so.0d
sudo ln -s /usr/lib/libplc4.so /usr/lib/libplc4.so.0d
sudo ln -s /usr/lib/libnspr4.so /usr/lib/libnspr4.so.0d
sudo ln -s /usr/lib/libudev.so /usr/lib/libudev.so.0


And that's it! If you are using Xfce (it should work for other environments also), the way to configure media keys is via xfce shortcuts, using dbus commands (in order: play/pause, stop, next, previous)
==Manual configuration of media keys== <!--T:12-->


{{note|If your system does not detect the media keys, their names are (in order) XF86AudioPlay, XF86AudioStop, XF86AudioNext, XF86AudioPrevious}}
<!--T:13-->
If your system does not detect the media keys, their names are (in order) XF86AudioPlay, XF86AudioStop, XF86AudioNext, XF86AudioPrevious


  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
  <!--T:14-->
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
  dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous


== Old installation guide ==
{{note|Alternative install, is deprecated due to last manjaro update of libgcrypt. If your version of libgcrypt is bellow 1.6 you should use this guide}}
{{warning|if your version of libgcrypt is 1.6 or superior, DON'T USE this guide, instead read the NEW one}}
In a terminal, run the following command:
yaourt -S openssl098
{{warning|Before build '''spotify''' package manual edit PKGBUILD file and in line ''depends'' remove '''<code>"libgcrypt15"</code>'''.}}
yaourt -S spotify
{{note|KDE desktop does not require '''spotify-gnome-git''' package.}}
yaourt -S spotify-gnome-git
sudo ln -s /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
sudo ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d
sudo ln -s /usr/lib/libsmime3.so /usr/lib/libsmime3.so.1d
sudo ln -s /usr/lib/libssl3.so /usr/lib/libssl3.so.1d
sudo ln -s /usr/lib/libplds4.so /usr/lib/libplds4.so.0d
sudo ln -s /usr/lib/libplc4.so /usr/lib/libplc4.so.0d
sudo ln -s /usr/lib/libnspr4.so /usr/lib/libnspr4.so.0d
sudo ln -s /usr/lib/libudev.so /usr/lib/libudev.so.0
== Known Issues in Spotify Linux Preview ==


* Sometimes the Discover page does not show content. This is a known bug. The probable cause errors with open ssl.
==Opening Links from Spotify== <!--T:15-->
Spotify may fail to open links (e.g. for password reset or login via Facebook). To fix this, install '''xdg-desktop-portal-gtk''' via:
pamac install xdg-desktop-portal-gtk


= Installing lastest version Spotify Client for Windows in Wine =


'''Execute the actions in this order. DO NOT close the terminal window before doing all action.'''
== PGP signatures could not be verified == <!--T:16-->
Import the public key with
curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --import -
then  try installing it again
pamac build spotify


* Installing dependences and Wine application:
== Blank Spotify or x-window == <!--T:17-->
----
the error in the terminal should look like this
'''<code>yaourt -Sy wine q4wine wine-mono wine_gecko winetricks giflib libpng libldap gnutls lcms libxml2 mpg123 openal v4l-utils libpulse alsa-plugins alsa-lib libjpeg-turbo libxcomposite libxinerama ncurses lib32-ncurses libcl cups samba dosbox lib32-{giflib,libpng,libldap,gnutls,lcms,libxml2,mpg123,openal,v4l-utils,libpulse,alsa-plugins,alsa-lib,libjpeg-turbo,libxcomposite,libxinerama,ncurses,libcl} openssl098 </code>'''
"spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify)"
----
to fix this
* Configure Spotify installation directory.
  just delete the spotify folder in your /home/<yourusername>/.config/ directory


export WINEPREFIX="${HOME}/.spotify"
=See Also= <!--T:18-->
export WINEARCH="win32"
winecfg
 
* Click the Libraries tab, select riched20 and click Add. The default entry should read riched20 (native, builtin).
* Click Apply, then click OK.
* Manually close a Wine Configuration Window.
* Configure Wine environment with commands.
 
winetricks msxml6 corefonts
winetricks settings fontsmooth=rgb
 
* Download the lastest SpotifySetup.exe file
 
cd ~ && wget http://download.spotify.com/SpotifySetup.exe
 
* Install Spotify Client Application in Wine
 
wine SpotifySetup.exe
 
* Close a terminal window.
* Launch Spotify from Launcher Menu. Wait some time to load the application.
 
=Support=
 
Official forum topic: [http://forum.manjaro.org/index.php?topic=7467.0]
 
=See Also=


<!--T:19-->
[https://aur.archlinux.org/packages/spotify/ AUR:spotify]
[https://aur.archlinux.org/packages/spotify/ AUR:spotify]


[https://aur.archlinux.org/packages/libgcrypt15/ AUR:libgcryt15]
<!--T:20-->
 
[https://community.spotify.com/ The Spotify Community]
[https://aur.archlinux.org/packages/openssl098 AUR:openssl098]
</translate>
 
[https://aur.archlinux.org/packages/spotify-gnome-git/ AUR:spotify-gnome-git]
 
[http://spotify-forum.com/ The Spotify Community]


[[Category:Contents Page]]
[[Category:Contents Page{{#translation:}}]]

Latest revision as of 06:03, 6 February 2023

Other languages:
English • ‎русский • ‎עברית • ‎فارسی


250px-Spotify.svg.png

Spotify is a commercial music streaming service providing digital rights management-restricted content from record labels including Sony, EMI, Warner Music Group and Universal.

Spotify operates under a freemium model (basic services are free, while additional features are offered via paid subscriptions). Spotify makes its revenues by selling premium streaming subscriptions to users and advertising placements to third parties.


Installing Spotify

Spotify can be installed via a variety of methods based on your personal preferences.


Installing from the Arch User Respository(AUR)

Spotify can be installed from the AUR using your favorite package manager or the command:

pamac build spotify


Installing as Flatpak Application

If you have flatpak installed you can install Spotify with:

flatpak install spotify


Tips & Tricks

Manual configuration of media keys

If your system does not detect the media keys, their names are (in order) XF86AudioPlay, XF86AudioStop, XF86AudioNext, XF86AudioPrevious

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous


Opening Links from Spotify

Spotify may fail to open links (e.g. for password reset or login via Facebook). To fix this, install xdg-desktop-portal-gtk via:

pamac install xdg-desktop-portal-gtk


PGP signatures could not be verified

Import the public key with

curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --import -

then try installing it again

pamac build spotify

Blank Spotify or x-window

the error in the terminal should look like this

"spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify)"

to fix this

just delete the spotify folder in your /home/<yourusername>/.config/ directory

See Also

AUR:spotify

The Spotify Community

Cookies help us deliver our services. By using our services, you agree to our use of cookies.