-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall3.sh
43 lines (31 loc) · 1 KB
/
install3.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
40
41
42
#using ubuntu t2.xlarge 32G storage ( 2 minutes execution)
#uncomment following line if you are already root
#alias sudo=
#
# UPDATE the system
sudo apt-get -y update
sudo apt-get -y upgrade
#
# Install git and wget
sudo apt-get -y install git
sudo apt-get -y install wget
#
# Download and install Anaconda 3
wget https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh
sudo sh Anaconda3-5.3.1-Linux-x86_64.sh -b
source ~/.bashrc
sudo anaconda3/bin/conda update -y -n base conda
#
# Download and uncompress the datasets
wget http://kdd.ics.uci.edu/databases/kddcup99/kddcup.data.gz
wget http://kdd.ics.uci.edu/databases/kddcup99/kddcup.data_10_percent.gz
gunzip kddcup.*.gz
#
# Download the pandas and sklearn packages
anaconda3/bin/pip install pandas
anaconda3/bin/pip install sklearn
#
# Download the ML script for attack detection
git clone https://github.com/ghuecas/kdd99ml
# Ready to execute the detection script, print the command
echo "execute ./anaconda3/bin/python kdd99ml/detectAttack.py"