Loading ...
Sorry, an error occurred while loading the content.

Re: [solarisx86] squeezecenter on x86

Expand Messages
  • Eric Bautsch
    Hi Nick. Yes, it s a major pain to get going. The hacks required to get it going change with every version, too. I have scripted it to a large extend for 7.1.
    Message 1 of 2 , Dec 5, 2008
    • 0 Attachment
      Hi Nick.

      Yes, it's a major pain to get going. The hacks required to get it going
      change with every version, too.

      I have scripted it to a large extend for 7.1. You'll need perl in
      /opt/csw from blastwave or opencsw and gtar and mysql5.

      Here goes:

      cd /usr/local
      gunzip -c
      ${TMPMNT}/srcaudio/slimserver/squeezecenter-7.1.tgz |
      /opt/csw/bin/gtar xfv -
      mv squeezecenter-* squeezecenter
      ln -s squeezecenter ./slimserver
      mkdir /usr/local/slimserver/cachedir
      mkdir -p /usr/local/slimserver/prefs/plugin
      mkdir /usr/local/slimserver/Logs
      touch /usr/local/slimserver/Logs/server.log
      touch /usr/local/slimserver/Logs/perfmon.log
      chmod 775 /usr/local/slimserver/cachedir
      chmod 775 /usr/local/slimserver/prefs
      chmod 775 /usr/local/slimserver/prefs/plugin
      chmod 775 /usr/local/slimserver/Logs
      chmod 664 /usr/local/slimserver/Logs/server.log
      chmod 664 /usr/local/slimserver/Logs/perfmon.log
      chown -R slimsrv:slimsrv squeezecenter
      chown -R slimsrv:root /usr/local/slimserver/cachedir
      chown -R slimsrv:root /usr/local/slimserver/prefs
      chown -R slimsrv:root /usr/local/slimserver/Logs

      Now you need to update Bin/build-perl-modules.pl:
      in my %packages you need to remove Encode::Detect and you need to add
      'GD' => 'GD-2.35.tar.gz'

      you then need to has out in Slim/Utils/Unicode.pm:
      # use Encode::Detect::Detector;

      cd slimserver/Bin
      echo "/opt/csw/bin/perl\n/usr/local/slimserver\n/tmp" |
      /opt/csw/bin/perl ./build-perl-modules.pl

      I then create /usr/local/slimserver/slimrun with:



      export PATH

      exec /opt/csw/bin/perl
      /usr/local/slimserver/slimserver.pl \
      --cachedir=/usr/local/slimserver/cachedir \
      --user=slimsrv \
      --group=slimsrv \
      --audiodir=/apps/jukebox \
      --prefsdir=/usr/local/slimserver/prefs \


      you also need to create /usr/local/slimserver/MySQL/my.tt with:

      # $Id$
      # SlimServer specific MySQL Server config.

      # innodb

      # If you want to have user permissions - you need to
      setup a valid user, and
      # remove this line below.

      basedir = [% basedir %]
      datadir = [% datadir %]
      language = [% language %]
      port = [% port || 9092 %]
      # socket = [% socket %]
      socket = /tmp/mysql.sock
      innodb_fast_shutdown = 1
      max_connections = 4
      thread_concurrency = 4
      log-warnings = 0
      bind-address =
      # default-character-set = utf8
      # default-collation = utf8_general_ci
      key_buffer = 2M
      max_allowed_packet = 1M
      table_cache = 64
      sort_buffer_size = 512K
      net_buffer_length = 8K
      read_buffer_size = 256K
      read_rnd_buffer_size = 512K

      You need to create a slimserver manifest with:

      <?xml version="1.0"?>
      <!DOCTYPE service_bundle SYSTEM
      <service_bundle type='manifest' name='slimserver'>
      <service name='application/slimserver'
      type='service' version='1'>
      <create_default_instance enabled='false'/>
      <dependency name='name-services'
      grouping='require_all' restart_on='none'
      value='svc:/milestone/name-services' />
      <dependency name='network'
      grouping='require_all' restart_on='none'
      <service_fmri value='svc:/milestone/network' />
      <dependency name='local-filesystems'
      grouping='require_all' type='service'
      value='svc:/system/filesystem/local' />
      <exec_method type='method' name='start'

      exec='/usr/local/slimserver/slimrun --daemon'
      timeout_seconds='30' />
      <exec_method type='method' name='stop'
      timeout_seconds='30' />
      <stability value='Unstable' />
      xml:lang='C'>Slim Server</loctext>
      name='SlimDevices Home'

      and then import it:

      svccfg import <manifest file>

      Now on with scripting:

      [ ! -f /opt/csw/mysql5/bin/mysqld ] && ln -s ./mysqld_safe
      cp /opt/csw/mysql5/share/mysql/english/errmsg.sys

      svcadm enable slimserver

      Have fun....


      Nick wrote:
      > Hi, has anyone here heard of or used Slim Devices's (now Logitech)
      > squeezecenter software? I am having problems getting it to run under
      > Solaris x86 although they say it can do so. I have u6 on a V60x.
      > The squeezecenter forums are a bit Solaris-light unfortunately.
      > Nick
      > Brussels


      / . Eric A. Bautsch
      /-- __ ___ ______________________________________
      / / / / /
      (_____/____(___(__________________/ email: eric.bautsch@...

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.