There are a few ways to listen to Internet radio in Linux, and StreamTuner2 is one that's able to tune to various online radios and are able to easily record them via its integration with Streamripper.

Online radio stream can be saved by installing both StreamTuner2 and Streamripper, and configure StreamTuner2 to record online radio to use Streamripper.

Record Internet radio in Linux:

  1. Launch your preferred terminal application.
  2. Install StreamTuner2 and Streamripper.
    $ sudo apt update && sudo apt install --assume-yes streamripper streamtuner2 # Ubuntu and Debian
  3. Create a directory to save the radio recording into.
    $ mkdir -p ~/streamripper
  4. Launch StreamTuner2 from terminal.
    $ streamtuner2
  5. Click Save to use default configuration options.

    Options will be configured later in the case that you already have StreamTuner2 installed and went through the same screen before.

  6. Launch configuration screen by going to EditProperties from the toolbar menu.
  7. Double-click on x-terminal-emulator text to activate configuration option for audio recording application.
  8. Enter the following string to configure Streamtuner2 to use Streamripper to record radio stream and save the stream to ~/streamripper directory. Press <enter> to commit the change.
    x-terminal-emulator -e /usr/bin/streamripper %srv -d ~/streamripper

  9. Click on the Save button to exit the configuration screen.
  10. Navigate to the channel list and pick a channel that you wish to record.
  11. Right click on the channel click on Record.

    Make sure you have codec.
    How to install extra media codec in Ubuntu

  12. Navigate to Streamripper_rips directory in your previously configured target directory to see the list of recorded radio stream.
    $ cd ~/streamripper/Streamripper_rips
Discuss the article:

Share your thoughts, suggest corrections or just say Hi. Login not required.

Share!