Skip to content

lamco-rdp-server v1.4.6

Latest

Choose a tag to compare

@glamberson glamberson released this 29 Nov 16:00
· 1 commit to main since this release

lamco-rdp-server v1.4.6

This release makes the server safe to leave running. Sign-in is on by default. The server listens
while it waits for the desktop's permission and tells a client what it's waiting for. A lost
desktop session is reopened with the client still connected, and remote access survives a screen
lock on GNOME. Hardware encoding now produces a picture every client can decode, and is on by
default. The Flatpak and the Snap do nearly everything the native packages do. Clients that can't
decode H.264 get a compressed picture instead of raw pixels.

These notes say what to expect on each desktop, package, GPU and client. Every change, with its
reason, is in CHANGELOG.md.

Before you upgrade from 1.4.5

  • Clients must sign in. A config file that doesn't set security.auth_method now asks for the
    desktop user's system password (PAM). The Flatpak and the Snap sign in with NLA and won't start
    until a password is set. To keep serving with no sign-in, set auth_method = "none".
  • COSMIC asks for permission at the first start. Pick the screen in the dialog and choose
    "Always allow".
  • The mouse wheel's direction is corrected. It was inverted. Undo any setting made on the
    client to compensate.
  • A one-monitor client on a host with several outputs sees the primary output only.
    display.monitors = "all" shows them all, as before.
  • A second connection no longer waits for the first to end. See "Signing in" for what happens
    to it.
  • Stopping the share from the desktop's indicator stops the server, and so does declining the
    permission dialog. Start the server again to share again.
  • Hardware encoding and adaptive bitrate are on by default. A config file that turns either
    off keeps it off.

Signing in

Install Default sign-in What the client sees
Native package PAM: the desktop user's system password A client with saved credentials goes straight in. Any other client gets a login screen drawn by the server.
Flatpak, Snap NLA: the desktop user's name and a password you set before the first start The client's own credential prompt, before it connects.
  • Only the desktop's owner can sign in with PAM, whatever other accounts the system knows.
  • The login screen shows the server certificate's fingerprint, so it can be compared with the
    client's certificate warning. It handles one-time codes and expired passwords.
  • Failed sign-ins are limited for each address and each account: The first three cost
    nothing, then the wait climbs from 5 seconds to 15 minutes. Fifty failures in a row disable
    sign-in until the server is restarted.
  • Set the NLA password on the GUI's Security tab or with
    lamco-rdp-server --set-nla-password. It's kept in the secret store, never in the config file.
    A native install can use NLA in place of PAM; the [security] section of the example config
    says how.
  • A second connection while a client is connected takes the desktop over with no sign-in
    configured, takes over once it has signed in with NLA, and is refused at once with PAM.

First start of the Flatpak or Snap

The Flatpak and the Snap can't check the system password from inside their sandbox. A client signs
in with the desktop user's name and a separate password that you set, and the server doesn't start
until one is set.

  1. Start the GUI: flatpak run io.lamco.rdp-server for the Flatpak, lamco-rdp-server.gui
    for the Snap, or Lamco RDP Server in the application menu.
  2. Set up the desktop's secret store, with a password. The server keeps the NLA password and
    the remembered screen-sharing permission there, so the store has to exist before the password
    can be saved. The first time KDE Wallet is used, it asks how to encrypt the wallet: Choose
    Blowfish unless you have a GPG key for it, then set a wallet password. Unless that's your login
    password, the wallet asks for it again the first time the server uses it after each login. On
    GNOME, a new keyring asks for a password the same way.
  3. Set the NLA password in the NLA section of the GUI's Security tab. The username is the
    desktop user's. Without a password, Start Server stops with "The server didn't start: Clients
    sign in with NLA as '', but no NLA password is stored".
  4. Press Start Server and answer the desktop's permission dialog with remembering on (see
    "Starting the server" below).
  5. Sign in from the client with that username and password, not with a Windows or Microsoft
    account. Windows Remote Desktop offers the Windows account's saved credentials first: Choose
    "More choices", then "Use a different account".

The password can also be set from a terminal: flatpak run --command=lamco-rdp-server io.lamco.rdp-server --set-nla-password, or lamco-rdp-server --set-nla-password for the Snap.

