Installing squeezeslave:

This is the method I use and I think it's appropriate for a headless
server like the one you're configuring.  There are other ways of doing
this, of course.

Start by making sure you've installed the basic development
environment:


Code:
--------------------
    
  sudo apt-get update 
  sudo apt-get install build-essential autoconf subversion gettext autopoint 
libasound2-dev
  
--------------------


As a regular user with sudoers privilages (but not root), check out a
copy of the latest code:


Code:
--------------------
    
  cd ~
  
  mkdir squeezeslave
  
  svn checkout http://squeezeslave.googlecode.com/svn/squeezeslave/trunk/ 
squeezeslave
  
--------------------


Use this script to build squeezeslave.  It creates a version of the
makefile that disables the display stuff, which is appropriate as your
server is headless.

~/squeezeslave_build.sh:

Code:
--------------------
    
  #!/bin/sh
  
  # Switch to the squeezeslave dir with makefiles..
  eval cd "~${USER}/squeezeslave/squeezeslave"
  
  echo "Building from $(pwd)"
  
  # 64bit?
  if [ $(uname -m) = 'x86_64' ]; then
        SOURCE='makefile.linux26-i64-alsa-display'
        TARGET='makefile.linux26-i64-alsa-nodisplay'
  else
        SOURCE='makefile.linux26-alsa-display'
        TARGET='makefile.linux26-alsa-nodisplay'
  fi
  
  # Can't find the makefile..
  if [ ! -e "$SOURCE" ]; then
        echo "What the.."
        exit 1
  fi
  
  # Prepare a nodisplay makefile
  cp -f -v -p "$SOURCE" "$TARGET"
  
  echo "Removing display support from ${TARGET}.."
  
  # Comment out:
  # CFLAGS+=-DINTERACTIVE
  sed -i -e 's/^\(CFLAGS.*DINTERACTIVE\)$/#\1/' "$TARGET"
  
  # Comment out:
  # LIBS+=-lcurses -llirc_client
  sed -i -e 's/^\(LIBS.*llirc_client\)$/#\1/' "$TARGET"
  
  # Make sqeezeslave
  make -f "$TARGET" realclean
  make -f "$TARGET"
  
  # If make successful, copy the executable to /usr/local/bin
  if [ -x ./bin/squeezeslave ]; then
  echo "Build completed.  Installing to /usr/local/bin.."
  sudo cp -v ./bin/squeezeslave /usr/local/bin/squeezeslave
  if [ -x /usr/local/bin/squeezeslave ]; then
  echo 'Squeezeslave installed.  Squeezeslave reports these audio devices on 
this system:'
  /usr/local/bin/squeezeslave -L
  fi
  fi
  
  echo 'Done!'
  
--------------------


If the initial build attempt failed, consult Ralph's wiki page for more
instructions:
http://wiki.slimdevices.com/index.php/SqueezeSlave#Linux_build_instructions

If the build did succeed, then the script will have prompted you for
your password and then copied the squeezeslave executable to
/usr/local/bin and then asked squeezeslave to report on what audio
devices it sees on the system.

Assuming that all that went well, you can then use the script in the
attached zip file to create and configure a service instance for
squeezeslave.  This script used a text "gui" to try to make picking the
configuration parameters easy.  The important parameters configured in
the service are a fake "mac address" which set this squeezeslave as a
player with a unique identity to SBS/LMS and picking the correct audio
output device.  You may need to experiment with that last element in
order to get things working.


+-------------------------------------------------------------------+
|Filename: config-squeezeslave.zip                                  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=13899|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=97014

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

Reply via email to