Archive for July, 2019

Updating Raspberry Pi PiHole Servers

Saturday, July 6th, 2019

Hopefully you were on top of things and have already changed the default login mire that is associated with the Pi. Also hopefully you have enabled telnet on the Pi.

If all these criteria are met, every few weeks I login with telnet and run the following commands:

sudo apt update
sudo apt -yf dist-upgrade
sudo apt-get -y –purge autoremove
sudo apt-get autoclean
pihole -g -up
pihole -up

Adding AdGuard to Home Assistant on Hassio on Ubuntu 18.04

Saturday, July 6th, 2019

So you will run into a bit of a problem where the Ubuntu 18.04 underneath Hassio is already listening to port 53, so you cannot have a Hassio plugin also listening to port 53. The error I saw in the AdGuard log was:

[fatal] Couldn’t start forwarding DNS server, cause: couldn’t listen to UDP socket, cause: listen udp 0.0.0.0:53: bind: address already in use

This method I found seems to work…

Disable and stop system-resolved service:
sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved

Then put the following line in the [main] section of /etc/NetworkManager/NetworkManager.conf:
dns=default

Delete the symlink /etc/resolv.conf:
rm /etc/resolv.conf

Restart network-manager:
sudo service network-manager restart

This may break VPN for some users.