[GH-ISSUE #269] Missing build instructions for binary #102

Closed
opened 2026-02-27 08:15:15 +03:00 by kerem · 0 comments
Owner

Originally created by @Tropaion on GitHub (Jul 25, 2022).
Original GitHub issue: https://github.com/lldap/lldap/issues/269

Here is how I build it myself (Debian11 LXC):
Install dependencies

apt install curl npm 

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Create environment variable

echo 'export PATH=~/.cargo/bin:$PATH' >> ~/.bashrc
export PATH=~/.cargo/bin:$PATH

Install wasm-pack

cargo install wasm-pack

Install rollup

npm install rollup

Get source files

wget https://github.com/nitnelave/lldap/archive/refs/tags/v0.4.0.tar.gz
tar -xvf v0.4.0.tar.gz
cd lldap-0.4.0

Build frontend

./app/build.sh

Build backend

cargo build --release

Combiled frontend is in /app
Combiled binary is /target/release/lldap

Create systemd file:

nano /etc/systemd/system/nitnelave.service

Paste to file:

[Unit]
Description=Nitnelave LLDAP
Documentation=https://github.com/nitnelave/lldap

# Only sqlite
After=network.target

[Service]
# The user/group nitnelave is run under. the working directory (see below) should allow write and read access to this user/group
User=root
Group=root
# The location of the compiled binary
ExecStart=/opt/nitnelave/lldap \
  run
# Only allow writes to the following directory and set it to the working directory (user and password data are stored here)
WorkingDirectory=/opt/nitnelave/
ReadWriteDirectories=/opt/nitnelave/

[Install]
WantedBy=multi-user.target

Reload and start:

systemctl daemon-reload
systemct start nitnelave
Originally created by @Tropaion on GitHub (Jul 25, 2022). Original GitHub issue: https://github.com/lldap/lldap/issues/269 Here is how I build it myself (Debian11 LXC): Install dependencies ``` apt install curl npm ``` Install Rust ``` curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` Create environment variable ``` echo 'export PATH=~/.cargo/bin:$PATH' >> ~/.bashrc export PATH=~/.cargo/bin:$PATH ``` Install wasm-pack ``` cargo install wasm-pack ``` Install rollup ``` npm install rollup ``` Get source files ``` wget https://github.com/nitnelave/lldap/archive/refs/tags/v0.4.0.tar.gz tar -xvf v0.4.0.tar.gz cd lldap-0.4.0 ``` Build frontend ``` ./app/build.sh ``` Build backend ``` cargo build --release ``` Combiled frontend is in /app Combiled binary is /target/release/lldap Create systemd file: ``` nano /etc/systemd/system/nitnelave.service ``` Paste to file: ``` [Unit] Description=Nitnelave LLDAP Documentation=https://github.com/nitnelave/lldap # Only sqlite After=network.target [Service] # The user/group nitnelave is run under. the working directory (see below) should allow write and read access to this user/group User=root Group=root # The location of the compiled binary ExecStart=/opt/nitnelave/lldap \ run # Only allow writes to the following directory and set it to the working directory (user and password data are stored here) WorkingDirectory=/opt/nitnelave/ ReadWriteDirectories=/opt/nitnelave/ [Install] WantedBy=multi-user.target ``` Reload and start: ``` systemctl daemon-reload systemct start nitnelave ```
kerem closed this issue 2026-02-27 08:15:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#102
No description provided.