Install Necessary Packages
- First update your linux package index
sudo apt-get update
Then install the following packages :
-
clangcompiler for compiling eBPF programs
sudo apt-get install -y clang
-
llvmprovides libraries and tools for manipulating intermediate code, used by clang.
sudo apt-get install -y llvm
-
libelf-devhelps in working with ELF (Executable and Linkable Format) files, which are used for eBPF bytecode.
sudo apt-get install -y libelf-dev
-
libbpf-devlibrary for loading and interacting with eBPF programs.
sudo apt-get install -y libbpf-dev
-
libpcap-devprovides functions for network packet capture, useful for testing and debugging.
sudo apt-get install -y libpcap-dev
-
gcc-multiliballows compiling programs for both 32-bits and 64-bits architechtures.
sudo apt-get install -y gcc-multilib
-
build-essentialpackage that includes essential tools for compiling software (like gcc,make).
sudo apt-get install -y build-essential
-
linux-tools-commonprovides common tools for kernel developers.
sudo apt-get install -y linux-tools-common
-
linux-headers-$(uname -r)kernel headers specific to your sudoning kernel version, needed for compiling kernel modules.
sudo apt-get install -y linux-headers-$(uname -r)
-
linux-tools-$(uname -r)tools specific to your sudoning kernel version, useful for performance monitoring.
sudo apt-get install -y linux-tools-$(uname -r)
-
linux-headers-genericgeneric kernel headers, useful for compiling kernel modules across different kernel versions.
sudo apt-get install -y linux-headers-generic
-
linux-tools-genericgeneric tools for various kernel versions, useful for performance and debugging.
sudo apt-get install -y linux-tools-generic
-
iproute2collection of utilities for network configuration and management.
sudo apt-get install -y iproute2
-
iputils-pingprovides the ping utility for testing network connectivity.
sudo apt-get install -y iputils-ping
-
dwarvescontains tools likepaholeto inspect the structure of compiled programs.
sudo apt-get install -y dwarves
-
tcpdumpa packet analyzer that allows you to capture and display network packets.
sudo apt-get install -y tcpdump
-
bind9-dnsutilsprovides tools for DNS querying and testing. (nslookup, dig like tools)
sudo apt-get install -y bind9-dnsutils
Install All
sudo apt-get update
sudo apt-get install -y clang llvm libelf-dev libbpf-dev libpcap-dev gcc-multilib build-essential linux-tools-common
sudo apt-get install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-headers-generic linux-tools-generic
sudo apt-get install -y iproute2 iputils-ping dwarves tcpdump bind9-dnsutils
Top comments (0)