topic title: pianobar
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#1
__{{emoticon}}__ just installed this on my Asus EEEPC 900. Pretty small app for playing your Pandora RADIO station outside of your browser via terminal and command line interface.


Low on resources

Code: Select all

$ free
             total       used       free     shared    buffers     cached
Mem:       2065168     433816    1631352          0      12480     343132
-/+ buffers/cache:      78204    1986964
Swap:            0          0          0
(are you listening 128MB and below ram users) . Remember. I am using Icewm,Conky,and Wicd which is using ram also. Look for it in synaptic.
For you core and base users.

Code: Select all

apt-cache policy pianobar
Then sux. Password.

Code: Select all

apt-get install pianobar
then type when done installing

Code: Select all

exit
then type in

Code: Select all

pianobar

I think it is cool. __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
I think, pianobar can be set up for lastfm for you European users since pandora is a U.S only radio station.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/PromyLOPh/pianobar"
linktext was:"https://github.com/PromyLOPh/pianobar"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.last.fm/music/Piano+Bar"
linktext was:"http://www.last.fm/music/Piano+Bar"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.last.fm/group/pianobar+users"
linktext was:"http://www.last.fm/group/pianobar+users"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ench.info/2010/12/setting-pianobar-lastfmsubmitd"
linktext was:"http://ench.info/2010/12/setting-pianobar-lastfmsubmitd"
====================================

Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Pianobar has broken in the version in synaptic (pandoras radios fault). So I downloaded latest pianobar-2011.09.22 from the downloads button at


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/PromyLOPh/pianobar"
linktext was:"https://github.com/PromyLOPh/pianobar"
====================================


And built it from source. I built it in my /home/harry/pinanobar folder that I made. After building. I symlinked (absolute) the /home/harry/pianobar/pianobar-2011.09.22/pianobar


to /usr/bin. Just used rox file manager, (as root), to drag and drop and symlink, simple. I made sure I had my old pianobar uninstalled (all configuration files) in synaptic first before doing all of this. My compressed folder below with pianobar in it for antiX.

I would unzip it in your /home or /opt and symlink the /pianobar-2011.09.22/pianobar
like I did to /usr/bin.

Code: Select all

harry@biker:~$ pianobar
Welcome to pianobar (2011.09.22)! Press ? for a list of commands.
[?] Email: rok
[?] Password: 
(i) Login... Ok.
(i) Get stations... Ok.
     0)     AC/DC Radio
     1)     Audioslave Radio
     2)     Avenged Sevenfold Radio
     3)     Buckcherry Radio
     4)     Charlie Sexton Radio
     5)     Chris Rea Radio
     6)     Depeche Mode Radio
     7) q   Evanescence Radio
     8)     Faith No More Radio
     9)     Gary Numan/Tubeway Army Radio
    10)     Gorillaz Radio
    11)  Q  rok QuickMix
    12)     Hoobastank Radio
    13)     Jace Everett Radio
    14)     Les Claypool Radio
    15)     Little Feat Radio
    16)     Marilyn Manson Radio
    17)     Nickelback Radio
    18) q   Nine Inch Nails Radio
    19)     Puddle Of Mudd Radio
    20)     Savoy Brown Radio
    21)     Seether Radio
    22)     Stevie Ray Vaughan Radio
    23)     The Black Keys Radio
    24)     The Cult Radio
    25)     The Fabulous Thunderbirds Radio
    26)     Thin Lizzy Radio
    27)     Thousand Foot Krutch Radio
    28)     ZZ Top Radio
[?] Select station: 17
|>  Station"Nickelback Radio" (375336457630811538)
(i) Receiving new playlist... Ok.
|> "How You Remind Me" by"Nickelback" on"Silver Side Up"
|> "Blurry" by"Puddle Of Mudd" on"Come Clean"
|> "Headstrong" by"Trapt" on"Trapt"
#   -01:09/04:46
I tried making a .deb package with check install but failed miserably. Being a biker an all.

Code: Select all

root@biker:/home/harry/pianobar/pianobar-2011.09.22#  checkinstall -D make install

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 13
Enter the replaced packages:
>> pianobar-2011.07.09

This package will be built according to these values:

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [ pianobar-2011.07.09 ]

