Skip to content

Instantly share code, notes, and snippets.

@mrreyes512
Forked from paulbaker3/makePianobarFromSource
Last active August 10, 2017 03:19
Show Gist options
  • Save mrreyes512/8afa1a0d22b7dcd9deb57763a97a3d90 to your computer and use it in GitHub Desktop.
Save mrreyes512/8afa1a0d22b7dcd9deb57763a97a3d90 to your computer and use it in GitHub Desktop.
Installing pianobar from source
Copied directly from http://www.foscode.com/install-pianobar-ubuntu/ with an additional note from me.
Here’s how to install it:
1. Install all dependencies:
1.sudo apt-get install git-core
2.sudo apt-get install libao-dev
3.sudo apt-get install libmad0-dev
4.sudo apt-get install libfaac-dev
5.sudo apt-get install libfaad-dev
6.sudo apt-get install libgnutls-dev
7.sudo apt-get install libgcrypt11-dev
2. Download the latest copy from the git repository:
1. git clone git://github.com/PromyLOPh/pianobar.git
3. Go into the newly created folder (git automatically creates the folder calder pianobar) and install it.
1. make clean
2. make
3. sudo make install
NOTE FROM PB3: Apparently in an attempt to keep "unauthorized" players out of commission, "Pandora modifies the protocol now and then" (http://6xq.net/projects/pianobar/) You might run into an error that reads something like:
"Package json was not found in the pkg-config search path.
Perhaps you should add the directory containing `json.pc'
to the PKG_CONFIG_PATH environment variable
No package 'json' found "
3A: To fix this install the libjson0-dev library:
1. sudo apt-get install libjson0-dev
4. After you have installed pianobar, you can create a config file where you’d have your username and password. (Beats having to type those everytime you start the app).
1. cd ~
2. mkdir .config/pianobar
3. vim .config/pianobar/config
5. add the following 2 lines and save the file
1. user = pandoraUserName
2. password = pandoraPassword
6. That’s it, just run pianobar from the command line and enjoy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment