Unattended Remote Access with RustDesk

Last updated:

Introduction

RustDesk is an open-source remote desktop application. For edge AI and AIoT devices deployed at unattended sites, it can help operators inspect the desktop of a reComputer RK series device (RK3576 / RK3588), adjust application settings, and check device status without visiting the site.

This guide installs RustDesk on the reComputer RK series and configures an X11 graphical login environment for three scenarios:

  • View and control the desktop while a user is logged in.
  • Reconnect with a permanent password after the screen is locked, without local confirmation.
  • Connect to the X11 graphical login screen after logout or restart, then log in remotely.

Choose your environment: select the branch in Step 3 by the installed system and desktop session, rather than the device model. The two reference environments are listed below.

Getting started

Hardware

  • One reComputer RK series device.
  • One Windows computer from which to initiate the connection.
  • Network connectivity between both computers and the services required by RustDesk.
  • An HDMI monitor and keyboard are recommended for initial setup and testing.

Software

Reference deviceInitial system and desktop environmentStep 3 branch
reComputer RK3576Armbian / Debian 12 Bookworm (ARM64), GNOME 43 / GDM3, with an existing Xorg sessionBranch A
reComputer RK3588Armbian 26.8.7 / Ubuntu 26.04 (resolute, ARM64), GNOME / GDM3, without an X11 desktop sessionBranch B

Use the RustDesk 1.2.3 Linux ARM64 .deb package on the RK device and the official Windows x86-64 installer on the Windows PC. A given model can run different systems; select the branch by its actual desktop environment.

RustDesk 1.2.3 matches the tested device. If you use another release, verify access to the login screen again.

Official resources:

Installation

Step 1: Download the RustDesk ARM64 package

Connect to the RK device over SSH and check the operating system and architecture:

bash
cat /etc/os-release
dpkg --print-architecture

The tested device reports arm64. Download the Linux AArch64/ARM64 .deb package, not a Windows or x86-64 installer. You can obtain rustdesk-1.2.3-aarch64.deb from the official 1.2.3 release, or run:

bash
cd ~
wget https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-aarch64.deb

Check the downloaded file:

bash
ls -lh rustdesk-1.2.3-aarch64.deb
dpkg-deb --info rustdesk-1.2.3-aarch64.deb

Step 2: Install RustDesk and start its system service

From the directory containing the package:

bash
sudo apt update
sudo apt install ./rustdesk-1.2.3-aarch64.deb

Enable and start the service:

bash
sudo systemctl enable --now rustdesk
systemctl status rustdesk --no-pager

Expected status:

text
Loaded: loaded (.../rustdesk.service; enabled; ...)
Active: active (running)

You can also check the installed version:

bash
dpkg -l | grep rustdesk

A running service does not, by itself, confirm that you can control the lock screen or login screen. Complete the X11 configuration and connection tests below.

Step 3: Configure an X11 graphical login environment

First, check the distribution and display manager:

bash
cat /etc/os-release
cat /etc/X11/default-display-manager

Choose the branch that matches the installed system:

  • GNOME / GDM3 with an existing Xorg session: follow Branch A. This guide uses Debian 12 with GNOME 43 / GDM3 as its example.
  • No usable X11 desktop session: follow Branch B to install Xorg, Xfce, and LightDM. The Ubuntu 26.04 GNOME reference environment falls into this category.

Branch A: Configure an existing GNOME Xorg session

The RustDesk Linux documentation says that accessing the login screen after logout or restart requires an X11 login screen. On the tested Debian 12 installation, the GDM3 configuration file is /etc/gdm3/daemon.conf.

First, confirm that an Xorg session is available:

bash
ls /usr/share/xsessions/

The tested image contains gnome-xorg.desktop. If the directory is missing or has no session files, use Branch B instead. Creating an empty directory does not install an X11 desktop session.

Back up and edit the GDM configuration:

bash
sudo cp /etc/gdm3/daemon.conf /etc/gdm3/daemon.conf.bak
sudo nano /etc/gdm3/daemon.conf

