在 Linux 上使用 Rhythmbox 听音乐
音乐
![](/data/attachment/album/202207/25/234644f4rgrx1vrpgfk86n.jpg)



> 
> 下面我将介绍我是如何在 Linux 的 GNOME 桌面上使用 Rhythmbox 听在线音乐和 MP3 列表的。
> 
> 
> 


对我来说，在完全安静的环境下工作是很困难的。我需要某种背景音，最好是一些熟悉的音乐。我在音乐上的需求很简单：我只需要一个音乐播放器，可以播放我的 MP3 音乐库和少数几个我喜欢的网站的在线音乐。


我在 Linux 上尝试了多个音乐播放器，最终我还是选择了 Rhythmbox。 Rhythmbox 是一个 GNOME 桌面音乐播放器。如果你的 Linux 发行版使用的是 GNOME 桌面，很可能已经安装了 Rhythmbox。它很简单，用来播放我本地的音乐库和广播网站的在线音乐。我很乐意在 Linux 上使用 Rhythmbox 收听在线音乐和我自己的音乐库。


### 在 Linux 上收听在线音乐


Rhythmbox 支持多个在线音乐服务商。如果你拥有一个 [Last.fm](http://Last.fm) 或者 [Libre.fm](http://Libre.fm) 的帐号，你可以点击左侧的标签登录。或者，你想收听在线广播，点击左侧的“<ruby> 广播 <rt>  Radio </rt></ruby>”标签，在预设的广播网站中选择一个。在我写代码的时候我通常喜欢听迷幻舞曲，HBR1 Tranceponder 是我最喜欢的一个在线广播网站。


![Streaming HBR1 Traceponder](/data/attachment/album/202207/25/234651q8h87gngmhgzn46g.png)


### 在 Linux 上播放我的音乐库


在过去的几年中，我收集了大量的 MP3 音乐。由于几年前 MP3 的专利在美国已经到期，它在 Linux 是一种很好用的开放的音乐格式。


我把我 20GB 的 MP3 音乐保存在我的主目录之外，在 `/usr/local/music` 。要把音乐导入 Rhythmbox，点击 “<ruby> 导入 <rt>  Import </rt></ruby>” 按钮，选择 `usr/local/music` 目录，或者任何你保存音乐的目录，让 Rhythmbox 去识别 MP3 音乐。结束以后点击 “<ruby> 导入列出的曲目 <rt>  Import listed tracks </rt></ruby>” 按钮导入就完成了。


![Use the Import button to add music to Rhythmbox](/data/attachment/album/202207/25/234651s0b3p3d7zrkb3353.png)


![Rhythmbox identifies new music files](/data/attachment/album/202207/25/234652kajlc4wmmll0lljj.png)


Rhythmbox 可以播放我的音乐，并通过类型，艺术家和专辑组织歌曲，所以我可以很容易找到我想听的音乐。


![Listening to a music library in Rhythmbox](/data/attachment/album/202207/25/234652nfi4fzbj4caaq04r.png)


### 旋律永存


我愿意在 Linux 上使用 Rhythmbox 作为我的音乐播放器，它是如此简洁，不会影响到我。而且听音乐可以帮我和谐掉日常的噪音，让我每一天都可以过的快一点。


*（文内图片来自 Jim Hall，CC BY SA）*




---


via: <https://opensource.com/article/22/7/listen-music-rhythmbox-linux>


作者：[Jim Hall](https://opensource.com/users/jim-hall) 选题：[lkxed](https://github.com/lkxed) 译者：[duoluoxiaosheng](https://github.com/duoluoxiaosheng) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
It's hard for me to work in total silence. I need some kind of background noise, preferably some familiar music. My music-listening needs are pretty simple: I just need a music player that plays my library of MP3 music and streams from a few websites I like to listen to.


I've tried a variety of music players on Linux, but I keep coming back to Rhythmbox. Rhythmbox is a music-playing application for GNOME. If your distribution uses GNOME, it probably also includes Rhythmbox. It's simple and plays my local music library as well as streams from internet radio websites. I like to listen to both streaming music and my own music library with Rhythmbox on Linux.

## Listen to streaming music on Linux

Rhythmbox supports listening to music from several streaming services. If you have a Last.fm or Libre.fm account, you can click the tab on the left to log in. Or, if you want to listen to streaming radio stations, click the Radio tab on the left to stream from one of the pre-configured internet radio websites.I usually like to listen to trance music while I'm writing code, and HBR1 Tranceponder is one of my favorite Internet radio stations:

![Streaming HBR1 Traceponder](https://opensource.com/sites/default/files/2022-07/rhythmbox-hbr1.png)

Streaming HBR1 Tranceponder in Rhythmbox (image: Jim Hall, license: CC BY SA)

## Listen to my music library on Linux

I've collected a large MP3 music library over the years. Since the MP3 patents expired in the US several years ago, it is an open music format that plays well with Linux.

I keep my 20-gigabyte MP3 music library outside my home directory, in `/usr/local/music`

. To import music into Rhythmbox, click the **Import** button, select the `/usr/local/music`

directory, or wherever you've saved your music library, and let Rhythmbox identify the MP3 music collection. When it's done, click the **Import listed tracks** button to complete the import process.

![Use the Import button to add music to Rhythmbox](https://opensource.com/sites/default/files/2022-07/rhythmbox-import1_0.png)

Rhythmbox starts with an empty music library. Click the Import button to add music to your library. (Jim Hall, CC BY SA)

![Rhythmbox identifies new music files](https://opensource.com/sites/default/files/2022-07/rhythmbox-import2.png)

After Rhythmbox identifies the new music files, you can add them to your library (Jim Hall, CC BY SA)

Rhythmbox plays my music collection and organizes songs by genre, artist, and album so I can quickly find the music I want to listen to.

![Listening to a music library in Rhythmbox](https://opensource.com/sites/default/files/2022-07/rhythmbox-dido-lifeforrent.png)

Listening to my music library in Rhythmbox (Jim Hall, CCY BY SA)

## The beat goes on

I like Rhythmbox as my music player on Linux because it's simple and stays out of my way. And listening to music helps me tune out everyday noise, making my day go by just a bit faster.

## Comments are closed.