A flexible storage solution on a Linux distro, using off the shelf tools: raid (mdraid), LVM and parted.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import socket | |
import threading | |
rbls = [ | |
'access.redhawk.org', | |
'all.s5h.net', | |
'all.spamblock.unit.liu.se', |
Headless A2DP Audio Streaming on Raspbian Stretch with a Raspberry Pi Zero W and a HiFiBerry DAC+ Zero
This gist will show how to setup Raspberry Pi OS Buster running on a Raspberry Pi Zero HW with a HiFiBerry DAC+ Zero, connected to a regular set of computer speakers for a DIY Streaming Bluetooth Speaker. You can use any device with a A2DP capability like a phone, a tablet or your laptop to stream audio. Towards the bottom, I added some bonus features like low latency optimization so audio played has minimal lag.
There are a million and one guides and gists out there but none of them actually does what I wanted to do "out of the box" - there are always bigger or smaller hacks involved. I wanted a turnkey solution that would not relay on any external scripts of extra code. It is up to date as of June 2021.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
apt update && apt upgrade | |
apt install raspberrypi-kernel-headers libelf-dev build-essential git | |
apt install dkms | |
cd /usr/src/ | |
git clone https://github.com/gordboy/rtl8812au-5.6.4.2.git | |
dkms add -m rtl8812au -v 5.6.4.2 | |
ARCH=arm dkms build -m rtl8812au -v 5.6.4.2 | |
dkms install -m rtl8812au -v 5.6.4.2 |