Starting the server

The server listens as soon as it starts. A client that signs in before the desktop has given the
server a session sees a notice saying what the server is waiting for, and the same connection
becomes the desktop once permission is given.

Desktop Native package Flatpak or Snap
GNOME 46 and later No dialog The screen-sharing dialog at the first start. Allow it with remembering on.
KDE Plasma 6 The Remote Control dialog at the first start. Tick "Allow restoring on future sessions", or turn on "KDE: start without the permission dialog" on the GUI's Server tab and it never asks. The same dialog. For none at all, run flatpak permission-set kde-authorized remote-desktop io.lamco.rdp-server yes on the host.
COSMIC The "Allow remote control?" dialog at the first start. Pick the screen, then choose "Always allow". server.prefer_no_dialog = true takes a route that never asks and needs access to /dev/uinput. The same dialog
Sway, Hyprland, niri, labwc, Wayfire No dialog The screen-sharing dialog or picker, where the sandbox has to go through the portal
  • To ask the desktop only once a client has signed in, set server.desktop_session = "on-connect". This needs a sign-in configured unless the server listens on localhost only.
  • To start the server only when a client connects (native packages), enable the socket
    instead of the service: systemctl --user enable --now app-io.lamco.rdp-server.socket.
  • To start it at login, use "Start the server when I log in" on the GUI's Server tab.
  • When the server stops by itself, the exit status says why: 69, this desktop can't be
    shared; 75, the desktop session was lost and a fresh server should take over; 77, permission
    was declined or the share was stopped at the computer; 78, no client could sign in with this
    configuration. The packaged service restarts the server only after 75.

By desktop

Desktop Client resize Screen lock Notes
GNOME A headless session's virtual monitor follows the client. A real monitor is mirrored at its own size, and the client scales it. GNOME stops sharing while locked. The server keeps listening, and a client that signs in unlocks the desktop. The desktop doesn't idle-lock while a client is connected.
KDE Plasma 6 Changes the output's mode where KWin allows a mode of that size, as on virtual GPUs. Otherwise the client scales. The client sees the lock screen and types the password.
COSMIC Changes the output's mode on a COSMIC that carries pop-os/cosmic-comp#3085. Up to Pop!_OS 26.04's release the desktop keeps its size and the client scales. The client sees the lock screen. With automatic login the keyring stays locked; the remembered permission is kept in the server's own encrypted file.
Sway, Hyprland, niri, Wayfire, labwc 0.20 Changes the output's mode, and puts it back when the client leaves. The client sees the lock screen.
labwc 0.8 (openSUSE Leap 16.0) Refused by labwc. The desktop keeps the size it started with. The client sees the lock screen.
Budgie 10.10, LXQt As the compositor underneath (labwc or Wayfire)
Cinnamon (Wayland), Weston Can't be shared: These offer no way to capture the screen. The server says so and stops with status 69.
  • GNOME's fullscreen freeze: On GNOME 49.8, 50.5 and later, and 51, the server records the
    monitor itself. On older versions it records an area of the desktop, to get around Mutter
    pausing a monitor recording under a fullscreen window.
  • The server stops at the desktop's own indicator. KDE's Remote Control notification has an
    End item and GNOME's sharing indicator a stop button. Using either ends remote access until the
    server is started again.
  • X11 sessions aren't supported. The server shares Wayland sessions only.

By package

