Skip to content

Installer BPF Compiler Collection (BCC) on Ubuntu 22.04 LTS

Notifications You must be signed in to change notification settings

mar0ls/bcc_ubuntu22.04_installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

BCC installer on ubuntu 22.04 LTS

Script tested on Ubuntu 22.04 LTS GUI and Server version. Ubuntu was virtualized using UTM on an M1 Mac. This Bash script automates the process of installing BCC (BPF Compiler Collection) on Linux. The script installs the necessary packages and dependencies.

Usage

  1. Clone the repository:

    git clone https://github.com/your-username/bcc_ubuntu22.04_installer.git
  2. Navigate to the repository:

    cd bcc_ubuntu22.04_installer
  3. Make the script executable:

    chmod +x bcc_installer.sh
  4. Run the script:

    ./bcc_installer.sh

Follow the on-screen prompts and enter your root password when prompted.

  1. After the script completes, a test will be performed using the opensnoop tool to ensure the correctness of the installation.
  2. If you replace sign "&" to ";" in 58 line, you will see windows with running opensnoop. This is what a working opensnoop program looks like:
Zrzut ekranu 2024-03-3 o 16 09 29

Requirements

  • Ubuntu 20.04 or newer
  • Root access to install packages and dependencies

Notes

  • The script performs the following tasks:
    • Asks the user for the root password.
    • Checks for the availability of sudo and updates the system.
    • Installs required packages and dependencies for eBPF development.
    • Builds BCC from source.
    • Performs a test installation by running the opensnoop program.

Reference

Note: Ensure you have the correct root password and necessary permissions to install packages.

About

Installer BPF Compiler Collection (BCC) on Ubuntu 22.04 LTS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages