-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
40 lines (31 loc) · 935 Bytes
/
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
# Check if the script is running as root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root. Please use sudo."
exit 1
fi
# Git configurations
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# Install packages
apt update
apt install -y python3-pip git
# Upgrade pip and install Docker
pip3 install -U pip
pip3 install docker
# Clone Mininet repository dengan branch spesifik
git clone https://github.com/mininet/mininet
cd mininet
git checkout -b mininet-2.3.0 2.3.0
cd ..
# Install Mininet
./mininet/util/install.sh -nfv
# Clone Mininet-WiFi repository dan install
git clone https://github.com/intrig-unicamp/mininet-wifi
cd mininet-wifi
sudo util/install.sh -Wln
cd ..
# Clone Containernet repository dan install
git clone https://github.com/ramonfontes/containernet.git
cd containernet
sudo util/install.sh -W