Mobile on the FlyEncrypted cloud relay

← Downloads · All guides

Install Mobile on the Fly: Linux (any distribution with systemd)

Mobile on the Fly automatically copies the photos and videos from your phones to this Linux computer, over the local network, without going through the Internet. It installs in your account, without sudo, and keeps itself up to date. Allow 10 minutes.

1. Before you start

2. Install Mobile on the Fly

  1. Open a terminal with your usual account (not root, not sudo: the photos belong to you).
  2. Type:
    curl -fsSL https://mobileonthefly.com/install.sh | sh
    The script detects the processor, downloads Mobile on the Fly, checks its fingerprint, installs it in ~/.local/bin/photorelay and creates a systemd user service.
  3. If the script shows "To start Mobile on the Fly with the computer, even with nobody logged in: sudo loginctl enable-linger <you>", type this command (only once, administrator password). Otherwise Mobile on the Fly only runs while you are logged in.
  4. The script ends with "Mobile on the Fly is installed" and gives the settings command:
    photorelay settings
    (or ~/.local/bin/photorelay settings if ~/.local/bin is not in your PATH). The browser opens on the settings.

No Internet access on this machine: download the PhotoRelay-linux-amd64.tar.gz archive (or arm64) from the Downloads page, extract it (tar xzf PhotoRelay-linux-amd64.tar.gz) and run sh PhotoRelay/install.sh.

Firewall

If a firewall is active, allow from the local network TCP port 47820 (photos), UDP 5353 (discovery, mDNS) and, for the settings from another device, TCP 47822:

# ufw (Ubuntu, Mint…)
sudo ufw allow from 192.168.0.0/16 to any port 47820 proto tcp
sudo ufw allow from 192.168.0.0/16 to any port 47822 proto tcp
sudo ufw allow from 192.168.0.0/16 to any port 5353 proto udp

# firewalld (Fedora, openSUSE…)
sudo firewall-cmd --permanent --add-port=47820/tcp --add-port=47822/tcp --add-service=mdns
sudo firewall-cmd --reload

Adjust 192.168.0.0/16 if your network uses other addresses (for example 10.0.0.0/8).

3. Link the phone (pairing)

  1. In the settings (photorelay settings), click Pair a device: a QR code appears. From the command line: photorelay pair.
  2. On the phone (Android guide), Mobile on the Fly app › Scan the QR code, check the device name, point at the QR code.
  3. The phone shows "Paired with …".
Pairing page
The QR code can only be used once and for 10 minutes.

4. Check that everything works

  1. Take a photo with the phone connected to the Wi-Fi, then Send now: Delivered goes up by 1.
  2. The photo is in ~/Pictures/Mobile on the Fly/<phone>/Camera/2026/2026-11-09/ (or ~/Images/…); earlier installations: PhotoRelay folder.
  3. photorelay status sums up the state: service, folder, devices, recovery key.
Settings home page
Home tab of the settings.

5. Useful settings

6. Common problems and solutions

The phone says "computer not found"
  1. Is the computer on, and the phone on the same Wi-Fi (not the guest Wi-Fi)?
  2. Is the service running? systemctl --user status photorelay; otherwise photorelay start.
  3. Firewall: see the commands above.
  4. VPN running on the computer or the phone, "client isolation" option on the Wi-Fi access point: turn them off to try.
"run the installer without sudo"

Run the installation command again from your own account, without sudo.

"systemd is required"

Mobile on the Fly needs systemd to run as a service. Distributions without systemd (Alpine, Devuan…) are not supported.

"unsupported processor"

Only x86_64 and aarch64 are supported. A Raspberry Pi must use a 64-bit system (Raspberry Pi OS 64-bit).

"photorelay: command not found"

Use the full path ~/.local/bin/photorelay, or add ~/.local/bin to the PATH (closing and reopening the terminal is often enough).

Mobile on the Fly stops when I log out

Type sudo loginctl enable-linger $USER once: Mobile on the Fly will run as soon as the computer starts.

"Folder unavailable (disk unplugged?)"

The disk of the photos folder is not mounted. Nothing is lost: the phones keep the photos. Mount the disk.

7. Updates

Mobile on the Fly updates itself (signed and verified update). photorelay version shows the installed version.

8. Uninstall

photorelay uninstall          # keeps keys and pairings (reinstall without pairing again)
photorelay uninstall --purge  # also erases keys, settings and pairings
rm ~/.local/bin/photorelay

The photos are never deleted.

9. Still stuck? Contact support

Write to support@unveiltech.com and include: