Add create and setup vm scripts (2)

This commit is contained in:
admin666 2024-08-20 10:12:00 +00:00
parent d0e7c6c456
commit 610daffb7f
1 changed files with 4 additions and 4 deletions

View File

@ -49,12 +49,12 @@ echo "Waiting for ${vm} to boot..."
sleep 20 sleep 20
echo "Updating packages..." echo "Updating packages..."
sudo -u admin666 ssh -4 ${vm} "sudo apt update" sudo -u admin666 ssh -4 ${vm} "sudo apt-get update"
sudo -u admin666 ssh -4 ${vm} 'sudo apt full-upgrade -y -o Dpkg::Options::="--force-confold"' sudo -u admin666 ssh -4 ${vm} 'sudo apt-get full-upgrade -y -o Dpkg::Options::="--force-confold"'
sudo -u admin666 ssh -4 ${vm} "sudo apt autoremove -y" sudo -u admin666 ssh -4 ${vm} "sudo apt-get autoremove -y"
echo "Installing base packages..." echo "Installing base packages..."
sudo -u admin666 ssh -4 ${vm} "sudo apt install -y etckeeper molly-guard tig lm-sensors fancontrol screen emacs-nox vrms needrestart iotop htop curl ncdu iptraf tig unzip" sudo -u admin666 ssh -4 ${vm} "sudo apt-get install -y etckeeper molly-guard tig lm-sensors fancontrol screen emacs-nox vrms needrestart iotop htop curl ncdu iptraf tig unzip"
echo -e "\e[36m${vm} successfully set up\e[0m" echo -e "\e[36m${vm} successfully set up\e[0m"
exit 0 exit 0