In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to listen to the network radio under the Linux command line". The explanation in the article is simple and clear and easy to learn and understand. Please follow the editor's train of thought to study and learn "how to listen to the network radio under the Linux command line".
Install Pianobar in Linux
In Debian or other derivatives of Debian, such as Ubuntu or LinuxMint,Pianobar, is a compiled package, so installing Pianobar is simply typing the following command:
$sudo apt-get install pianobar
In Fedora, Pianobar is not included in the underlying software library. Therefore, you need to install Pianobar through source code compilation. The entire installation process will be a bit cumbersome, but the following tutorial will implement the compilation and installation of Pianobar on Fedora systems. The tutorial passed the test in the Fedora20 version.
First, compile and install FFmpeg according to the FFmpeg installation tutorial.
Then, enable the RPM Fusion source and install other dependent software:
$sudo yum install wget gcc-c++ pkgconfig gnutls-devel json-c-devel libgcrypt-devel make libao-devel faad2-devel libmad-devel libao faad2-libs
Compile and install Pianobar
$wget http://6xq.net/projects/pianobar/pianobar-2014.06.08.tar.bz2$ tar xvfvj pianobar-2014.06.08.tar.bz2 $cd pianobar-2014.06.08 $PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH make$ sudo make install
* allow Paniobar to load FFmpeg shared libraries installed in the / usr/local/lib directory and add the following line to the / etc/ld.so.conf configuration file:
/ usr/local/lib
Reload all shared libraries
$sudo ldconfig
In this way, Pianobar has been installed on the Fedora system.
Listen to Pandora music on the command line
The basic use of paniobar is to enter the following command:
$pianobar
This command will require you to log in to Pandora and select the station you want to listen to from your personalized radio list. After you choose a radio station, the music starts to play automatically.
Press'?' The key pianobar lists a series of available commands, some of which are as follows:
S: change the station
U: view the music list that will be launched soon
H: view playback history
N: play the next song
B: collect songs or artists
(or): decrease or increase the playback volume
S: pause playback
P: resume playback
V: create a radio station for currently listening songs or artists
+ or -: view the previous or next song
A: add music to the radio station
Q: exit pianobar
Configure Pianobar to install automatically
You can configure the default configurations of Pianobar in a separate configuration file. For example, you can put your login information in the configuration file so that you don't have to enter it manually every time. Here is an example of how to create a configuration file:
$mkdir-p ~ / .config/pianobar$ vi ~ / .config / pianobar/config# Example pianobar configuration file # Pandora login info user = your@email_address password = plaintext_password # Users who cannot access Pandora in their region can set a proxy. Control_proxy = http://user:password@host:port/ # Initial volume in dB: between-30 and + 5 volume = Audio quality: high, medium or low audio_quality = high
For complete configuration options, refer to their man man pages.
$man pianobar
Remote control Pianobar
Another excellent feature of Pianobar is its support for remote control, which allows you to send commands to a running instance of Pianobar through the command pipeline (FIFO). The following is an example of remote control of Pianobar:
First create a FIFO command pipeline under the directory ~ / .config / pianobar
$mkfifo ~ / .config/pianobar/ctl
Then run Pianobar
Now, you can send any single-character command key to Pianobar by using the echo command, for example: play the next song:
$echo-n 'n' > ~ / .config/pianobar/ctl
You can easily extend this configuration to a remote computer. When Pianobar runs on host X, you can control Pianobar through SSH from remote host Y, as shown below:
In host Y, run:
$ssh user@host_X "echo-n'n'> ~ / .config / pianobar/ctl"
Of course, you want to enable key authentication for SSH login authentication to host X so that you don't have to enter the SSH password every time.
Thank you for your reading, the above is the content of "how to listen to the network radio under the Linux command line". After the study of this article, I believe you have a deeper understanding of how to listen to the network radio under the Linux command line, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.