readme.md
This commit is contained in:
60
README.md
60
README.md
@@ -3,96 +3,104 @@
|
|||||||
- HiFiBerry - DAC Plus
|
- HiFiBerry - DAC Plus
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
## OS Setup, [Instructions](/marcio.fernandes/raspberrypi)
|
## Operating System
|
||||||
## HiFiBerry Setup ([Information source](https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/))
|
[Raspberry PI OS](/marcio.fernandes/raspberrypi)
|
||||||
|
|
||||||
- Remove/comment from /boot/config.txt if it exists, for disabling onboard sound.
|
## HiFiBerry Setup
|
||||||
|
*[Information source](https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/)*
|
||||||
|
|
||||||
|
Remove/comment from /boot/config.txt if it exists, for disabling onboard sound.
|
||||||
|
|
||||||
dtparam=audio=on
|
dtparam=audio=on
|
||||||
|
|
||||||
- Add this lines to /boot/config.txt
|
Add this lines to /boot/config.txt
|
||||||
|
|
||||||
force_eeprom_read=0
|
force_eeprom_read=0
|
||||||
dtoverlay=hifiberry-dacplus
|
dtoverlay=hifiberry-dacplus
|
||||||
|
|
||||||
- Copy file etc/asound.conf
|
Copy/download file [etc/asound.conf](etc/asound.conf) to /etc/
|
||||||
|
|
||||||
- Reboot
|
Reboot
|
||||||
|
|
||||||
## SqueezeLite
|
## SqueezeLite
|
||||||
- Requires Logitech Media Server check [instructions](/marcio.fernandes/lms) for setup
|
*Requires Logitech Media Server check [instructions](/marcio.fernandes/lms) for setup*
|
||||||
- Check latest [version](https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/) SqueezeLite
|
### Install
|
||||||
- Download latest version
|
1. Check latest [version](https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/) SqueezeLite
|
||||||
|
1. Download latest version
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-armhf.tar.gz
|
wget https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-armhf.tar.gz
|
||||||
|
|
||||||
- Untar downloaded files
|
1. Untar downloaded files
|
||||||
|
|
||||||
tar -xvzf squeezelite-1.9.9.1392-armhf.tar.gz
|
tar -xvzf squeezelite-1.9.9.1392-armhf.tar.gz
|
||||||
|
|
||||||
- Move untar file file to /usr/bin/
|
1. Move untar file file to /usr/bin/
|
||||||
|
|
||||||
sudo mv squeezelite /usr/bin
|
sudo mv squeezelite /usr/bin
|
||||||
|
|
||||||
- Check if is executable
|
1. Check if is executable
|
||||||
|
|
||||||
ls -la /usr/bin/squeezelite
|
ls -la /usr/bin/squeezelite
|
||||||
|
|
||||||
- If not make executable
|
1. If not make executable
|
||||||
|
|
||||||
sudo chmod +x /usr/bin/squeezelite
|
sudo chmod +x /usr/bin/squeezelite
|
||||||
|
|
||||||
- Start on boot
|
### Setup as 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*
|
*if used with bluealsa only one can be running*
|
||||||
|
|
||||||
sudo systemctl start squeezelite
|
sudo systemctl start squeezelite
|
||||||
|
|
||||||
- Enable service on boot
|
Enable on boot
|
||||||
*if used with bluealsa only one can be used on boot*
|
*if used with bluealsa only one can be used on boot*
|
||||||
|
|
||||||
sudo systemctl enable squeezelite
|
sudo systemctl enable squeezelite
|
||||||
|
|
||||||
## Bluealsa
|
## Bluealsa/bluealsa-aplay
|
||||||
*Using pi as bluetooth speaker*
|
*Using pi as bluetooth speaker*
|
||||||
- Install
|
|
||||||
|
## Install
|
||||||
|
|
||||||
sudo apt update && sudo apt install bluealsa -y
|
sudo apt update && sudo apt install bluealsa -y
|
||||||
|
|
||||||
|
## Setup as service
|
||||||
|
|
||||||
- Start on boot
|
Start on boot
|
||||||
|
|
||||||
sudo service bluealsa enable && sudo service bluealsa start
|
sudo service bluealsa enable && sudo service bluealsa start
|
||||||
|
|
||||||
- Setup bluealsa-aplay
|
### bluealsa-aplay as service
|
||||||
Download/copy file [etc/systemd/system/bluealsaaplay.service](etc/systemd/system/bluealsaaplay.service) to /etc/systemd/system/
|
Download/copy file [etc/systemd/system/bluealsaaplay.service](etc/systemd/system/bluealsaaplay.service) to /etc/systemd/system/
|
||||||
|
|
||||||
- Enable service on boot
|
Enable service on boot
|
||||||
*if used with squeezelite only one can be used on boot*
|
*if used with squeezelite only one can be used on boot*
|
||||||
|
|
||||||
sudo systemctl enable bluealsaaplay
|
sudo systemctl enable bluealsaaplay
|
||||||
|
|
||||||
- Start service
|
Start service
|
||||||
*if used with squeezelite only one can be running*
|
*if used with squeezelite only one can be running*
|
||||||
|
|
||||||
sudo systemctl start bluealsaaplay
|
sudo systemctl start bluealsaaplay
|
||||||
|
|
||||||
## bluealsa-aplay and Squeezelite
|
## bluealsa-aplay and Squeezelite
|
||||||
- squeelite on boot
|
|
||||||
|
Squeelite on boot
|
||||||
|
|
||||||
sudo systemctl enable squeezelite
|
sudo systemctl enable squeezelite
|
||||||
|
|
||||||
- change to bluealsa-aplay
|
Change to bluealsa-aplay
|
||||||
|
|
||||||
sudo sh -c 'systemctl stop squeezelite; systemctl start bluealsaaplay'
|
sudo sh -c 'systemctl stop squeezelite; systemctl start bluealsaaplay'
|
||||||
|
|
||||||
- change to squeezelite
|
Change to squeezelite
|
||||||
|
|
||||||
sudo sh -c 'systemctl stop bluealsaaplay; systemctl start squeezelite'
|
sudo sh -c 'systemctl stop bluealsaaplay; systemctl start squeezelite'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user