Spotify: Difference between revisions

imported>PatrickMalolepszy
Add details on how to install the actual spotify app, not just spotify deamon.
DoggoBit (talk | contribs)
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Spotify ==
{{tip/unfree}}


{{note|Spotify is [[FAQ/unfree|unfree]], its license prohibits distribution. See the [[FAQ/unfree]] page to install unfree software.}}
[https://spotify.com Spotify] is a commercial music streaming service.


=== Installation ===
== Installation ==


To install the standard Spotify desktop application, add to system packages:
To install the standard Spotify desktop application, add to system packages:
Line 11: Line 11:
   ];
   ];


=== Local discovery ===
== Local discovery ==
To sync local tracks from your filesystem with mobile devices in the same network, you need to open port 57621 by adding the following line to your configuration.nix:
To sync local tracks from your filesystem with mobile devices in the same network, you need to open port 57621 by adding the following line to your configuration.nix:
<syntaxhighlight lang=nix>
<syntaxhighlight lang=nix>
networking.firewall.allowedTCPPorts = [ 57621 ];</syntaxhighlight>
networking.firewall.allowedTCPPorts = [ 57621 ];</syntaxhighlight>


=== spotifyd ===
In order to enable discovery of Google Cast devices (and possibly other Spotify Connect devices) in the same network by the Spotify app, you need to open UDP port 5353 by adding the following line to your configuration.nix:
<syntaxhighlight lang=nix>
networking.firewall.allowedUDPPorts = [ 5353 ];</syntaxhighlight>
 
== Spotifyd ==
The alternative client [https://github.com/Spotifyd/spotifyd spotifyd] is available as a package, [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/spotifyd.nix nixos module], and [https://github.com/nix-community/home-manager/blob/master/modules/services/spotifyd.nix home-manager module].
The alternative client [https://github.com/Spotifyd/spotifyd spotifyd] is available as a package, [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/spotifyd.nix nixos module], and [https://github.com/nix-community/home-manager/blob/master/modules/services/spotifyd.nix home-manager module].


Line 38: Line 42:


spotifyd connects to spotify as a spotify-connect device. It offers no controls of its own, but can be controlled via [https://github.com/altdesktop/playerctl playerctl]  or [https://github.com/Rigellute/spotify-tui spotify-tui].
spotifyd connects to spotify as a spotify-connect device. It offers no controls of its own, but can be controlled via [https://github.com/altdesktop/playerctl playerctl]  or [https://github.com/Rigellute/spotify-tui spotify-tui].
=== Troubleshooting ===
If you get: <code>libcurl-gnutls.so.4: no version information</code>, clear your Spotify cache: <code>rm -rf ~/.cache/spotify</code>
[[Category:Applications]]