Compare commits
2 Commits
e7a2dcdf7f
...
e70793dc94
| Author | SHA1 | Date | |
|---|---|---|---|
| e70793dc94 | |||
| d2efe7373b |
55
README.md
55
README.md
@@ -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/
|
||||||
|
|
||||||
@@ -43,21 +44,53 @@
|
|||||||
|
|
||||||
- Start on boot (as a service)
|
- 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*
|
*check file for squeezelite configurations*
|
||||||
*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
|
|
||||||
*if used with bluealsa only one can be used on boot*
|
|
||||||
|
|
||||||
sudo systemctl enable 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'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
20
etc/systemd/system/bluealsaaplay.config
Normal file
20
etc/systemd/system/bluealsaaplay.config
Normal 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
|
||||||
Reference in New Issue
Block a user