aquatic/scripts/bench/setup-udp-bookworm.sh
2023-12-30 16:47:11 +01:00

36 lines
No EOL
975 B
Bash
Executable file

#!/bin/bash
# Prepare for running aquatic_bench for UDP on Debian 12
# Install dependencies
sudo apt-get update && apt-get upgrade -y
sudo apt-get install -y curl vim htop screen cmake build-essential pkg-config git screen cvs zlib1g zlib1g-dev golang
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
# Build aquatic
. ./scripts/env-native-cpu-without-avx-512
cargo build --profile "release-debug" -p aquatic_udp
cargo build --profile "release-debug" -p aquatic_udp_load_test
cargo build --profile "release-debug" -p aquatic_bencher --features udp
cd $HOME
mkdir -p projects
cd projects
# Install opentracker
cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 co libowfat
cd libowfat
make
cd ..
git clone git://erdgeist.org/opentracker
cd opentracker
make
sudo cp ./opentracker /usr/local/bin/
cd ..
# Install chihaya
git clone https://github.com/chihaya/chihaya.git
cd chihaya
go build ./cmd/chihaya
sudo cp ./chihaya /usr/local/bin/
cd ..