-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·43 lines (33 loc) · 1.04 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
40
41
42
43
#!/bin/bash
cwd=$(pwd)
version=$(lsb_release -rs )
# Wrong version warning
if [ "$version" != "20.04" ] && [ "$version" != "18.04" ]
then
printf "Warning! This installation script has only been tested on Ubuntu 20.04 LTS and 18.04 LTS and will likely not work on your Ubuntu version.\n\n"
fi
sleep 3
# Update apt
sudo apt update
# Installing necessary packages
sudo apt install -y git python3 python3-pip pytho3-flask libjpeg-dev zlib1g-dev curl libsqlite3-dev openvswitch-testcontroller net-tools gnome-terminal
# Install farpd
sudo apt install -y farpd
# Installing Honeyd - just a copy and paste of the guide
cd ~
git clone https://github.com/DataSoft/Honeyd
cd Honeyd
sudo apt install -y libevent-dev libdumbnet-dev libpcap-dev libpcre3-dev libedit-dev bison flex libtool automake make zlib1g-dev
./autogen.sh
./configure
make
sudo make install
# Install packages for python
cd ~
cd HoneyEVSE
pip3 install -r requirements.txt
# create log and make it modifiable
touch honeyd.log
sudo chmod 777 honeyd.log
printf "\nInstallation finished.\n"
exit 0;