Automating installation and configuration of BruteFIR and shairport-sync for Raspberry Pi
This script is used to ease the installation of shairport-sync and BruteFIR
Before you start, it's assumed that you have some familiarity with all of the above:
- Familiar with installing Raspbian Jessie Lite on a Raspberry Pi of your choice - Instructions here
- Capable of setting up WiFi via the command line
- Somewhat familiar with the bash shell.
- Room correction using software like Room EQ Wizard.
After you have created your correction filters in Room EQ Wizard, you need to export them using:
File -> Export -> Export Filters Impulse Response as WAV
When exporting export each channel individually using the following settings:
- Mono
- 32-bit
- Check "Normalize samples to peak value"
- Save the filter for the left channel as "left-fir.wav", and the right channel as "right-fir.wav"
Save the files in the impulses
directory.
Before continuing:
Since this Raspberry Pi installation will run as a headless installation (no keyboard or display connected), we'll need to enable SSH. Do this by creating an empty text file named 'ssh' on te
Before booting the Raspberry Pi for the first time, we'll need to prepare the image by copying the directory with this guide to the image, including the saved impulse responses to the prepared image.
It's now time to boot the Raspberry Pi for the first time.
- Connect network cable, and any other peripherals, such as your DAC.
- Connect the Raspberry Pi to power
- After booting, ssh into the machine:
ssh pi@raspberrypi.local
- log in using the password 'raspberry'
sudo apt-get update && sudo apt-get dist-upgrade
This may take a long time. Just be patient and enjoy a cup of coffee
sudo raspi-config
Select option 1 "Change User Password Change password for the default user (pi)", and pick a secure password. While your Pi won't be visible to the internet at large, this is still good practice.
While still in the raspi-config application, you may want to change the hostname to something more recognizable, using item 2: "Hostname Set the visible name for this Pi on a network" option
If you are running an older Raspberry Pi, such as the Model B or Model B+, you may want to overclock the Pi slightly. Choose "Overclocking" (but take note of the warnings, as the author of this document will not be responsible for you damaging your Pi). Using the option "Moderate" is sufficient.
If your Pi is a Pi 2, Pi 3 or Pi Zero, you will not need to overclock.
At this stage, you may want to reboot, so the hostname option takes effect.
SSH back into your Raspberry Pi, and execute the following commands:
sudo -s
mv /boot/brutepi .
cd brutepi
chmod +x install.sh
./install.sh
The installation script is interactive, and will ask you a few questions before commencing installation. Follow on-screen instructions, and pay attention during installation.
After the installation, you can remove the repository:
cd /home/pi
sudo rm -rf brutepi