Skript erstellen
Code: Select all
cd ~
echo "/usr/bin/apt update;
/usr/bin/dpkg --configure -a;
/usr/bin/apt --yes --allow-unauthenticated -f install;
/usr/bin/apt --yes --allow-unauthenticated dist-upgrade;
/usr/bin/apt --yes --allow-unauthenticated -f install;
/usr/bin/apt-get --yes --allow-unauthenticated autoremove;
/usr/bin/apt autoremove;
" > update.sh
rechte Maustaste auf dem Schreibtisch (Desktop) und im Kontextmenü den Punkt "Starter erstellen ..." anklicken
Optional
für Systeme die im 24/7 Betrieb laufen
Als root ein cronjob erstellen mit
Code: Select all
crontab -e
Code: Select all
0 2 * * * /bin/bash /home/username/update.sh > /home/username/update_$(date +%Y%m%d%H%M).log