-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathccp-system-setup.sh
More file actions
executable file
·26 lines (25 loc) · 1.11 KB
/
ccp-system-setup.sh
File metadata and controls
executable file
·26 lines (25 loc) · 1.11 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
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get -y install build-essential autoconf libtool libelf-dev
# perf
sudo apt-get -y install linux-tools-common linux-tools-4.15.0-38-generic linux-tools-generic
# Mahimahi dependencies
sudo apt-get -y install autotools-dev dh-autoreconf iptables protobuf-compiler libprotobuf-dev pkg-config libssl-dev dnsmasq-base ssl-cert libxcb-present-dev libcairo2-dev libpango1.0-dev iproute2 apache2-dev apache2-bin
# iperf
sudo apt-get install -y iperf
# Rust bindgen dependencies
sudo apt-get -y install llvm-3.9-dev libclang-3.9-dev clang-3.9
curl https://sh.rustup.rs -sSf > rust.install.sh
chmod u+x ./rust.install.sh
chown vagrant:vagrant ./rust.install.sh
su -c "./rust.install.sh -y -v --default-toolchain nightly" vagrant
# Python setuptools
sudo apt-get -y install python-pip python3-pip
sudo pip3 install setuptools
sudo pip3 install setuptools_rust
# mahimahi setup
echo "sudo sysctl -w net.ipv4.ip_forward=1" >> ~/.bashrc
# plotting dependencies
sudo apt-get install -y r-base
sudo apt install -y r-cran-ggplot2
sudo python -m pip install numpy
sudo python3 -m pip install numpy