Tag Archives: pandora

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

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

Control Pandora With The Keyboard on Your Mac

Play Key to Control Pandora on Macbook (& iMac?) I was able to get my play and skip keys to work for Pandora instead of iTunes on my Macbook Pro by using the “Key Remap 4 Macbook”¬†utility in combination with PandoraJam.   Step 1: Download and Install PandoraJam – I’m using the demo version and it works fine for this. Step 2: Launch PandoraJam, edit the preferences. Click on the keyboard tab and set a few keyboard shortcuts. For this demo I’m setting Play to be Cmd+Shift+F8, Skip to be Cmd+Shift+F9, and Thumbs Down to be Cmd+Shift+F7. Step 3: Download and install¬†Key Remap 4 Macbook. This is overall a pretty cool utility and I like how you could even set it up to remap keys even for specific applications. We’re not doing anything that complicated though. Below you will see how I’ve set up the Media keys to do what I want them to. This is the part that was a little difficult to figure out – the WCZ remap function is something I added in. See Step 4. Step 4: What we’re going to do next is to remap the next, previous, and play keys to their Cmd+Shift counterparts so they will control PandoraJam as we’ve set up. Click over to the Misc & Uninstall tab and then choose “open private.xml” It will have a default, blank private.xml that you will be able to edit. Add in the following code: <?xml version=”1.0″?> <root> <list> <item> <name>WCZ Change Media Keys … Continue reading

Posted in Mac, Tech Tips | Tagged , , , | 2 Comments

Pandora One: 3 Day Free Trial

Pandora is currently offering a 3-day free trial, sponsored by MSN. If you don’t see the ad while listening to Pandora, try using this link: http://www.pandora.com/#/account/startTrial/MSN There is also a 24 hour free trial available: http://www.pandora.com/#/account/startTrial/PandoraE1 If you are already in the player, you may need to close it and then paste that link into your browser. No credit card information is required for the trial, but you must create an account. Also, if you have ever had a free trial with your account before Pandora will alert you to that fact and refuse another trial. Have a different link? Paste it into the comments below! :)

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