Insight: Install spotify in linux
Spotify is most popular music streaming service right now. In this tutorial, we will show you the method to install spotify in linux using snap. You can follow this tutorial to install spotify in Ubuntu, Debian and Fedora and it’s derivatives.
How to Install Spotify In Linux
At first let’s install snapd on debian, ubuntu and fedora before proceeding for spotify installation.
Install snapd on ubuntu/debian/linux mint
$ sudo apt install snapd
Follow the command below to install snapd on fedora.
sudo dnf install snapd sudo ln -s /var/lib/snapd/snap /snap
snap install spotify
Now, run spotify with the command below:
If you want to have auto login then you need to setup your account and password for auto login on PC startup.
$ spotify --username email@example.com $ spotify --username firstname.lastname@example.org --password 'myPasswordHere'
Alternative Method For Debian
Spotify for Linux is also available as a Debian package. To install spotify in debian based distros, simply use the following commands:
At first, add the spotify repository signing keys
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Now, 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-get update
And now it’s time to install spotify client
sudo apt-get install spotify-client