-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
64 lines (44 loc) · 1.94 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
export HTTPS_PROXY=http://proxy-chain.intel.com:912
export HTTP_PROXY=http://proxy-chain.intel.com:911
CURRENT_OS=$(hostnamectl | awk '/Operating/ { print $3 }')
echo $CURRENT_OS
if [ $CURRENT_OS == "Fedora" ]
then
echo "This is Centos based system"
echo "proxy=http://proxy-chain.intel.com:912" | sudo tee -a /etc/dnf/dnf.conf
echo "proxy=http://proxy-chain.intel.com:911" | sudo tee -a /etc/dnf/dnf.conf
sudo yum update -y
sudo yum install net-tools vim git libconfig -y
sudo yum install clang gcc meson libtool -y
sudo yum install google-perftools libconfig unifdef curl libffi-devel zlib-devel -y
sudo yum install libedit-devel expat-devel python3-setuptools python3-pip python3-wheel python3-cffi -y
sudo yum install autoconf-archive connect-proxy wireshark cmake libunwind-devel -y
sudo yum install qemu-guest-agent -y
sudo systemctl start qemu-guest-agent
sudo systemctl enable qemu-guest-agent
python3 -m venv env
source ./env/bin/activate
for item in "thrift" "protobuf" "pyelftools" "scapy" "six";
do
echo "$item"
pip3 install "$item"
done
else
echo "This is a Debian based system"
sudo apt update -y
sudo apt install net-tools vim -y
sudo apt install clang gcc meson libtool -y
sudo apt install google-perftools curl libffi-dev zlib-dev -y
sudo apt-get install libconfig-dev unifdef -y
sudo apt install libedit-dev libexpat1-dev python3-setuptools python3-pip python3-wheel python3-cffi -y
sudo apt install autoconf-archive connect-proxy wireshark cmake libunwind-dev -y
sudo apt install python3.8-venv -y
python3 -m venv env
source ./env/bin/activate
for item in "thrift" "protobuf" "pyelftools" "scapy" "six";
do
echo "$item"
pip3 install "$item"
done
fi