-
Notifications
You must be signed in to change notification settings - Fork 33
Instructions
- Download Raspbian stretch lite: https://www.raspberrypi.org/downloads/raspbian/
- Install the Raspbian image on the SD card: https://www.raspberrypi.org/documentation/installation/installing-images/
- Check all hardware parts and batteries
- Connect a USB-keyboard and HMDI-compatible display to the raspberry
- Connect the remaining hardware, but not the powerbank
- Connect the powerbank
- Try to log in, default user is "pi" and default password "raspberry" (with German keyboard layout letters "z" and "y" are swapped)
- Complete the basic setup
- Run
sudo raspi-config
(with German keyboard layout the "-" (dash) is on the "?"-key)- Configure your keyboard layout (localization options)
- Configure your wi-fi country (localization options)
- Enable SSH access (interfacing options)
- Change the hostname
- Toggle console auto-login (boot options, desktop/cli)
- "Finish" the configuration and run "sudo reboot"
- Try to log in again
- Deactivate frequency-scaling: Add a new line with
force_turbo=1
at the end of/boot/config.txt
- Disable on-board audio: Comment out dtparam=audio=on in
/boot/config.txt"
- Configure wifi with hostapd (example hostapd.conf) to enable wireless remote access via ssh: https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
- Resource for further low latency audio suggestions: https://wiki.linuxaudio.org/wiki/raspberrypi?&
- Add a new line with
dtoverlay=audioinjector-wm8731-audio
at the end of/boot/config.txt
- Power off:
sudo poweroff
- Connect the sound card
- Power on
- Resource for further instructions: http://www.flatmax.org/phpbb/viewtopic.php?f=5&t=3
The default configuration of the sound card is odd.
You will need to configure it using alsamixer
.
Once you are happy with your configuration you can use sudo alsactl store
to store that configuration.
It will be loaded the next time you boot.
Here is an example configuration.
Place it in /var/lib/alsa and it will be loaded on the next reboot or with sudo alsactl restore
Pair Bluetooth controller: https://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/
Update the already installed software and reboot afterwards: sudo apt dist-upgrade
Generally it is advisable to install several packages, some of which are required and some are just for comfort: sudo apt install build-essential haveged ssh mosh byobu git tig htop nmon
"build-essential" is needed for building software, "haveged" seems to help saving entropy which is needed to start the encrypted wifi connections, "byobu" is handy to tile and detach console sessions.
- Install jackd:
sudo apt install jackd2 libjack-jackd2-dev
- Add the following line to the end of the file "~/.bashrc":
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
- Create the file
/etc/dbus-1/system-local.conf
and copy the content of the provided example. - Reboot the Raspberry:
sudo reboot
- Look at a list of the sound cards:
aplay -l
- Try to start jackd with the following command, replacing SOUNDCARD with the name of the soundcard (e.g., "audioinjectorpi" for the Audioinjector soundcard):
jackd -dalsa -dhw:SOUNDCARD -p96 -n4 -r48000 -s
- Stop jackd pressing Ctrl+C
It can be difficult to connect and disconnect jack clients in the terminal. You can use "njconnect" which is a simple ncurses based interface to control jack connections: https://sourceforge.net/projects/njconnect/
- To compile it, you first will need to install the ncurses librar"buildy headers
sudo apt install libncurses5-dev
- Compile with:
make
- Run with:
./njconnect
- Press "a" to see the available and established connections and use "tab" to switch between panels "build
- Clone the openMHA source code with git:
git clone https://github.com/HoerTech-gGmbH/openMHA.git
- Follow the installation instructions in the README.md file
- Use the example configuration which works with the proposed setup using the Audioinjector soundcard
- There is also a simple script to start openMHA which starts jack and openMHA, opening the configuration on port 33337.
- Start
sudo raspi-config
- Change the default password
- Enable SSH access (interfacing options)
- Connect the Raspberry Pi to a local area network
- Check if it got an IP address:
ifconfig
(default 172.24.1.1) - Try to connect to that IP address (or the hostname) from a remote PC with ssh
- Use the -L option of SSH to enable port-forwarding of the MHA-control port:
ssh -L33337:localhost:33337 pi@HOSTNAME
- Install flite:
sudo apt install flite
- See actions.sh for example usage
To run openMHA automatically when booting the Raspberry Pi: Add the autostart example to the end of "~/.bashrc"
An image of the SD card can be created to share a pre-configured setup.