Enter a number to change any of them or press ENTER to continue: 10
Enter the additional requirements:
>> gmake libao libfaad2 libmad pthreads

This package will be built according to these values:

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [ gmake libao libfaad2 libmad pthreads ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [ pianobar-2011.07.09 ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/main.o src/main.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/player.o src/player.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/settings.o src/settings.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/terminal.o src/terminal.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/ui_act.o src/ui_act.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/ui.o src/ui.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/ui_readline.o src/ui_readline.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/ui_dispatch.o src/ui_dispatch.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/libpiano/crypt.o src/libpiano/crypt.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/libpiano/piano.o src/libpiano/piano.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/libpiano/xml.o src/libpiano/xml.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/libwaitress/waitress.o src/libwaitress/waitress.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
         -I src/libezxml -DENABLE_FAAD \
         -DENABLE_MAD -c -o src/libezxml/ezxml.o src/libezxml/ezxml.c
c99 -O2 -DNDEBUG  src/main.o src/player.o src/settings.o src/terminal.o src/ui_act.o src/ui.o src/ui_readline.o src/ui_dispatch.o src/libpiano/crypt.o src/libpiano/piano.o src/libpiano/xml.o \
         src/libwaitress/waitress.o src/libezxml/ezxml.o -lao -lpthread -lm \
         -lfaad -lmad -o pianobar
install -d //usr/local/bin/
install -m755 pianobar //usr/local/bin/
install -d //usr/local/share/man/man1/
install -m644 contrib/pianobar.1 //usr/local/share/man/man1/

======================== Installation successful ==========================

Copying documentation directory...
./
./ChangeLog
./INSTALL
./README
./COPYING

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package... FAILED!

*** Failed to build the package

Do you want to see the log file?  [y]: y

Erasing temporary files...OK

Writing backup package...OK
OK

Deleting temp dir...OK 
Sorry folks. It is the best I can do. __{{emoticon}}__

Make sure depends are installed first before unzipping my zip and installing. Like libao4,faad2, they are in your package manager.

Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Pandora broke libpiano again today. I downloaded latest fix from github, version pianobar 11.09-dev. I compiled it from source in my AntiX 11 base install. Delete or uninstall any pianobar you have installed through synaptic or apt-get. If installed folder is in /home or /opt. delete that one then.

Unzip my uploaded .zip to /home/username. Inside the unzipped folder you will see a bin file I compiled called pianobar.

Open rox file manager as root from terminal. Go to /usr/bin in rox file manager. Drag and drop the pianobar bin to /usr/bin in other root rox file manager. Pick (relative is what I used) symlink. Close everything.

Code: Select all

roky@biker:~$ pianobar
Welcome to pianobar (2011.11.09-dev)! Press ? for a list of commands.
[?] Email: 
[?] Password: 
(i) Login... Ok.
(i) Get stations... Ok.
     0)     AC/DC Radio
     1)     Audioslave Radio
     2)     Avenged Sevenfold Radio
     3)     Buckcherry Radio
     4)     Charlie Sexton Radio
     5)     Chris Rea Radio
     6)     Depeche Mode Radio
     7) q   Evanescence Radio
     8)     Faith No More Radio
     9)     Funkadelic Radio
    10)     Gary Numan/Tubeway Army Radio
    11)     Gorillaz Radio
    12)  Q  roky's QuickMix
    13)     Hoobastank Radio
    14)     Les Claypool Radio
    15)     Little Feat Radio
    16)     Marilyn Manson Radio
    17)     Nickelback Radio
    18) q   Nine Inch Nails Radio
    19)     Puddle Of Mudd Radio
    20)     Savoy Brown Radio
    21)     Seether Radio
    22)     Stevie Ray Vaughan Radio
    23)     The Black Keys Radio
    24)     The Cult Radio
    25)     The Fabulous Thunderbirds Radio
    26)     Thin Lizzy Radio
    27)     Thousand Foot Krutch Radio
    28)     ZZ Top Radio
[?] Select station: 28
|>  Station"ZZ Top Radio" (426160442026919314)
(i) Receiving new playlist... Ok.
|> "I'm Bad I'm Nationwide" by"ZZ Top" on"Greatest Hits"
#   -04:41/04:46
We'll see how long this fix lasts. Hopefully Debian will catch up soon.