Add create and setup vm scripts (2)
This commit is contained in:
parent
d0e7c6c456
commit
610daffb7f
8
setup.sh
8
setup.sh
|
@ -49,12 +49,12 @@ echo "Waiting for ${vm} to boot..."
|
|||
sleep 20
|
||||
|
||||
echo "Updating packages..."
|
||||
sudo -u admin666 ssh -4 ${vm} "sudo apt 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 autoremove -y"
|
||||
sudo -u admin666 ssh -4 ${vm} "sudo apt-get update"
|
||||
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-get autoremove -y"
|
||||
|
||||
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"
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue