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
    View Source
    • 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
      PATH=/opt/SUNWspro/bin:/opt/csw/bin:/opt/csw/mysql5/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sfw/bin:/usr/sfw/sbin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/sfw/sbin
      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:

      #!/bin/sh

      PATH=/opt/SUNWspro/bin:/opt/csw/bin:/opt/csw/mysql5/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sfw/bin:/usr/sfw/sbin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/sfw/sbin

      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 \

      --pidfile=/usr/local/slimserver/cachedir/slimserver.pid
      $*



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

      # $Id$
      #
      # SlimServer specific MySQL Server config.

      [mysqld]
      # innodb
      skip-locking

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

      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 = 127.0.0.1
      # 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
      "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
      <service_bundle type='manifest' name='slimserver'>
      <service name='application/slimserver'
      type='service' version='1'>
      <create_default_instance enabled='false'/>
      <single_instance/>
      <dependency name='name-services'
      grouping='require_all' restart_on='none'
      type='service'>
      <service_fmri
      value='svc:/milestone/name-services' />
      </dependency>
      <dependency name='network'
      grouping='require_all' restart_on='none'
      type='service'>
      <service_fmri value='svc:/milestone/network' />
      </dependency>
      <dependency name='local-filesystems'
      grouping='require_all' type='service'
      restart_on='none'>
      <service_fmri
      value='svc:/system/filesystem/local' />
      </dependency>
      <exec_method type='method' name='start'

      exec='/usr/local/slimserver/slimrun --daemon'
      timeout_seconds='30' />
      <exec_method type='method' name='stop'
      exec=':kill'
      timeout_seconds='30' />
      <stability value='Unstable' />
      <template>
      <common_name>
      <loctext
      xml:lang='C'>Slim Server</loctext>
      </common_name>
      <documentation>
      <doc_link
      name='SlimDevices Home'
      uri='http://www.slimdevices.com/'/>
      </documentation>
      </template>
      </service>
      </service_bundle>


      and then import it:

      svccfg import <manifest file>


      Now on with scripting:

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


      svcadm enable slimserver

      Have fun....

      Eric




      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.