[Guide] Install Squeezelite on Volumio (RaspPi)

Guides to let you easily discover and enjoy Volumio

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

[Guide] Install Squeezelite on Volumio (RaspPi)

Postby dakku » Mon Feb 17 2014 02:14

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:
Last edited by dakku on Tue Feb 18 2014 13:27, edited 1 time in total.
Random avatar
dakku
Serious Listener
Serious Listener
 
Posts: 62
Joined: Sat Feb 15 2014 15:11

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby shakey102001 » Mon Feb 17 2014 09:46

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
Random avatar
shakey102001
Sunday DIYer
Sunday DIYer
 
Posts: 25
Joined: Tue Dec 17 2013 15:14


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby dakku » Mon Feb 17 2014 10:27

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.
Random avatar
dakku
Serious Listener
Serious Listener
 
Posts: 62
Joined: Sat Feb 15 2014 15:11


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby shakey102001 » Mon Feb 17 2014 13:26

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
Random avatar
shakey102001
Sunday DIYer
Sunday DIYer
 
Posts: 25
Joined: Tue Dec 17 2013 15:14


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby dakku » Mon Feb 17 2014 18:41

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"
Random avatar
dakku
Serious Listener
Serious Listener
 
Posts: 62
Joined: Sat Feb 15 2014 15:11


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby Melomane » Mon Feb 17 2014 21:17

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
Random avatar
Melomane
Serious Listener
Serious Listener
 
Posts: 80
Joined: Sat Dec 28 2013 21:07


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby Melomane » Tue Feb 18 2014 10:30

Let's give SqueezePlay a chance...
Random avatar
Melomane
Serious Listener
Serious Listener
 
Posts: 80
Joined: Sat Dec 28 2013 21:07


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby dakku » Tue Feb 18 2014 10:36

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
Random avatar
dakku
Serious Listener
Serious Listener
 
Posts: 62
Joined: Sat Feb 15 2014 15:11


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby shakey102001 » Tue Feb 18 2014 11:10

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/
Random avatar
shakey102001
Sunday DIYer
Sunday DIYer
 
Posts: 25
Joined: Tue Dec 17 2013 15:14


Re: TUTORIAL - Install Squeezelite on Volumio (RaspPi)

Postby dakku » Tue Feb 18 2014 11:15

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.
Random avatar
dakku
Serious Listener
Serious Listener
 
Posts: 62
Joined: Sat Feb 15 2014 15:11

Next

Return to Guides

Who is online

Users browsing this forum: No registered users and 0 guests