-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.sh
39 lines (31 loc) · 1.46 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
SERVER_IP="172.16.1.1"
wget https://github.com/prometheus/node_exporter/releases/download/v1.6.0/node_exporter-1.6.0.linux-amd64.tar.gz
tar xvfz node_exporter-*.*-amd64.tar.gz
cd node_exporter-*.*-amd64
nohup ./node_exporter &
cd ..
sudo apt update && sudo apt install zip g++ cmake -y
mkdir flbenchmark.working
cd flbenchmark.working
wget https://raw.githubusercontent.com/AI-secure/FLBenchmark-toolkit/main/controller/flb-data.zip
unzip flb-data.zip
cd ..
mkdir server
cd server
wget https://github.com/CoLearn-Dev/colink-server-dev/releases/download/v0.3.6/colink-server-linux-x86_64.tar.gz
tar -xzf colink-server-linux-x86_64.tar.gz
rm colink-server-linux-x86_64.tar.gz
sudo setcap CAP_NET_BIND_SERVICE=+ep ./colink-server
echo "Install colink-server: done"
sudo apt update && sudo apt install rabbitmq-server -y
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
wget https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh
bash Anaconda3-2023.03-1-Linux-x86_64.sh -b
wget https://get.docker.com -O get-docker.sh
sudo bash get-docker.sh
sudo usermod -aG docker ubuntu
export BASH_ENV="$HOME/anaconda3/etc/profile.d/conda.sh"
export COLINK_VT_PUBLIC_ADDR="$SERVER_IP"
nohup ./colink-server --address 0.0.0.0 --port 80 --mq-uri amqp://guest:guest@$SERVER_IP:5672 --mq-api http://guest:guest@localhost:15672/api --mq-prefix colink-test-server --core-uri http://$SERVER_IP:80 --pom-allow-external-source > output.log 2>&1 &