PDA

View Full Version : slimp3slave startup on debian



pmcdowell
2004-04-07, 18:18
I'd like to set up my slimp3slave debian player up so that it just starts up
automatically on boot. Its a home machine inside a firewall and security
isn't really an issue.
Has someone got a script or maybe point me at a general purpose howto.
I'm a happy squeezebox user, this is just for another headless dumpster
reclaimed player to synchronize with it.

alexd
2004-04-08, 01:59
On Thu, 2004-04-08 at 13:18 +1200, pmcdowell wrote:

> I'd like to set up my slimp3slave debian player up so that it just starts up
> automatically on boot. Its a home machine inside a firewall and security
> isn't really an issue.
> Has someone got a script or maybe point me at a general purpose howto.
> I'm a happy squeezebox user, this is just for another headless dumpster
> reclaimed player to synchronize with it.

cat /etc/init.d/README

alexd
--
http://ale.cx

Martin
2005-09-19, 15:06
slimp3slave has a segfault issue when it isn't foreground in a console. even backgrounding it causes a segfault... I think there's a memory allocation/access issue (from the segfault), but it's 900+ lines of code I'd rather not debug for a pointer error =/

I ran it as a service, but it segfaults there too.

mherger
2005-09-19, 23:53
> slimp3slave has a segfault issue when it isn't foreground in a
> console.
> even backgrounding it causes a segfault... I think there's a memory
> allocation/access issue (from the segfault), but it's 900+ lines of
> code I'd rather not debug for a pointer error =/

Try v0.3 (latest is IMHO 0.4). The latter caused more problems for me, too. 0.3 doesn't offer the text based UI, but did its job of playing quite fine.

http://www.ex-parrot.com/~pdw/slimp3slave/download/slimp3slave-0.3.tar.gz

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

stinga`
2005-09-22, 13:42
If you are interested, I have managed to get this to work.

I created a -b option (background) and changed one line in the code.

mherger
2005-09-22, 13:58
> If you are interested, I have managed to get this to work.
>
> I created a -b option (background) and changed one line in the code.

Yes please!

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

stinga`
2005-09-22, 23:41
G'day all,

Here is a patch to update your c code

It works for me, no guarantee's it will work for you :-)

mherger
2005-09-25, 08:27
> If you are interested, I have managed to get this to work.
>
> I created a -b option (background) and changed one line in the code.

Excellent! Works like a charm. Thanks a lot!

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

Martin
2005-10-06, 12:49
If you are interested, I have managed to get this to work.

I created a -b option (background) and changed one line in the code.

I'd love to hear about this too!

mherger
2005-10-06, 13:02
>> If you are interested, I have managed to get this to work.
>> I created a -b option (background) and changed one line in the code.
>
> I'd love to hear about this too!

I downloaded his patch, compiled and have it running since without a
problem using the following command line:

slimp3slave -b -s localhost

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

Roger the Shrubber
2005-10-25, 01:55
I've managed to apply the patch and compile slimp3slave. I had to change 'curses' into 'ncurses' in slimp3slave.c and the Makefile.

It plays the music fine but 2 problems remain:
- as root, the music plays fine but it still comes up and says "Playmode: 3" every time I change the song.
- otherwise it says "Ignoring sigpipe" and no music plays. The Playmode message also appears in between.

It's on Suse 9.3 (and I know next to nothing about linux). Any tips?

stinga
2005-10-25, 03:11
On 25/10/05 09:55:05, Roger the Shrubber wrote:
>
> I've managed to apply the patch and compile slimp3slave. I had to
> change
> 'curses' into 'ncurses' in slimp3slave.c and the Makefile.
>
> It plays the music fine but 2 problems remain:
> - as root, the music plays fine but it still comes up and says
> "Playmode: 3" every time I change the song.
> - otherwise it says "Ignoring sigpipe" and no music plays. The
> Playmode message also appears in between.
>
> It's on Suse 9.3 (and I know next to nothing about linux). Any tips?
>
>

Did you run it with the -b option?
--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: stinga (AT) wolf-rock (DOT) com o
You need only two tools. o /////
A hammer and duct tape. If it /@ `\ /) ~
doesn't move and it should, > (O) X< ~ Fish!!
use the hammer. If it moves and `\___/' \) ~
shouldn't, use the tape. \\\
---------------------------------------------------

