Linux中國

如何在 Linux 上使用 snap 安裝 Spotify(聲破天)

如何在 Ubuntu Linux 桌面上安裝 spotify 來在線聽音樂?

Spotify 是一個可讓你訪問大量歌曲的數字音樂流服務。你可以免費收聽或者購買訂閱,可以創建播放列表。訂閱用戶可以免廣告收聽音樂,你會得到更好的音質。本教程展示如何使用在 Ubuntu、Mint、Debian、Fedora、Arch 和其他更多發行版上的 snap 包管理器安裝 Spotify

在 Linux 上安裝 spotify

在 Linux 上安裝 spotify 的步驟如下:

  1. 安裝 snapd
  2. 打開 snapd
  3. 找到 Spotify snap:snap find spotify
  4. 安裝 spotify:sudo snap install spotify
  5. 運行:spotify &

讓我們詳細看看所有的步驟和例子。

步驟 1 - 安裝 snapd

你需要安裝 snapd 包。它是一個守護進程(服務),並能在 Linux 系統上啟用 snap 包管理。

Debian/Ubuntu/Mint Linux 上的 snapd

輸入以下 [apt 命令](https://www.cyberciti.biz/faq/ubuntu-lts-debian-linux-apt-command-examples/ "See Linux/Unix apt command examples for more info")/ [apt-get 命令](https://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html "See Linux/Unix apt-get command examples for more info"):

$ sudo apt install snapd

在 Arch Linux 上安裝 snapd

snapd 只包含在 Arch User Repository(AUR)中。運行 yaourt 命令(參見如何在 Archlinux 上安裝 yaourt):

$ sudo yaourt -S snapd
$ sudo systemctl enable --now snapd.socket

在 Fedora 上獲取 snapd

運行 snapd 命令:

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

OpenSUSE 安裝 snapd

執行如下的 zypper 命令:

### 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

安裝:

$ sudo zypper install snapd
$ sudo systemctl enable --now snapd.socket

步驟 2 - 在 Linux 上使用 snap 安裝 spofity

執行 snap 命令:

$ snap find spotify

snap search for spotify app command

安裝它:

$ sudo snap install spotify

How to install Spotify application on Linux using snap command

步驟 3 - 運行 spotify 並享受它

從 GUI 運行它,或者只需輸入:

$ spotify

在啟動時自動登錄你的帳戶:

$ spotify --username vivek@nixcraft.com
$ spotify --username vivek@nixcraft.com --password 'myPasswordHere'

在初始化時使用給定的 URI 啟動 Spotify 客戶端:

$ spotify --uri=<uri>

以指定的網址啟動:

$ spotify --url=<url>

Spotify client app running on my Ubuntu Linux desktop

關於作者

作者是 nixCraft 的創建者,是經驗豐富的系統管理員,也是 Linux 操作系統/Unix shell 腳本的培訓師。他曾與全球客戶以及 IT、教育、國防和太空研究以及非營利部門等多個行業合作。在 TwitterFacebookGoogle + 上關注他。

via: https://www.cyberciti.biz/faq/how-to-install-spotify-application-on-linux/

作者:Vivek Gite 譯者:geekpi 校對:wxy

本文由 LCTT 原創編譯,Linux中國 榮譽推出


本文轉載來自 Linux 中國: https://github.com/Linux-CN/archive

對這篇文章感覺如何?

太棒了
0
不錯
0
愛死了
0
不太好
0
感覺很糟
0
雨落清風。心向陽

    You may also like

    Leave a reply

    您的電子郵箱地址不會被公開。 必填項已用 * 標註

    此站點使用Akismet來減少垃圾評論。了解我們如何處理您的評論數據

    More in:Linux中國

    Linux中國

    DevOps 將去向何方?

    微軟、谷歌、亞馬遜、IBM 和甲骨文如今都在關注云上的 DevOps。這些大公司正在給企業提供 IT 自動化的服務。然而,DevOps 仍然在持續的演進中。DevSecOps、AIOps 和 NoOps 正在成為下一個流行詞。