-
Notifications
You must be signed in to change notification settings - Fork 63
Linux
Gaetano Bonofiglio edited this page Mar 15, 2019
·
41 revisions
-
Install Docker.
- We suggest installing Docker from here with this simple instructions:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
- The script require root or sudo privileges to run. Therefore, you should carefully examine and audit the scripts before running them.
- We suggest installing Docker from here with this simple instructions:
-
Install Python (2.7 or 3.x).
- It should be pre-installed on most Linux distributions; if it isn't, you can install it tipically with
sudo apt install python
. - If you're using Python 2.7, you may also need to install the
ipaddress
lib (already installed in Python 3). The installer will try to do it by usingpip
by default if the library is not already installed. If you don't want to usepip
(or if it doesn't work on your environment) feel free to do it using any other Python package manager. You can run the installer using the--nopip
option (for more on this check step 7). To manually install using pip, activate your environment (or stay in the default one) and runpip install ipaddress
. If the library is already found, the installer will automatically skip this part.
- It should be pre-installed on most Linux distributions; if it isn't, you can install it tipically with
-
If you want to install the wrapper you'll need gcc (for more informations about the wrapper click here)
- if you haven't installed simply run
sudo apt install build-essential
- if you haven't installed simply run
-
(suggested) Install xterm terminal emulator (usually
sudo apt install xterm
), that is used by default.- You can also specify a different terminal emulator by using the
--xterm=...
command parameter while starting a network node or a lab. It is also possible to avoid opening new terminals at all by using--noterminals
.
- You can also specify a different terminal emulator by using the
-
Download all the files to a directory inside
/opt
(from a release orgit clone https://github.com/KatharaFramework/Kathara.git
). -
Add the environment variable
NETKIT_HOME
to your system pointing to the bin folder:-
export NETKIT_HOME=/opt/kathara/bin
(you can also do this permanently by adding it to~/.bashrc
or the appropriate initialization file for your shell by executingecho "export NETKIT_HOME=/opt/kathara/bin" >> ~/.bashrc
).
-
-
Run the installer with
$NETKIT_HOME/install
- You can also specify the following options:
-
--p4
to pre-download the P4 image -
--admin
to remove the wrapper (will require sudo before each Kathará command). -
--nopip
will skip the installation of theipaddress
library so that you can do it manually.
-
- You can also specify the following options:
-
You can optionally add NETKIT_HOME to your PATH, but the
NETKIT_HOME
variable is still required.-
export PATH=$PATH:$NETKIT_HOME
(you can also do this permanently by adding it to~/.bashrc
or the appropriate initialization file for your shell by executingecho "export PATH=\$PATH:\$NETKIT_HOME" >> ~/.bashrc
).
-
Website: kathara.org
Contact us: [email protected]