From 1d6b675fdbdbbd48abbf622648d8256c94f6a111 Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 21 Oct 2024 17:29:05 +0800 Subject: updatedvm.sh2 --- others/vm.sh2 | 5 +++-- setup.sh | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/others/vm.sh2 b/others/vm.sh2 index 3374d13..a64b435 100755 --- a/others/vm.sh2 +++ b/others/vm.sh2 @@ -131,8 +131,9 @@ case "$1" in echo ' - sudo growpart /dev/sda 1' >> user-data echo ' - sudo xfs_growfs /' >> user-data - echo ' - sudo dnf update -y' >> user-data - echo ' - sudo dnf install -y netcat xclip tmux htop tar tree wget curl mlocate nano vim net-tools git python3 python3-pip make' >> user-data + echo ' - sudo dnf install -y git' >> user-data + echo ' - git clone https://git.0nom.ch/setup' >> user-data + echo ' - ./setup/setup.sh' echo ' - touch /home/fedora/runcmd_done' >> user-data echo -e "instance-id: iid-fedora-vm\nlocal-hostname: fedora-cloudimg" > meta-data diff --git a/setup.sh b/setup.sh index 111180f..a53fe40 100755 --- a/setup.sh +++ b/setup.sh @@ -4,7 +4,6 @@ echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config -sudo dnf install -y git git clone https://git.0nom.ch/keys ~/keys ~/keys/add-ssh-keys.sh @@ -12,9 +11,10 @@ git clone https://git.0nom.ch/keys ~/keys sudo dnf install -y epel-release sudo dnf groupinstall -y "Development Tools" sudo dnf install -y nc openssl autossh tmux htop tar bmon gzip tree wget curl mlocate nano vim unzip net-tools git python3 python3-pip make wireguard-tools usbutils yum +sudo dnf install -y xclip sudo dnf install -y gcc gcc-c++ -sudo dnf install -y asio-devel boost-devel openssl-devel +#sudo dnf install -y asio-devel boost-devel openssl-devel #install packages ml #pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 #pip3 install transformers -- cgit v1.2.3-70-g09d2