On your machines
Desktops
See a machine’s screen live, next to its terminal, and use its mouse and keyboard.
Show desktop on a machine’s page (or its right-click menu) shows its screen live and sends your mouse and keyboard to it. An open desktop is listed under its machine in the sidebar and keeps streaming while you look elsewhere; close it there.
Open in window gives the desktop a window of its own, on the screen you opened it from. It stays listed under its machine, with an arrow. Click it to bring that window forward. Double-click the strip at the top of that window to zoom it.
Which machines
- A Mac. The first time, the Mac asks, on its own screen, to allow Muxin Agent under Privacy & Security › Screen Recording (to see it) and Accessibility (to control it). Muxin 0.9 and earlier asked for
muxen-agent, so after updating, the Mac may ask again. See Troubleshooting. - Linux with an X11 desktop. Wayland-only desktops can’t be shown yet.
- Windows, while the account Muxin connects as is signed in to it. See Windows.
On Windows and Linux, ⌘ works as Ctrl; on a Mac it stays ⌘. See Your keyboard.
When nobody is signed in
Muxin shows the screen of the account it connects as, so that account has to be signed in. Servers often have nobody signed in. A Remote Desktop window closed without signing out leaves no screen either.
Muxin says so right away. Then it offers the machine’s own remote desktop, which shows the sign-in screen:
- Open with Remote Desktop on Windows. It opens in Windows App on a Mac, or Remote Desktop Connection on Windows.
- Open with Screen Sharing on a Mac.
- Open with RDP or VNC on Linux, in Remmina or FreeRDP.
It’s in the machine’s right-click menu too. It goes through Muxin’s connection to the machine, so it works away from home. Nothing has to be opened in a firewall. On your computer it’s at localhost:3390 (VNC: localhost:5901), listed under Servers.
The machine needs it turned on. When it’s off, Muxin says where:
- Windows: Settings › System › Remote Desktop, or Server Manager › Local Server on Windows Server. Windows Home can’t be reached this way.
- Mac: System Settings › General › Sharing › Screen Sharing.
- Linux: xrdp, GNOME’s Remote Desktop, or a VNC server such as x11vnc.
From a terminal:
muxin desktop rdp beacon # Remote Desktop
muxin desktop vnc beacon # VNC, or Screen Sharing on a Mac
Apps in windows of their own
Apps above a machine’s desktop lists the apps open there. Pick one, and it opens on your computer in a window of its own, as if it ran here. It works with Windows, Macs, and Linux on X11.
- Nothing of Muxin’s goes around it. Drag the app’s own title bar to move the window, and double-click it to zoom.
- Click and type as usual. The app comes to the front there first, so your keys never land in another app.
- Resize either window and the other follows. When you close it here, the app goes back to its size there.
- The pointer takes the app’s shapes: a text cursor over text, a hand over links.
- Text stays sharp. Once the picture is still, it’s sent again at full quality.
Close it with ⌘W on a Mac, or Ctrl+Shift+W on Windows and Linux. The app keeps running there. If you quit the app there, its window here closes too.
It works even while other windows cover the app there. When nothing covers it, its menus and dialogs show too.
Beside a session
In an agent session, Desktop in its header puts the machine’s screen next to the terminal. Drag the divider to resize. It’s the quickest way to check what an agent did in a browser or an app without leaving it.
Show it to someone
Share the machine by link and turn its desktop on: they watch the screen from a browser or Muxin, and use it only if you let them. See Sharing by link.
Fit: a Mac’s screen, the size of yours
A MacBook’s own screen only comes in its own shape. On a wider screen it shows with bars beside it. Fit, in the bar above a Mac’s desktop, makes that screen the size of the view you’re looking at it in, as sharp as your screen. Full screen on a 5K display, it’s 2560×1440 Retina, as if the Mac were plugged into that display.
- The Mac’s windows, menu bar and Dock are laid out for your view. Its own screen shows the same, smaller.
- It follows the view. Go full screen or resize the window, and a moment later the Mac’s screen is that size.
- Each of a Mac’s screens is fitted on its own. Fit both, and go from one to the other.
- It stays on until you click Fit again. Quit Muxin or close the desktop, and the screen is fitted again when you next open it.
- A minute after you stop looking, the Mac has its own screens back.
From a terminal:
muxin desktop fit studio 2560x1440 # its main screen, 2560×1440 Retina
Size and sharpness
On your local network a desktop shows at the screen’s own size, further away at 1080p. Only the parts of the screen that change are sent, so a still screen costs nothing.
A monitor stays at its own resolution unless you change it. On Macs and Linux, the button with the sliders above the screen lists its sizes, its own first, so you can always go back. On Linux desktops that offer it, the same menu has its scale. At 200% a 4K monitor reads like 1080p and stays sharp. Right-click a monitor in the picker for every size it has.
More monitors, real and virtual
A machine with several monitors gets a picker above its desktop. Plug one in while the desktop is open, and it joins the picker. Go back to a monitor and it shows as you left it, at once, while it catches up.
On Macs and Linux, Add monitor plugs in a virtual one: pick a name and a size, and it joins the desktop to the right of the others, as if you’d plugged in a screen. Windows move onto it and the machine’s own settings see it.
- Handy on a machine with no screen, or to give an agent a monitor of its own.
- It stays until you remove it or the machine restarts.
- On Linux it takes root: when sudo wants your password, Muxin asks for it, keeps it in memory only, and sends it over its encrypted connection.
Your keyboard
Keys type what your keyboard puts on them, even when the machine uses another layout. Shortcuts stay shortcuts.
- From a Mac: Option types its characters, like
@on a German keyboard. Alt goes through when something needs it, like Alt+Tab. - To a Mac: keys go by that Mac’s own layout, so it doesn’t have to be US.
- From a Mac to Windows or Linux: ⌘ works as Ctrl, so ⌘C copies there. ⌘Tab is Alt+Tab, ⌘Q is Alt+F4, and ⌘Space is the Windows key.
- From Windows or Linux to a Mac: the Windows key is ⌘. Alt+Tab is ⌘Tab, and Alt+F4 is ⌘Q.
Your computer’s own shortcuts
Your computer keeps some shortcuts for itself: ⌘Tab and Mission Control on a Mac, Alt+Tab and the Windows key on Windows, the window manager’s on Linux. While a machine’s desktop has the keyboard, Muxin sends them to the machine instead. Muxin’s own shortcuts go there too, like ⌘W.
- The bar above the screen has a switch for it. It says Send ⌘Tab to Beacon (with your machine’s name) while they’re yours, and ⌘Tab goes to Beacon while they go there. Click it to change that. On Windows and Linux it says Alt+Tab.
- Press Ctrl+Alt by themselves (⌃⌥ on a Mac) to get them back. Press them again to send them to the machine again.
- They’re yours again when you click outside the desktop or switch apps.
- Settings › General › Desktops turns it off.
On a Mac, Muxin needs your OK first. Click the switch and macOS asks to allow Muxin under Privacy & Security › Accessibility. On Linux with Wayland, your desktop may ask too.
It’s for a machine’s whole desktop, not for an app in a window of its own. And no program can take Ctrl+Alt+Del or Win+L on Windows, or ⌘⌥Esc on a Mac.
Send a shortcut with a click
Keys in the bar above the screen sends a combination for you. It’s there for the ones your keyboard can’t send.
- A Mac: previous and next Space, Mission Control, an app’s windows, the app switcher, Spotlight and Force Quit.
- Windows: Start, the window switcher, Task view, Show desktop, Task Manager and Close window. Windows takes Ctrl+Alt+Del and Win+L from its own keyboard only.
- Linux: Super, the window switcher, Close window and Ctrl+Alt+Del.
The clipboard
Text you copy on your Mac can be pasted on a Linux or Mac desktop, and what you copy there comes back. It’s off until you turn it on, in Settings › General › Clipboard. Passwords copied from a password manager aren’t shared. See Files and the clipboard.
Making it smooth
A desktop works over ssh, but it’s smoother with a direct connection. The bar above the screen says how it travels: direct or over ssh, and on which network (your local network, Tailscale or the internet).
On your local network, pair the machine (Connect directly on its page). Away from home, Tailscale’s peer-to-peer path is faster than its relay; the Connection card says which one you’re on.
For your agents
Agents can look at a screen and use it too: desktop_screenshot returns an image, and desktop_input clicks, types and scrolls, in that image’s pixels. It’s the real screen, so they should only do it when you ask.
A key can be one of the machine’s own shortcuts: ctrl+right goes to a Mac’s next Space, and super opens Start on Windows.
desktop_windows lists the apps’ windows. Pass window:<id> as the display to see and use just one, even while it’s covered.
muxin desktop shot beacon -o screen.jpg
muxin desktop windows beacon # its apps' windows
muxin desktop shot beacon --display window:58720260
muxin desktop input beacon '[{"type":"click","x":100,"y":200},{"type":"text","text":"hello"}]'
muxin desktop add beacon --size 2560x1440 # a virtual monitor
muxin desktop fit studio 2560x1440 # a Mac's screen, that size
desktop_fit_display does what Fit does, for a size you give it.