Roger the Shrubber
2005-10-25, 04:25
Yes, with -b.
The patch seems to be applied properly because the .c file has 'while((opt = getopt(argc, argv, "+vlbhs:c:")) != -1)' in it.

Is it supposed to return to the prompt because I also don't get back when I start?

stinga
2005-10-25, 08:35
On 25/10/05 12:25:46, Roger the Shrubber wrote:
>
> Yes, with -b.
> The patch seems to be applied properly because the .c file has
> 'while((opt = getopt(argc, argv, "+vlbhs:c:")) != -1)' in it.
>
> Is it supposed to return to the prompt because I also don't get back
> when I start?
>
>

Nope it just supposed to sit there making noise... :-)

If you want ti actually background it, thaen use of the & is required!
Maybe 'background' was not such a good description.

--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: stinga (AT) wolf-rock (DOT) com o
You need only two tools. o /////
A hammer and duct tape. If it /@ `\ /) ~
doesn't move and it should, > (O) X< ~ Fish!!
use the hammer. If it moves and `\___/' \) ~
shouldn't, use the tape. \\\
---------------------------------------------------

Roger the Shrubber
2005-10-25, 08:55
I don't know what & does (or how to use it), but I can get it to run and show a prompt again with:
startproc -u slimserver /usr/local/slimserver/slimp3slave/slimp3slave -b -s localhost

but then I still get "Ignoring sigpipe" (as slimserver) and "Playmode: 3" (as root and as slimserver).

stinga
2005-10-25, 11:14
On 25/10/05 16:55:18, Roger the Shrubber wrote:
>
> I don't know what & does (or how to use it), but I can get it to run
> and
> show a prompt again with:
> startproc -u slimserver /usr/local/slimserver/slimp3slave/slimp3slave
> -b -s localhost
>
> but then I still get "Ignoring sigpipe" (as slimserver) and
> "Playmode:
> 3" (as root and as slimserver).
>


I just do
slimp3slave -b&
and it works, never tried the -s option since I have slimp3slave and
slimserver on the same box.

Try that.
I might have commented out the Playmode comment in the c code since I
wasn't interested.
I am sure the sigpipe error is when it is trying to accept input when
you have run it daemon mode, which would sort of say the -s is screwing
up the -b option.

--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: stinga (AT) wolf-rock (DOT) com o
You need only two tools. o /////
A hammer and duct tape. If it /@ `\ /) ~
doesn't move and it should, > (O) X< ~ Fish!!
use the hammer. If it moves and `\___/' \) ~
shouldn't, use the tape. \\\
---------------------------------------------------

Roger the Shrubber
2005-10-25, 13:46
the result of
startproc /usr/local/slimserver/slimp3slave/slimp3slave -b

and
slimp3slave -b&

is the same except that in the latter case it returns the PID. "Playmode: 3" is still showing up. I'll try to remove it from the source.

The "Ignoring sigpipe" is probably related to permissions, I guess. I just checked and madplay won't work as slimserver either. I did add slimserver to the 'audio' group in YAST, but no effect. Any suggestions on that?
Thanks!

Roger the Shrubber
2005-10-25, 15:18
chmod 666 /dev/dsp seems to have fixed it.
Thanks for your help!

stinga
2005-10-26, 01:08
On 25/10/05 21:46:20, Roger the Shrubber wrote:
>
> the result of
> startproc /usr/local/slimserver/slimp3slave/slimp3slave -b
>
> and
> slimp3slave -b&
>
> is the same except that in the latter case it returns the PID.
> "Playmode: 3" is still showing up. I'll try to remove it from the
> source.
>
> The "Ignoring sigpipe" is probably related to permissions, I guess. I
> just checked and madplay won't work as slimserver either. I did add
> slimserver to the 'audio' group in YAST, but no effect. Any
> suggestions
> on that?
> Thanks!
>

??!!???
Lets go back to basics...

Log on as root.
run slimp3slave
does it work?

run slimp3slave -b&
does it work?

run madplay
does it work?

Maybe it is a madplay issue?

Post any output, if you get any...

--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: stinga (AT) wolf-rock (DOT) com o
You need only two tools. o /////
A hammer and duct tape. If it /@ `\ /) ~
doesn't move and it should, > (O) X< ~ Fish!!
use the hammer. If it moves and `\___/' \) ~
shouldn't, use the tape. \\\
---------------------------------------------------