Whilst CSOS is based on Fedora and does all that's required, I prefer to
roll my own using Arch Linux - the principle reason being that Arch
Linux is a pretty lean OS, meaning its less resource intensive and runs
noticeably faster than CSOS. The downside is you need to put in the
effort to roll your own so to speak. You can configure the Wandboard
to simply act as a transport or alternatively you can configure the
Wandboard as a standalone Logitechmediaserver and Squeezebox transport.
To turn the Wandboard into a Squeezebox transport and/or player both
CSOS and this RYO solution leverage an application called Squeezelite.
I'm going to post the guide in parts to deal with different aspects of
rolling your own transport/server so please bear with me because some of
it is a work in progress. There's enough in the first post to turn a
Wandboard into a fully functional Squeezebox transport.
WHAT YOU'LL NEED:
- Wandboard Dual or Quad
- 8GB micro SD card -- get as quick a card as you can as its speed
affects bootup time and load time of anything not in RAM.
- Micro SD card reader/ writer to write the OS image to your micro SD
card
- if you want to configure your Wandboard from your regular PC / Laptop
you'll need to connect the Wandboard to your home network
- a SSH client to login to the Wandboard from your desktop/laptop. If
using Linux, use ssh. If Windows, install and use putty
- a DAC that has an asynchronous USB input
INSTALLATION:
The first thing you need to do is install Arch Linux to a micro SD card
(8GB minimum). I highly recommend that you ensure the microSD is
high-speed. To prepare the microSD and install Arch Linux '*CLICK
HERE*' (http://archlinuxarm.org/platforms/armv7/freescale/wandboard)
then click on the installation tab and follow the instructions. Before
rebooting your Wandboard, connect it to your home network and your ADSL
Router's DHCP (or whatever DHCP server you're using) will assign the
Wandboard an IP on reboot.
When you're done with that you have a working Arch Linux install on your
Wandboard. All that remains now is updating OS components, customising
a few things and finally installing and configuring Squeezelite and
optionally Logitechmediaserver (should you want to use your Wandboard as
a standlone transport with HDD attached).
DETERMINE THE WANDBOARD'S IP USING YOUR DHCP SERVER OR USE NMAP IF
RUNNING *NIX[/B] (REPLACE 192.168.168 WITH THE SUBNET YOU'RE USING):
Code:
nmap -sP 192.168.168.0/24
The Wandboard is the device named 'alarm'.
LOGIN USING SSH [USERNAME = ROOT; PASSWORD = ROOT] (WINDOWS USERS
USE PUTTY):
Code:
ssh root@wandboardIP
UPDATE OS, CHANGE HOSTNAME AND INSTALL AUDIO COMPONENTS:
Code:
pacman -Syu
hostnamectl set-hostname SqueezeWand
pacman -Sy faad2 libmad mpg123 libao alsa-utils avahi wget
CONFIGURE ALSA - ASOUND.CONF FILE:
Code:
nano /etc/asound.conf
Paste in the following:
Code:
pcm.!default {
type plug
slave.pcm softvol
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm hw:0
period_time 0
period_size 4096
buffer_size 131072
rate 41100
}
bindings {
0 0
1 1
}
}
pcm.dsnooper {
type dsnoop
ipc_key 1024
slave {
pcm hw:0
channels 2
period_time 0
period_size 4096
buffer_size 131072
rate 41100
}
bindings {
0 0
1 1
}
}
pcm.softvol {
type softvol
slave { pcm dmixer }
control {
name Master
card 0
}
}
ctl.!default {
type hw
card 0
}
ctl.softvol {
type hw
card 0
}
ctl.dmixer {
type hw
card 0
}
INSTALL SQUEEZELITE:
Code:
mkdir -p /usr/local/bin
cd /usr/local/bin
wget -O squeezelite
http://squeezelite-downloads.googlecode.com/git/squeezelite-armv6hf
chmod a+x squeezelite
CONFIGURE ARCH TO FIRE UP SQUEEZELITE ON STARTUP:
Code:
nano /etc/systemd/system/squeezelite.service
Paste in the following:
Code:
[Unit]
Description=Squeezelite lightweight headless squeezebox emulator
After=sound.target
Requires=avahi-daemon.service
After=network.target
After=avahi-daemon.service
[Service]
ExecStart=/usr/local/bin/squeezelite -n SqueezeWand
Restart=always
[Install]
WantedBy=multi-user.target
CONFIGURE ARCH TO AUTOSTART SQUEEZELITE AND AVAHI-DAEMON ON BOOT:
Code:
systemctl enable squeezelite avahi-daemon
Connect the Wandboard to your DAC using a suitably insulated USB cable
and ensure your DAC is powered up.
NOW REBOOT:
Code:
reboot
Following reboot your Logitechmediaserver should have a SqueezeWand
entry in its players list (refresh your LMS