diff options
Diffstat (limited to 'others/vm3/.config/init')
| -rwxr-xr-x | others/vm3/.config/init/install_packages.sh | 12 | ||||
| -rwxr-xr-x | others/vm3/.config/init/make_rootkey.sh | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/others/vm3/.config/init/install_packages.sh b/others/vm3/.config/init/install_packages.sh new file mode 100755 index 0000000..d5ca81f --- /dev/null +++ b/others/vm3/.config/init/install_packages.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +#install packages +packages=("nc" "htop" "wireguard-tools" "bind-utils" "tmux" "net-tools" "curl" "mlocate" "dnsmasq" "qemu-kvm" "libvirt" "libvirt-daemon-kvm" "virt-install" "virt-manager" "genisoimage" "bc") + +for package in "${packages[@]}"; do + if ! rpm -q "$package" &> /dev/null; then + sudo dnf install -y "$package" + fi +done + +sudo systemctl enable --now libvirtd diff --git a/others/vm3/.config/init/make_rootkey.sh b/others/vm3/.config/init/make_rootkey.sh new file mode 100755 index 0000000..5d07472 --- /dev/null +++ b/others/vm3/.config/init/make_rootkey.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo mkdir -p ~/keys +ssh-keygen -t ed25519 -f ~/keys/k1 -N "" |
