Hello. My Rpi 3 PiHole started to be unresponsive. Someone suggested to install DietPi so I did, ableit i am not sure how much lighter you can go from Raspberry Pi OS terminal.
1-My question is on updating. How do I update the OS and all the apps ? I was told I must do it from the DietPi launcher. On Raspberry Pi I used to run this script:
There is no general answer as it depends on the related app. Some uses internal update functions like PiHole does. For most of the apps we described the update procedure on our online docs. DNS Servers Options - DietPi.com Docs
correct
basically you answered your own question.
This changed all settings back to what you had before on the original system
We change it by default so hat Pi-hole does not collide with regular webservers on 80/443. But if you do not plan to install an application with a regular webserver, no issues to keep Pi-hole on those ports. I would still enable and use HTTPS, in that case on regular port 443:
sudo pihole-FTL --config webserver.port 80,443s
Then https://(ip-address)/admin works as well. I know I know, just a trusted home network. But DNS is a critical part of Internet security, and you never know who might get access to your LAN whichever way through an insecure device or bug. Is has no real downsides to just consequently encrypt all network traffic even at home within the LAN .
To restore DietPi default ports, in case you do install a webserver at some point:
If I am not mistaken, pihole -up implies a gravity update, and otherwise it is done weekly by some cron job or systemd timer. Also you do not need to run apt-get update twice. If you want to apply the dietpi-update without dialogue, in case one is available, pass 1 as argument. I.e. this would work:
Unlike maybe on Windows, a Linux server only really needs to be restarted after a kernel upgrade. In that case, also dietpi-update will prompt you about that with a dialogue … though only if an actual DietPi update was applied. You could do this instead to do only after a kernel upgrade via apt-get if the old kernel was removed in the same turn: