Desktop
See and control your Linux computer's screen from the phone, tunnelled inside SSH.
The Desktop tab shows the computer's screen and lets you control it. It works on Linux, on X11 or on Wayland desktops such as KDE Plasma and GNOME. On macOS and Windows the tab says the desktop isn't available there yet.
Requirements
| Needs | |
|---|---|
| All | FFmpeg |
| Wayland | GStreamer's PipeWire plugin (gst-plugin-pipewire or gstreamer1.0-pipewire) and PipeWire's tools (pw-link) |
That's for the standard way of sharing the screen. There are two more; see Choose how the screen is shared.
link-host doctor tells you what's missing.
First time on Wayland
The first time, the computer shows the desktop's own screen sharing dialog, naming Link Host. Someone at the computer chooses the screen and Allow; the phone says "Choose Allow on …'s screen" while it waits. Later sessions start without asking. Stopping the share from the desktop's own controls ends the stream.
Using it
Open the computer's Desktop tab and tap Start desktop. Full screen hides the phone's bars and turns it landscape for a wide screen. Leaving the Desktop tab any other way, such as opening an agent's notification, ends full screen. The bar above the screen says Connecting… until the picture arrives, then Live or the frame rate.
Two modes, switched in the bar above the screen:
| Trackpad (the default) | Direct | |
|---|---|---|
| Drag one finger | Moves the pointer, like a laptop's trackpad | Scrolls; when zoomed in, moves around the picture |
| Tap | Clicks where the pointer is | Clicks where you tap |
| Touch, hold, then drag | Drags (selects text, moves windows) | Drags from where you touched |
In both modes:
- Pinch to zoom, up to 6×. While pinching, the picture follows your fingers. Tap the zoom level (such as 2.5×) to see the whole screen again.
- Drag two fingers to scroll. The page follows your fingers, as on a phone, and a flick keeps it going.
- Tap with two fingers to right-click.
- Zoomed in on Trackpad, the picture moves along with the pointer so it never leaves the screen.
Choose how the screen is shared
Link Host 0.1.2 or later
There are three ways for the computer to share its screen. The phone app works with all three; you choose one on the computer:
link-host desktop use ffmpeg # the standard way (the default)
link-host desktop use browser # a Chromium-based browser already on the computer
link-host desktop use builtin # Link's own helper, downloaded once
link-host desktop use # show the current choice and what each one needsOr choose it while installing:
curl -fsSL https://link.docs.razin.ai/install.sh | sh -s -- --desktop builtin| FFmpeg | Browser | Built-in | |
|---|---|---|---|
| Needs on the computer | FFmpeg; on Wayland also GStreamer's PipeWire plugin | Chrome, Chromium, Edge, Brave or Vivaldi | Its helper, a 7 MB download the first time; on Wayland also PipeWire's tools (pw-link) |
| Video | H.264, or pictures when the phone can't play it | WebRTC, up to 30 frames a second | WebRTC, up to 30 frames a second |
| On Wayland | Asks to allow sharing once | Asks to allow sharing every time Desktop opens | Asks to allow sharing once |
| Linux versions | Any | Any | Ubuntu 22.04, Debian 12, Fedora 35 or newer |
- FFmpeg works everywhere Desktop does and stays the default.
- Browser suits a computer that has a browser but not FFmpeg. Link Host opens it in the background with its own profile, so your tabs and accounts aren't touched. To pick a browser, set
LINK_BROWSERto its program name. - Built-in is the smoothest. Link Host downloads its helper from the same release as itself, checks it against the release's checksums, and downloads it again after an update.
The choice takes effect the next time you open Desktop. If WebRTC can't connect, the phone falls back to the FFmpeg stream when FFmpeg is installed.
How it stays private
The screen is only shared while the Desktop tab is open, and only with that phone, inside its encrypted connection. Nothing on your network can watch it, and sharing stops when the phone disconnects. The browser and built-in ways send their video through the same encrypted connection; Link Host never opens a port or connects anywhere else for it.