In the [daemon] section, change:

ini
#WaylandEnable=false

to:

ini
WaylandEnable=false

Confirm the setting:

bash
grep '^WaylandEnable' /etc/gdm3/daemon.conf

Expected output:

text
WaylandEnable=false

Restart the device:

bash
sudo reboot

Reconnect over SSH and list graphical sessions:

bash
loginctl list-sessions

Find the session ID for Debian-gdm, then replace <SESSION_ID> below with that ID:

bash
loginctl show-session <SESSION_ID> -p Name -p Type -p Class -p State

The tested setup returned:

text
Name=Debian-gdm
Type=x11
Class=greeter
State=active

This confirms that the GDM login screen is running on X11. Session IDs can change after a restart.

If the graphical desktop stops working but SSH still works, restore the backup with sudo cp /etc/gdm3/daemon.conf.bak /etc/gdm3/daemon.conf and restart. These steps apply only to the tested Debian 12 environment with an available Xorg session.

Branch B: Install an X11 desktop and login screen

If ls /usr/share/xsessions/ reports No such file or directory, the image has no session entries at that path. On Ubuntu 26.04, GNOME no longer provides an Xorg session; installing xorg alone or setting WaylandEnable=false does not restore GNOME on X11. Use an X11 desktop such as Xfce. See the Ubuntu release notes.

The login screen and desktop appearance will change. This branch switches the login screen from GDM to LightDM and uses Xfce Session for the desktop. Its panel, menus, settings, and theme differ from GNOME. Installing Xorg alone does not preserve the original GNOME interface while making it an X11 desktop. GNOME remains installed. If keeping the original GNOME interface is required, do not switch display managers with this branch; RustDesk access in the original Wayland environment needs separate validation.

Save graphical desktop work first. Commands can run in a terminal on the device; SSH is optional. Without SSH, connect a display and keyboard and confirm that Ctrl+Alt+F3 opens a text console where you can log in with your Linux username and password before switching. Xfce is installed alongside the existing desktop; GNOME is not removed and automatic login is not configured.

Install Xorg, Xfce, and the LightDM login screen:

If installation asks for the default display manager, keep the original gdm3 for now; select LightDM only after the checks below.

bash
sudo apt update && \
sudo apt install xorg xfce4 lightdm lightdm-gtk-greeter slick-greeter

Install both GTK Greeter and Slick Greeter from the start so an existing Armbian configuration that still selects Slick Greeter does not lack that component. Package installation must succeed; do not ignore APT errors and continue. Check the Xfce session entry first:

bash
ls /usr/share/xsessions/

Expect xfce.desktop. If it is missing, inspect dpkg -L xfce4-session before switching display managers or rebooting. Do not use the GDM configuration from Branch A.

Set the LightDM greeter and default desktop session:

bash
sudo mkdir -p /etc/lightdm/lightdm.conf.d
sudo tee /etc/lightdm/lightdm.conf.d/50-rustdesk-x11.conf > /dev/null <<'EOF'
[Seat:*]
greeter-session=lightdm-gtk-greeter
user-session=xfce
EOF

Before rebooting, check the effective greeter configuration:

bash
sudo lightdm --show-config
ls /usr/share/xgreeters/
test -r /usr/share/xsessions/xfce.desktop && \
test -r /usr/share/xgreeters/lightdm-gtk-greeter.desktop && \
test -r /usr/share/xgreeters/slick-greeter.desktop && \
command -v Xorg >/dev/null && \
printf '%s\n' 'Xfce, Xorg and both greeters are installed.'

Continue only if the check prints Xfce, Xorg and both greeters are installed. and the selected greeter has its matching file. If there is no success message, stop without switching or rebooting.

Check the effective greeter-session value and its configuration source; do not assume that writing 50-rustdesk-x11.conf made it effective. The selected greeter must have a matching .desktop file under /usr/share/xgreeters/, such as lightdm-gtk-greeter.desktop or slick-greeter.desktop. Armbian may already select Slick Greeter. If the selected component is missing, resolve it before rebooting; the specific Slick Greeter repair is described below. See the LightDM configuration documentation.

