Changes
Page history
Update Prerequisites
authored
May 02, 2023
by
Katharina Renk
Hide whitespace changes
Inline
Side-by-side
Labs/Prerequisites.md
View page @
f77224a1
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
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
sudo
apt update
sudo
apt upgrade
```
## Download Go using wget
##
#
Download Go using wget
```
bash
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
sudo tar
-C
/usr/local/
-xzf
go1.20.3.linux-amd64.tar.gz
cd
/usr/local/
```
## Check if path for Go is already set
##
#
Check if path for Go is already set
```
bash
echo
$PATH
```
## Set path for Go if not set
##
#
Set path for Go if not set
```
bash
sudo
nano
$HOME
/.profile
...
...
@@ -44,7 +44,7 @@ source $HOME/.profile
cat
$HOME
/.profile
```
## Optional: Set Go path to use with sudo
##
#
Optional: Set Go path to use with sudo
```
bash
sudo
visudo
...
...
@@ -56,7 +56,7 @@ And add by secure_path at the end:
:/usr/local/go/bin
```
## Check Go version
##
#
Check Go version
```
bash
go version
...
...
@@ -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.
# 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.
# Login to the code.fbi.h-da.de repository
#
# Login to the code.fbi.h-da.de repository
```
bash
sudo
docker login registry.code.fbi.h-da.de
```
# Install Containerlab
#
# Install Containerlab
```
bash
bash
-c
"
$(
curl
-sL
https://get.containerlab.dev
)
"
```
# Install Make
#
# Install Make
```
bash
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.
...
...
@@ -113,14 +113,14 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosd
```
bash
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
cd
gosdn
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:
...
...
@@ -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
```
### 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
...
...
...
...