Page 87 of 117

pMusic 4.1.0

Posted: Sat 03 Aug 2013, 11:03
by Billtoo
Hi zigbert,
In the new Precise 5.7.1 if you edit the .spot-status file to make
pMusic run under user spot there is a problem when you go to shut pMusic
down, it won't.
Restarting x will quit pMusic but the lights on the modem are still
blinking like crazy so the stream is still downloading, need to reboot
to stop it.

Posted: Sat 03 Aug 2013, 14:55
by zigbert
Billtoo
Precise is using a very old version (2.6.7) of pMusic. I don't know why Barry finds this as a proper solution. Much has been improved in generation 3 and 4 of pMusic.

Please install the latest pMusic and report back if the bug is still there. I don't want to spend time fixing an outdated player.

Also, I haven't tried running as spot, so it would be great if you could explain in detail how I can reproduce the bug.


Thank you
Sigmund

Posted: Sat 03 Aug 2013, 15:32
by Billtoo
zigbert wrote:Billtoo
Precise is using a very old version (2.6.7) of pMusic. I don't know why Barry finds this as a proper solution. Much has been improved in generation 3 and 4 of pMusic.

Please install the latest pMusic and report back if the bug is still there. I don't want to spend time fixing an outdated player.

Also, I haven't tried running as spot, so it would be great if you could explain in detail how I can reproduce the bug.


Thank you
Sigmund
I updated to the latest pMusic and the problem is still there, pMusic
will shutdown now but the modem lights are flashing so the stream is
still downloading.

To run pMusic under user spot you need to load and edit the
.spot-status file which is a hidden file in the root directory.
Add pmusic=false and then save the file,open the terminal and run loginmanager,
that's it.

Posted: Sun 04 Aug 2013, 08:26
by zigbert
Billtoo
Thank you
Will look into it


Sigmund

Posted: Sun 04 Aug 2013, 14:27
by zigbert
Billtoo
Would you please help me by testing the following?

Add a new line at the very end of /usr/local/pmusic/pmusic
exit 0

Does this help out? - it improves process handling for me both for root and spot


Thank you
Sigmund

Posted: Sun 04 Aug 2013, 14:44
by Billtoo
zigbert wrote:Billtoo
Would you please help me by testing the following?

Add a new line at the very end of /usr/local/pmusic/pmusic
exit 0

Does this help out? - it improves process handling for me both for root and spot


Thank you
Sigmund
I added to the pmusic file but it hasn't helped, I quit pmusic about 5 minutes ago and the modem lights are still blinking, downloading the radio stream.

EDIT:I switched back to running as root and it quits as it should, won't quit properly running as spot though and I thought running as spot would be a more secure method for programs that access the internet.

Posted: Sun 04 Aug 2013, 16:17
by zigbert
Billtoo
Are you able to find the actual running process?

Posted: Sun 04 Aug 2013, 16:31
by Billtoo
zigbert wrote:Billtoo
Are you able to find the actual running process?
I just switched back to user spot and tried again, the process that keeps running after quitting pMusic is streamripper.

Posted: Sun 04 Aug 2013, 17:15
by zigbert
Billtoo
I am in Slacko 5.4, and streamripper closes after pMusic exit for spot.
What permissions are set for streamripper?

Code: Select all

ls -l "$(which streamripper)"

Sigmund

Posted: Sun 04 Aug 2013, 17:18
by Billtoo
zigbert wrote:Billtoo
I am in Slacko 5.4, and streamripper closes after pMusic exit for spot.
What permissions are set for streamripper?

Code: Select all

ls -l "$(which streamripper)"
Sigmund
I don't have pMusic running atm but I entered the code in the terminal:

# ls -l "$(which streamripper)"
-rwxr-xr-x 1 root root 117316 Aug 2 10:32 /usr/bin/streamripper
#

Posted: Sun 04 Aug 2013, 17:22
by zigbert
Billtoo
permissions looks good...

The exact code that kills streamripper when closing pMusic is

Code: Select all

for I in `grep -F "streamripper" <<< "$(ps -eo pid,command)" | grep -F "A -k 0 -u WinampMPEG/5.0 -r 8002" | awk '{print $1}'`; do kill -9 $I; done
It would be great to see what terminal output that gives


Sigmund

Posted: Sun 04 Aug 2013, 17:59
by Billtoo
zigbert wrote:Billtoo
permissions looks good...

