This is what I did to get it up and running. I usually build packages
for everything I install because it makes it easier to upgrade or
uninstall, but for this I chose to simply untar in a home directory.

Install libgd and sox (not entirely sure if the latter is required).

Code:
--------------------
    $ sudo pacman -S gd sox
--------------------


Create a user, I named it 'slim'. I then locked it down to be on the
safe side.

Code:
--------------------
    $ sudo adduser
  $ sudo passwd -l slim
--------------------


Untar the software (using the actual path to where it was downloaded).

Code:
--------------------
    $ cd /home/slim
  $ sudo -u slim tar xzf squeezecenter-7.2.1.tgz
--------------------


Create a couple of empty files and directories as the slim user. This
is the fix that this thread was about.

Code:
--------------------
    $ sudo -u slim mkdir -p cache prefs/plugin
  $ sudo -u slim touch slimserver.log prefs/log.conf
--------------------


Create /etc/rc.d/slimserver, like this;

Code:
--------------------
    #!/bin/bash
  
  . /etc/rc.conf
  . /etc/rc.d/functions
  
  progdir=/home/slim/squeezecenter-7.2.1
  pidfile=/home/slim/slimserver.pid
  logfile=/home/slim/slimserver.log
  prefsdir=/home/slim/prefs
  cachedir=/home/slim/cache
  
  case "$1" in
  start)
  stat_busy "Starting SlimServer"
  cd $progdir
  ./slimserver.pl --daemon --user slim --group users --pidfile $pidfile 
--logfile $logfile --prefsdir $prefsdir --cachedir $cachedir --diag
  if [ $? -gt 0 ]; then
  stat_fail
  else
  add_daemon slimserver
  stat_done
  fi
  ;;
  stop)
  stat_busy "Stopping SlimServer"
  kill `cat $pidfile` &> /dev/null
  if [ $? -gt 0 ]; then
  stat_fail
  else
  rm_daemon slimserver
  stat_done
  fi
  ;;
  restart)
  $0 stop
  sleep 1
  $0 start
  ;;
  *)
  echo "usage: $0 {start|stop|restart}"  
  esac
--------------------


Add slimserver to DAEMONS in /etc/rc.conf

That should be it if you want to use the mysql that comes with SC. I
wanted to use the already installed mysql, so I needed to do the
following steps.

Start and stop the server once, so that it creates initial config
files.

Code:
--------------------
    $ sudo /etc/rc.d/slimserver start
  $ sudo /etc/rc.d/slimserver stop
--------------------


Edit server.pref to set a value for dbpassword, change the hostname
from 127.0.0.1 to localhost, and set the port to 3306. Remove the
database that was created on first run since it is not going to be
used.

Code:
--------------------
    $ sudo vi prefs/server.pref
  $ sudo rm -rf cache/*
--------------------


Create the new database and grant rights to the slimserver user, making
sure to set the same password as in the config file above.

Code:
--------------------
    $ sudo mysql -u root -p
  mysql> create database slimserver;
  mysql> grant all on slimserver.* to slimserver identified by 'passwd';
  mysql> flush privileges;
  mysql> quit
--------------------


And that's it. I have not tried installing 7.3 yet, though.


-- 
bogomipz
------------------------------------------------------------------------
bogomipz's Profile: http://forums.slimdevices.com/member.php?userid=3743
View this thread: http://forums.slimdevices.com/showthread.php?t=55017

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to