First start of the Flatpak and Snap

The Flatpak and the Snap are the Community Edition: Free to use, sandboxed, and updated by their stores. The sandbox can't check your system password, so a client signs in with your desktop user name and a separate password that you set, and the server doesn't start until one is set. These steps take a few minutes and are needed once. Install first, from the download page or Installation.

The five steps

1. Start the GUI

# Flatpak
flatpak run io.lamco.rdp-server

# Snap
lamco-rdp-server.gui

Or open Lamco RDP Server from 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 in the desktop's secret store, so the store has to exist before the password can be saved.

  • KDE Plasma (KDE Wallet): The first time the wallet is used, it asks how to encrypt it. 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.
  • GNOME (GNOME Keyring): A new keyring asks for a password the same way.
  • A desktop that logs in automatically (COSMIC, or GNOME with autologin) keeps its login keyring locked. The server doesn't hold up the start for it: It keeps the remembered permission in its own encrypted file and moves to the keyring's key once the keyring is unlocked. security.secret_portal ("auto", "always", "never") controls that in the Flatpak.

3. Set the NLA password

Open the GUI's Security tab. The NLA section shows the username, which is your desktop user's, and whether a password is stored. Set the password there. From a terminal instead:

# Flatpak
flatpak run --command=lamco-rdp-server io.lamco.rdp-server --set-nla-password

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

Without a password, Start Server stops with "The server didn't start: Clients sign in with NLA as '<user>', but no NLA password is stored".

4. Press Start Server and allow the permission dialog

The desktop asks once whether the server may share the screen. Allow it with remembering on, and later starts don't ask:

DesktopThe dialog
GNOME 46 and laterThe screen-sharing dialog. Allow it with "Remember this selection" ticked
KDE Plasma 6The Remote Control dialog. Tick "Allow restoring on future sessions". For no dialog at all, run on the host: flatpak permission-set kde-authorized remote-desktop io.lamco.rdp-server yes
COSMIC"Allow remote control?": Pick the screen, then choose "Always allow"
Sway, Hyprland, niri, labwc, WayfireThe screen-sharing dialog or picker, where the sandbox has to go through the portal

A client that connects before the dialog is answered sees "Starting the remote desktop", then "Waiting for permission on HOST's screen", and the same connection becomes the desktop once permission is given. If the dialog is declined, the server stops with status 77.

5. Sign in from the client

Use your desktop user name and the NLA password, not a Windows or Microsoft account. Windows Remote Desktop offers the Windows account's saved credentials first: Choose "More choices", then "Use a different account", and type the user name and password. See RDP clients for each client.

The Snap's three interfaces

snapd doesn't connect these by itself, so connect them by hand once:

# Sound to the client
sudo snap connect lamco-rdp-server:pipewire

# Unlocking a locked GNOME desktop when a client signs in
sudo snap connect lamco-rdp-server:login-session-observe
sudo snap connect lamco-rdp-server:login-session-control

Without the two login-session interfaces, the Snap tells a client to unlock the desktop at the computer. The Flatpak needs none of these.

H.264 without a GPU that encodes it

The Flatpak and the Snap encode H.264 on the GPU with VA-API, NVENC or Vulkan Video, but can't use the system's software encoder from inside the sandbox. On a machine without such a GPU, which includes most virtual machines, they send RemoteFX Progressive instead: It takes more bandwidth and processor time, and moving video falls behind. Cisco pays the H.264 patent royalties only for copies of OpenH264 downloaded from Cisco, so neither package can include it. Put Cisco's library in the package's own folder and start the server again:

# 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

# Snap: The same two commands in this folder, which a refresh keeps
mkdir -p ~/snap/lamco-rdp-server/common/openh264
cd ~/snap/lamco-rdp-server/common/openh264

The log then says "Loaded OpenH264 2.6.0 (ABI 8)"; until it finds one, it names the folder to put it in. On a 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. More in Hardware encoding and GPUs.

Starting at login

Turn on "Start the server when I log in" on the GUI's Server tab. The Flatpak asks the Background portal for it and the Snap uses snapd's autostart. The server then starts without a window, from the saved configuration, and the GUI finds it when opened.

What the sandbox changes

  • Keyboard and mouse: Every supported desktop for the Snap. 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.
  • Clipboard: The Flatpak on GNOME 45 and later and on KDE Plasma; none on COSMIC. The Snap on GNOME and on Sway, where it's tested. See Clipboard and file transfer.
  • Notifications: The person at the desktop is told when a client connects and leaves, and when the server waits on the permission dialog (notifications.on_connect).
  • Config file: ~/.var/app/io.lamco.rdp-server/config/config.toml for the Flatpak.

Troubleshooting

SymptomCauseFix
Start Server says no NLA password is storedStep 3 isn't doneSet the password on the Security tab or with --set-nla-password
The password won't saveNo secret store, or it's lockedSet up KDE Wallet or a GNOME keyring with a password (step 2), and unlock it
The client is refused with the right passwordIt sent a Windows or Microsoft account"More choices", then "Use a different account"
The permission dialog comes back at every startRemembering wasn't on, or the secret store was lockedAllow with remembering on; unlock the store
No sound in the SnapThe pipewire interface isn't connectedsudo snap connect lamco-rdp-server:pipewire
Video falls behind on a virtual machineNo GPU that encodes H.264Add Cisco's OpenH264 as above, or use a native package
View-only on Sway, Hyprland or niriThe desktop hides its input protocols from the FlatpakUse the Snap or a native package

The Flatpak's and the Snap's first start with a stored NLA password was run on GNOME, KDE Plasma and Ubuntu 26.04 in the 1.4.6 release test.

Related