You know there are a couple alternatives that I have not seen discussed in the forums...
One is to install rpm on your debian box and installed the rpm package. Problem with this is that debian will know nothing of this install. The second alternative, which I used and found to be very easy was to convert the rpm to a .deb package using a tool called alien. I installed alien using dselect. As well as the required packages, I installed bzip2 and lintian. If you would like more information on alien you can go here: http://packages.debian.org/unstable/admin/alien or here: http://www.kitenet.net/programs/alien/ Basically once I installed alien, I downloaded the rpm and ran these 2 commands as root to convert the package: alien slimserver-6.2.1-1.noarch.rpm alien --test slimserver_6.2.1-2_all.deb Then I installed (as root) the .deb package using this command dpkg -i slimserver_6.2.1-2_all.deb Next I created a user for slimserver to run as. I created a user called squeeze. Next I changed ownership of the slimserver directory. cd /usr/local chown squeeze:squeeze slimserver (I keep my music on a separate file system, mounted to /tunes. I chown /tunes to squeeze:squeeze also) Next there is a little quirk that will keep you from writing the slimserver.conf file in /etc. Here is how I got around that... cd /etc touch slimserver.conf chgrp squeeze slimserver.conf chown 664 slimserver.conf Next I became the squeeze user ( su - squeeze) and ran slimserver cd /usr/local ./slimserver.pl Next I went to the web interface and configured slimserver, and scanned my music library. Once the scan was complete, I stopped slimserver and the created a startup file so slimserver will restart when the box boots. exit from the squeeze shell so you are root again. cd /etc/init.d now open vi or your favorite editor and create a file called slimserver, put the following lines in the file and save it. (note is it just 3 lines, as I type this the forum is word wrapping the --daemon" which should be at the end of the 3rd line) #!/bin/sh echo "Starting SlimServer" su - squeeze -c "cd //usr/local/slimserver; ./slimserver.pl --daemon" Now change permissions on the file chmod 600 slimserver Now make a link in the appropriate rc directory. Most of the time this will be /etc/rc2.d. cd /etc/rc2.d ln -s ../init.d/slimserver S99slimserver Now test the startup script, you can either reboot the server, or just run the script manually. /etc/rc2.d/S99slimserver That is it in a nutshell, so far everything seems to work correctly. By the way, I am running Debian Sarge. That is it!! meatWAD -- meatWAD ------------------------------------------------------------------------ meatWAD's Profile: http://forums.slimdevices.com/member.php?userid=661 View this thread: http://forums.slimdevices.com/showthread.php?t=19382 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/unix
