PDA

View Full Version : Newbie Unix Question



Tim Marino
2004-03-08, 19:47
Thanks to all who have provided advice. I did verify
that we were pointing to perl and bash correctly. I
decided to start simply and tried executing
/usr/local/slimserver/slimserver.pl and it worked. I
received some errors but I was able to open the web
interface and it saw both players. To verify with my
experts. A sample of th errors (they repeat):
2004-03-08 19:13:00.7215 Couldn't write preferences
file out /etc/slimserver.conf
2004-03-08 19:13:05.9257 Couldn't write preferences
file out /etc/slimserver.conf
Use of uninitialized value in join or string at
/usr/lib/perl5/5.8.1/File/Spec/Unix.pm line 73.

Do I need to change the permissions on the file
slimserver.conf? It doesn't appear that these are
fatal errors since I can open the interface.

My music currently resides on my Windows machine. I
can access the shared music directory from unix but
slimserver gives me an "oops" message that it cannot
access the library. I'm guessing here but just because
I can access the files from my ID, is slimserver
trying with it's own ID and having a permission
problem? Samba is running but I haven't fully
configured it. Short of physically moving the drive,
is there an easy solution? Am I close with an access
rights problem?

Thanks again for all the help.

--- kdf <slim-mail (AT) deane-freeman (DOT) com> wrote:
> Quoting Jeff Blasius <jeff.blasius (AT) yale (DOT) edu>:
>
> > Actually, the problem is that the rpm is built for
> redhat and not suse.
> > SuSE has a more sys V like init directory
> structure (I'm pretty sure,
> > however others may be able to correct me there)
> and there is no
> > /etc/rc.d/init.d directory.
> >
> > Tim you're better off downloading the tar.gz
> package.
> > "wget
> >
>
http://www.slimdevices.com/downloads/SlimServer_v5.1.1/SlimServer_v5.1.1.tar.gz"
> >
> > Extracting it by
> > "tar zxvf SlimServer_v5.1.1.tar.gz"
> >
> > Then starting the slimserver by
> > SlimServer_v5.1.1/slimserver.pl --daemon
> >
> > From there open a browser and go to
> > http://localhost:9000
> >
> Having installed the RPM, you can still run the
> server from
> /usr/local/slimserver/slimserver.pl
>
> There used to be a nice SuSE style startup script
> included in the server tools
> directory in an older version. I'm not sure where it
> went. I know Slim Devices
> has been collecting startu p scripts for various
> flavours of linux, but I dont
> know if or how they'll be included with the release.
> Ideally, they'll offer
> different package builds where possible.
>
> -kdf
> >
> > Moses Leslie wrote:
> >
> > >Actually, for some reason I was thinking it would
> be perl there, but it's
> > >probably bash or csh or something.
> > >
> > >So, check the file first, it's probably something
> like:
> > >
> > >#!/bin/sh
> > >
> > >in this case you would do:
> > >
> > >which sh
> > >
> > >and change the first line in the file to match.
> > >
> > >Moses
> > >
> > >On Sun, 7 Mar 2004, Moses Leslie wrote:
> > >
> > >
> > >
> > >>type:
> > >>
> > >>which perl
> > >>
> > >>at a command line. It will say something like:
> > >>
> > >>marmoset@chupacabra:~$ which perl
> > >>/usr/bin/perl
> > >>marmoset@chupacabra:~$
> > >>
> > >>Now look at the slimserver file
> (/etc/rc.d/init.d/slimserver in this case)
> > >>and at the top there will be something like
> > >>
> > >>#!/usr/local/bin/perl
> > >>
> > >>If the stuff after #! is different from what you
> got in the "which perl"
> > >>command, edit the slimserver file so that it
> matches up. In the above
> > >>example, you'd edit it so that it said
> > >>
> > >>#!/usr/bin/perl
> > >>
> > >>If they are already the same, then this isn't
> the problem.
> > >>
> > >>As far as the slimserver username, you don't
> ever want to log on as
> > >>slimserver, the reason it's there is so that the
> slimserver software can
> > >>run as a user than has no special permissions
> (unprivileged) to lessen the
> > >>harm that could be done if something went wrong
> with the software.
> > >>
> > >>moses
> > >>
> > >>On Sun, 7 Mar 2004, Tim Marino wrote:
> > >>
> > >>
> > >>
> > >>>I'm relatively new to unix and I am running
> Suse linux
> > >>>9. I am especially inexperienced installing
> programs.
> > >>>I got the SlimServer rpm and Suse's Yast
> installed it.
> > >>>I assume it is installed correctly though not
> sure how
> > >>>to verify that. Perl 5.8.something is installed
> as
> > >>>well.
> > >>>
> > >>>I am logged in with my user account. If I
> execute the
> > >>>command suggested in the doc file:
> > >>>/etc/rc.d/init.d/slimserver start from the
> command
> > >>>console I get the message "no such file or
> directory".
> > >>>I get the same message when logged in as
> "root". But
> > >>>if I navigate the file structure I can see the
> > >>>slimserver file in the specified directory.
> > >>>
> > >>>I also noticed on the logon screen a new user
> > >>>"SlimServer" appeared after the install. What
> is that
> > >>>and how would I log on to it as I do not have a
> > >>>password.
> > >>>
> > >>>I still have a quite a bit to learn about unix.
> I
> > >>>appreciate any and all advice or
> recommendations.
> > >>>
> > >>>Thanks.
> > >>>
> > >>>
> > >>>__________________________________
> > >>>Do you Yahoo!?
> > >>>Yahoo! Search - Find what you’re looking for
> faster
> > >>>http://search.yahoo.com
> > >>>