Author Topic: Wandboard with Ubuntu 12.04 and Squeezelite  (Read 10737 times)

Offline lanties

  • Trade Count: (+1)
  • AVForums Veteran
  • *****
  • Posts: 1,844
  • Cape Town - Bellville - Protea Valley
Wandboard with Ubuntu 12.04 and Squeezelite
« on: July 29, 2013, 04:17:18 PM »
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: (This is my /etc/init.d/squeezelite script) [Select]
#!/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


The correct statement of individual rights is that everyone has the right to an opinion, but crucially, that opinion can be roundly ignored and even made fun of, particularly if it is demonstrably nonsense! - Brian Cox

Offline fdlsys

  • Vinylist
  • Trader
  • Trade Count: (+67)
  • *****
  • Posts: 6,774
  • Do you like life, sweetheart?
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #1 on: July 29, 2013, 04:19:37 PM »
:notworthy:
The four building blocks of the universe are fire, water, gravel and vinyl. Dave Barry
Come back when you’ve lived a little. Miles Davis

Offline GearSlave

  • Peacekeeper Extraordinaire
  • Trade Count: (+3)
  • AVForums Veteran
  • *****
  • Posts: 8,796
  • Ohm's Law has no business in Audio
    • Studio B
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #2 on: July 29, 2013, 04:24:01 PM »
Johan, we need to talk  ;)

Excellent, excellent guide! CSOS is a little top heavy so I like the compactness of this. The new Fedora 19 images of CSOS needs an 8GB SD Card :Ooooooh:
Resistance is not futile; it is voltage divided by current (R=V/I)

Offline scrarfussi

  • Trade Count: (+20)
  • AVForums Veteran
  • *****
  • Posts: 5,653
  • Quantum In Me Fuit
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #3 on: July 29, 2013, 09:13:06 PM »
i so wanna do this
suum cuique pulchrum est


"I refuse to prove that I exist,'" says God, "for proof denies faith, and without faith I am nothing."

Offline BigAl

  • Trade Count: (+1)
  • AVForums Member
  • *
  • Posts: 14
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #4 on: August 03, 2013, 10:54:01 PM »
Is there a local supplier for the Wandboard and accessories?

Offline Rotten Johnny

  • ROONed for life.
  • Administrator
  • Trade Count: (+29)
  • *****
  • Posts: 14,232
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #5 on: August 11, 2013, 05:15:27 PM »
Looks like Mouser Electronics has local rights. 

I installed the Community Squeeze OS (Fedora) build on a dual wandboard today, disabled it as a player and enabled Logitechmediaserver with a powered USB drive attached.  Performance as a LMS host is very, very good.  Beats the crap out of a Pi as a LMS host.
Audiophile: There is almost no other group that prides themselves more on wasting good money on utterly worthless ****, and then trying to furiously blow smoke up their own ass to justify it.

Free your mind...and your ass will follow.

Offline lanties

  • Trade Count: (+1)
  • AVForums Veteran
  • *****
  • Posts: 1,844
  • Cape Town - Bellville - Protea Valley
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #6 on: August 11, 2013, 05:19:29 PM »
How many clients are connected, streaming at the same time?
The correct statement of individual rights is that everyone has the right to an opinion, but crucially, that opinion can be roundly ignored and even made fun of, particularly if it is demonstrably nonsense! - Brian Cox

Offline Rotten Johnny

  • ROONed for life.
  • Administrator
  • Trade Count: (+29)
  • *****
  • Posts: 14,232
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #7 on: August 11, 2013, 05:28:21 PM »
Only one, built it for my folks to replace the Pi they were using.  It's very snappy, if you were connected to a library on a LAN I'm pretty sure it'd comfortably handle multiple players concurrently.  Using USB as the interface to a HDD USB would be the bottleneck, but I reckon it'd still comfortably stream to 2-3 clients.

One thing to note - I placed the LMS cache folder (ie its databases) on the USB drive.
« Last Edit: August 11, 2013, 05:49:01 PM by audiomuze »
Audiophile: There is almost no other group that prides themselves more on wasting good money on utterly worthless ****, and then trying to furiously blow smoke up their own ass to justify it.

Free your mind...and your ass will follow.

Offline lanties

  • Trade Count: (+1)
  • AVForums Veteran
  • *****
  • Posts: 1,844
  • Cape Town - Bellville - Protea Valley
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #8 on: August 11, 2013, 05:33:08 PM »
Very good to know. Distributed LMS. Time to consider a forum music repository in the cloud.
The correct statement of individual rights is that everyone has the right to an opinion, but crucially, that opinion can be roundly ignored and even made fun of, particularly if it is demonstrably nonsense! - Brian Cox

Offline Rotten Johnny

  • ROONed for life.
  • Administrator
  • Trade Count: (+29)
  • *****
  • Posts: 14,232
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #9 on: August 11, 2013, 05:51:24 PM »
Ampache...
Audiophile: There is almost no other group that prides themselves more on wasting good money on utterly worthless ****, and then trying to furiously blow smoke up their own ass to justify it.

Free your mind...and your ass will follow.

Offline Rotten Johnny

  • ROONed for life.
  • Administrator
  • Trade Count: (+29)
  • *****
  • Posts: 14,232
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #10 on: August 11, 2013, 06:05:42 PM »
Pity there's no Ubuntu server build for the Wandboard... yet.
Audiophile: There is almost no other group that prides themselves more on wasting good money on utterly worthless ****, and then trying to furiously blow smoke up their own ass to justify it.

Free your mind...and your ass will follow.

Offline lanties

  • Trade Count: (+1)
  • AVForums Veteran
  • *****
  • Posts: 1,844
  • Cape Town - Bellville - Protea Valley
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #11 on: August 11, 2013, 06:13:02 PM »
Pity there's no Ubuntu server build for the Wandboard... yet.

It is a huge pity. Maybe there is someone out there in the www working on something.
The correct statement of individual rights is that everyone has the right to an opinion, but crucially, that opinion can be roundly ignored and even made fun of, particularly if it is demonstrably nonsense! - Brian Cox

Offline BWS

  • Administrator
  • Trade Count: (+1)
  • *****
  • Posts: 15,378
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #12 on: August 12, 2013, 07:57:09 AM »
Pity there's no Ubuntu server build for the Wandboard... yet.

You're the Linux NERD, you do it :point:
Whoever originally coined the word 'Lisp' and put an 'S' in it's spelling, is a Douchebag !!

Offline GearSlave

  • Peacekeeper Extraordinaire
  • Trade Count: (+3)
  • AVForums Veteran
  • *****
  • Posts: 8,796
  • Ohm's Law has no business in Audio
    • Studio B
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #13 on: August 12, 2013, 08:56:37 PM »
^^^ He tried :BWAHAHAH:
Resistance is not futile; it is voltage divided by current (R=V/I)

Offline lanties

  • Trade Count: (+1)
  • AVForums Veteran
  • *****
  • Posts: 1,844
  • Cape Town - Bellville - Protea Valley
Re: Wandboard with Ubuntu 12.04 and Squeezelite
« Reply #14 on: August 12, 2013, 09:00:21 PM »
^^^ :ROFLMAO: :ROFLMAO:
The correct statement of individual rights is that everyone has the right to an opinion, but crucially, that opinion can be roundly ignored and even made fun of, particularly if it is demonstrably nonsense! - Brian Cox