Blog

03/06/2019

How to install Spotify application on Linux



How do I install Spotify app on Ubuntu Linux desktop to stream music?

Spotify is a digital music stream service that provides you access to tons of songs. You can stream for free or buy a subscription. Creating a playlist is possible. A subscriber can listen music ad-free. You get better sound quality. This page shows how to install Spotify on Linux using a snap package manager that works on Ubuntu, Mint, Debian, Fedora, Arch and many other distros.

Installing spotify application on Linux

kbd { display: inline-block; margin: 0 .1em; padding: .1em .6em; font-family: Arial,”Helvetica Neue”,Helvetica,sans-serif; font-size: 11px; line-height: 1.4; color: #242729; text-shadow: 0 1px 0 #FFF; background-color: #e1e3e5; border: 1px solid #adb3b9; border-radius: 3px; box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset; white-space: nowrap;}

The procedure to install spotify on Linux is as follows:

  1. Install snapd
  2. Turn on snapd
  3. Find Spotify snap:
    snap find spotify
  4. Install spotify music app:
    sudo snap install spotify
  5. Run it:
    spotify &

Let us see all steps and examples in details.

Step 1 – Install Snapd

You need to install snapd package. It is daemon (service) and tooling that enable snap packages on Linux operating system.

Snapd on a Debian/Ubuntu/Mint Linux

Type the following apt command/apt-get command as follows:
$ sudo apt install snapd

Install snapd on an Arch Linux

snapd is available in the Arch User Repository (AUR) only. Run yaourt command (see how to install yaourt on Archlinux):
$ sudo yaourt -S snapd
$ sudo systemctl enable --now snapd.socket

Get snapd on a Fedora Linux

Run snapd command
sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap

OpenSUSE install snapd

Execute the zypper command as follows:
### Tumbleweed verson ###
$ sudo zypper addrepo http://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed/ snappy
### Leap version ##
$ sudo zypper addrepo http://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.3/ snappy

Install it:
$ sudo zypper install snapd
$ sudo systemctl enable --now snapd.socket

Step 2 – Install Spofity app on Linux using snap

Run the snap command:
$ snap find spotify

Install it:
$ sudo snap install spotify

Step 3 – Run spotify and enjoy it

Run it from GUI or simply type:
$ spotify
Automatically sign in to your account on startup:
$ spotify --username vivek@nixcraft.com
$ spotify --username vivek@nixcraft.com --password 'myPasswordHere'

Start spotify client with given URI when initialized:
$ spotify--uri=<uri>
Start with the specified URL:
$ spotify--url=<url>

How to delete spotify app

If you do not like it the app, you can delete it by typing the following command:
$ sudo snap remove spotify
By default all the snap revisions are removed, including their data and the common data directory.For info see:

This entry is 1 of 3 in the Snapcraft Tutorial series. Keep reading the rest of the series:
  1. How to install Spotify application on Linux
  2. How to install Skype application on Linux
  3. How to install VLC 3 application (Vetinari) on Linux

(adsbygoogle = window.adsbygoogle || []).push({});

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...