Upgrading to 1.4.6

1.4.6 changes a few things without being asked to. Most upgrades need one step: Decide how clients sign in. This page lists every change you'll notice coming from 1.4.5, what to do about each, and the configuration keys whose meaning or default moved. Every change, with its reason, is in the changelog, and the release notes say what to expect on each desktop, package, GPU and client.

Before you upgrade: The short list

What changesWhat to do
Clients must sign inNative: Nothing, clients use the desktop user's system password. Flatpak and Snap: Set an NLA password before the first start. To keep serving with no sign-in, set auth_method = "none"
COSMIC asks for permission at the first startPick the screen and choose "Always allow", or set server.prefer_no_dialog = true for the old route
The mouse wheel's direction is correctedUndo any client setting you made to compensate
A one-monitor client sees only the primary outputSet display.monitors = "all" to show every output, as before
A second connection no longer waits for the firstNothing; see second connections for what happens by sign-in method
Stopping the share at the desktop stops the serverStart the server again to share again; the packaged service doesn't restart it
On GNOME, signing in unlocks a locked desktopNothing, or set server.unlock_on_sign_in = false to keep the lock
Hardware encoding and adaptive bitrate are onNothing; a config file that turns either off keeps it off
Pasted files are kept 24 hours, in memoryclipboard.pasted_files and clipboard.pasted_file_hours change it
[security] can't be set from LAMCO_ environment variablesMove any such setting into config.toml

Clients must sign in

security.auth_method now defaults to "pam". A config file that doesn't set it, which includes every file 1.4.5 generated, asks clients for a password from now on.

  • Native packages (deb, rpm, AUR, Nix, Gentoo): Clients sign in with the desktop user's own system password. Only the account the server runs as can sign in. A client with saved credentials goes straight in; any other client gets a login screen the server draws. The packages install the PAM service file /etc/pam.d/lamco-rdp-server that this needs. A build from source needs it installed by hand, or every sign-in fails.
  • Flatpak and Snap: The sandbox can't check the system password, so "pam" there means NLA with the desktop user's name and a separate password. The server refuses to start until that password is set, and says how. Follow First start of the Flatpak and Snap once after upgrading.
  • No sign-in: Set auth_method = "none" in [security]. Anyone who can reach the port then sees your desktop, so keep it to trusted networks or localhost.
# Flatpak: Set the NLA password from a terminal
flatpak run --command=lamco-rdp-server io.lamco.rdp-server --set-nla-password

# Snap
lamco-rdp-server --set-nla-password

# Keep serving with no sign-in (config.toml)
[security]
auth_method = "none"

Signing in covers every method in detail.

COSMIC asks for permission at the first start

The server now uses COSMIC's RemoteDesktop portal, which gives it the screen, keyboard, pointer and clipboard. The "Allow remote control?" dialog appears at the first start: Pick the screen, then choose "Always allow". Later starts don't ask. To keep 1.4.5's route, which never asks and injects the pointer through /dev/uinput, set server.prefer_no_dialog = true; it needs access to /dev/uinput. See the COSMIC guide.

The mouse wheel scrolls the right way

The wheel's direction was inverted in 1.4.5. If you reversed scrolling on the client to compensate, undo that setting, or scrolling will now feel backwards.

One-monitor clients see the primary output

A client with one monitor connecting to a host with several outputs now gets the primary output alone instead of all outputs squeezed into one picture. display.monitors chooses: "primary" always shows the primary alone, and "all" is 1.4.5's behavior. A client with several monitors still gets them. See Displays, resizing and multiple monitors.

A second connection doesn't wait

In 1.4.5 a second client waited until the first one left. Now what happens depends on the sign-in method: With no sign-in the newcomer takes the desktop over and the first client is told why it was disconnected; with NLA the newcomer takes over once it has signed in; with PAM it's refused at once and the live session is left alone.

Stopping the share stops the server

KDE's Remote Control notification has an End item, and GNOME's sharing indicator has a stop button. Using either now ends remote access: The client sees "Remote desktop was stopped on HOST's screen" and the server exits with status 77. Declining the permission dialog does the same. The packaged service doesn't restart after 77, so the person at the computer stays in charge. Start the server again (the GUI, or systemctl --user restart app-io.lamco.rdp-server) to share again. See exit statuses.

