diff options
| author | hc <hc@email.ch> | 2024-10-21 17:29:05 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2024-10-21 17:29:05 +0800 |
| commit | 1d6b675fdbdbbd48abbf622648d8256c94f6a111 (patch) | |
| tree | 41b018946dd0f86a6cb25ac6d663f39d8f642b47 /setup.sh | |
| parent | 77985a70eaea615478828e85a314f50327105466 (diff) | |
updatedvm.sh2
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -4,7 +4,6 @@ echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config | |||
| 4 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config | 4 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config |
| 5 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config | 5 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config |
| 6 | 6 | ||
| 7 | sudo dnf install -y git | ||
| 8 | git clone https://git.0nom.ch/keys ~/keys | 7 | git clone https://git.0nom.ch/keys ~/keys |
| 9 | ~/keys/add-ssh-keys.sh | 8 | ~/keys/add-ssh-keys.sh |
| 10 | 9 | ||
| @@ -12,9 +11,10 @@ git clone https://git.0nom.ch/keys ~/keys | |||
| 12 | sudo dnf install -y epel-release | 11 | sudo dnf install -y epel-release |
| 13 | sudo dnf groupinstall -y "Development Tools" | 12 | sudo dnf groupinstall -y "Development Tools" |
| 14 | 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 | 13 | 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 |
| 14 | sudo dnf install -y xclip | ||
| 15 | 15 | ||
| 16 | sudo dnf install -y gcc gcc-c++ | 16 | sudo dnf install -y gcc gcc-c++ |
| 17 | sudo dnf install -y asio-devel boost-devel openssl-devel | 17 | #sudo dnf install -y asio-devel boost-devel openssl-devel |
| 18 | #install packages ml | 18 | #install packages ml |
| 19 | #pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 | 19 | #pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 |
| 20 | #pip3 install transformers | 20 | #pip3 install transformers |
