-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
78 lines (62 loc) · 2.2 KB
/
install.sh
File metadata and controls
78 lines (62 loc) · 2.2 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
--no-install-recommends \
apt-utils \
software-properties-common \
build-essential \
pkg-config screen git wget curl tar vim
add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install python3.9 python3.9-dev python3-pip -y
mkdir -p /tmp/install \
&& cd /tmp/install
curl -O https://dl.influxdata.com/influxdb/releases/influxdb2-2.7.4_linux_amd64.tar.gz \
&& tar xvzf ./influxdb2-2.7.4_linux_amd64.tar.gz \
&& cp ./influxdb2-2.7.4/usr/bin/influxd /usr/local/bin/
wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.3-linux-amd64.tar.gz \
&& tar xvzf ./influxdb2-client-2.7.3-linux-amd64.tar.gz \
&& cp ./influx /usr/local/bin/
cd / && rm -rf /tmp/install
git clone https://github.com/samiemostafavi/edaf.git && mv edaf EDAF && cd EDAF
python3.9 -m pip install -U .
# run influxd in a screen session
screen -S influxd
influxd
# exit the screen by pressing Ctrl-A and D
influx setup \
--username edaf \
--password 4c5f28e30698bf883e18193 \
--org expeca \
--bucket latency \
--force
influx auth list --json > influx_auth.json
# run edaf standalone in a screen session
screen -S edaf
cd /EDAF/ && STANDALONE=true python3.9 edaf.py
# exit the screen by pressing Ctrl-A and D
cd / && wget https://raw.githubusercontent.com/samiemostafavi/nlmt/master/nlmt \
&& cp nlmt /usr/local/bin/ \
&& chmod +x /usr/local/bin/nlmt \
&& rm nlmt
# run nlmt in a screen session
screen -S nlmt
while true; do nlmt server -n localhost:50009 -i 0 -d 0 -l 0; sleep 1; done
# exit the screen by pressing Ctrl-A and D
# prediction app installation
cd / && git clone https://github.com/samiemostafavi/wireless-pr3d.git \
&& cd wireless-pr3d/ \
&& git checkout develop \
&& cd demo
python3.9 -m pip install virtualenv \
&& python3.9 -m virtualenv ./venv \
&& source venv/bin/activate \
&& pip install -Ur requirements.txt
&& deactivate
# copy the token and paste it in conf.json
cat /EDAF/influx_auth.json
vim /wireless-pr3d/demo/conf.json
# run pr3d in a screen session
screen -S pr3d
cd /wireless-pr3d/demo && source venv/bin/activate
python main.py