Native (deb, rpm, AUR, Nix, Gentoo) Flatpak Snap
Sign-in PAM, or NLA NLA, with a password set before the first start NLA, with a password set before the first start
H.264 without a GPU that encodes it OpenH264 in software, where it's installed Cisco's OpenH264, once you put it in the Flatpak's folder (see "By GPU"); otherwise RemoteFX Progressive Cisco's OpenH264, once you put it in the Snap's folder (see "By GPU"); otherwise RemoteFX Progressive
Keyboard and mouse Every supported desktop GNOME, KDE and COSMIC. View-only on Sway, Hyprland and niri where the host's Flatpak is 1.16 or later. Every supported desktop
Clipboard, both directions Yes On GNOME 45 and later and on KDE Plasma. None on COSMIC, whose portal has no clipboard, or where the Flatpak is view-only. On GNOME and on Sway, where it's tested
Files pasted from the client Appear as files on the desktop Handed to the desktop through the Documents portal Kept in the Snap's own folder, which file managers can read
Hardware encoding VA-API, NVENC, Vulkan Video Built with all three; VA-API, NVENC and Vulkan Video tested Built with all three; VA-API, NVENC and Vulkan Video tested
Start at login The systemd user service or socket The GUI's switch (Background portal) The GUI's switch
  • The Snap needs three interfaces connected by hand, because snapd doesn't connect them by
    itself. For sound: sudo snap connect lamco-rdp-server:pipewire. For unlocking a locked GNOME
    desktop at sign-in: sudo snap connect lamco-rdp-server:login-session-observe and
    sudo snap connect lamco-rdp-server:login-session-control.
  • The Flatpak on niri can show the desktop but not control it. On a virtual machine it has no
    picture, because niri shares its screen only as GPU buffers there; the client is told so. A
    native install on niri has neither limit.
  • Nix and Gentoo: The release carries a flake (lamco-rdp-server-nix-1.4.6.tar.gz) with a
    NixOS module and an overlay (lamco-rdp-server-gentoo-overlay-1.4.6.tar.gz) with the ebuild.
    Neither is in nixpkgs or the Gentoo repository.
  • Pasted files are kept for 24 hours in the user's runtime directory, in memory, and are gone
    at logout. clipboard.pasted_files = "disk" keeps them across a logout.

By GPU

Every package is built with all three GPU encoders, and the server picks one for the GPU it
finds.

GPU Encoder chosen What to know
Intel VA-API On Fedora, the stock libva-intel-media-driver has no H.264 encoding. Replace it with RPM Fusion's intel-media-driver; the log says so.
AMD Vulkan Video, then VA-API Mesa 26.0.0 to 26.2.0 corrupts VA-API H.264 encoding on AMD, which is why Vulkan Video comes first there. The server warns when it finds one of those versions.
NVIDIA NVENC, then Vulkan Video NVENC needs NVIDIA's proprietary driver. Its libraries are loaded when the server finds them; nothing else is installed.
None, or a virtual machine Native packages: OpenH264, in software. Flatpak and Snap: no H.264 Native: Install OpenH264 if the distribution didn't. Fedora ships a placeholder: sudo dnf swap noopenh264 openh264. The Flatpak and the Snap can't see the system's OpenH264 from their sandbox, so they send RemoteFX Progressive, unless Cisco's OpenH264 is put in their own folder, as below.

NVENC and Vulkan Video are tested in the native packages, the Flatpak and the Snap, on an NVIDIA
RTX 4060 with NVIDIA's driver.

  • With no H.264 encoder at all, clients get RemoteFX Progressive, which costs more bandwidth
    and more processor time for the same picture. That's the Flatpak and the Snap on a machine
    without a GPU that encodes H.264, which includes most virtual machines. In a test on a 3-core
    virtual machine at 1280x800, a full-screen frame took about 60 ms to encode and 250 KB to send,
    against 5 ms with hardware H.264, and moving video fell behind. On such a machine, use a native
    package, or give the Flatpak or the Snap Cisco's OpenH264.

  • Software H.264 for the Flatpak and the Snap: Cisco pays the H.264 patent royalties only for
    copies of its OpenH264 binary downloaded from Cisco, so neither package can include it.
    Download it into the package's own folder, unpack it there, and start the server again. For the
    Flatpak:

    mkdir -p ~/.var/app/io.lamco.rdp-server/data/openh264
    cd ~/.var/app/io.lamco.rdp-server/data/openh264
    curl -O https://ciscobinary.openh264.org/libopenh264-2.6.0-linux64.8.so.bz2
    bunzip2 libopenh264-2.6.0-linux64.8.so.bz2
    

    For the Snap the folder is ~/snap/lamco-rdp-server/common/openh264, which a refresh keeps;
    the same curl and bunzip2 go there. The server's log then says "Loaded OpenH264 2.6.0 (ABI
    8)", and until it finds one, the log names the folder to put it in. On the same 3-core virtual
    machine a full-screen frame took about 24 ms to encode instead of 60, and video kept up at
    about 22 frames a second. Deleting the file undoes it.

  • When the GPU that encodes isn't the one that drives the desktop, the server sets
    GSK_RENDERER=cairo for the session, because GTK4 applications can crash there.
    capabilities.auto_mitigate_gpu_mismatch = false turns that off.

  • To pick the encoders yourself, list them in hardware_encoding.backend_priority.
    hardware_encoding.enabled = false encodes in software.

