multiple servers on a single Pi4

February 13, 2023, 09:00

sammuel112

Hey I have a spare RPI4 8GB. I'm currently running octoprint off a 3B using a few GPIOs for Octolight (going to a relay) and I'm wanting to setup a PiHole. I know PiHole is not very intensive. Would it be feasible to just run Debian or something else and set up the 2 sperate servers on the same 8gb pi? What is the best way to approach it? Should I just leave the separate servers as individual pi's? I do power down the octoprint server if the printer errors while im away is this a bad idea if I was running pihole on the same pi? Is there a way to trigger the server to shut down/restart from my wifi switch or from a tuya server? Thanks in advance

andy_s

pihole is just a service, you can install it on raspbian just fine. as for lights, think about addressabel LEDs using ESP8266 & SK6812; that way you can have not only light, but status indication as well (ask me how i know 😉 ) But since you do not have printer running 24/7, having pihole running on this pi is not a good idea, your network would be basically crippled.

sammuel112

Thank you