Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Last active July 30, 2023 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcolazurdo/ae86c8e1043ef0a02dea1561091180f0 to your computer and use it in GitHub Desktop.
Save pcolazurdo/ae86c8e1043ef0a02dea1561091180f0 to your computer and use it in GitHub Desktop.
Smart home with Raspberry

how to fix browsing the internal network

MacOS issues with .local

In MacOS, you can do dig whatever.local and get some results if you have the entry in a local DNS (like pi-hole) but curl, or browsing will fail. This is because Apple enforces that .local domain is only discovered by the mDNS Bonjour service (more info)

To solve this, I decided to run the avahi-daemon in my local Raspberry-pi to publish additional services.

I decided to use the avahi-aliases project to simplify publishing more than one service on the same IP as the default avahi-daemon doesn't allow this at the moment

Installing avahi-aliases

Some important links:

TasmotAdmin docker image needs a current version of libseccomp2 - if not you get an error:

s6-svscan: warning: unable to iopause: Operation not permitted
s6-svscan: warning: executing into .s6-svscan/crash
s6-svscan crashed. Killing everything and exiting.
s6-supervise s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted

To do this in Raspbian Buster you can follow this

but basically:

sudo echo "deb http://mirrordirector.raspbian.org/raspbian/ bullseye main" > vi /etc/apt/sources.list.d/bullseye-testing-docker.list
sudo echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye-docker.pref
sudo systemctl stop docker
sudo apt update
sudo apt install docker.io/bullseye

then you can follow the instructions on TasmoAdmin page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment