The idea here was to setup a 24/7 headless (no local monitor or mouse/kb) server, to run at least the Frigate NVR system and a simple home NAS. Other functions could be added, but one goal is to also be as lightweight as possible to prevent issues with the cameras & NAS.
Prepare installation media
Install and setup Debian for remote access (the only part needing monitor & keyboard)
After reboot, add your username to sudoers:
apt update && apt install -y sudo
usermod -aG sudo jedi
echo 'jedi ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/user
sudo apt update && sudo apt upgrade -y
sudo apt install -y unattended-upgrades
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | sudo debconf-set-selections
sudo dpkg-reconfigure -f noninteractive unattended-upgrades
sudo apt install -y ufw
sudo ufw allow from 192.168.0.0/16
sudo ufw default deny incoming && sudo ufw default allow outgoing
sudo ufw enable