Before you start

Someone at an Ubuntu workstation needs help and you need to view and control that desktop. RustDesk is the client for that connection: installing the .deb enables screen sharing and input but does not create a self-hosted ID or relay server. Start with an attended connection. Unattended access additionally needs defined server identity, permissions, audit and recovery arrangements.

At the time of writing, 14 October 2026, the official latest stable release is 1.5.0. For a later installation, check the Latest release link below; nightly builds are development builds.

Latest stable download

Public infrastructure, self-hosting or managed remote access

Compare the access model and audit needs before choosing a product
Model Infrastructure responsibility Administrative controls Operational limit
RustDesk public services Vendor-provided rendezvous/relay; install clients only Device approval/password and client permissions External coordination dependency; assess policy/availability requirements
RustDesk self-hosted OSS You operate hbbs/hbbr, ports, keys, updates and backups Your server key/endpoints; client-side authorization; OSS is not Pro management Relay bandwidth and server recovery; no automatic centralized user/MFA feature promise
RustDesk Server Pro Self-hosted commercial service; verify subscription/feature set Management features vary by plan; evaluate identity, device policy and audit Adds licensing and management dependencies; Linux display limits still apply
GNOME Remote Desktop / RDP over VPN Desktop service and reachable VPN/access gateway under your control OS account/session policy; review Ubuntu mode and session behavior Not an internet rendezvous service; remote desktop mode differs from sharing a console

Rendezvous and relay are separate from the desktop service

Hbbs coordinates identity and connection negotiation. Peers try a direct path first; when needed, hbbr relays the encrypted session. Hosting hbbs does not force every session through a relay. Client readiness also does not establish desktop capture, and both clients must use the intended ID server and trusted public key.

Clients negotiate through hbbs, connect directly when possible or use hbbr relay
Clients negotiate through hbbs, connect directly when possible or use hbbr relay — Open the diagram to zoom.

Download and install

Open Terminal with Ctrl+Alt+T and check the package architecture.

BASH
dpkg --print-architecture

The commands below are for amd64, the usual Intel/AMD 64-bit desktop. If the result is arm64, download the AArch64 Ubuntu deb from the release page and install that local file instead.

BASH
sudo apt update
sudo apt install -y curl ca-certificates
mkdir -p ~/Downloads/rustdesk-install
cd ~/Downloads/rustdesk-install
curl -fL --show-error https://github.com/rustdesk/rustdesk/releases/download/1.5.0/rustdesk-1.5.0-x86_64.deb -o rustdesk-1.5.0-x86_64.deb
sudo apt install ./rustdesk-1.5.0-x86_64.deb

After a successful download, run the install command in that directory. Apt also installs required dependencies. Keep the ./ prefix: it tells apt to use the local package in this directory instead of looking up its name in a repository.

BASH
dpkg-deb -f rustdesk-1.5.0-x86_64.deb Package Version Architecture
sha256sum rustdesk-1.5.0-x86_64.deb
dpkg-query -W -f='${Package} ${Version} ${Architecture}\n' rustdesk

After installation, check that the package reports RustDesk 1.5.0 and the architecture matches the workstation. Inspect the release asset metadata and a vendor-published digest when available; a local hash alone does not establish authenticity. amd64 and arm64 are not interchangeable, while apt resolves dependencies for the selected package. To roll back, use the saved approved previous .deb or preserve private client settings before removing RustDesk.

Open RustDesk and connect

BASH
rustdesk

Run it as your normal desktop user, or open it from the application menu. You will see this device’s ID and temporary password. Wait until the application reports that it is ready.

Open RustDesk on the second device, enter the Ubuntu device ID and select Connect. The Ubuntu user must approve the request or the temporary password must be supplied at the other end. Keep someone at Ubuntu for the first test so desktop permission prompts can be seen and approved, then check video, pointer and keyboard control.

The default public connection service is enough for this first test. If your workplace uses its own RustDesk server, enter the administrator’s ID Server, Relay Server and Key in network settings on both devices.

Test an attended session before enabling unattended access.

Confirm that the second device shows the intended Ubuntu desktop and only the permitted input works.

Check local approval, pointer and keyboard input, and the selected server and key settings separately.

For Not Ready, inspect networking. If the connection succeeds but the image is missing, inspect screen-sharing consent and compositor support.

End the test by disconnecting the session and revoking temporary authorization or password sharing.

If the screen is black or input does not work

BASH
sudo cp -a /etc/gdm3/custom.conf /etc/gdm3/custom.conf.before-rustdesk

Changing GDM affects every graphical login on this host. Make the change locally or with a separate SSH recovery path, and save open work before logout/reboot. A service process cannot bypass a Wayland compositor consent policy. Confirm your actual display manager is GDM before using its path.