Switch the default display manager only after all checks pass:

bash
sudo dpkg-reconfigure lightdm
cat /etc/X11/default-display-manager

Select lightdm in the dialog. The final command should report /usr/sbin/lightdm. If any check fails, keep GDM3 and do not reboot.

Restart the device:

bash
sudo reboot

Without SSH: after rebooting, confirm that the monitor shows a login screen, select Xfce Session, sign in, and perform Check 2 below in the desktop terminal. The pre-login greeter session query below is optional for SSH users; do not switch to a text console and mistake its active session for the graphical login screen.

Check 1: Login screen (before signing in to the desktop)

Reconnect over SSH and leave the RK device at the LightDM login screen. If already signed in, select Log Out from the desktop menu, remain logged out, and keep SSH connected. Check the service:

bash
systemctl status lightdm --no-pager
loginctl list-sessions

If LightDM fails to start:

Inspect the actual error before changing more configuration:

bash
sudo tail -n 100 /var/log/lightdm/lightdm.log

During RK3588 troubleshooting, the log reported Failed to find session configuration slick-greeter: the effective configuration selected Slick Greeter, but LightDM could not find its session configuration. Installing only lightdm-gtk-greeter did not satisfy that selection. Only for this specific error, install or restore the selected component:

bash
sudo apt update && sudo apt install --reinstall slick-greeter

After the package installation succeeds, clear the failed-start limit and start LightDM without rebooting:

bash
sudo systemctl reset-failed lightdm
sudo systemctl start lightdm
systemctl status lightdm --no-pager -l

Confirm active (running) and a visible login screen before continuing. This repair restored LightDM and Xorg in the RK3588 test. If another error remains, inspect the new log instead of repeatedly rebooting. Then select Xfce Session at login; the resulting desktop will look different from GNOME.

From SSH, query the active session on the local seat0 automatically. There is no need to enter an ID such as c1, 4, or 6:

bash
GUI_SESSION=$(loginctl show-seat seat0 -p ActiveSession --value)
if [ -n "$GUI_SESSION" ]; then
    loginctl show-session "$GUI_SESSION" -p Name -p Type -p Class -p State
else
    echo "No active session on seat0."
fi

While the device is at the login screen, expect Type=x11, Class=greeter, and State=active. If the result is Class=user, the desktop is already signed in; log out and query again. Session IDs change across login, logout, or reboot, so an expired ID does not mean installation failed.

Check 2: Desktop (after signing in)

Select Xfce Session in the LightDM session menu and sign in. Open a terminal within that desktop, or use SSH, and run the same query:

bash
GUI_SESSION=$(loginctl show-seat seat0 -p ActiveSession --value)
if [ -n "$GUI_SESSION" ]; then
    loginctl show-session "$GUI_SESSION" -p Name -p Type -p Class -p State
else
    echo "No active session on seat0."
fi

Expect Name to be the signed-in username, with Type=x11, Class=user, and State=active. The desktop is now using X11, and you can continue with Step 4 without reinstalling or switching desktops again.

Do not use echo "$XDG_SESSION_TYPE" in SSH to determine the desktop type: it may return tty, describing the terminal session rather than the desktop on seat0. RustDesk desktop, lock-screen, and login-screen access still require the connection tests later in this guide.

Local or SSH recovery: if LightDM does not show a usable login screen, press Ctrl+Alt+F3 on the device with a connected display and keyboard and log in to the text console with your Linux username and password; SSH is another option. Then select the original GDM3 display manager and reboot:

bash
sudo dpkg-reconfigure gdm3
sudo reboot

Select gdm3 in the dialog. On Ubuntu 26.04 this returns to the original GNOME / Wayland environment, rather than an X11 GNOME session.

After checking the X11 login screen and desktop, continue with Step 4.

Step 4: Get the device ID and set a permanent password

