Installation of SqueezeLite on Joggler Ubuntu
Posted: Mon Mar 03, 2014 12:12 am
Decided today to turn the Openframe 7 device running Ubuntu 12.10 (and other stuff) into a headless SqueezeLite box.
I am remote controlling this box and currently testing some other software. Works great!
Sample Output:
Next, change the init to be executable with
Then start squeezelite
The player should show up in your logitech media server. Give it a test play.
The last step is to add the script to boot with:
http://forums.slimdevices.com/showthrea ... post738328
I am remote controlling this box and currently testing some other software. Works great!
Code: Select all
# apt-get install git
# apt-get install build-essential libasound2-dev libflac-dev libmad0-dev libvorbis-dev libvo-aacenc-dev libfaad-dev libmpg123-dev
# cd /opt
# git clone https://code.google.com/p/squeezelite/
# cd /opt/squeezelite
# make
#./squeezelite -l
Next we edit the init file so we can start up squeezelite on boot.Output devices:
null - Discard all samples (playback) or generate zero samples (capture)
default:CARD=SB - HDA ATI SB, ALC888 Analog - Default Audio Device
front:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Analog - Front speakers
surround40:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Analog - 4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Analog - 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Analog - 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Analog - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Analog - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0 - HDA ATI SB, ALC888 Digital - IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI - HDA ATI HDMI, HDMI 0 - HDMI Audio Output
Code: Select all
# nano /etc/init.d/squeezelite
Copy and paste this into /etc/init.d/squeezelite. Make sure you change the variables. USER should be the user you created when you installed Debian. OUTPUT is the device we found earlier with ./squeezelite -l. NAME can be whatever you like. LMS is the IP address of your logitech media server.
Code: Select all
#!/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=someuser
OUTPUT=iec958:CARD=SB,DEV=0
NAME=SqueezelitePlayerName
LMS=192.168.x.x
case "$1" in
start)
echo "Starting Squeezelite"
start-stop-daemon --start --quiet -b -m -p /var/run/squeezelite.pid --chuid $USER --exec /opt/squeezelite/squeezelite -- -z -o $OUTPUT -n $NAME $LMS
;;
stop)
echo "Stopping Squeezelite"
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
Code: Select all
# chmod +X /etc/init.d/squeezelite
Code: Select all
# /etc/init.d/squeezelite start
The last step is to add the script to boot with:
Code: Select all
# insserv squeezelite