Thanks for the Ubuntu instrux. I only ran into 1 snag in the process: I
have a default Breezy install and not all the required packages were
installed. It took a few minutes to track them all down, so I thought
I'd record my work here for posterity.
Since meatwad's already laid out the .deb option, I'll repeat Patrick
Dixon's instrux with a few minor alterations of my own.
-----------------------------------
/* Download the source */
(use your browser to get the source you want)
/* become root */
sudo su
/* setup slimserver group and user (system requires no password) */
adduser --system --group slimserver
/* get the packages you'll need */
apt-get install libexpat1-dev libappconfig-perl
libhtml-element-extended-perl libc6-dev
/* move the source from where ever you downloaded it to /usr/local */
mv /home/*your user*/Desktop/SlimServer_6_2_x_v2006-01-01.tar.gz
/usr/local
cd /usr/local
/* unpack slimserver code (don't worry it wont explode into
/usr/local)*/
tar -xzvf SlimServer_6_2_x_v2006-01-01.tar.gz
/* give a pseudonym to the real directory */
ln -s SlimServer_6_2_x_v2006-01-01 slimserver
/* set owners */
chown -RH root:slimserver /usr/local/slimserver
/* create startup script */
nano /etc/init.d/slimserver
cut & paste:
#!/bin/sh
# slimserver init script for Debian Linux
#
# This script expects slimserver to be installed in
# /usr/local/slimserver
#
# logfile will be written to
# /tmp/slimserver.log
#
DAEMON=/usr/local/slimserver/slimserver.pl
PIDFILE=/var/tmp/slimserver.pid
LOGFILE=/tmp/slimserver.log
USER=slimserver
SLIMSERVER_OPTS=""
test -x ${DAEMON} || exit 0
case "$1" in
start) echo -n "Starting Slimserver: "
HOME=/home/$USER
start-stop-daemon --start --quiet --exec $DAEMON \
--chuid ${USER} -- --daemon \
--prefsfile=/etc/slimserver.pref --pidfile=${PIDFILE} \
--logfile=${LOGFILE} ${SLIMSERVER_OPTS}
echo "slimserver"
;;
stop) echo -n "Stopping Slimserver: "
start-stop-daemon --stop --quiet --user ${USER} --pidfile ${PIDFILE}
--retry 5
echo "done"
;;
force-reload|restart) $0 stop
$0 start
;;
*) echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1;
;;
esac
exit 0
(save file)
chmod 744 /etc/init.d/slimserver
/* Download and install some modules */
/usr/local/slimserver/Bin/build-perl-modules.pl
(When prompted, I downloaded the files to /home/slimserver)
(Don't worry about the signedness warnings, they seem to affect
nothing.)
/* start slimserver */
/etc/init.d/slimserver start
(go to http://localhost:9000 to make sure its working)
/* add to init */
update-rc.d slimserver defaults
/* stop being root */
exit
--
kay
------------------------------------------------------------------------
kay's Profile: http://forums.slimdevices.com/member.php?userid=3126
View this thread: http://forums.slimdevices.com/showthread.php?t=19382
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix