Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Howto: Pandora via command line. -- pianobar --

  1. #21
    Join Date
    Apr 2012
    Beans
    4

    Re: Howto: Pandora via command line. -- pianobar --

    Hello all,

    Below is a script I've made to make it easy for new users to install pianobar. Copy the code into a file in your home directory, called 'pianobar-install.sh'. You can change your username and password to automatically login yourself in.

    Update: This script was working as of May 1st, when pianobar added json its dependencies.

    Code:
    #!/bin/bash
    
    #this is a script designed to install the latest version of pianobar
    echo 'moving to downloads folder'
    cd ~/Downloads
    
    echo 'downloading pianobar source'
    wget http://github.com/PromyLOPh/pianobar/tarball/master
    
    echo 'renaming to compress file'
    mv master pianobar.tar.gz
    
    echo 'extracting tarball'
    tar -xvf pianobar.tar.gz
    
    echo 'renaming ugly tarball'
    mv Promy* pianobar-install-files
    
    echo 'entering source directories'
    cd pianobar-install-files
    
    echo 'installing dependencies'
    sudo apt-get install libao-dev libgnutls-dev libfaad-dev libmad0-dev libjson0-dev libjson0
    
    echo 'compiling'
    make clean && make
    
    echo 'installing'
    sudo make install
    
    echo 'cleaning up leftover files'
    cd ~/Downloads
    rm pianobar.tar.gz && rm -rf pianobar-install-files
    
    if [ -f ~/.config/pianobar/config ]; then
        echo "pianobar already configured"
    else
        echo 'writing configuration file'
        cd ~/.config
        mkdir pianobar
        cd pianobar
        echo 'user = your.user@name.com' > config
        echo 'password = your.password' >> config
    fi
    Make it executable and run it as sudo.

    Code:
    sudo chmod +x pianobar-install.sh
    ./pianobar-install.sh
    The latest version of pianobar will be installed. There is currently a version of pianobar in the repositories that can be installed with 'sudo apt-get install pianobar', but it is not the most recent version and wasn't working for me as of April 3rd (Error: protocol incompatible, please upgrade libpiano). This script will update pianobar to the latest version and fix that error.
    Last edited by alexhayes; May 2nd, 2012 at 01:50 AM.

  2. #22
    Join Date
    May 2011
    Beans
    2

    Re: Howto: Pandora via command line. -- pianobar --

    Thanks for the script dude, it was of great help

  3. #23
    Join Date
    Mar 2009
    Beans
    3

    Re: Howto: Pandora via command line. -- pianobar --

    Thank you SO much for putting all of the proper requirements in one place. I can confirm that this works on the Raspberry Pi! I was pulling my hair out trying to get this to work. Thank you again!

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •