Update Prerequisites authored by Katharina Renk's avatar Katharina Renk
On this page, you will learn how to install all necessary software to run the labs. On this page, you will learn how to install all necessary software to run the labs.
# Delete old version of Go if already installed ## Delete old version of Go if already installed
```bash ```bash
sudo rm -rf /usr/local/go sudo rm -rf /usr/local/go
``` ```
# Download Go ## Download Go
## Check for latest system updates using the commands below ### Check for latest system updates using the commands below
```bash ```bash
sudo apt update sudo apt update
sudo apt upgrade sudo apt upgrade
``` ```
## Download Go using wget ### Download Go using wget
```bash ```bash
wget https://go.dev/dl/go1.20.3.linux-amd64.tar.gz wget https://go.dev/dl/go1.20.3.linux-amd64.tar.gz
``` ```
## Extract the libraries using the tar command and placing it in the correct location ### Extract the libraries using the tar command and placing it in the correct location
```bash ```bash
sudo tar -C /usr/local/ -xzf go1.20.3.linux-amd64.tar.gz sudo tar -C /usr/local/ -xzf go1.20.3.linux-amd64.tar.gz
cd /usr/local/ cd /usr/local/
``` ```
## Check if path for Go is already set ### Check if path for Go is already set
```bash ```bash
echo $PATH echo $PATH
``` ```
## Set path for Go if not set ### Set path for Go if not set
```bash ```bash
sudo nano $HOME/.profile sudo nano $HOME/.profile
...@@ -44,7 +44,7 @@ source $HOME/.profile ...@@ -44,7 +44,7 @@ source $HOME/.profile
cat $HOME/.profile cat $HOME/.profile
``` ```
## Optional: Set Go path to use with sudo ### Optional: Set Go path to use with sudo
```bash ```bash
sudo visudo sudo visudo
...@@ -56,7 +56,7 @@ And add by secure_path at the end: ...@@ -56,7 +56,7 @@ And add by secure_path at the end:
:/usr/local/go/bin :/usr/local/go/bin
``` ```
## Check Go version ### Check Go version
```bash ```bash
go version go version
...@@ -72,27 +72,27 @@ to reload your profile in the current shell. ...@@ -72,27 +72,27 @@ to reload your profile in the current shell.
If an error occurs it is recommended to log in again, so the .profile can be applied correctly. If an error occurs it is recommended to log in again, so the .profile can be applied correctly.
# Install Docker ## Install Docker
Use the [**Installation Guide**](https://docs.docker.com/engine/install/) for Windows, MacOS and Linux to install Docker on your machine. Use the [**Installation Guide**](https://docs.docker.com/engine/install/) for Windows, MacOS and Linux to install Docker on your machine.
# Login to the code.fbi.h-da.de repository ## Login to the code.fbi.h-da.de repository
```bash ```bash
sudo docker login registry.code.fbi.h-da.de sudo docker login registry.code.fbi.h-da.de
``` ```
# Install Containerlab ## Install Containerlab
```bash ```bash
bash -c "$(curl -sL https://get.containerlab.dev)" bash -c "$(curl -sL https://get.containerlab.dev)"
``` ```
# Install Make ## Install Make
```bash ```bash
sudo apt install make sudo apt install make
``` ```
# Download the repositories ## Download the repositories
## Get the goSDN repository from the Gitlab site ### Get the goSDN repository from the Gitlab site
Go into the directory where you want to have this repository. Go into the directory where you want to have this repository.
...@@ -113,14 +113,14 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosd ...@@ -113,14 +113,14 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosd
```bash ```bash
https://code.fbi.h-da.de/danet/gosdn https://code.fbi.h-da.de/danet/gosdn
``` ```
### Run command init the submodules in the repository gosdn #### Run command init the submodules in the repository gosdn
```bash ```bash
cd gosdn cd gosdn
git submodule update --init --recursive git submodule update --init --recursive
``` ```
## Get the gNMI target repository from the Gitlab site ### Get the gNMI target repository from the Gitlab site
Get it with SSH: Get it with SSH:
...@@ -142,7 +142,7 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gnmi ...@@ -142,7 +142,7 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gnmi
https://code.fbi.h-da.de/danet/gnmi-target https://code.fbi.h-da.de/danet/gnmi-target
``` ```
### Run command to build the docker image for the gNMI target #### Run command to build the docker image for the gNMI target
Firstly, go to your local gnmi-target repository Firstly, go to your local gnmi-target repository
... ...
......