I'm having a few problems getting the slimserver software running under
a restricted account on Suse linux 9.3.
I first tried installing via the rpm, and then modifying the init
script / setup to use the script in the wiki. This would work at the
command line if I ran
/etc/init.d/slimserver start
as root with the start section of the init script modified to not have
the -u SLIMSERVER_USER command option (ie, it ran as root). This
wouldn't work at system startup (for obvious reasons)
If I put the -u SLIMSERVER_USER back into the script, whilst the init.d
script would complete, the slimserver software wouldn't start, and I
would get an error in the slimserver log about not being able to open
the database at /root/slimserversql.db (even I can see what the problem
is here!(although I don't know how to fix it))
After messing around with the software for the last 3 days and not
getting anywhere I uninstalled the rpm, removed the db, config and
sysconfig files and deleted the log (ie, purged it the software from
the box!). I also made sure the user and group were gone.
I then retrieved the 6.1.1 tarball and opened that up. I created a
directory in /usr/local/ called slimserver, and added a group and user
called slimserver with the home directory of the user set to
/usr/local/slimserver.
I moved the tarball contents into the /usr/local/slimserver directory
and then changed the owner on the directory and contents to
slimserver:slimserver.
I recreated the sysconfig/slimserver file (shouldn't really have got
rid of it in hindsight) and touched a file called /etc/slimserver.conf
and made it writeable by all.
I then made sure the init.d script was the one from the wiki, and ran
/etc/init.d/slimserver start
On the command line I get the following:
Use of uninitialized value in string eq at
/usr/local/slimserver/Slim/Utils/Prefs.pm line 424.
in the log I get:
Use of uninitialized value in -d at
/usr/local/slimserver/Slim/Networking/mDNS.pm line 26.
Use of uninitialized value in -d at
/usr/local/slimserver/Slim/Networking/mDNS.pm line 26.
Use of uninitialized value in -d at
/usr/local/slimserver/Slim/Networking/mDNS.pm line 26.
Use of uninitialized value in -d at
/usr/local/slimserver/Slim/Networking/mDNS.pm line 26.
Use of uninitialized value in -d at
/usr/local/slimserver/Slim/Networking/mDNS.pm line 26.
Use of uninitialized value in join or string at
/usr/lib/perl5/5.8.6/File/Spec/Unix.pm line 73.
DBI connect('dbname=/.slimserversql.db','',...) failed: unable to open
database file(1) at dbdimp.c line 94 at
/usr/local/slimserver/Slim/DataStores/DBI/DataModel.pm line 113
It is obviously the last error that I guess is casuing my the most
problems. Why is the slimserver account trying to write the database to
/ instead of its home directory?
I think that covers all the problems, however, if I've missed anything
out, please let me know and I'll add it.
Thanks in advance for any help you can give.
Steve
--
steve_uk
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix