diff options
| author | root <root@sg1.noml.ch> | 2025-05-22 18:36:01 +0800 |
|---|---|---|
| committer | root <root@sg1.noml.ch> | 2025-05-22 18:36:01 +0800 |
| commit | 3a52e92fbbbab4df949740f89a389d68281a9428 (patch) | |
| tree | 5cb3b864eb0e3f3b90a1efd9cbdee1fb9f158f4a /others/vm3/.config/init | |
| parent | 8cb260002db7c46ea5fe2c3f589b485e5f5d970d (diff) | |
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, 0 insertions, 16 deletions
diff --git a/others/vm3/.config/init/install_packages.sh b/others/vm3/.config/init/install_packages.sh deleted file mode 100755 index d5ca81f..0000000 --- a/others/vm3/.config/init/install_packages.sh +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | #install packages | ||
| 4 | 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") | ||
| 5 | |||
| 6 | for package in "${packages[@]}"; do | ||
| 7 | if ! rpm -q "$package" &> /dev/null; then | ||
| 8 | sudo dnf install -y "$package" | ||
| 9 | fi | ||
| 10 | done | ||
| 11 | |||
| 12 | sudo systemctl enable --now libvirtd | ||
diff --git a/others/vm3/.config/init/make_rootkey.sh b/others/vm3/.config/init/make_rootkey.sh deleted file mode 100755 index f725985..0000000 --- a/others/vm3/.config/init/make_rootkey.sh +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | sudo mkdir -p /root/k | ||
| 4 | ssh-keygen -t ed25519 -f /root/k/k1 -N "" | ||
