Table of Contents
This updated guide examines 3 Ways to Listen to the Radio via Ubuntu Terminal and organizes the essential facts, background, and practical takeaways in clear American English.
The commands and processes mentioned in this article are implemented on Ubuntu 18.04 LTS systems.
Method 1: Use Pyradio
Pyradio is a free, open source command line tool that allows you to open your favorite radio stations via the terminal. Pyradio is based on Python and is available onsnap , where you can install this tool easily.
Open Ubuntu terminal via Search Launcher application or by using shortcutCtrl+Alt+TEnter the following command to refresh the list of available packages:
$ sudo apt-get update

Since thesnapdaemon appears by default in the latest Ubuntu versions, you don't need to install it. If you are using an older version, you can use the following command to install the daemon:
$ sudo apt-get install snapd
Now, type the following command to install Pyradio into Ubuntu:
$ sudo snap install pyradio

This process may take a while depending on your Internet speed, as this is a relatively large package. The output similar to the one in the illustration will show that the installation is complete and the Pyradio version installed on your system will also be displayed.
If you want to remove Pyradio installed via this method, you can use the following command in the terminal:
$ sudo snap remove pyradio
How to use Pyradio
So how to use this tool? Running this radio player is quite simple. Use this command to start the player and it will start playing a random station from the list:
$ pyradio --play

To customize the list and play the selected stations, you can use the following commands while the radio player is still running:
KeysFunction Arrow up / j / PgUp / Down arrow / k / PgDown Change radio Enter Open selected station - / + Change volume M v Silent r Select and open any station Space Stop or start a station selected c Open the configuration window t Load theme / Change the transparency of the Del theme, x Delete the selected station Esc / q Exit the player
Method 2: Through Mplayer
Mplayer is a movie player for Linux (runs on many platforms and other CPU architectures). Mplayer can open most MPEG / VOB, AVI, ASF / WMA / WMV, RM, QT / MOV / MP4 files, Ogg / OGM, MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ, supported by many Original and binary codecs.
What we need to consider here is the ability to open this player's stations, by providing the online radio URL, right in the terminal.
The mplayer utility is easily available through the official Ubuntu repositories and the installation is quite simple via the command line withapt-get. You can do so by running the following command withsudo:
$ sudo apt-get install mplayer

The system can ask you for a password forsudoand also give you the option Y / n to continue the installation. EnterYand then pressEnter. The software will be installed on your system. However, this process may take a while depending on your Internet speed.
If you want to remove the player installed via this method, you can use the following command in the terminal:
$ sudo apt-get remove mplayer
To open the radio, use themplayercommand as follows:
$ mplayer [station-URL]

Method 3: Use mpg123
Mpg123 is a free, open source radio player. Mpg123 supports MPEG audio formats, including MP3. Mpg123 is a console application and has no graphical user interface. This means you can open radio stations on it by providing the URL in thempg123command.
mpg123utility is easily available through official Ubuntu repositories and simple installation via the command line withapt-get. You can do this by running the following command withsudo:
$ sudo apt-get install mpg123

The system may require a password forsudoand also give you the Y / n option to continue the installation. EnterYand then pressEnter. The software will be installed on your system. However, this process may take a while depending on your Internet speed.
If you want to removempg123installed via this method, you can use the following command in the terminal:
$ sudo apt-get remove mpg123
To open the radio, use thempg123command as follows:
$ mpg123 [station-URL]

Here are 3 ways to listen to online radio right in the terminal application.
Hope you are succesful.
FAQ
What is 3 Ways to Listen to the Radio via Ubuntu Terminal about?
It provides a structured overview of Ubuntu, explains the main context, and highlights practical takeaways for readers.
Why does this topic matter?
Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.
How should readers use this information?
Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.
Reader Comments 0
Sign in with email or Google to join the discussion.