Introduction: Pianobar on Pi

Picture of Pianobar on Pi

This will show you how to get a fully functional command line Pandora radio on your Pi

Things required to do this

  • Raspberry Pi with powersupply
  • MicroSD - 2gb
  • Pandora Account

Step 1: Download and Install Raspbian on Your Pi

Picture of Download and Install Raspbian on Your Pi

Start by downloading Raspbian from

Once you have that downloaded go and download win32diskimager from

Write the image onto your micro sd-card

Step 2: Update Raspbian

Picture of Update Raspbian

First off you want to update your Raspbian on the Pi.

sudo rpi-update

then we need to apply the update

sudo reboot

then we need to update all of the packages

sudo apt-get update

next you will want to update the installed packages

sudo apt-get upgrade

Step 3: Installing GitHub and Libraries

Picture of Installing GitHub and Libraries

Next is to install GitHub

GitHub is a code repository for snippets of code which need to be compiled to be useful

and since the latest version of pianobar is not precompiled we need to compile it

sudo apt-get install git

Next you need to install the libraries required to compile pianobar

sudo apt-get install libao-dev libmad0-dev libfaad-dev libgnutls-dev libjson0-dev libgcrypt11-dev libavcodec-dev libavformat-dev libavfilter-dev libcurl4-openssl-dev

Step 4: Compiling the Code

Picture of Compiling the Code

Next we need to make a copy of that code

when we run this command it adds a folder to where ever you make it called pianobar

git clone 	

This will put us into the pianobar directory

cd pianobar

Then we need to compile it

make && sudo make install

Step 5: Configuring the App

Picture of Configuring the App

Now we need to create a config file and edit it

mkdir ~/.config
mkdir ~/.config/pianobar
nano ~/.config/pianobar/config

once you are in the file all you need to add

user =
password = password

after that press Ctrl+X then Y then enter which will save the file and changes

Step 6: Running and Using the Program

Picture of Running and Using the Program

Now all you need to do is run the program


To select the station just input the numbers and it will play!


JavaProgrammer (author)2015-05-08


seamster (author)2015-05-08

Nicely done. Thanks for sharing this!