From e6c20159702c7494d6f318a07835fdcec2d09a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kr=C3=A1tk=C3=BD?= Date: Wed, 3 Jan 2018 17:44:22 +0100 Subject: [PATCH] Fix 'Spotify' topic. --- _topic_map.yml | 4 +- en-US/installing-spotify.adoc | 5 ++ .../proc_installing-spotify-on-fedora.adoc} | 49 ++++++++++--------- 3 files changed, 32 insertions(+), 26 deletions(-) create mode 100644 en-US/installing-spotify.adoc rename en-US/{procedures/spotify.adoc => modules/proc_installing-spotify-on-fedora.adoc} (61%) diff --git a/_topic_map.yml b/_topic_map.yml index c215eb1..5614eac 100644 --- a/_topic_map.yml +++ b/_topic_map.yml @@ -18,6 +18,8 @@ Topics: File: fedora-and-red-hat-enterprise-linux - Name: Performing administration tasks using sudo File: performing-administration-tasks-using-sudo + - Name: Installing Spotify + File: installing-spotify - Name: (FIX ME!) Third party repositories File: 3rd-party-repos - Name: (FIX ME!) Anaconda @@ -92,8 +94,6 @@ Topics: File: repositories - Name: (FIX ME!) How to reset a root password File: reset-root-password - - Name: (FIX ME!) Spotify - File: spotify - Name: (FIX ME!) Switching Desktop Environments File: switch-desktop-env - Name: (FIX ME!) Systemd diff --git a/en-US/installing-spotify.adoc b/en-US/installing-spotify.adoc new file mode 100644 index 0000000..6035525 --- /dev/null +++ b/en-US/installing-spotify.adoc @@ -0,0 +1,5 @@ += Installing Spotify + +Installing the Spotify music service client on Fedora. + +include::modules/proc_installing-spotify-on-fedora.adoc[leveloffset=+1] diff --git a/en-US/procedures/spotify.adoc b/en-US/modules/proc_installing-spotify-on-fedora.adoc similarity index 61% rename from en-US/procedures/spotify.adoc rename to en-US/modules/proc_installing-spotify-on-fedora.adoc index 5d5cece..b0129cf 100644 --- a/en-US/procedures/spotify.adoc +++ b/en-US/modules/proc_installing-spotify-on-fedora.adoc @@ -1,15 +1,20 @@ -== Installing Spotify on Fedora -link:https://www.spotify.com/[Spotify] is a cross-platform proprietary music streaming service. Spotify is a freemium service, with advertisements which can be removed by purchasing a subscription. -Although Spotify is not officially supported on Fedora it can be installed on Fedora by: +[id='proc_installing-spotify-on-fedora'] += Installing Spotify on Fedora -* Using unofficial repositories such as xref:install-spotify-using-negativo17[Negativo17] and xref:install-spotify-using-rpmfusion[RPMFusion]. +link:https://www.spotify.com/[Spotify] is a cross-platform proprietary music streaming service. Spotify is a freemium service, with advertisements which can be removed by purchasing a subscription. Although Spotify is not officially supported on Fedora, it can be installed on Fedora by: + +* Using unofficial repositories, such as xref:install-spotify-using-negativo17[Negativo17] and xref:install-spotify-using-rpmfusion[RPMFusion]. * Using xref:install-spotify-using-flatpak[flatpak]. -=== Installing Spotify using third-party repositories +#FIXME: This needs to be further modularized# + + +== Installing Spotify using third-party repositories + [id='install-spotify-using-negativo17'] -==== Using the Negativo17.org repository -The Negativo17.org repository provides a link:https://negativo17.org/spotify-client/[Spotify client] which contains the following packages features: +=== Using the Negativo17.org repository +The Negativo17.org repository provides a link:https://negativo17.org/spotify-client/[Spotify client] which contains the following packaged features: * Libraries for enabling local files playback * File upload to personal playlists @@ -20,72 +25,68 @@ To install Spotify using the Negativo17.org repository: . Add the Negativo17.org repository: + -[source,bash] ---- -$ sudo dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo +# dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo ---- . Install Spotify: + -[source,bash] ---- -$ sudo dnf install spotify +# dnf install spotify ---- + [id='install-spotify-using-rpmfusion'] -==== Using the RPMFusion repository +=== Using the RPMFusion repository + RPMFusion provides software that the Fedora Project do not ship. That software is provided as precompiled RPMs for all current Fedora versions. To install Spotify using the RPMFusion repository: . Add the RPMFusion repository + -[source,bash] ---- -$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm +# dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ +https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm ---- . Install Spotify + -[source,bash] ---- -$ sudo dnf install spotify +# dnf install spotify ---- + [id='install-spotify-using-flatpak'] === Installing Spotify using Flatpak + To install Spotify using link:https://flatpak.org/index.html[Flatpak]: . Install Flatpak using dnf: + -[source,bash] ---- -$ sudo dnf install -y flatpak +# dnf install -y flatpak ---- . Install Spotify using Flatpak: + -[source,bash] ---- -$ sudo flatpak install -y --from https://flathub.org/repo/appstream/com.spotify.Client.flatpakref +# flatpak install -y --from https://flathub.org/repo/appstream/com.spotify.Client.flatpakref ---- . To run Spotify: + -[source,bash] ---- $ flatpak run com.spotify.Client ---- . (Optional) Add a menu shortcut for Spotify: + -[source,bash] ---- -sudo echo " +$ echo " [Desktop Entry] Name=Spotify Exec=flatpak run com.spotify.Client Icon=/var/lib/flatpak/exports/share/icons/hicolor/256x256/apps/com.spotify.Client.png Type=Application" > ~/.local/share/applications/Spotify.desktop - ----