Mplayer, which can do a lot of things from the console, helps to technically implement this outrage. In addition to playing music, Mplayer can record radio stations (and you do not need to listen to them while recording).
First you need to have this player installed. In the Ubuntu operating system, this is done with the following command:
sudo apt-get install mplayer
In order to record a radio station, you need to execute the following command in the console:
mplayer http://radiosibir.ru:8090/HQ -dumpstream -dumpfile recorded_music_sibir.mp3 -vc dummy -vo null
Here:
radiosibir.ru : 8090 / HQ - link to the radio stream;
recorded_music_sibir.mp3 - the file to which we will record.
By the way, the whole thing can be put on any convenient key combination. Thus, we get a lightweight ability to record Internet radio in Linux in the background.