Screen capture buffers (DMA-BUF)

  • The server takes DMA-BUF frames where the compositor offers a layout it accepts, and reads
    them through the CPU. On a machine with no GPU render node, and on a virtual GPU that can't
    share its buffers with the CPU, it takes memory buffers by itself; the log says which and why.
  • performance.zero_copy = false forces memory buffers. Use it where capture gives a black
    or corrupted picture. In 1.4.5 nothing read this setting. enable_dmabuf_zerocopy is gone, and
    a config file that still has it gets a warning naming it.
  • GNOME sessions capture into memory buffers. GNOME's screen cast offers DMA-BUF only in a
    layout the server doesn't take yet. That's planned for 1.5.0.
  • Frames are copied once on the way to the encoder. Handing a GPU buffer straight to a
    hardware encoder is planned for 1.6.0.

By client

  • Windows Remote Desktop (mstsc): Signs in on the server's login screen when no password is
    saved. Reconnects by itself after a dropped connection. Takes the UDP transport when
    udp_transport.enabled = true: The picture moves to UDP, while sound, keyboard, mouse and the
    clipboard stay on TCP. The log says "The picture now goes over the UDP side channel" when it
    does. A firewall has to let UDP through on the same port as TCP. Its sound often falls a second or more behind the picture just
    after sign-in; the server now brings it back, which is heard once as a short gap.
  • FreeRDP and Remmina: FreeRDP 3.32.2 and later needed a fix in this release to show a
    picture at all. Earlier versions are unaffected.
  • Android RD Client, and web clients built on IronRDP: These take no H.264 and now get
    RemoteFX Progressive. In 1.4.5 the Android client showed a black screen.
  • Clients limited to EGFX 8.0: These get lossless Planar.
  • Clients without the graphics pipeline: These get bitmap updates, compressed where the
    client shares a codec with the server.

