PDA

View Full Version : Newbie Unix Question



Tim Marino
2004-03-07, 19:59
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

Jade E. Deane
2004-03-07, 20:06
chmod +x /etc/rc.d/init.d/slimserver

On Sun, 2004-03-07 at 18:59 -0800, 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 youre looking for faster
> http://search.yahoo.com
>

Moses Leslie
2004-03-07, 21:01
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
>

Moses Leslie
2004-03-07, 21:05
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
> >

Jeff Blasius
2004-03-07, 21:59
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

-jeff




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
>>>

kdf
2004-03-07, 23:30
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
> >>>