VectorLinux
September 02, 2014, 12:59:27 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: pianobar (2012.05.06)  (Read 11725 times)
rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« on: September 07, 2012, 06:18:57 pm »

Howdy. I went to

http://slackbuilds.org/repository/13.37/audio/pianobar/

download the 13.37 > Audio > pianobar (2012.05.06)   to /home

http://slackbuilds.org/slackbuilds/13.37/audio/pianobar.tar.gz

Right click on .tar.gz in thunar as user and just to make sure before I posted,  also opened thunar as root

Code:
gksu thunar

But the only options I get on right click are extract. No install, upgrade or uninstall package in right click menu.  I checked thunars custom actions and they are in there.
Install Package custom action command is
Code:
/sbin/vsuper /sbin/vinstallpkg %F

But the option does not show up in right click menu, This is in Vector Linux STD Gold V7. Thunar 1.2.3. XFCE .
Am I missing something? I read the vector screencast how tos. It shows this function in Vector Linux 6.

I get the same action if I go to github

http://6xq.net/static/projects/pianobar/pianobar-2012.05.06.tar.bz2

and right click on it also. Just the extract options.

Edit: ** NOTE json-c is now a dependency for pianobar **

I have already installed json-c through Gslapt Package Manager already also.

Code:
root:# locate json-c
/home/ftp/pub/veclinux/packages/l/json-c-0.9-i586-2vl70.txz
/usr/doc/json-c-0.9
/usr/doc/json-c-0.9/json-c.SlackBuild
/usr/doc/json-c-0.9/AUTHORS
/usr/doc/json-c-0.9/ChangeLog
/usr/doc/json-c-0.9/COPYING
/usr/doc/json-c-0.9/README
/usr/doc/json-c-0.9/patches
/var/log/packages/json-c-0.9-i586-2vl70
/var/log/scripts/json-c-0.9-i586-2vl70

« Last Edit: September 07, 2012, 06:26:09 pm by rokytnji » Logged

nightflier
Administrator
Vectorian
*****
Posts: 4022



« Reply #1 on: September 08, 2012, 03:52:29 am »

Those files you downloaded are source archives, not installable Vector/Slackware packages. They would need to be compiled to binary form, then installed.

The process for a generic source file is to extract it, change into resulting directory, run "./configure", "make", then "make install". However, in many cases you need to make tweaks to the configuration before it will work properly. This is where Slackbuilds come in.

Downloads from slackbuilds.org are intended for the slackware platform, and with the archive there should have been several other files, including one called "pianobar.Slackbuild". The process is to download all files to a directory, make the .Slackbuild file executable, then run it. The script will take care of tweaks and settings. This is similar to how VL packages are made.

The advantages of proper packages is that the system can keep track of the installed software and upgrade or remove it properly. When done through gslapt/slapt-get, using a software repository, dependencies are addressed as well.

That said, you should be able to use a pre-compiled package. I found one here:
http://ftp://slackware.opennix.com/pub/slackbuilds/slackware-13.37/multimedia/pianobar-2011.12.11-x86_64-1_mm.txz
Download the file, open a terminal and become root. Change to where you downloaded the package and use the command "installpkg pianobar-2011.12.11-x86_64-1_mm.txz". Keep in mind, this may void your warranty.  Wink
« Last Edit: September 08, 2012, 03:54:30 am by nightflier » Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #2 on: September 08, 2012, 05:45:55 am »

Sorry for the delay...I have build pianobar-20120907...pls try it...
http://vlcore.vectorlinux.com/pkg/untested/veclinux-7.0/x86/pianobar-20120907-i586-1vl70.txz

PS: You need to install json-c-0.9 as a dependency for pianobar...you can install it via gslapt...
Logged
rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #3 on: September 08, 2012, 06:29:04 am »

Thanks for the education. I am still baby stepping my way though using Slackware being a Debian/Puppy user mostly.

Unfortunately

Code:
$ wget http://ftp//slackware.opennix.com/pub/slackbuilds/slackware-13.37/multimedia/pianobar-2011.12.11-x86_64-1_mm.txz
--2012-09-08 03:57:45--  http://ftp//slackware.opennix.com/pub/slackbuilds/slackware-13.37/multimedia/pianobar-2011.12.11-x86_64-1_mm.txz
Resolving ftp (ftp)... failed: Name or service not known.
wget: unable to resolve host address "ftp"

or using your link in  Firefox download manager takes me to

http://www.microfocus.com/products/rumba/terminal-emulation/?ftpcom

I will try and see if I can plod my way through this. http://antix.freeforums.org/post22128.html?sid=b2b2317f41715a990d9c4a1bac1d7015#p22128 I have built the binary before from source in AntiX with build-essentials and used that binary in Puppy Linux. I wonder if the binary will work in Vector as well if I put it in /bin or /sbin in Vector?

 I think also the 2011 .txz probably would not work anyways because pandora screws with pianobars protocol from time to time and the latest patches are what are needed to get pianobar to work. I am still leaning slackbuild so please excuse my ignorance. I guess I still need
