Skip to content

About

A tool to help you manage Landscape.

Topics

Resources

Contributing

Stars

11 stars

Watchers

0 watching

Forks

Repository files navigation

Landscape Kit

Landscape Kit provides the lkit terminal console and CLI for installing and operating a Landscape instance. It covers first-time deployment, migrations, updates, version switching, repair, backups, network takeover, and service lifecycle management.

The workspace also includes lflare, a separate client for the Landscape Terrain L2 recovery channel. Use it when the normal IP path to a router is unavailable.

Quick Start

Linux releases are fully static musl binaries for x86_64, aarch64, riscv64, and loongarch64, named lkit-<arch> without a libc suffix. They run on glibc and musl hosts; Landscape services and optional software retain their own platform requirements. The installer needs curl or wget, plus sudo access:

curl --proto '=https' --tlsv1.2 -fsSL https://github.com/landscape-router/landscape-kit/releases/latest/download/install.sh | sudo sh

Or:

wget -qO- https://github.com/landscape-router/landscape-kit/releases/latest/download/install.sh | sudo sh

Start the interactive management console from a terminal:

sudo lkit

The bare lkit command opens the Ratatui console. Automation should use an explicit subcommand and --non-interactive, for example:

sudo lkit --non-interactive check
sudo lkit --non-interactive self install
sudo lkit --non-interactive install --password-file /root/lkit-password

Deploying the daemon is required before installing Landscape. The console provides a deployment action; CLI users run self install first. With --non-interactive, it generates a recovery secret if none is configured; inspect it with lkit flare setup. The password file must be root-owned with mode 0400 or 0600.

To use a specific Landscape repository after deploying the daemon:

sudo lkit install --repository https://l1s3.whileaway.dev/landscape/

The interface follows the system locale and supports English and simplified Chinese. Override it with --lang en, --lang zh, or LKIT_LANG.

The installer verifies release assets against SHA256SUMS and atomically installs lkit at /usr/local/bin/lkit. See the release and installation specification for supported targets, upgrade behavior, and security details.

Common Commands

Use the command-specific documentation for all options, confirmation rules, and failure recovery.

Area Commands
Inspect and install check, install, migrate
Versions and repair update, switch, repair, reinit
Backups and state backup, restore, reconcile
Network and host setup network, set-mirror, software
Removal and lkit service uninstall, self

Terrain Recovery Channel

Terrain is an encrypted Layer 2 recovery path between a host and a Landscape router. The lkit daemon hosts the router endpoint. Use lkit flare setup on the router to inspect its device fingerprint and discovery settings.

lflare lists devices on the selected interface. Select a router, confirm its fingerprint and sign in with its Landscape administrator or local Linux root password. Scripts supply the fingerprint for each connection.

lflare discover --dev eth0 --json
lflare cli --target "$FINGERPRINT" --auth root --dev eth0 --forward 2222:22

Linux clients use fully static musl builds on the four supported architectures. Windows clients require Npcap. Read the Terrain documentation for protocol details, configuration, and end-to-end scenarios.

Workspace

Crate Role
lkit-cli The lkit binary: console, commands, workflows, and daemon
landscape-flare The lflare Terrain recovery client
landscape-terrain-proto Terrain L2 protocol and transport library
crates/lkit-hostnet Host network adaptation and rollback library
crates/lkit-publish lkit-publish, the release repository publisher
crates/lkit-repository Repository protocol types shared by the CLI and publisher
crates/lkit-test-fixture Isolated fixture binaries used by tests; not a runtime dependency

Building and Testing

With just installed, run just build to compile lkit and lflare for the host using Cargo’s release profile. The binaries are in target/release/ by default. Run just to list all commands.

Run just push root@192.0.2.10 to install the existing release build at /usr/local/bin/lkit on a test host. The SSH user needs write access to that directory.

Build the Linux distribution binaries (defaults to the host architecture, musl static linking):

python3 -m pip install --user ziglang==0.16.0
cargo install --locked cargo-zigbuild --version 0.23.4
bash scripts/build-musl-static.sh

Artifacts are dist/lkit-<arch> and dist/lflare-linux-<arch>, with dist/SHA256SUMS. See the release guide for cross-compilation targets. For development only, cargo build --locked --workspace uses the host toolchain.

For a focused local check, run formatting, Clippy, and the unit tests for the module you changed:

cargo fmt
cargo clippy --all-targets -- -D warnings
cargo test -p lkit-cli --features test-support --bin lkit <module-filter>

The test suite is layered. Docker, systemd, QEMU, publishing, and Terrain scenarios have dedicated environments and CI workflows; see the testing guide before running them locally.

Documentation and Contributing

Issues are optional. For code changes, follow the repository contribution and testing workflow described in the contributing guide.

About

A tool to help you manage Landscape.

Topics

Resources

Contributing

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages