summaryrefslogtreecommitdiff
path: root/others/vm3/.config
diff options
context:
space:
mode:
Diffstat (limited to 'others/vm3/.config')
-rwxr-xr-xothers/vm3/.config/init/install_packages.sh12
-rwxr-xr-xothers/vm3/.config/init/make_rootkey.sh4
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 @@
1#!/bin/bash
2
3#install packages
4packages=("nc" "htop" "wireguard-tools" "bind-utils" "tmux" "net-tools" "curl" "mlocate" "dnsmasq" "qemu-kvm" "libvirt" "libvirt-daemon-kvm" "virt-install" "virt-manager" "genisoimage" "bc")
5
6for package in "${packages[@]}"; do
7 if ! rpm -q "$package" &> /dev/null; then
8 sudo dnf install -y "$package"
9 fi
10done
11
12sudo 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 @@
1#!/bin/bash
2
3sudo mkdir -p ~/keys
4ssh-keygen -t ed25519 -f ~/keys/k1 -N ""