From e70793dc94e2f06f2f96a787642a2c4582dc8cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 16 Jan 2022 12:37:11 +0000 Subject: [PATCH] bleualsaaplay --- README.md | 57 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b405f1d..1c9ae31 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,12 @@ - Check latest [version](https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/) - Download latest version - wget https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/ squeezelite-pulse-1.9.9.1392-armhf.tar.gz + cd /tmp + wget https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-armhf.tar.gz - Untar downloaded files - tar -xvzf download + tar -xvzf squeezelite-1.9.9.1392-armhf.tar.gz - Move untar file file to /usr/bin/ @@ -43,22 +44,54 @@ - Start on boot (as a service) - - Download/copy file [etc/systemd/system/squeezelite.service](etc/systemd/system/squeezelite.service) to /etc/systemd/system/ + - Download/copy file [etc/systemd/system/squeezelite.service](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 - + - Start service + *if used with bluealsa only one can be running* + sudo systemctl start squeezelite + - Enable service on boot + *if used with bluealsa only one can be used on boot* + sudo systemctl enable squeezelite +- Bluealsa - using pi as bluetooth speaker + + - Install + + sudo apt update && sudo apt install bluealsa -y + + + - Start on boot (as a service) + sudo service bluealsa enable && sudo service bluealsa start + + - Setup bluealsa-aplay + Download/copy file [etc/systemd/system/bluealsaaplay.service](etc/systemd/system/bluealsaaplay.service) to /etc/systemd/system/ + + - Enable service on boot + *if used with squeezelite only one can be used on boot* + + sudo systemctl enable bluealsaaplay + + - Start service + *if used with squeezelite only one can be running* + sudo systemctl start bluealsaaplay + +- bluealsa-aplay and squeelite + - squeelite on boot + + sudo systemctl enable squeezelite + + - change to bluealsa-aplay + + sudo sh -c 'systemctl stop squeezelite; systemctl start bluealsaaplay' + + - change to squeezelite + + sudo sh -c 'systemctl stop bluealsaaplay; systemctl start squeezelite' +