to do some more research. Just to show what I have tried so far with my limited skillset.

I go into my ~/Downloads folder and extract pianobar-2012.05.06.tar.bz2
. I follow the read me for making the pianobar binary. One thing I have to do first is change in make file is go from

Code:
# makefile of pianobar

PREFIX:=/usr/local
BINDIR:=${PREFIX}/bin
LIBDIR:=${PREFIX}/lib
INCDIR:=${PREFIX}/include
MANDIR:=${PREFIX}/share/man
DYNLINK:=0

# Respect environment variables set by user; does not work with :=
ifeq (${CFLAGS},)
CFLAGS=-O2 -DNDEBUG
endif
ifeq (${CC},cc)
CC=C99

and change the CC=C99 to either CC=c++ or CC=g++ as C99 errors out on make clean && make in Vector.
For dependencies. libfaad is not in gslapt but libmad is and is installed already by default in Vector 7.

Code:
biker:/~/Downloads/pianobar-2012.05.06
harry:$ make clean && make
 CLEAN
    CC  src/main.c
In file included from src/main.c:56:0:
src/ui_dispatch.h:98:3: error: invalid conversion from 'int' to 'BarUiDispatchContext_t'
src/ui_dispatch.h:98:3: error: invalid conversion from 'int' to 'BarUiDispatchContext_t'
src/ui_dispatch.h:98:3: error: invalid conversion from 'int' to 'BarUiDispatchContext_t'
src/ui_dispatch.h:98:3: error: invalid conversion from 'int' to 'BarUiDispatchContext_t'
src/main.c: In function 'void BarMainHandleUserInput(BarApp_t*)':
src/main.c:153:40: error: invalid conversion from 'int' to 'BarReadlineFlags_t'
src/main.c:153:40: error:   initializing argument 5 of 'size_t BarReadline(char*, size_t, const char*, BarReadlineFds_t*, BarReadlineFlags_t, int)'
src/main.c: In function 'void BarMainStartPlayback(BarApp_t*, pthread_t*)':
src/main.c:217:22: error: 'PLAYER_STARTING' was not declared in this scope
src/main.c: In function 'void BarMainLoop(BarApp_t*)':
src/main.c:290:27: error: 'PLAYER_FINISHED_PLAYBACK' was not declared in this scope
src/main.c:296:27: error: 'PLAYER_FREED' was not declared in this scope
src/main.c:315:27: error: 'PLAYER_SAMPLESIZE_INITIALIZED' was not declared in this scope
src/main.c:316:24: error: 'PLAYER_FINISHED_PLAYBACK' was not declared in this scope
src/main.c:321:26: error: 'PLAYER_FREED' was not declared in this scope
make: *** [src/main.o] Error 1

And that is about how far as I have gotten so far. Like I said. I am still baby stepping through using
Vector or Slackware 13.37 so sorry if I am a bit unskilled. Like I said. I guess I need to do some more
research/experimenting I guess.

Quote
Keep in mind, this may void your warranty.

 Grin I break things on a daily basis so no worries. Thanks again for responding.

Ha. I was typing out this long post when I saw yours hata_ph. I will definitely try it out . It is sitting in my ~/Downloads folder before I hit this post button so will be updating this thread in a few.

Quote
I have build pianobar-20120907...pls try it...









Logged

rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #4 on: September 08, 2012, 06:40:30 am »

Listening to Black Keys Radio right now hata_ph.

Your package works just fine and right click menu in thunar gave me the custom actions like install package.
Thanks for the package and education. I usually tweak my Linux installs into media players because of my motorcycle shop. The Customers like the music and trip out when they see how I am playing it.

Quote
PS: You need to install json-c-0.9 as a dependency for pianobar...you can install it via gslapt...

just in case you missed it.

Code:
root:# locate json-c
/home/ftp/pub/veclinux/packages/l/json-c-0.9-i586-2vl70.txz
/usr/doc/json-c-0.9
/usr/doc/json-c-0.9/json-c.SlackBuild
/usr/doc/json-c-0.9/AUTHORS
/usr/doc/json-c-0.9/ChangeLog
/usr/doc/json-c-0.9/COPYING
/usr/doc/json-c-0.9/README
/usr/doc/json-c-0.9/patches
/var/log/packages/json-c-0.9-i586-2vl70
/var/log/scripts/json-c-0.9-i586-2vl70

I posted that in a previous post above so no worries.

« Last Edit: September 08, 2012, 06:43:36 am by rokytnji » Logged

hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #5 on: September 08, 2012, 06:53:18 pm »

rokytnji,

