Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Building from source

Lucca Greschner edited this page May 5, 2023 · 9 revisions

Building

Build dependencies

The following packages are needed for building.

Note: Building is only supported on linux. Other systems are considered unsupported and the build process is not guaranteed to work

  • Go 1.19 or 1.20
  • make
  • libpam

The remaining dependencies are automatically installed by go. Thus, an active internet connection is needed to build the project reliably.

Installing dependencies

Fedora 37 and newer

sudo dnf install golang make pam-devel

Ubuntu 23.04 LTS and (most) derivatives

sudo apt update
sudo apt install golang make libpam0g-dev

Debian 11 (Bullseye)

1. apt update
sudo apt update
2. Activate backports repositories

Add the following line to your /etc/apt/sources.list-file:

deb http://deb.debian.org/debian bullseye-backports main
3. Install go 1.19 (or 1.20) and other dependencies
sudo apt update
sudo apt install -t bullseye-backports golang-1.19
sudo apt install make libpam0g-dev

Build project

To build the project run the following command in the project's root directory:

make build

The compiled binary can be found in the bin folder

Clone this wiki locally