Zoomed Image

Remote Desktop and Chat on Linux

Endpoint Management Guide

Connect to a Computer

Remote Desktop and Chat on Linux

A Linux computer with the agent supports Remote Desktop, chat and voice calls from the same menus as a Windows computer. The person signed in at the Linux desktop is asked first. The session runs through the agent and the xAssets relay. The computer opens no inbound port.

  • Remote desktop: Endpoints > Endpoint List > select a Linux computer > Connect > Remote Desktop.
  • Chat: Endpoints > Endpoint List > select a Linux computer > Connect > Chat.

Requirements

  • The Linux agent, online, with its desktop program installed (/usr/local/bin/dmpc-desktop). Without it, the computer does not offer these actions.
  • A person signed in at the computer's own screen. A session over SSH does not count.
  • For Remote Desktop: an X11 (Xorg) or Wayland desktop session. X11 covers Xfce, MATE and KDE on X11. Wayland covers the stock GNOME desktops of Ubuntu and Fedora. A Wayland desktop also needs xdg-desktop-portal and PipeWire. Those desktops install both. See Wayland desktops.
  • zenity on the computer, to ask the person. An X11 desktop can use xmessage instead.
  • The relay set up for the database. See Set Up the Relay.
  • For chat and voice: the Website domain setting (WebsiteDomain) holds the address of your xAssets site. The chat opens from that site in the person's browser.

The question appears on the Linux screen with Allow and Deny. Deny is the default button. No answer within 60 seconds counts as Deny.

Computer Consent prompt
A category with the server context No prompt, unless the RemoteConsentAlways setting is on
Any other category The signed-in person sees Allow and Deny
Nobody signed in at the screen Refused. The Linux sign-in screen cannot be shared.

With consent, the action needs no approval. Without consent (a server), it needs an approval, as on Windows.

While the session runs, a notice on the Linux screen says that an administrator can see the screen.

In the session

The screen opens in the same window as for Windows. Mouse and keyboard reach the Linux desktop. The screen updates up to 15 times a second while you work, and 2 a second when idle.

These toolbar buttons do nothing useful on Linux: CAD, Send File and Get File. Copy and paste between the two computers is not available yet.

The session ends when you select Disconnect, when the person closes it, or after 8 hours. A session that nobody opens ends after 2 minutes. Starting a new session ends the one before.

Wayland desktops

A Wayland desktop shares its screen only through its own sharing service (xdg-desktop-portal). The screen comes over PipeWire. The mouse and keyboard go through the same service.

The first time, GNOME shows its own Remote Desktop window to the person:

  1. The person turns on Allow Remote Interaction. With it off, you can see the screen but cannot use the mouse or keyboard. The session window says so.
  2. The person keeps Remember This Selection selected.
  3. The person selects Share.

After that, the desktop does not ask again for xAssets sessions. If the person shared without Allow Remote Interaction, the desktop asks again next time, so that a view-only answer is not kept. The agent keeps the desktop's answer where only the agent can read it, not in the person's home folder. The person is still asked the xAssets question (Allow or Deny) before every session, unless the computer is a server. If the computer has no zenity, the desktop's own question is asked every time instead.

If nobody answers the desktop's question within 60 seconds, the session does not start. So a server with nobody at the screen needs one session with someone there first.

While the session runs, GNOME shows a sharing icon in the top bar. The person can select its stop button to end the session at once.

The Wayland sign-in screen cannot be shared: it has no sharing service. GNOME's screen lock needs the GNOME display manager (GDM). With another display manager, the screen does not lock.

Wayland refusal reasons

A Wayland session that cannot start ends with one of these reasons in the run's row in Activity:

Reason Cause
"...shares its screen only through xdg-desktop-portal, and that is not installed" Install xdg-desktop-portal and the desktop's own portal
"...sends its screen over PipeWire, and PipeWire is not installed" Install libpipewire-0.3-0
"this desktop has no remote desktop portal (xdg-desktop-portal with a GNOME or KDE back end)" The desktop's portal cannot share a screen with input
"the person at the computer declined the desktop's sharing question" The person refused the share in the desktop's window
"the desktop did not answer sharing the screen within 60 seconds (nobody answered the desktop's own sharing question)" Nobody answered the desktop's window
"the desktop ended the sharing session while it was being set up" The person or the desktop stopped the share at once

Chat and voice calls

The Linux computer tells xAssets who is signed in at its screen. This works on X11 and Wayland desktops.

  1. Start a chat with the computer, or with the person signed in there.
  2. The person sees " would like to chat with you (text and voice)" with Open and Not now.
  3. Open shows the chat in the person's web browser. Text and voice calls work as for any browser chat.

The browser asks the person once for the microphone. On Ubuntu, the browser is a snap package. If the microphone stays off, run snap connections chromium (or firefox) and check that audio-record is connected.

The browser must trust the relay's certificate. A relay with a self-signed certificate cannot carry the chat.

Requirements on the computer

Package Used for
libx11-6, libxext6, libxtst6, zlib1g Screen capture and input (Remote Desktop)
xdg-desktop-portal with the desktop's own portal (xdg-desktop-portal-gnome for GNOME), libpipewire-0.3-0 Screen capture and input on a Wayland desktop
zenity or x11-utils (xmessage, X11 only) The consent question and the chat question
libnotify-bin The notice while a session runs (optional)
xdg-utils Opening the chat in the browser