This is an old revision of the document!
RustDesk Server on Devuan
We use Devuan as an alternative to Debian as Devuan allows us to choose the init system instead of forcing the use of SystemD. With its many faults, we still choose SysVInit for our init system, and Devuan allows that.
The Rust Server install script unfortunately assumes SystemD, and will fail halfway through as it is attempting to set up the SystemD service. The same is true of the .deb package which is available.
This article describes how to set up the Rust Server on Devuan, and may be helpful for other systems also.
Set up user
Rust Server does not require any special privileges, so creating a separate user account instead of running as root greatly enhances security. The following few lines assume we will install rust in /opt/rust, and the log files will be stored in /var/log/rust/*
- setupRust
#! /usr/bin/env sh useradd --shell /usr/sbin/nologin --system --user-group --home-dir /opt/rust rust mkdir /opt/rust mkdir /var/log/rust chown rust:rust /opt/rust chown rust:rust /var/log/rust