HeadlinesBriefing HeadlinesBriefing.com

ProcInSh: Web-based Linux Process Inspector

Hacker News •
×

ProcInSh is a web-based process inspector for Linux, drawing inspiration from Ghost in the Shell. It allows users to wander through process space via a browser interface. The project is available on GitHub and requires a Linux x86-64 environment with dependencies such as Rust, a C compiler, clang with the BPF backend, bpftool, pkg-config, libelf, and zlib development files, along with BTF information at /sys/kernel/btf/vmlinux.

Installation can be done via crates.io or by building from source. For crates.io, users run 'cargo install procinsh --locked' and then launch it with 'sudo "$HOME/.cargo/bin/procinsh" --listen 127.0.0.1:9090', opening the web interface at http://127.0.0.1:9090. Remote access is possible with --allow-non-loopback, but this exposes process memory and environment variables without authentication.

Self-building requires Node.js 22 or newer with npm and Rust via rustup. The repository provides build commands: 'npm ci', 'npm run build:web', and 'cargo build --release --locked'. For WSL2 (Ubuntu), users may need to set BPFTOOL to bypass a bpftool wrapper issue. Support on WSL2 is limited, and container environments like Docker are untested. The process space is vast, inviting exploration.

Source: Hacker News · Summarized by HeadlinesBriefing