Compare commits

..

2 Commits

Author SHA1 Message Date
e70793dc94 bleualsaaplay 2022-01-16 12:37:11 +00:00
d2efe7373b bluealsa-aplay 2022-01-16 12:37:00 +00:00
2 changed files with 65 additions and 12 deletions

View File

@@ -23,11 +23,12 @@
- Check latest [version](https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/) - Check latest [version](https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/)
- Download latest version - 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 - Untar downloaded files
tar -xvzf download tar -xvzf squeezelite-1.9.9.1392-armhf.tar.gz
- Move untar file file to /usr/bin/ - Move untar file file to /usr/bin/
@@ -48,7 +49,7 @@
*squeezelite --help for arguments* *squeezelite --help for arguments*
- Start service - Start service
*if used with bluealsa only one can be running*
sudo systemctl start squeezelite sudo systemctl start squeezelite
- Enable service on boot - Enable service on boot
@@ -56,8 +57,40 @@
sudo systemctl enable squeezelite 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'

View File

@@ -0,0 +1,20 @@
# file located at /lib/systemd/system/
[Unit]
Description=bluealsa-aplay
Requires=network.target sound.target
After=network.target sound.target
[Service]
Type=simple
# change for user you want!
User=root
ExecStart=bluealsa-aplay 00:00:00:00:00:00
[Install]
WantedBy=multi-user.target