GNOME: A sign-in unlocks the desktop

GNOME stops sharing the screen while it's locked. 1.4.6 keeps listening through the lock, and a client that signs in with PAM or the NLA password unlocks the desktop. The desktop also doesn't idle-lock while a client is connected. A client already connected when the screen locks is asked to reconnect and sign in, so a lock made at the computer isn't undone behind anyone's back. Set server.unlock_on_sign_in = false to turn this off. The Snap needs two interfaces connected for it (see the Snap's interfaces).

New defaults

  • Hardware encoding is on (hardware_encoding.enabled = true), with VA-API, NVENC and Vulkan Video in every package. A host without a usable hardware encoder keeps encoding in software. See Hardware encoding and GPUs.
  • Adaptive bitrate is on ([egfx.encoding_adaptation] enabled = true): Quality and bitrate follow the client's queue depth, round-trip time and bandwidth.
  • A config file that turns either off, which includes one saved by an earlier GUI, keeps it off. Delete the line to take the new default.
  • 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.
  • cursor.auto_mode is off by default, and damage_tracking.method defaults to "hybrid", which is what the server always did.

Configuration keys that changed

KeyIn 1.4.6
security.auth_methodDefault "pam" (was no sign-in). In the Flatpak and Snap, "pam" means NLA
security.security_modeDefault "auto": "hybrid" (NLA) when credssp_credentials are set and auth_method isn't "pam", "tls" otherwise. Set the mode here rather than with enable_nla
security.enable_nlaLegacy. With security_mode = "auto", enable_nla = true becomes "hybrid"; nothing else reads it. Its comment in the example config is out of date
security.credssp_credentialsHolds the NLA username only. The password goes in the secret store with --set-nla-password; a password still in the file works, with a warning that it's in plain text
hardware_encoding.enable_dmabuf_zerocopyRemoved; nothing read it. A file that still has it gets a warning naming it
performance.zero_copyNow does something: false forces memory buffers for capture, for a GPU or driver whose DMA-BUF gives no or broken frames
hardware_encoding.backend_priorityNew: The order hardware encoders are tried, for example ["vaapi", "nvenc"]. Empty picks by GPU vendor. prefer_nvenc is ignored
display.monitorsNew: "primary" or "all" for one-monitor clients
server.desktop_sessionNew: "at-start" (default) or "on-connect", when the desktop is asked for its session
server.unlock_on_sign_in, server.prefer_no_dialog, server.release_when_idleNew; see above and Command line, services and exit statuses
security.secret_portalNew, Flatpak only: "auto", "always" or "never" asking the desktop's keyring for the key restore tokens are encrypted with
LAMCO_ environment overridesOnly the form LAMCO_SECTION__KEY overrides anything, never in [security], and each override is logged

The full list of keys is in the Configuration reference. lamco-rdp-server --generate-config prints a fully commented file with every default.

By package

  • Debian and Ubuntu (apt.lamco.ai or the release .deb): apt upgrade. The package installs the PAM service file, the user service (started at login for every user, as in 1.4.5) and a socket unit, installed but not enabled. Debian 13 and Ubuntu 24.04 and later.
  • Fedora, openSUSE, AlmaLinux 10 (RPM Fusion or OBS): Update as usual. The Fedora PAM stack now uses password-auth, as sshd does.
  • Arch (AUR): Rebuild the package. Building needs Rust 1.95 or newer.
  • Flatpak: flatpak update io.lamco.rdp-server from flatpak.lamco.ai brings the freedesktop 26.08 runtime with it. Then set the NLA password.
  • Snap: The store refreshes it. 1.4.6 is built on core26. Set the NLA password, and connect the interfaces you need by hand.
  • NixOS and Gentoo: New in 1.4.6, a Nix flake with a NixOS module and a Gentoo overlay; see Installation.
  • From source: Rust 1.95 or newer. Install the PAM service file from packaging/pam/ for your distribution.

After the upgrade

lamco-rdp-server --version # lamco-rdp-server 1.4.6
lamco-rdp-server --show-capabilities # what it found on this desktop
systemctl --user status app-io.lamco.rdp-server

If the server stopped by itself, its exit status says why; see exit statuses and Troubleshooting.

Related