PDA

View Full Version : Linux non-RPM install



John J. Stimson-III
2005-02-14, 13:54
I just got my Squeezebox on Friday, and I'm pretty pleased with it so
far. I got faad2 working to decode AAC files by downloading the
"golden" version using CVS, as described in the mailing list archives.

I am running Slackware Linux. I'd like a recommended installation
procedure to run on a non-Redhat Linux system. I have created a user
named slim and a group named slim (UID/GID 408). I can't see inside
the RPM file, so I'd like to know:

What are the contents of /etc/slimserver.conf?
I think I've answered this...same as you get in
~/.slimserver.prefs, right?

What are the ownership/permissions for /etc/slimserver.conf?

What is the home directory for user 'slim'?

What are its contents?

What are the contents of the slimserver init/startup script?
I am using:

/usr/local/slimserver/slimserver.pl --user 408 --group 408

I tried

/usr/local/slimserver/slimserver.pl --user slim --group slim

but I got an error message saying that 'slim' was not a known group.
But slimserver.pl ends up running as root anyway, using root's home
directory for the DB and the prefs file.

How can I get slimserver to actually run as a different UID?

--

john (AT) idsfa (DOT) net John Stimson
http://www.idsfa.net/~john/ HMC Physics '94

kdf
2005-02-14, 14:06
Quoting "John J. Stimson-III" <john (AT) harlie (DOT) idsfa.net>:

> What are the contents of /etc/slimserver.conf?
> I think I've answered this...same as you get in
> ~/.slimserver.prefs, right?
correct, and not required. /etc/slimserver.conf is just the location used by
the RPM.

>
> What are the ownership/permissions for /etc/slimserver.conf?
again, you dont need this if you arent running the RPM

>
> What is the home directory for user 'slim'?

none. the rpm installs to /usr/local/slimserver, with slimserver:slimserver
ownership.

>
> What are its contents?

none

>
> What are the contents of the slimserver init/startup script?
> I am using:
>
again, I'm not really sure how this is applicable if you aren't using RedHat,
the init.d script is useless. Best bet is to find a copy of an init script from
your flavour of linux and use that as a base for it to start slimserver.


> /usr/local/slimserver/slimserver.pl --user 408 --group 408
>
> I tried
>
> /usr/local/slimserver/slimserver.pl --user slim --group slim
>
> but I got an error message saying that 'slim' was not a known group.
> But slimserver.pl ends up running as root anyway, using root's home
> directory for the DB and the prefs file.
>
> How can I get slimserver to actually run as a different UID?

I suspect the above options only work with the --daemon option, as this is the
only usage of $uname in the main script.

-kdf

Avi Schwartz
2005-02-14, 14:49
John J. Stimson-III wrote:

>I just got my Squeezebox on Friday, and I'm pretty pleased with it so
>far. I got faad2 working to decode AAC files by downloading the
>"golden" version using CVS, as described in the mailing list archives.
>
>I am running Slackware Linux. I'd like a recommended installation
>procedure to run on a non-Redhat Linux system. I have created a user
>named slim and a group named slim (UID/GID 408). I can't see inside
>the RPM file, so I'd like to know:
>
If you have rpm2cpio on your system you can extract the content of the
rpm yourself using:

rpm2cpio rpmfile | cpio -i

Or, you could use the alien program (http://kitenet.net/programs/alien/)
to convert it to a .tgz.


Avi

--
Avi Schwartz
http://public.xdi.org/=avi.schwartz