安装这个的原因,主要是想要尝试一下 ecapture
(点击跳转)。
在使用 ecapture
的时候,发现在监控系统内部的 HTTPS
请求时,没有安装 eBPF
内核。但因为在deepin编译内核的时候可能会因为一些误操作导致系统崩溃,遂选择使用KVM安装虚拟机后再进行尝试。
以下为一些命令行的操作
折叠代码块BASH
复制代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
sudo tee /etc/apt/sources.list <<-'EOF' deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse EOF
sudo apt-get update
sudo apt-get install git -y
mkdir ~/software/ cd ~/software
git clone https://github.com/mar0ls/bcc_ubuntu22.04_installer.git
cd bcc_ubuntu22.04_installer
chmod +x bcc_installer.sh
./bcc_installer.sh
cd ~/software wget https://github.com/gojue/ecapture/releases/download/v0.9.1/ecapture-v0.9.1-linux-amd64.tar.gz tar -zxvf ecapture-v0.9.1-linux-amd64.tar.gz cd ecapture-v0.9.1-linux-amd64
sudo ./ecapture tls
|
参考链接
其他没有实现效果的参考
相关问题记录
- 无法安装
llvm
和 clang
是因为没有更新源,更新之后就可以安装了
v1.5.2