{"id":11294,"date":"2021-10-29T05:01:03","date_gmt":"2021-10-29T05:01:03","guid":{"rendered":"https:\/\/linuxways.net\/?p=11294"},"modified":"2021-10-29T05:01:03","modified_gmt":"2021-10-29T05:01:03","slug":"how-to-install-pyradio-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-pyradio-on-ubuntu-20-04\/","title":{"rendered":"How to Install Pyradio on Ubuntu 20.04"},"content":{"rendered":"<p>Written in Python, <a href=\"https:\/\/github.com\/coderholic\/pyradio\">Pyradio<\/a> is a free and convenient command-line application for streaming internet radio straight from your Linux console. With Pyradio, you can play, edit, add and switch between your preferred list of online radio stations. Pyradio uses MPlayer for playback by default and runs not only on Linux but Windows, Mac and even Raspberry Pi. In this guide, we look at how you can install Pyradio on Ubuntu 20.04.<\/p>\n<p>There are two main ways that you can accomplish this. You can install from snap packages or compile from source. Let\u2019s have a look at each installation method in turn.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>To install Pyradio, ensure you have the following set of prerequisites:<\/p>\n<p>1. MPlayer or VLC media player<\/p>\n<p>2. Pip package manager<\/p>\n<h2><strong>Install Pyradio from Snap<\/strong><\/h2>\n<p>Installing Pyradio from snap is quite a straightforward process. By default, Ubuntu 18.04 and later versions come with snapd daemon already installed. Snapd is a daemon that usually handles snap packages.<\/p>\n<p>If, for whatever reason, snapd is not present install it using the command:<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<pre><strong>$ sudo apt install snapd<\/strong><\/pre>\n<p>Next, install Pyradio from snap as shown<\/p>\n<pre><strong>$ sudo snap install pyradio<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"112\" class=\"wp-image-11295\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-370.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-370.png 841w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-370-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-370-768x102.png 768w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/p>\n<h2><strong>Install Pyradio from source code<\/strong><\/h2>\n<p>The other approach is to build Pyradio from source code. To accomplish this, we are going to clone Pyradio\u2019s git repository<\/p>\n<pre><strong>$ git clone https:\/\/github.com\/coderholic\/pyradio.git<\/strong><\/pre>\n<p>Next, navigate into the cloned folder<\/p>\n<pre><strong>$ cd pyradio<\/strong><\/pre>\n<p>Then build from source as shown.<\/p>\n<pre><strong>$ sudo python3 setup.py build<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"204\" class=\"wp-image-11296\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-371.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-371.png 762w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-371-300x80.png 300w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/strong><\/p>\n<p>Once the build process is complete, run the following command to complete the installation from source.<\/p>\n<pre><strong>$ sudo python3 setup.py install<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"191\" class=\"wp-image-11297\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-372.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-372.png 700w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-372-300x82.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/strong><\/p>\n<p>This should only take a few seconds to complete. Once done, you can verify the version of Pyradio installed as follows.<\/p>\n<pre><strong>$ pyradio --version<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"111\" class=\"wp-image-11298\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-373.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-373.png 703w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-373-300x47.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/strong><\/p>\n<h2><strong>Launching Pyradio<\/strong><\/h2>\n<p>To launch Pyradio, head over to the console or terminal and switch to root user. Then execute the command:<\/p>\n<pre><strong># pyradio --play<\/strong><\/pre>\n<p>This opens a console-based interface with a list of available online radio stations that you can listen to. Feel free to scroll through and press \u2018ENTER\u2019 to select your online radio station of choice.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"515\" class=\"wp-image-11299\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-374.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-374.png 837w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-374-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-374-768x473.png 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/strong><\/p>\n<p>To get a list of available command-line options, run the <strong>pyradio <\/strong>command with the <strong>-h<\/strong> option.<\/p>\n<pre><strong>$ pyradio -h<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"364\" class=\"wp-image-11300\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-375.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-375.png 837w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-375-300x130.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-375-768x334.png 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/strong><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>If a change in the music you listen to is what you need, then Pyradio is what you need. It provides an array of radio stations in a wide variety of music genres that will offer a much-needed change from your music collection. It\u2019s simple to install and use and you can conveniently install it across all major Linux distributions. For more information about Pyradio including installation on other computing platforms and command-line controls, visit the <a href=\"https:\/\/github.com\/coderholic\/pyradio\">Pyradio Github page<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Written in Python, Pyradio is a free and convenient command-line application for streaming internet radio straight from your Linux console. With Pyradio, you can play, edit, add and&hellip;<\/p>","protected":false},"author":1,"featured_media":11680,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[640,100],"class_list":["post-11294","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-pyradio","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=11294"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11294\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/11680"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=11294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=11294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=11294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}