The exact code that kills streamripper when closing pMusic is

Code: Select all

for I in `grep -F "streamripper" <<< "$(ps -eo pid,command)" | grep -F "A -k 0 -u WinampMPEG/5.0 -r 8002" | awk '{print $1}'`; do kill -9 $I; done
It would be great to see what terminal output that gives


Sigmund
After you showed the first code about streamripper permissions I tried
changing permissions of streamripper, then tried running pMusic but it
would just flash on and off.
I opened ppm and removed the pmusic-4.1.0.pet
The old version of Pmusic had the old problems so I reinstalled the
new version and it's working fine now, quits properly (streamripper
too).
I had the same problem on two other computers so it's real, I think
you'll need to be in precise 5.7.1 to reproduce the problem.
It's working now so I'm quitting while I'm ahead and going to watch
golf on tv for a while :)
Thanks

EDIT: damn, it's running with user root not spot so I think the problem is still there, will look again later.


EDIT: the problem was still there when running as spot. I've given up, hopefully Precise will have the latest pMusic at some point and I'll give it a try then but for now I'm using a small program for streaming radio stations, cmus.

EDIT: I think with 01micko's help we found a solution, removed pMusic from the
.spot-status file and put streamripper and ffmpeg in it's place.
It's working well in the older 2.6.7 version in precise and the new version in slacko.

Posted: Wed 07 Aug 2013, 08:59
by zigbert
Version 4.1.1
See main post

Changelog
- Faster build of menu_sourcelist.
- Plugin: show play-engine command and output.
- Adjusted fontsize to fit 96 dpi.
- Removed /usr/local/pmusic/blank.png.
- Added copyright info in about-window.
- Removed some unused variables in pmusicrc.
- Nad5: insensitive checkboxes and adjusted fontsize.
- Bugfix: Top-Hits fails to run twice.
- Bugfix: Exit pMusic properly. (thanks to Billtoo)
- Bugfix: Menu_sourcelist: 'Show location' also for files.

Broken pmusic gui

Posted: Thu 08 Aug 2013, 20:32
by mt0ne
So I've lost my gui for pmusic, it plays files but I must have hit a hotkey or something because the window doens't exist on any desktop even after reboot...
is there a hotkey to bring back gui? I've even tried upgrading to the newest pmusic player but this setting is somewhere saved...

Posted: Thu 08 Aug 2013, 21:40
by zigbert
mt0ne
Please post the terminal output when you run

Code: Select all

pmusic --debug
and

Code: Select all

pmusic -D

Sigmund

Posted: Fri 09 Aug 2013, 21:56
by pemasu
First test done. Streams wirelessly to my stereos through Apple Airport Express.....in Lubuntu 64 bit OS :D

All the functions are not quite there, but well...works good enough.

http://i.imgur.com/aYzPMVB.jpg

Posted: Sat 10 Aug 2013, 10:23
by zigbert
pemasu
What great pic!

I see that gtkdialog isn't up to date.

If there are functions you'll like me to look at, please share.


Sigmund

Posted: Sat 10 Aug 2013, 10:36
by pemasu
I compiled gtkdialog from source in Lubuntu. I downloaded latest svn. So...it should be up to date:

$ gtkdialog --version
gtkdialog version 0.8.4 r514M (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with support for: GTK+ 2.

I have had full linux distro installation last time about year 2000. If you dont count Puppy Linux distros I mean. I am absolute novice with all this sudo - gksudo - permissions jungle. Root for ever you know... You really dont have right to mess and break your OS with your will. So...I dont know yet how much of the problems comes due to not enough permissions. I will ask you spesific questions...when I have launched pmusic --debug enough times and if and when I found something which would need some hack.

Busybox was missing. I noticed your scripts asked usleep. So...I downloaded busybox and symlinked /bin/usleep into busybox. There might be some other needed binaries or busybox symlinks still missing.

Anyway...I use Pmusic mostly for net radio streams. Installing ffmpeg ( ubuntu somekind version ) I can now stream to the stereos as I have wanted. So I am happy.

Posted: Sat 10 Aug 2013, 10:42
by 01micko
Better post my Slackware64-14.0 pic too then .. :P


Image

Full Size

..yeah, Slackware isn't big on gtk themes! (KDE running)

EDIT: installed NADS to fix that!

Posted: Sat 10 Aug 2013, 10:51
by simargl
.