Known limits

  • A monitor can be at most 3840x2400 pixels in area (9,216,000 pixels). A client's request
    for more is refused and the desktop keeps its size.

  • The picture is always 32 bits per pixel. A client that asks for 16-bit color, as Jump
    Desktop on iOS can, gets a garbled picture. Set the client to 32-bit color.

  • input.input_protocol takes "libei", "wlr" or "auto". Any other value, "portal"
    included, acts as "auto".

  • labwc 0.8.1 refuses every output mode change, so a client's resize doesn't resize the
    desktop there. labwc 0.20 accepts it.

  • COSMIC up to Pop!_OS 26.04's release keeps a screen capture at the size it started with, so
    the server leaves the desktop's size alone there.

  • On COSMIC a resize can take six seconds now and then, long enough for the client to give up
    and reconnect. The cause is a fault in xdg-desktop-portal 1.21 (flatpak/xdg-desktop-portal#2091,
    fixed in 1.22.1), which Pop!_OS 26.04 and Ubuntu 26.04 ship: The portal stops answering for 6
    seconds if a program leaves the session bus while it opens a screen capture, and COSMIC restarts
    its panel applets at every output change. On Pop!_OS 26.04 it happened in 2 of 30 resizes; on
    Fedora 45, which has 1.22.1, it didn't happen even when provoked. Until the desktop has the
    fixed portal, this file removes it (30 of 30 without the stall). Save it as
    ~/.config/pipewire/client.conf.d/50-portal-no-module-rt.conf, then log out and in:

    context.properties.rules = [
      { matches = [ { application.process.binary = "xdg-desktop-portal" } ]
        actions = { update-props = { module.rt = false } } }
    ]
    

    It stops the portal's own PipeWire connections from asking for real-time priority, which is
    what the fixed portal does. Nothing else on the desktop changes.

  • A black screen with working keyboard and mouse means the desktop's screen capture runs but
    delivers no picture. On COSMIC with an Intel GPU that happened with GPU buffers (DMA-BUF,
    GitHub issue #86); the server now notices after 10 seconds and opens the capture again with
    memory buffers. If the screen stays black or shows the wrong picture, set
    performance.zero_copy = false, which asks for memory buffers from the start, and report it
    with the log.

  • COSMIC's portal can crash while the screen is captured, most often just after a resize
    (pop-os/xdg-desktop-portal-cosmic#389, open). On Fedora 45 with COSMIC 1.11 it happened once in
    30 resizes. The server opens a new capture and the client stays connected. After three such
    losses in ten minutes the server exits, and the packaged service starts it again.

  • The Flatpak is view-only on Sway, Hyprland and niri where the host's Flatpak is 1.16 or
    later, because those desktops hide their input protocols from sandboxed applications. The Snap
    and the native packages aren't limited.

  • View-only (server.view_only = true) goes through the desktop's screen-sharing portal on
    every desktop and package. A native install on GNOME, which otherwise never asks, then shows
    the "Share Screen" dialog at the first start. Keep "Remember this selection" ticked and later
    starts don't ask. On Sway and the other wlroots desktops it needs xdg-desktop-portal-wlr, and
    XDG_CURRENT_DESKTOP in the user's systemd environment, as xdg-desktop-portal-wlr's README says.

  • Several scaled monitors on GNOME aren't tested. A single monitor at any scale is right.

  • A desktop firewall blocks the server without a trace in its log. Omarchy and CachyOS ship
    ufw enabled. Open port 3389 for TCP and UDP.

License

1.4.6 is under the Business Source License 1.1 and converts to the Apache License 2.0 on
2029-12-01. Production use is free, as long as it isn't a competing product or service, with the
Flatpak and the Snap (the Community Edition), and with any package for a non-profit, a single
server instance, or non-commercial education or research. Other production use needs a license
from lamco.ai. LICENSE in the source has the terms.

Tested on

The release test ran on these desktops, as virtual machines.

Distribution Desktop Packages tested
Fedora 44 GNOME 50.6 Native
Fedora 45 GNOME 51.0 Native
Arch Linux GNOME 51.1 Native
Ubuntu 26.04 GNOME 50.1 Native, Flatpak, Snap
Red Hat Enterprise Linux 10.3 GNOME 49.5 Native
Debian 13 GNOME 48.7 Native
Debian 13, arm64 GNOME 48.7 Native (the arm64 package)
Debian testing KDE Plasma 6.7.4 Native, Flatpak
Fedora 44 KDE Plasma 6.8.3 Native
openSUSE Tumbleweed KDE Plasma 6.8.3 Native
KDE neon KDE Plasma 6.8.3 Native, Flatpak
Manjaro KDE Plasma 6.7.5 Native
NixOS KDE Plasma 6.5.6 Nix flake, native binary, Flatpak
Pop!_OS 26.04 COSMIC Native
EndeavourOS Sway 1.12 Native, Flatpak
Fedora 44 Sway 1.11 Native
Ubuntu 24.04 Sway, two outputs Native, Snap
Arch Linux Hyprland 0.57.2 Native
Omarchy 4.5.0 Hyprland 0.56.2 Native
Arch Linux niri 26.04 Native, Flatpak
openSUSE Leap 16.0 labwc 0.8.1 Native
Debian 13 LXQt on Wayfire Native
Fedora 45 LXQt on labwc Native
EndeavourOS Budgie 10.10 on labwc Native, Flatpak
CachyOS Budgie 10.10 on labwc Native
Gentoo Overlay: builds and installs
Linux Mint 22.3 Cinnamon (Wayland) Native: refuses to start, as it should

Earlier rounds of the same release test also ran the Flatpak on Fedora 44 (GNOME and KDE
Plasma) and on Hyprland, and the overlay's package on Gentoo with dwl.

After the round, the native binary was also checked on Fedora 45 COSMIC Atomic (COSMIC 1.11):
The picture and its colors, the three ways of signing in, and resizing.

The arm64 package ran on Debian 13 arm64 under full emulation, with no arm64 hardware: It
installed with its dependencies, and the picture, typing, a clean stop, the GUI and repeated
reconnects were checked. Windows Remote Desktop was tested from Windows Server 2025 against
Fedora 44 GNOME: The picture, typing, the clipboard with Rich Text Format both ways, sound, NLA
sign-in, and the UDP side channel.

Downloads

File What it is Size
lamco-rdp-server-1.4.6.tar.xz Source tarball, dependencies included 92M
lamco-rdp-server-1.4.6.flatpak Flatpak bundle (Community Edition) 18M
lamco-rdp-server_1.4.6-1_amd64.deb Debian and Ubuntu package (amd64) 21M
lamco-rdp-server_1.4.6-1_arm64.deb Debian and Ubuntu package (arm64) 19M
lamco-rdp-server-nix-1.4.6.tar.gz Nix flake (NixOS) 8.0K
lamco-rdp-server-gentoo-overlay-1.4.6.tar.gz Gentoo overlay 8.0K

Checksums are in SHA256SUMS, signed in SHA256SUMS.asc (see Verify below).

Installation

Community Edition (free to use): Flatpak and Snap. Before the first start, set the NLA password
(GUI, Security tab, or --set-nla-password); "First start of the Flatpak or Snap" above walks
through it.

flatpak install --user lamco-rdp-server-1.4.6.flatpak
# or from Lamco's Flatpak repository
flatpak install --user https://flatpak.lamco.ai/io.lamco.rdp-server.flatpakref

sudo snap install lamco-rdp-server

Debian and Ubuntu, the package from this page or Lamco's APT repository (amd64 and arm64):

# The package from this page (or _arm64.deb)
sudo apt install ./lamco-rdp-server_1.4.6-1_amd64.deb

# Or Lamco's APT repository
curl -fsSL https://apt.lamco.ai/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/lamco.gpg
echo "deb [signed-by=/usr/share/keyrings/lamco.gpg] https://apt.lamco.ai stable main" | sudo tee /etc/apt/sources.list.d/lamco.list
sudo apt update && sudo apt install lamco-rdp-server

Fedora, from RPM Fusion's nonfree repository, or from the openSUSE Build Service:

# With RPM Fusion's nonfree repository enabled
sudo dnf install lamco-rdp-server

# Or the openSUSE Build Service repository (Fedora_43 or Fedora_44 in the URL)
sudo dnf config-manager addrepo --from-repofile=https://download.opensuse.org/repositories/home:/lamco-development/Fedora_44/home:lamco-development.repo
sudo dnf install lamco-rdp-server

openSUSE Tumbleweed and Leap 16.0 (for Leap, openSUSE_Leap_16.0 in the URL):

sudo zypper addrepo https://download.opensuse.org/repositories/home:/lamco-development/openSUSE_Tumbleweed/home:lamco-development.repo
sudo zypper install lamco-rdp-server

Arch Linux, from the AUR: yay -S lamco-rdp-server

NixOS and Gentoo: lamco-rdp-server-nix-1.4.6.tar.gz is a flake to use as an input
(steps); lamco-rdp-server-gentoo-overlay-1.4.6.tar.gz is a
Portage overlay (steps). Neither is in nixpkgs or the Gentoo
repository.

From source (Rust 1.95 or newer):

tar xf lamco-rdp-server-1.4.6.tar.xz
cd lamco-rdp-server-1.4.6
cargo build --release --offline

Verify

SHA256SUMS is signed with Lamco's release key, the key that also signs apt.lamco.ai
(CA11F781516743D5D9A1A12F17B95B68A50CD3A7). In the folder you downloaded to:

curl -fsSL https://apt.lamco.ai/key.gpg | gpg --import
gpg --verify SHA256SUMS.asc SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS

gpg --verify reports a good signature from "Greg Lamberson (Debian packaging)", made with the
signing subkey 405CB1E36258DA1DA406A852A236DDB84E0EC96E. keyserver.ubuntu.com has the same key.

Download lamco-rdp-server