Files
quic_ecs_dt/scripts/setup-cm5.sh

27 lines
912 B
Bash
Executable File

#!/usr/bin/env bash
# scripts/setup-cm5.sh — CM5 Provisioning
# Installs necessary dependencies on the CM5.
set -euo pipefail
echo "=================================================="
echo " Installing system dependencies on CM5 "
echo "=================================================="
sudo apt-get update
sudo apt-get install -y curl lsof iproute2 gawk build-essential pkg-config libssl-dev cmake rsync
if ! command -v cargo &> /dev/null; then
echo "Installing Rust toolchain..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
else
echo "Rust is already installed."
fi
echo ""
echo "=================================================="
echo "CM5 is configured and code is synced!"
echo "=================================================="
echo "To start the server benchmarking script, SSH into the CM5:"
echo " RUN_SIMULATOR=0 ./scripts/bench-loss.sh"