Skip to content

Instantly share code, notes, and snippets.

@Paul-weqe
Last active September 13, 2024 08:50
Show Gist options
  • Save Paul-weqe/97fadd62ca785daf319f30839f96e635 to your computer and use it in GitHub Desktop.
Save Paul-weqe/97fadd62ca785daf319f30839f96e635 to your computer and use it in GitHub Desktop.
This is the basic setup for holo routing. With all the proper dependancies and libraries set up.
#!/bin/bash
# basic system setup
sudo apt -y update
sudo apt -y upgrade
sudo apt -y install curl
sudo apt -y install git
# dependencies needed to be able to install libyang
sudo apt install -y gcc
sudo apt install -y cmake
sudo apt install -y libpcre2-dev
# install rustup and cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
# ensure we have nightly toolchain installed
rustup update
rustup update nightly
# clone and install libyang2
git clone https://github.com/CESNET/libyang ~/libyang
cd ~/libyang
mkdir build
cd build
cmake ..
sudo make install
cd ~
rm -rf libyang/
# install protoc. Used for gRPC
sudo apt install -y protobuf-compiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment