Installation¶
This guide covers installing ZViz on various platforms.
Quick Install¶
The fastest way to install ZViz:
This script:
- Detects your architecture (x86_64 or aarch64)
- Downloads the latest release
- Installs to
/usr/local/bin/zviz - Verifies the binary signature
Manual Installation¶
Download Binary¶
Download the appropriate binary for your system:
Verify Installation¶
Expected output:
Build from Source¶
Prerequisites¶
- Zig 0.15.0 or later
- Git
Build Steps¶
# Clone the repository
git clone https://github.com/zviz/zviz.git
cd zviz
# Build release binary
zig build -Doptimize=ReleaseSafe
# Install
sudo cp zig-out/bin/zviz /usr/local/bin/
Build Options¶
| Option | Description |
|---|---|
-Doptimize=Debug |
Debug build with symbols |
-Doptimize=ReleaseSafe |
Release with safety checks |
-Doptimize=ReleaseFast |
Maximum performance |
-Doptimize=ReleaseSmall |
Minimum binary size |
Cross-Compilation¶
Build for a different target:
Package Managers¶
Debian/Ubuntu¶
# Add repository
curl -fsSL https://zviz.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/zviz.gpg
echo "deb [signed-by=/usr/share/keyrings/zviz.gpg] https://apt.zviz.io stable main" | \
sudo tee /etc/apt/sources.list.d/zviz.list
# Install
sudo apt update
sudo apt install zviz
Fedora/RHEL¶
# Add repository
sudo dnf config-manager --add-repo https://rpm.zviz.io/zviz.repo
# Install
sudo dnf install zviz
Container Image¶
For containerized deployments:
System Configuration¶
Enable Required Kernel Features¶
Check that required features are enabled:
# Check seccomp
grep CONFIG_SECCOMP_FILTER /boot/config-$(uname -r)
# Check user namespaces
cat /proc/sys/kernel/unprivileged_userns_clone
# Should be: 1
# Check cgroups v2
mount | grep cgroup2
Configure cgroups v2¶
If using systemd, cgroups v2 should be enabled by default. Otherwise:
Set Up AppArmor (Optional)¶
For LSM-based enforcement:
# Install AppArmor
sudo apt install apparmor apparmor-utils
# Enable and start
sudo systemctl enable apparmor
sudo systemctl start apparmor
Validate Installation¶
Run the validation suite to check your system:
Expected output:
[INFO] Checking host security requirements...
[PASS] Kernel version: 6.1.0 (>= 5.15 required)
[PASS] Seccomp user notification: available
[PASS] User namespaces: enabled
[PASS] cgroups v2: mounted at /sys/fs/cgroup
[PASS] AppArmor: enabled
[PASS] Landlock: available (ABI v3)
All checks passed! ZViz is ready to use.