Page 1 of 6

[Guide] Install Squeezelite on Volumio (RaspPi)

PostPosted: Mon Feb 17 2014 02:14
by dakku
WHY? :shock: :o :roll: :?
erm.. why not?? Its nice to have multiple ways of playback on 1 already fantastic player.. I am always switching between MPD, Airplay (shairport) and Squeezelite..

HOW...
Follow along, no compiling required..

Make a temp dir in /root/temp
Code: Select all
cd /root
mkdir temp
cd temp


Download precompiled Squeezelite Binary from GoogleCode
Code: Select all
wget http://squeezelite.googlecode.com/files/squeezelite-armv6hf


Download the Startup Script
Code: Select all
wget http://www.gerrelt.nl/RaspberryPi/squeezelitehf.sh


Give proper perms and a new home to Squeezelite and Squeezelite Start Script
Code: Select all
mv squeezelite-armv6hf /usr/bin
chmod u+x /usr/bin/squeezelite-armv6hf

mv squeezelitehf.sh /etc/init.d/squeezelite
chmod u+x /etc/init.d/squeezelite


Make Squeezelite start on Startup
Code: Select all
cd /etc/init.d/
update-rc.d squeezelite defaults


Configuring Squeezelite Soundcard (leave it to default - we do not want to assign a specific interface, this is already done at the ALSA level in Volumio)
Code: Select all
sudo nano /etc/init.d/squeezelite


Make sure any line beginning with SL_SOUNDCARD is commented out like this
Code: Select all
#SL_SOUNDCARD="sysdefault:CARD=ALSA"


Start Squeezelite
Code: Select all
/etc/init.d/squeezelite start


Cleanup (optional)
Code: Select all
cd ~
rm -rf /root/temp


No Sound or playback through MPD?
Sometimes MPD has a little heart attack and cannot playback if you are using multiple players.
See: mpd-fix-failed-to-open-alsa-device-hw-0-0-device-busy-t670.html


Sit back, grab cup of tea and slurp away to your fav tunes :mrgreen:

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Mon Feb 17 2014 09:46
by shakey102001
Tnx for this tutorial, when i get home i will try to install it on my system. Mainly the easy radio functions on squeezebox are something i realy miss in volumio. Question does squeezelite run stable? i used to have a dedicated squeezelite system but it always needed to reboot the system after +-2 day's

Tnx

Grz Jesse

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Mon Feb 17 2014 10:27
by dakku
Hi Jesse,
I have found Squeezelite to be more stable than MPD. No random hangups etc.. I was using the picoreplayer previously and loved it. Its nice to have the option to switch between them.

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Mon Feb 17 2014 13:26
by shakey102001
Hi Dakku, since i have 2 systems running in my network how can i change the name of the squeezlite machine install so that i can use 2 different names?

tnx

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Mon Feb 17 2014 18:41
by dakku
Hi,

Ofcourse you can change the name to whatever you like. I am using the default startup script from Volumio, its in /etc/init.d/shairport

here is the content of /etc/init.d/shairport
Code: Select all
#! /bin/sh
# /etc/init.d/shairport
#
NAME="Volumio"
 
case "$1" in
  start)
    /usr/local/bin/shairport -d -a "$NAME" -b 95
    ;;
  stop)
    killall shairport
    ;;
  *)
    echo "Usage: /etc/init.d/shairport {start|stop}"
    exit 1
    ;;
esac
 
exit 0



Edit the script
Code: Select all
nano /etc/init.d/shairport


Change
Code: Select all
NAME="My-New-Name"

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Mon Feb 17 2014 21:17
by Melomane
Great! Many thanks for this tutorial. At the moment there's flac playing with 192/24 nearly without any pops etc. :D

A question: How do I control playing music? At the moment I'm controlling via Squeezeboxserver on my NAS (http://nas:9001). Is there another way more direct from my Laptop? TIA

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Tue Feb 18 2014 10:30
by Melomane
Let's give SqueezePlay a chance...

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Tue Feb 18 2014 10:36
by dakku
Hi. I am happy to hear you are also trying it out. Let me know how you think the sound quality compares to MPD :)

I tend to mostly use the iPad and Galaxy S4 to control my music playback and use this official app on the ipad
https://itunes.apple.com/gb/app/logitec ... 02899?mt=8

and for android, i use this official app:
https://play.google.com/store/apps/deta ... e&hl=en_GB

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Tue Feb 18 2014 11:10
by shakey102001
Yesterday i tried installing but things went wrong i got a very distorted sound on my mpad and no sound on squeezelite. I think i made a mistake on this step i didn’t put # before SL_SOUNDCARD="sysdefault:CARD=ALSA" :oops:

Also i got a message when the system was overwriting some shairport files? is this normal?

Later this evening i will try again, hopefully with better luck i would love the idea of having one system for volume, airplay and squeezebox

As controllers for ipad these are my favorites, they are well worth the money

my favorite remote on ipad is
http://www.squeezepad.com/

though ipeng has a new version that also looks like a killer remote

http://penguinlovesmusic.de/2013/12/11/ ... g-ipeng-7/

Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

PostPosted: Tue Feb 18 2014 11:15
by dakku
shakey102001 wrote:Yesterday i tried installing but things went wrong i got a very distorted sound on my mpad and no sound on squeezelite. I think i made a mistake on this step i didn’t put # before SL_SOUNDCARD="sysdefault:CARD=ALSA" :oops:


Yes you need to comment out the soundcard bit, this is basically binding the interface to squeezelite, which means MPD and others will not have access to it. It is better to send music to "default", which automatically is your DAC - I think Volumio tinkers the ALSA settings to make it happen automatically.

All in all, Squeezelite is rock solid in my opinion.