|
|
#!/bin/bash |
|
|
|
|
|
ssh jump-eu.tiktok-row.org |
|
|
curl -o setup_env_huggingface.sh -L https://gist.github.com/tensorboy/25d0439c5c3b83cfcc9ff6e50bca8dff/raw |
|
|
|
|
|
hosts=("10.100.193.14" |
|
|
"10.100.193.16" |
|
|
"10.100.193.29" |
|
|
"10.100.193.37" |
|
|
"10.100.193.41" |
|
|
"10.100.193.75" |
|
|
"10.100.193.84" |
|
|
"10.100.193.96" |
|
|
"10.100.193.97" |
|
|
"10.100.193.111" |
|
|
"10.100.193.128" |
|
|
"10.100.193.137" |
|
|
"10.100.193.158" |
|
|
"10.100.193.164" |
|
|
"10.100.193.172" |
|
|
"10.100.193.181" |
|
|
"10.100.193.192" |
|
|
"10.100.193.198" |
|
|
"10.100.193.232" |
|
|
"10.100.193.233" |
|
|
"10.100.193.253" |
|
|
) |
|
|
|
|
|
|
|
|
for host in "${hosts[@]}"; do |
|
|
"ssh root@$host 'bash -s' <<EOF |
|
|
# Commands to execute on the remote host |
|
|
echo 'Hello from $host' |
|
|
sudo apt update |
|
|
sudo apt install -y wget curl |
|
|
curl -o setup_env_huggingface.sh -L https://gist.github.com/tensorboy/25d0439c5c3b83cfcc9ff6e50bca8dff/raw |
|
|
EOF |
|
|
|
|
|
done |
|
|
|