Tag Archives: pianobar

Build Pianobar from Source on Raspberry Pi Raspbian

After getting the TLS handshake Error from pianobar on Raspberry Pi running Debian Wheezy ( aka Raspbian ) I decided to get the latest version of Pianobar. This requires building from sourcecode if you’re on the Wheezy release. The TLS handshake Error can basically be translated to mean “the version of pianobar you’re using is too old” – this is an error that occurs regularly and the solution is always to update to the latest edge version. Packges for Raspbian / Wheezy aren’t going to get updates fast enough for this to be a good option (i.e. to not interrupt your listening ) so you’ll need to build from source. One of the requirements is basically to have ffmpeg ( it the libraries from it ) installed. Several people will suggest installing ffmpeg from source – which you can do – but if you’re using a “Raspberry Pi model B” and not the latest Raspberry Pi 2.0 – or even if you are – it will take a long time to build ffmpeg from source – maybe 6 hours or more. If you go this route, and you’re doing it via SSH make sure to use something like screen to keep the process from dying if you get disconnected. I didn’t want to install ffmpeg and found a good alternative – install the libraries from the backports. Here’s a script – which is basically my notes from along the way. It is sloppy and has some duplication – created from … Continue reading

Posted in Software | Tagged , | 1 Comment

pianobar – dyld: Library not loaded: /usr/local/lib/libgnutls.26.dylib

If you’re using pianobar on Mac OS X (Snow Leopard, Lion, Mountain Lion) you might have updated Xcode or homebrew and ended up with a broken pianobar, something along the lines of: $ pianobar dyld: Library not loaded: /usr/local/lib/libgnutls.26.dylib Referenced from: /usr/local/bin/pianobar Reason: image not found This isn’t actually a problem with libgnutls.26.dylib but more of an issue that you need to update pianobar. The first thing I tried was running these two commands: brew update ( That updates the list of available libraries for homebrew ) brew upgrade ( That actually upgraes homebrew and the available libraries ) It’s possiblel that your pianobar will work now, but if not there are a few more things you can try. If you installed Piano Bar with homebrew you can try: brew uninstall pianobar (remove pianobar) brew install pianobar (reinstall pianobar) If you did not use homebrew to install pianobar you can download pianobar from the repo on github and then build it using xcode via the command line: make clean && make CFLAGS=”-O2 -DNDEBUG -W64″ I actually have a complete tutorial How to install Pianobar on Mac OS X that you can check out, too.

Posted in Mac, Software, Tech Tips | Tagged , | Leave a comment

Pianobar / Cinema Display Speakers

I just realized that if you’re using Pianobar on Mac OS X and you connect a Cinema Display, the default speakers won’t change to the Cinema Display by default. This is a little bit troublesome – but it is not impossible to fix. You may need to restart Pianobar after making the change as it uses the libao cross platform audio library. In the System Preferences pane there are two tabbed panes under the “Sound” preference – you can set the speakers to the Cinema Display accordingly: You can also change the sound effects and alert sounds to use the Cinema Display:

Posted in Mac, Tech Tips | Tagged , , , , | Leave a comment

How to install Pianobar on Mac OS X

You will need homebrew to install gnutls unless you want to install it manually. Get homebrew at http://mxcl.github.com/homebrew/ You can either then try brew update to update the homebrew repositories. To install pianobar using homebrew you can do brew install pianobar However, if after installation pianobar is giving you an error, check out the issues at https://github.com/PromyLOPh/pianobar/issues, and if your issue is listed you may need to install the very latest version of pianobar by doing a manual build. To do this I’d recommend that you remove the homebrew installations of pianobar, and then manually build. So, to remove the pianobar that was installed with homebrew, type brew remove –force pianobar Next see my notes about installing pianobar manually. // download the root certificates into your home directory as ~/pianobar-cacert.pem // these are needed to help pianobar make a secure connection to pandora wget -O ~/pianobar-cacert.pem http://curl.haxx.se/ca/cacert.pem // add the path to the pianobar config file // ================================================================ echo “tls_ca_path = $HOME/pianobar-cacert.pem” >> ~/.config/pianobar/config // install the dev tools // ================================================================ brew install gnutls json-c // change to your home directory, then clone the latest version of pianobar // change to the directory created, make pianobar cd ~ git clone https://github.com/PromyLOPh/pianobar.git cd pianobar/ make clean && make CFLAGS=”-O2 -DNDEBUG -W64″ // run pianobar from the current directory ./pianobar // note: just typing “pianobar” instead of “./pianobar” will fail if the current directory is not in your path //after running pianobar you should get: Welcome to pianobar (2011.11.09-dev)! Press ? for … Continue reading

Posted in Mac, Software, Tech Tips | Tagged , , , , | 6 Comments