Do not treat a black screen as only a network problem. Ubuntu 24 commonly uses Wayland, whose RustDesk support is experimental in the documentation used here and may require local screen-sharing approval. Run the following command inside the affected desktop session to identify its type; an SSH session can describe a different session.

BASH
echo "$XDG_SESSION_TYPE"

If it says wayland, approve any screen-sharing prompt first. If trouble remains, log out, select your user on the login screen, choose Ubuntu on Xorg from the gear menu and log in again. Logging out closes your applications, so save your work first.

Access to the login screen requires X11 according to the official Linux guide. If you need access after a reboot, edit GDM configuration locally, under [daemon] set WaylandEnable=false, and reboot after saving your work. Changing only the user session does not change the login screen.

BASH
sudo nano /etc/gdm3/custom.conf
INI
[daemon]
WaylandEnable=false

Check XDG_SESSION_TYPE in the affected user session and test from a second device after reboot when login-screen access is required. A locked session, missing display or unsupported headless setup can also cause a black screen. To revert, restore custom.conf.before-rustdesk and reboot at an agreed time; do not restart GDM while users have unsaved work.

Optional: access without someone at the desk

In Settings → Security, unlock the settings if requested and set a strong permanent password. Share it only with trusted people. Check the installed service, then test again after a reboot; a password alone does not remove Wayland’s permission prompts.

BASH
systemctl status rustdesk --no-pager

If the installed service is inactive, start it and enable it at boot.

BASH
sudo systemctl enable --now rustdesk

Grant only the permissions the support task requires; review clipboard, file transfer, audio and input independently. Use a unique permanent password stored in your approved password system and revoke it when access is no longer needed. Do not assume a password supplies MFA, centralized audit or authorization by employee identity. Validate after logout, lock and reboot with an independent recovery channel still available.

Enable unattended access only for an approved support need.

After reboot, only the approved credentials and selected permissions should still work.

Test access while locked, at the login screen and after reboot, retaining an independent local or SSH recovery path.

If it fails, inspect the service and actual X11 or Wayland session; a password alone does not grant screen capture.

When unattended access is no longer needed, revoke the permanent password and permissions and stop its service.

Optional server deployment is a separate project

Default ports are a server firewall plan, not ports to expose on every desktop
Component Default listener Purpose
hbbs TCP 21115; TCP/UDP 21116 NAT testing, ID registration and rendezvous
hbbr TCP 21117 Relayed sessions when direct connection fails
Optional web clients TCP 21118 / 21119 WebSocket listeners; open only when used
Pro API/console Check selected Pro release; TCP 21114 is not an OSS requirement Management is distinct from desktop traffic

Select and pin an official server release/image separately from client 1.5.0. Provision persistent server state, DNS, the required listeners and a restore plan; restrict management interfaces. Distribute id_ed25519.pub to clients through a trusted channel and protect the matching private key. Losing or rotating the server identity changes client trust configuration. Verify direct and forced-relay sessions plus an unauthorized access attempt before rollout. This article installs the desktop client; it does not claim the optional server has been deployed.

Official server architecture and port roles

Separate OSS server installation

Updates and quick troubleshooting

For an update, download the newer official deb for your architecture and install it with sudo apt install ./FILENAME.deb, replacing FILENAME with its actual name. This direct deb installation does not add a RustDesk apt repository.

Investigate Not Ready through connectivity on both devices and custom-server settings; investigate a black screen through the Wayland and capture-permission checks. Download Permission denied may describe the destination directory, so use the example Downloads location. An initial connection with default settings does not require disabling the firewall or creating a router port forward.

When the intended Ubuntu desktop appears on the second device and pointer and keyboard input follow the selected permissions, the initial connection is ready. Before granting unattended access, repeat the checks while locked and after reboot.

BASH
journalctl -u rustdesk -n 80 --no-pager
systemctl is-enabled rustdesk
systemctl status rustdesk --no-pager
# Maintenance/revocation only: disconnect remote support first
sudo systemctl disable --now rustdesk

If a .deb update breaks capture, preserve logs, restore the approved earlier client package and retest display permissions; a package downgrade does not necessarily roll back configuration formats. Back up the desktop user’s RustDesk configuration privately and root/service state only where actually used. Do not publish IDs/passwords or full configuration logs. Re-enable the service only when unattended access is still required.

Questions from deployment reviews

Does installing the client create a self-hosted server?

No. hbbs/hbbr are separate services with their own state, listeners and keys. Client network settings only select that infrastructure.

Will the background service remove Wayland prompts?

No. Display-server consent and capture support still govern access. Test the installed release in the intended session and login-screen state.

Official references

RustDesk 1.5.0 release and packages

Linux installation and Wayland notes

Ubuntu GNOME remote desktop modes

Share

Meet AJInfrastructure & DevOps
Loading…