added alpine vm setup script

This commit is contained in:
Sven Vogel 2024-01-02 16:05:42 +01:00
parent 0164e0d6c8
commit 56a4b1eaec
1 changed files with 29 additions and 0 deletions

29
setup-alpine-vm.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/sh
echo "installing qemu guest agent..."
apk add qemu-guest-agent
rc-update add qemu-guest-agent
rc-service qemu-guest-agent start
echo "installing fail2ban..."
apk add fail2ban
rc-update add fail2ban
rc-service fail2ban start
apk add neovim
echo "installing Docker..."
apk add docker docker-cli-compose
rc-update add docker default
service docker start
echo "installing OpenSSH..."
apk add openssh
rc-update add sshd
rc-service sshd start
echo "installing NFS..."
apk add nfs-utils
rc-update add netmount
reboot now