Once it is working ... then it is fairly easy to get it started on system boot if you have downloaded and unpacked the full source code set.
The paths below might not be quite right - so check carefully (I've assumed that you have moved to the directory containing the unpacked source - and that you have put the binaries in the same place - which will, I presume not be correct if you have managed to do a full build yourself)
- Code: Select all
sudo cp squeezeslave /usr/bin
sudo cp config/squeezeslave.init.debian /etc/init.d/squeezeslave
sudo chmod 755 /etc/init.d/squeezeslave
sudo update-rc.d squeezeslave defaults
sudo echo "SBSHOST=\"-F\"" > /etc/default/squeezeslave
Note: backslash before each of the embedded quotes above. They are just to get them to work through the echo command. The /etc/default/squeezeslave will, correctly, not have those backslashes in.
Then to test it ...
- Code: Select all
sudo /etc/init.d/squeezeslave start
If you have more than one Squeezeslave (e.g. other RPis) then you will probably have to edit the /etc/default/squeezeslave to specify a different (fake) MAC address for each using SSMAC field (see the top of the start-up script for an example).
Also - this script does not do the RPi specific modprobe call to get the audio working ... so you need to have that done earlier in the boot process.
If others find that this process works - then it looks like a candidate to put into the wiki (and improve it).
to stop it ...
- Code: Select all
sudo /etc/init.d/squeezeslave stop
which I guess will be necessary if something else needs the audio output.