Last active
September 13, 2024 08:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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