Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mar0ls/bcc_ubuntu22.04_installer
Installer BPF Compiler Collection (BCC) on Ubuntu 22.04 LTS
https://github.com/mar0ls/bcc_ubuntu22.04_installer
autoinstaller bash-script ebpf gcc kernel linux python3
Last synced: 10 days ago
JSON representation
Installer BPF Compiler Collection (BCC) on Ubuntu 22.04 LTS
- Host: GitHub
- URL: https://github.com/mar0ls/bcc_ubuntu22.04_installer
- Owner: mar0ls
- Created: 2024-03-03T19:43:10.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-03T20:12:17.000Z (11 months ago)
- Last Synced: 2024-11-20T01:17:17.328Z (2 months ago)
- Topics: autoinstaller, bash-script, ebpf, gcc, kernel, linux, python3
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/your-username/bcc_ubuntu22.04_installer.git
```2. Navigate to the repository:
```bash
cd bcc_ubuntu22.04_installer
```3. Make the script executable:
```bash
chmod +x bcc_installer.sh
```4. Run the script:
```bash
./bcc_installer.sh
```
Follow the on-screen prompts and enter your root password when prompted.6. After the script completes, a test will be performed using the `opensnoop` tool to ensure the correctness of the installation.
7. If you replace sign "&" to ";" in 58 line, you will see windows with running opensnoop. This is what a working opensnoop program looks like:
## 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
- The github site BCC project: [click here](https://github.com/iovisor/bcc)
- The eBPF ducumentation: [click here](https://ebpf.io/)
**Note:** Ensure you have the correct root password and necessary permissions to install packages.