wcsuther wrote: 
> Pete,
> 
> Have you had any luck getting the same configuration of shairport-sync
> and Squeezelite running side-by-side on Jessie? I have it working
> perfectly according to your post in Wheezy, but not having the same luck
> in Jessie editing the /etc/shairport-sync.conf. I'm sure it's my lack of
> scripting knowledge; it seems I need different scripts to start and stop
> squeezelite before shairport-sync will work.. Thanks in advance.
> 
> -Craig

Hi there,

Oops, haven't been on here for a while so excuse the late reply. I have
this working nicely on Jessie as well. Below is the updated doco that
covers both Wheezy and Jessie.


Code:
--------------------
    
  
  ----------------
  MEDIA PLAYER
  ----------------
  
  1) Burn Raspbian to the SD card using Win32 Disk Imager:
  
  Use latest Wheezy or Jessie image from 
https://www.raspberrypi.org/downloads/raspbian/
        
        NOTE: The Jessie Lite image is what I normally use
  
  2) General setup
  
  (insert SD card and boot up Raspberry Pi)
  
  login: pi
  password: raspberry
  
  If Wheezy image:
  
  sudo nano /etc/modprobe.d/alsa-base.conf
  - set the following:
  options snd-usb-audio index=-1
  
  OR, if Jessie image:
  
  sudo nano /etc/modprobe.d/alsa-base.conf
  - set the following:
  # This sets the index value of the cards but doesn't reorder.
  options snd_usb_audio index=0
  options snd_bcm2835 index=1
  # Does the reordering.
  options snd slots=snd-usb-audio,snd-bcm2835
  
  sudo raspi-config
  - expand file system
  - set host name
  
  (reboot)
  
  sudo apt-get -y remove wolfram-engine
  
  sudo apt-get update
  
  sudo apt-get upgrade
  
  sudo alsamixer
  - adjust USB DAC volume level to max
  
  sudo alsactl store
  
  3) Install Squeezelite
  
  sudo apt-get -y install build-essential git wget patch checkinstall  
libasound2-dev libmad0-dev libflac-dev  libogg-dev libvorbis-dev libfaad-dev 
libmpg123-dev
  
  cd ~
  git clone https://github.com/ralph-irving/squeezelite
  OR (repo below seems to be no longer maintained)
  git clone https://code.google.com/p/squeezelite/
  
  cd squeezelite
  make clean 
  make
  
  sudo cp -f ./squeezelite /usr/local/bin/squeezelite
  sudo chmod a+x /usr/local/bin/squeezelite
  
  sudo wget http://www.gerrelt.nl/RaspberryPi/squeezelite_settings.sh
  sudo mv squeezelite_settings.sh /usr/local/bin
  sudo chmod a+x /usr/local/bin/squeezelite_settings.sh
  
  sudo wget http://www.gerrelt.nl/RaspberryPi/squeezelitehf.sh
  sudo mv squeezelitehf.sh /etc/init.d/squeezelite
  
  cd /etc/init.d
  sudo chmod a+x squeezelite
  sudo update-rc.d squeezelite defaults
  
  sudo nano /etc/init.d/squeezelite
  - edit settings
  - change NAME=squeezelite-armv6hf to NAME=squeezelite
  - change DAEMON=/usr/bin/${NAME} to DAEMON=/usr/local/bin/${NAME}
  
  sudo nano /usr/local/bin/squeezelite_settings.sh
  - edit settings
  - SL_NAME="Backyard"
  - SL_SOUNDCARD="hw:0"
  - SL_ALSA_PARAMS="300:::1"
  
  sudo nano /usr/local/bin/squeezelite_stop
  - add the following:
  #!/bin/bash
  sudo /etc/init.d/squeezelite stop
  
  sudo nano /usr/local/bin/squeezelite_start
  - add the following:
  #!/bin/bash
  sudo /etc/init.d/squeezelite start
  
  sudo chmod a+x /usr/local/bin/squeezelite_*
  
  4) Install Shairport_Sync
  
  cd ~
  sudo apt-get -y install autoconf libtool libdaemon-dev libasound2-dev 
libpopt-dev avahi-daemon libavahi-client-dev libssl-dev libconfig-dev
  
  git clone https://github.com/mikebrady/shairport-sync.git
  cd shairport-sync
  autoreconf -i -f
  ./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemv
  make
  sudo make install
  
  sudo nano /etc/init.d/shairport-sync
  - edit settings
  start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- -d -a 
"Backyard" -w -B "/usr/local/bin/squeezelite_stop" -E 
"/usr/local/bin/squeezelite_start" || return 2
  
  sudo update-rc.d shairport-sync defaults
  
  5) Reboot and done!
  
  
--------------------


------------------------------------------------------------------------
petar's Profile: http://forums.slimdevices.com/member.php?userid=50217
View this thread: http://forums.slimdevices.com/showthread.php?t=103999

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to