Linux Installation
This guide provides three installation paths for ShadowNet on Linux:
- Quick install (fast path)
- Verified install (recommended for hostile environments)
- Developer build (from source)
Version in examples:
v0.1.0
Prerequisites
- Linux amd64 host
curl,tar,sha256sumcosign(for verified flow)sudoaccess for system install
1) Quick Install
This path is fast and suitable when you already trust your download channel.
bash
BASE_URL="https://github.com/kaveh8866/shadownet-agent/releases/latest/download"
curl -fsSL "${BASE_URL}/shadownet-linux-amd64.tar.gz" | tar -xz
sudo install -m 0755 shadownet-inside /usr/local/bin/shadownet-inside
sudo install -m 0755 shadownet-outside /usr/local/bin/shadownet-outside
shadownet-inside --helpExpected output (last command): usage/help text from shadownet-inside.
2) Verified Install (Recommended)
This path verifies both file integrity and signed checksum metadata.
bash
VERSION="v0.1.0"
BASE_URL="https://github.com/kaveh8866/shadownet-agent/releases/download/${VERSION}"
wget "${BASE_URL}/shadownet-linux-amd64.tar.gz"
wget "${BASE_URL}/checksums.txt"
wget "${BASE_URL}/checksums.sig"
wget "${BASE_URL}/checksums.pub"
grep ' shadownet-linux-amd64.tar.gz$' checksums.txt > shadownet-linux-amd64.tar.gz.sha256
sha256sum -c shadownet-linux-amd64.tar.gz.sha256
cosign verify-blob --key checksums.pub --signature checksums.sig checksums.txt
tar -xzf shadownet-linux-amd64.tar.gz
sudo install -m 0755 shadownet-inside /usr/local/bin/shadownet-inside
sudo install -m 0755 shadownet-outside /usr/local/bin/shadownet-outsideExpected verification output:
shadownet-linux-amd64.tar.gz: OKVerified OK(or equivalent success message from cosign)
3) Debian Package Install
bash
VERSION="0.1.0"
BASE_URL="https://github.com/kaveh8866/shadownet-agent/releases/download/v${VERSION}"
wget "${BASE_URL}/shadownet_${VERSION}_amd64.deb"
sudo dpkg -i "shadownet_${VERSION}_amd64.deb"Uninstall:
bash
sudo dpkg -r shadownet4) Developer Build
bash
git clone https://github.com/kaveh8866/shadownet-agent.git
cd shadownet-agent
go build -trimpath -tags inside -ldflags="-s -w -X main.version=v0.1.0" -o shadownet-inside ./cmd/inside
go build -trimpath -tags outside -ldflags="-s -w -X main.version=v0.1.0" -o shadownet-outside ./cmd/outsideTroubleshooting
sha256sumfails:
- re-download the artifact and checksums.txt - confirm you matched the exact filename in checksums.txt
cosign verify-blobfails:
- confirm checksums.pub is the expected release key - verify key fingerprint via a second trusted channel
dpkg -idependency or permission errors:
- run sudo apt-get -f install and retry - check systemd availability for service integration