source setup/functions.sh # load our functions # Base system configuration. echo Updating system packages... hide_output apt-get update hide_output apt-get -y upgrade # Install basic utilities. # # haveged: Provides extra entropy to /dev/random so it doesn't stall # when generating random numbers for private keys (e.g. during # ldns-keygen). # unattended-upgrades: Apt tool to install security updates automatically. # ntp: keeps the system time correct # fail2ban: scans log files for repeated failed login attempts and blocks the remote IP at the firewall apt_install python3 python3-pip \ wget curl \ haveged unattended-upgrades ntp fail2ban # Allow apt to install system updates automatically every day. cat > /etc/apt/apt.conf.d/02periodic <