Differences between revisions 25 and 40 (spanning 15 versions)
Revision 25 as of 2017-11-21 19:30:16
Size: 2585
Editor: ?Lysander
Comment: Updated keys, added information on dirmngr
Revision 40 as of 2022-09-28 02:27:08
Size: 3399
Editor: PaulWise
Comment: cleanup: use link, link the official instructions
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
||<tablestyle="width:100%; text-align: left" style="border:0">{{https://upload.wikimedia.org/wikipedia/commons/1/19/Spotify_logo_without_text.svg|Spotify logo|width=128}}||<style="border:0;vertical-align: middle;">'''Spotify''' is a digital music streaming service that gives you access to millions of songs, podcasts and videos from artists all over the world. There is also an online player on https://play.spotify.com/|| ||<tablestyle="width:100%; text-align: left" style="border:0">{{https://upload.wikimedia.org/wikipedia/commons/1/19/Spotify_logo_without_text.svg|Spotify logo|width=128}}||<style="border:0;vertical-align: middle;">'''Spotify''' is a digital music streaming service that gives you access to millions of songs, podcasts and videos from artists all over the world. There is also an [[https://open.spotify.com/|online player]] and [[https://www.spotify.com/download/linux/|official Linux install instructions]]. ||
Line 17: Line 17:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4773BD5E130D1D45
Line 47: Line 47:
'''dirmngr is installed in Buster'''

Line 49: Line 52:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/repository-spotify-com-keyring.gpg >/dev/null
Line 54: Line 57:
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list echo deb [signed-by=/usr/share/keyrings/repository-spotify-com-keyring.gpg] http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
Line 62: Line 65:
Download libssl1.0.0 package from https://packages.debian.org/jessie/libssl1.0.0 - as of the time of this writing Spotify has not been ported to newer versions of libssl so you will need to use the one available for Jessie.

Install the downloaded package (for example libssl1.0.0_1.0.2d-1_amd64.deb)
{{{
sudo apt install ./libssl1.0.0_1.0.2d-1_amd64.deb
}}}
Line 74: Line 70:
== Debian 12 "Bookworm" (testing) ==

{{{
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
wget -qO- https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo tee /etc/apt/trusted.gpg.d/spotify.asc
sudo apt update
sudo apt install spotify-client
}}}

= Tricks =

== Controlling playback using MPRIS D-Bus interface ==

On minimal systems it might be required to launch the desktop environment or window manager through {{{dbus-launch --exit-with-session}}} (provided by DebPkg:dbus-x11).

Typically you would edit {{{.xinitrc}}} from
{{{
exec openbox-session
}}}
to
{{{
exec dbus-launch --exit-with-session openbox-session
}}}

Spotify implements MPRIS interface so commands like these should work:

{{{
playerctl --player spotify play-pause
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
}}}

Translation(s): English - ?Français - Español - ?Italiano


Spotify logo

Spotify is a digital music streaming service that gives you access to millions of songs, podcasts and videos from artists all over the world. There is also an online player and official Linux install instructions.

Installing Spotify

Debian 8 "Jessie"

Using third-party repositories as recommended below is not supported by the Debian project and could break your system now or when you upgrade later. Use with caution at your own risk!

Add the Spotify repository signing key to be able to verify downloaded packages

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4773BD5E130D1D45

Add the Spotify repository

echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

Update list of available packages

sudo apt update

Install Spotify

sudo apt install spotify-client

Debian 9 "Stretch"

Using third-party repositories as recommended below is not supported by the Debian project and could break your system now or when you upgrade later. Use with caution at your own risk!

NB: You will need to install dirmngr if not already installed

sudo apt install dirmngr

dirmngr is installed in Buster

Add the Spotify repository signing key to be able to verify downloaded packages

curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/repository-spotify-com-keyring.gpg >/dev/null

Add the Spotify repository

echo deb [signed-by=/usr/share/keyrings/repository-spotify-com-keyring.gpg] http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

Update list of available packages

sudo apt update

Install Spotify

sudo apt install spotify-client

Debian 12 "Bookworm" (testing)

echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
wget -qO- https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo tee /etc/apt/trusted.gpg.d/spotify.asc
sudo apt update
sudo apt install spotify-client

Tricks

Controlling playback using MPRIS D-Bus interface

On minimal systems it might be required to launch the desktop environment or window manager through dbus-launch --exit-with-session (provided by dbus-x11).

Typically you would edit .xinitrc from

exec openbox-session

to

exec dbus-launch --exit-with-session openbox-session

Spotify implements MPRIS interface so commands like these should work:

playerctl --player spotify play-pause
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause


CategoryProprietarySoftware