Over SSH, obtain the RK device's RustDesk ID:

bash
sudo rustdesk --get-id

Set a separate, strong permanent password for unattended access. If the graphical desktop is available, use Settings → Security → Password → Use permanent password in RustDesk. Alternatively, set it over SSH:

bash
read -rsp 'New RustDesk password: ' RD_PASSWORD; echo
sudo rustdesk --password "$RD_PASSWORD"
unset RD_PASSWORD

The command should print Done!. This avoids putting the plaintext password in shell history, but a privileged local process may briefly see it in command-line arguments. Follow your deployment's credential-management policy.

Do not publish a real device ID, permanent password, or customer account in screenshots. Mask the device ID, use a strong password, and do not reuse the Linux login password.

Step 5: Install the Windows client and connect

Download RustDesk for Windows from the official site or GitHub Releases. On a typical Intel/AMD 64-bit computer, select the x86-64 (64-bit) → Windows → EXE installer; use Windows ARM64 only for a Windows-on-ARM device.

In the Windows client:

  1. Enter the RK device's RustDesk ID in the remote-device field.
  2. Select Connect.
  3. Enter the permanent password from Step 4.
  4. Confirm that you can view and control the device's desktop without local approval.

Verify unattended remote access

Complete the following three checks for the environment selected in Step 3: Branch A uses a GNOME desktop / GDM login screen; Branch B uses an Xfce desktop / LightDM login screen.

1. Control the logged-in desktop

Leave the RK device logged in to the selected X11 desktop. Connect from Windows with the device ID and permanent password, and check mouse and keyboard control.

2. Reconnect after locking the screen

Lock the device's desktop and disconnect RustDesk on Windows. Reconnect with the same ID and permanent password. Confirm that the lock screen appears without local approval and that you can unlock it with the Linux user password.

3. Reach the login screen after logout or restart

Select Log Out from the desktop's system menu, or run:

bash
sudo reboot

When the graphical login screen returns, do not log in or approve anything locally. Connect from the Windows RustDesk client using the device ID and permanent password. Confirm that you can see the selected display manager's login screen and enter the Linux user password remotely.

Log Out is not Power Off. A powered-off device cannot run RustDesk. This test assumes that the operating system, network, and RustDesk service are running.

On reComputer RK3576 with Debian 12 / GNOME 43 / GDM3 using X11, the GDM login screen could be reached without local approval and remote login completed.

Troubleshooting

1. Gtk-WARNING: cannot open display when running rustdesk over SSH

An SSH text session has no graphical display. This does not necessarily mean the background service failed. Check systemctl status rustdesk --no-pager, then use the command-line options to obtain the ID and set the password.

2. The login screen cannot be reached

For the Debian 12 environment in Branch A, confirm after restarting that the Debian-gdm session has Type=x11. Seeing an Xwayland process alone does not prove that GDM uses X11. Check that WaylandEnable=false is active in /etc/gdm3/daemon.conf.

For Branch B, check the LightDM service and confirm that the active seat0 session at the login screen has Type=x11 and Class=greeter, using the commands in Step 3. This branch does not use the GDM configuration file.

3. RustDesk reports that the device is offline

Check that the RK device is powered on and connected to the network. Over SSH, inspect rustdesk.service and verify the device ID. Allow time for the network and service to recover after a restart.

4. Unsupported file ./rustdesk-...deb given on commandline during installation

Check that the package exists in the current directory and is complete with ls -lh and dpkg-deb --info, then retry sudo apt install ./rustdesk-...deb.

Summary

When setting up RustDesk on the reComputer RK series, choose the GNOME / GDM or Xfce / LightDM X11 path according to the installed system, then check desktop control, reconnection after locking, and login-screen access after logout or restart. The complete unattended-access results documented here come from RK3576 with Debian 12 / GDM X11 and provide a reference for deployment and acceptance checks.

References

Technical support and product discussion

Thank you for choosing Seeed Studio. For related guides and support, visit the Seeed Studio Wiki.