Systemd
First, create the service unit file
atuin-server.service at
/etc/systemd/system/atuin-server.service:
[Unit]Description=Start the Atuin server syncing serviceAfter=network-online.targetWants=network-online.target
[Service]ExecStart=atuin-server startRestart=on-failureUser=atuinGroup=atuin
Environment=ATUIN_CONFIG_DIR=/etc/atuinReadWritePaths=/etc/atuin
# Hardening optionsCapabilityBoundingSet=AmbientCapabilities=NoNewPrivileges=trueProtectHome=trueProtectSystem=strictProtectKernelTunables=trueProtectKernelModules=trueProtectControlGroups=truePrivateTmp=truePrivateDevices=trueLockPersonality=true
[Install]WantedBy=multi-user.targetThis is the official Atuin service unit file with hardening options to increase security.
Create atuin-server.conf at
/etc/sysusers.d/atuin-server.conf:
u atuin - "Atuin synchronized shell history"This file will make sure a system user is created in the proper manner.
Afterward, run
systemctl restart systemd-sysusersNow, you can attempt to run the Atuin server:
systemctl enable --now atuin-serversystemctl status atuin-serverIf it started fine, it should have created the default config inside
/etc/atuin/.