so it work for u? might want to post a how to on operating pianobar... Smiley
Logged
rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #6 on: September 09, 2012, 04:04:01 am »

rokytnji,

so it work for u? might want to post a how to on operating pianobar... Smiley

Ok. I will. Just give me some time. It is dawn/morning here.
Logged

rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #7 on: September 09, 2012, 04:45:54 am »

I hate to bother you again but would making a package of Pithos be a strain to do also.

http://kevinmehall.net/p/pithos/

The reason I ask is because pianobar can use scrobble to access lastfm for you overseas users if you have a lastfm radio account  but
it must be done through text files and command line.

http://hunnur.com/blog/2011/02/scrobble-to-last-fm-with-pianobar/

Pithos does all of that through a gtk interface
since Pithos is the gtk front end for Piano bar.

Quote
Features

    Play / Pause / Next Song
    Switching stations
    Remembering user name and password
    Cover Art
    Thumbs Up / Thumbs Down / Tired of this song
    Notification popup with song info
    Launching pandora.com song info page and station page
    Reconnecting when pandora session times out
    Editing QuickMix
    Creating stations
    Media Key support
    Proxy support
    Last.fm scrobbling

Not yet implemented

    Browsing genre stations
    Adding songs to stations / move song to another station


http://mike.opennix.com/2011/12/pandora-clients-added-for-slackware-13-37/

I will test the pithos package if you make it, on my Vector 7 box. I only mention all
of this because command line can be very intimidating to new Linux/Vector Linux users.
Plus. It will make Vector 7 even more feature rich with lightweight applications that only
Debian and Ubuntu users seem to only be able to get easily.



Logged

hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #8 on: September 10, 2012, 11:29:20 pm »

hi rokytnji,

Please download pithos from below link (download base on your system's arch)...

Quote

You need below packages install to get pithos to run...you can get all this via gslapt/slapt-get

Quote
dbus-python >= 0.83.2
gst-plugins-bad >= 0.10.20
gst-plugins-base >= 0.10.30
gst-plugins-good >= 0.10.25
gst-pyhton >= 0.10.19
gstreamer >= 0.10.32
hicolor-icon-theme >= 0.12
keybinder >= 0.2.2
notify-python >= 0.1.1
python >= 2.7.2
python-distutils-extra >= 2.26
pyxdg >= 0.19

PS: Mostly you need to install python-distutils-extra, pyxdg and keybinder from gslapt...don't upgrade any gstreamer/gst packages if you already have them... Smiley
Logged
rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #9 on: September 11, 2012, 07:14:50 am »

Ok. The only thing I had installed extra by default was gst-ugly (I did not unistall this)
0.10.16 which I guess was installed during VL 7 STD Gold
Installation process. The other gstreamer and gst were already
installed also and were the versions you recommended. I have
not upgraded them.

Installing keybinder upgraded pixman 0.21.6 to pixman 0.24.4.

Installing python-distutils-extra 2.26 pulls in steuptools .6c11.

pyxdg .19 pulls in nothing extra or upgrades nothing either.

I am just documenting the dependencies installs and only the
ones I needed to install in VL 7 STD Gold in this post.

I will now be moving on to downloading and installing Pithos
next.
« Last Edit: September 11, 2012, 11:38:43 am by rokytnji » Logged

rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #10 on: September 11, 2012, 07:46:43 am »

Ok. I downloaded both

pithos-0.3.17-i586-1vl70.txz

pithos-0.3.17-x86_64-1vl70.txz


I first installed the i586 pithos because I have had good luck with i586 Slackware packages installing and working on this Laptop  (doh, it's 32 bit laptop) . Pithos works for me hata_ph so far using that package on this unit . I will test again later on on
My IBM Desktop. I have to downgrade gstreamer and gst on it because I experimented before your post and was
trying to get Pithos to work on my own from

http://slackware.opennix.com/?slackversion=13.37&category=multimedia

which of course did not work out for me because I usually poke and hope around in the dark
when I am experimenting and trying to teach myself new tricks.  Here is Pithos running on this Amrel
Laptop.



« Last Edit: September 13, 2012, 07:44:30 am by rokytnji » Logged

rokytnji
Vectorite
***
Posts: 101


Linux Friganeer


WWW
« Reply #11 on: September 11, 2012, 10:32:04 am »

2nd test now done on my IBM M41 Desktop. I only downloaded the

pithos-0.3.17-x86_64-1vl70.txz


to test on this box. It has a little more umph/bigger specs than the previous laptop.

I downgraded first all the gst and gstreamer packages I had upgraded earlier in my own
Pithos install experiment. pithos-0.3.17-x86_64-1vl70.txz
 is working OK on this box hata_ph.


Logged

hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #12 on: September 11, 2012, 04:28:47 pm »

Thanks for testing it Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!