You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide covers installing the [BPF Compiler Collection (BCC)](https://github.com/iovisor/bcc/blob/master/INSTALL.md) from source on **Ubuntu 24.04** inside a **Python virtual environment**, including troubleshooting common installation issues.
4
5
5
6
6
-
This guide provides steps to install [BCC](https://github.com/iovisor/bcc/blob/master/INSTALL.md) from source on **Ubuntu 24.04** using a **Python virtual environment** instead of system-wide installation.
7
-
8
7
---
9
8
10
9
## **🔧 Prerequisites**
11
10
12
-
You need Ubuntu version - 24.04
11
+
Make sure your system is Ubuntu 24.04 or similar.
13
12
14
-
Before starting, make sure you have the following installed:
Make sure your Python virtual environment is activated before installing.
174
189
175
-
JamJar needs su permissions to work hence it handles with kernal operations. even if you try to run it sudo it doesn't work. Hence we need root shell. To obtain root shell in ubuntu
190
+
---
176
191
177
-
### **👤 Change Password of Root User
178
-
=======
179
192
## **🍯 Running JamJar**
180
193
181
-
JamJar needs su permissions to work hence it handles with kernal operations. even if you try to run it sudo it doesn't work. Hence we need root shell. To obtain root shell in ubuntu
182
-
183
-
### **👤 Change Password of Root User**
184
-
>>>>>>> v2-ls
194
+
JamJar requires root privileges due to kernel operations.
185
195
196
+
1. Set root password:
186
197
```
187
-
ubuntu@VM:~$ sudo passwd root
188
-
[sudo] password for ubuntu:
189
-
New password:
190
-
Retype new password:
191
-
passwd: password updated successfully
198
+
sudo passwd root
199
+
192
200
```
193
201
194
-
<<<<<<< HEAD
195
-
### **🦾 Get Root Shell
196
-
=======
197
-
### **🦾 Get Root Shell**
198
-
>>>>>>> v2-ls
202
+
> ⚠️ If you came across any error like module not found try to install it using pip(except for bcc and ptrace).
199
203
204
+
2. Switch to root shell:
200
205
```
201
-
ubuntu@VM:~$ su
202
-
Password:
203
-
root@VM:/home/ubuntu#
206
+
su
204
207
```
205
208
206
-
Now navigate to JamJar and activate your venv and run main.py
209
+
3. Navigate to JamJar, activate venv and run:
207
210
```
208
211
cd ~/JamJar
209
212
source jamjar-venv/bin/activate
@@ -212,9 +215,12 @@ python3 main.py
212
215
213
216
> ⚠️ If you came across any error like module not found try to install it using pip(except for bcc and ptrace).
214
217
215
-
216
-
<<<<<<< HEAD
217
218
---
218
-
=======
219
-
---
220
-
>>>>>>> v2-ls
219
+
220
+
## **🧹 Cleanup (Optional)**
221
+
222
+
If you no longer need the source or build artifacts:
0 commit comments