Sure! If you’ve got that pi on all the time.
I previously did that and it worked well. My current setup is multiple pi’s though, cause the octo pi is switched off with the printer now…
Only thing you might need to change is the configuration for which port the pi-hole web server (UI) will be running on. Because octoprint already uses Port 80 by default, you might have to assign another port for the pi-hole service. (I believe it also defaults to 80. That would crash because it can’t bind to the same port). That should be a pretty simple config change though.
Pi-hole for my home network. NextDNS on my phone.
Can I run pihole on the same Pi that’s already running Octoprint?
Sure! If you’ve got that pi on all the time. I previously did that and it worked well. My current setup is multiple pi’s though, cause the octo pi is switched off with the printer now…
Yes, I leave it running all the time. So do I just install PiHole as a package on the server and then connect to it to configure?
I had it setup using docker at the time. Both pihole and octoprint as individual containers…
But I assume you should be able to just install and run the package locally on the octopi distro.
Only thing you might need to change is the configuration for which port the pi-hole web server (UI) will be running on. Because octoprint already uses Port 80 by default, you might have to assign another port for the pi-hole service. (I believe it also defaults to 80. That would crash because it can’t bind to the same port). That should be a pretty simple config change though.
Just did a quick Google… There are some resources and tutorials online of people doing exactly that. Take a look!
https://www.google.com/search?q=setup pihole on octopi
Thanks, guys! I’ll set this up soon.