Installation and Configuration of Qryn

qryn Installation

Install nvm (Node Version Manager)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Download and install Node.js (you may need to restart the terminal)

nvm install 22

Verifies that the correct Node.js version is set in the environment

node -v # should print v22.12.0

Verifies that the correct npm version is set in the environment

npm -v # should print 10.9.0
sudo npm install -g qryn

Configuring qryn as a systemd Service

vim /etc/systemd/system/qryn.service

[Unit]
Description=qryn service
After=network.target

[Service]
EnvironmentFile=/etc/default/qryn_env
Type=simple
User=root
ExecStart=/root/.nvm/versions/node/v22.11.0/bin/node /root/.nvm/versions/node/v22.11.0/bin/qryn

[Install]
WantedBy=multi-user.target

Starting qryn as a System Service

systemctl daemon-reload
systemctl enable qryn
systemctl start qryn
Updated on