Debian/Ubuntu and derivatives


Installation

Dependencies:

apt-get install wget apt-transport-https ca-certificates

First obtain the repository key:

wget -O - https://repo.jotta.us/public.gpg | sudo apt-key add -

Save the repo information to apt sources :

echo "deb https://repo.jotta.us/debian debian main" | sudo tee /etc/apt/sources.list.d/jotta-cli.list

Run sudo apt-get update  

Install the package jotta-cli :

sudo apt-get install jotta-cli

The package supplies init script for running jotta-cli in systemd user slice

For each user in the system that should run jotta-cli, enable it with:

run_jottad

The daemon should now be started with user login.

To get started:

jotta-cli help

Starting at boot

As jottad is now running in a user slice it will not start at boottime unless you also create a usersession at boot time.

You can use loginctl enable-linger USERNAME to start a usersession for USERNAME at boottime and jottad will start in that session.

more info here: https://wiki.archlinux.org/title/systemd/User#Automatic_start-up_of_systemd_user_instances

Did this answer your question?