Skip to content

Latest commit

 

History

History
90 lines (58 loc) · 2.13 KB

README.md

File metadata and controls

90 lines (58 loc) · 2.13 KB

BBB-Hole

Credit goes to :

https://forum.beagleboard.org/t/debian-11-x-bullseye-monthly-snapshots/31280

https://www.reddit.com/r/pihole/comments/txaw23/pihole_on_beaglebone_black_the_uptodate_working/

I believe a simplified guide can be done.

For my example I used a BBB 2 gig, that doesn't have any wifi or bluetooth (AFAIK).

(Updated for debian 12 image)

Image :

Minimal image

Newer/Older image can be found here.

I recommend Balena Etcher to write the image to the sd card.

(optional) First, to install everything on the eMMC if you want:

sudo enable-beagle-flasher
sudo reboot

To save some space, I recommend to disable the journal service since the free space is already low.

sudo systemctl disable systemd-journald.service
cd /var/log/journal/  # And then press TAB for the next folder since it seems to be a random long string
sudo rm *.journal

Cleanup the already minimal install..

sudo apt autoremove -y bluez bb-u-boot-am5* bb-wlan0-defaults btrfs-progs firmware-atheros firmware-brcm80211 firmware-iwlwifi firmware-libertas firmware-realtek iw nginx* rsync vim* wireguard-tools wireless-regdb

Setup a static IP (Adjust for your setup)

sudo nano /etc/systemd/network/eth0.network
[Match]
Name=eth0
Type=ether

[Link]
RequiredForOnline=yes

[Network]
#DHCP=ipv4
Address=192.168.1.7/24
Gateway=192.168.1.1
DNS=8.8.8.8

Save & Exit with CTRL+O and CTRL+X

sudo reboot

And finally install pi-hole

curl -sSL https://install.pi-hole.net | bash

Don't forget to change the default password with "passwd"

(Optional) If you want to turn off the user leds (the power leds is not affected), simply do this:

echo 0 > /sys/class/leds/beaglebone:green:usr0/brightness
echo 0 > /sys/class/leds/beaglebone:green:usr1/brightness
echo 0 > /sys/class/leds/beaglebone:green:usr2/brightness
echo 0 > /sys/class/leds/beaglebone:green:usr3/brightness