I assume that you are running a clean installation of the Debian 13. The build might work on other systems, but I have not tested that. Here are the steps that you need to undertake to achieve the debug build optimized for the build speed, not for performance and reliablity:
- Open the bash shell either by using the GUI or by clicking Ctrl + Alt + T.
- Install git to able to conveniently downliad the source code of this program (I assume that you are logged in as a non-root user who can do sudo):
sudo apt update
sudo apt install git -y- Move to the Documents folder (it is optional, everything is fine as long as your shell session is located in one of the subdirectiories of the HOME folder)
cd ~/Documents]- Download this project's (i.e. ts-lora chirpstack) source code from Github:
git clone https://github.com/ts-lora/ts-lora-chirpstack.git- Move to the project's directory:
cd ts-lora-chirpstack- Install curl to be able to download Nix:
sudo apt install curl -y- Install xz-util to be able to unpack Nix:
sudo apt install xz-utils -y- Install Nix (it is a package manager):
sh <(curl -L https://nixos.org/nix/install) --no-daemon
. /home/bob/.nix-profile/etc/profile.d/nix.sh- Restart the shell session:
exec $SHELL- Install docker engine through its convenience script:
curl -fsSL https://get.docker.com -o install-docker.sh
sudo sh install-docker.sh- Allow to run the docker engine commands as a non-root user:
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker- Start the development shell:
nix-shell- Build the Chirpstack UI:
$ make build-ui- Run the required services for the Chirpstack
$ docker compose up -d- Run the Chirpstack tests (optional):
$ make test- Install the Chirpstack's dependencies:
$ make dev-dependencies- Do the debug build:
$ cd chirpstack
$ make debug-amd64- Run chirpstack
$ cd chirpstack $ cargo run -- --config-dir configurationChirpStack Network Server is distributed under the MIT license. See also LICENSE.