squeezelite

This commit is contained in:
2022-01-16 11:39:37 +00:00
parent bb03fbd666
commit fc7c764317
3 changed files with 57 additions and 6 deletions

View File

@@ -4,9 +4,9 @@
# Setup # Setup
- OS Setup, [Instructions](/marcio.fernandes/raspberrypi) - OS Setup, [Instructions](/marcio.fernandes/raspberrypi)
- HiFiBerry Setup ([information source](https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/)) - HiFiBerry Setup ([Information source](https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/))
- Remove the line from /boot/config.txt if it exists, for disabling onboard sound. - Remove/comment from /boot/config.txt if it exists, for disabling onboard sound.
dtparam=audio=on dtparam=audio=on
@@ -15,6 +15,8 @@
force_eeprom_read=0 force_eeprom_read=0
dtoverlay=hifiberry-dacplus dtoverlay=hifiberry-dacplus
- Copy file etc/asound.conf
- Reboot - Reboot
- SqueezeLite - SqueezeLite
@@ -27,11 +29,32 @@
tar -xvzf download tar -xvzf download
- Move untar file file to /usr/bin/
sudo mv squeezelite /usr/bin
- Check if is executable
ls -la /usr/bin/squeezelite
- If not make executable
sudo chmod +x /usr/bin/squeezelite
- Start on boot (as a service)
- Download/copy file [etc/systemd/system/squeezelite.service]() to /etc/systemd/system/
*check file for squeezelite configurations*
*squeezelite --help for arguments*
- Start service
sudo systemctl start squeezelite
- Enable service on boot
*if used with bluealsa only one can be used on boot*
sudo systemctl enable squeezelite

6
etc/asound.conf Normal file
View File

@@ -0,0 +1,6 @@
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}

View File

@@ -0,0 +1,22 @@
# file located at /lib/systemd/system/
[Unit]
Description=Squeezelite
Requires=network.target sound.target
After=network.target sound.target
[Service]
Type=simple
# change for user you want!
User=root
# note use your mac address as given by ifconfig and the name you wish to give your player
#ExecStart=/usr/bin/squeezelite -n "PlayerName"
#by default use pi name
ExecStart=/usr/bin/squeezelite
[Install]
WantedBy=multi-user.target