Wandboard with Ubuntu 12.04 and Squeezelite

AVForums

Help Support AVForums:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

lanties

AVForums Super Veteran
Joined
Jun 11, 2012
Messages
1,995
Reaction score
30
Location
Cape Town
This may help someone. A combination of info from the web that I have used to get squeezelite working on ubuntu 12.04 on the wandboard. Please note you need to have basic knowledge of Linux to understand what I have put together here.

There is absolutely nothing wrong with the CSOS image. I just simply prefer Ubuntu to Fedora and also like to select what I install. I am not using my wandboard as a Logitech Media Server. I only use it for playback. Controlling it is done through the normal web and android interfaces. I may write my own little web interface to allow me select and set different OS and player parameters a a later stage. Again notching wrong with the CSOS web interface except very slow and it requires a number of 3rd part apps to run. There are lots of merits doing things either way. This is just my preferred way.

Ok so here it goes:

Use the latest Ubuntu image from Wandboard.org to install. I used 12.04

You will need

1. Monitor with HDMI connector and cable
2. Network connection
3. USB keyboard

After the install do the following

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server

from here you can connect with something like putty. No more monitor or keyboard required.

Make sure these are installed

sudo apt-get install libfaad2
sudo apt-get install libmad0

To Install a copy of squeezelite

cd

mkdir squeezelite
cd squeezelite

wget https://squeezelite.googlecode.com/files/squeezelite-armv6

sudo mv ./squeezelite-armv6 /usr/bin/squeezelite # Rename at the same time
sudo chmod ug+x /usr/bin/squeezelite

squeezelite -l should now give you a listing of audio devices

*****************************************************************************************************************

To compile your own version - My preferred way

cd

git clone https://code.google.com/p/squeezelite/

This will create a subdirectory squeezelite in your home directory

sudo apt-get install libflac-dev
sudo apt-get install libmad0-dev
sudo apt-get install libfaad-dev
sudo apt-get install libmpg123-dev

There maybe some additional packages that you need to install as well

cd squeezelite
make

If you have any problems install the packages that are short.

once you have succesfully compiled the latest version for squeezelite you can do the following

sudo cp ./squeezelite /usr/bin

squeezelite -l should now give you a listing for all devices

*****************************************************************************************************************
To automatically start squeezelite from a boot

Create this file /etc/init.d/squeezelite

Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:          squeezelite
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Script to start squeezelite
# Description:       Service script for squeezelite, command line squeezebox player
### END INIT INFO
#Define some variables.  LMS is the IP of your Logitech Media Server.  Output device can be found by running squeezelite -l

USER=linaro
OUTPUT=sysdefault # Change this to the correct parameters for your audio device
OUTPUT=hw:CARD=Series,DEV=0 #  Audiolab 8200 Series, USB Audio - Direct hardware device without any conversions
NAME=iWand2SqueezeYou
LMS=192.168.50.45

case "$1" in
  start)
    echo "Starting Squeezelite" | logger
    start-stop-daemon --start --quiet -b -m -p /var/run/squeezelite.pid --chuid $USER --exec /usr/bin/squeezelite -- -z -o $OUTPUT -n $NAME $LMS
  ;;
  stop)
    echo "Stopping Squeezelite" | logger
    start-stop-daemon --stop --quiet --pidfile /var/run/squeezelite.pid
    rm -f /var/run/squeezelite
  ;;
  *)
    echo "Usage: /etc/init.d/squeezelite {start|stop}"
    exit 1
  ;;
esac
exit 0

and then finally

sudo update-rc.d squeezelite defaults


 
Top