Introduction: 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
Start by downloading Raspbian from http://www.raspberrypi.org/downloads/
Once you have that downloaded go and download win32diskimager from http://sourceforge.net/projects/win32diskimager/
Write the image onto your micro sd-card
Step 2: 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
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
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 https://github.com/PromyLOPh/pianobar.git
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
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 = your@user.name 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
Now all you need to do is run the program
Pianobar
To select the station just input the numbers and it will play!

