# Create a Linux desktop

Debian 13 Desktop, Omarchy, and Fedora Workstation run a Linux desktop in the machine's window.

## Choose a desktop

| New Machine | Desktop | `--image` | Download |
|---|---|---|---|
| Debian 13 Desktop | Xfce on X11, with Firefox ESR | `debian-13-desktop` | 303 MB, then 331 MB of packages |
| Omarchy | Hyprland on Arch Linux | `omarchy` | 6.1 GB |
| Fedora Workstation 44 (ISO) | GNOME | `fedora-44-workstation-iso` | 1.2 GB, then packages from Fedora's mirrors |

Debian and Fedora install from the network: Debian in a few minutes, and Fedora in up to an hour on a slow mirror. Omarchy installs a minute or two after its download.

OSMates checks each download against the vendor's checksum, and later machines reuse it. For Omarchy, a volume other than the image cache's needs room for a 6.1 GB copy too.

## Create the desktop

1. Choose **File > New Machine**.
2. Select **Debian 13 Desktop**, **Omarchy**, or **Fedora Workstation 44 (ISO)**, then click **Continue**.
3. Enter a name, then click **Create**.
4. Start the machine when creation finishes.

To create and start a Debian desktop in Terminal:

```sh
osmates vm create desk --image debian-13-desktop
osmates vm start desk
```

For a second desktop with the same setup, clone the first with `osmates vm clone desk desk-2`. The clone doesn't install the desktop again.

## Sign in and out

Each desktop signs in to your account at every start. The account has no password and uses sudo without one. Your SSH keys still work.

On Debian 13 Desktop, **Log Out** and **Switch User** leave a login screen you can't pass. Shut the machine down and start it, or restart the login screen:

```sh
osmates vm exec desk -- systemctl restart lightdm
```

Omarchy signs in again after you log out.

## Turn the lock screen back on

The desktops never lock or sleep, since the account has no password. Set one with `passwd` first.

On Debian 13 Desktop, run these as root in the guest. The first removes the pin that keeps screen lockers out, and the second turns sleep back on.

```sh
rm /etc/apt/preferences.d/osmates-desktop
systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
```

On Omarchy:

1. Run `omarchy plugin enable omarchy.lock`.
2. Remove the `hl.unbind("SUPER + CTRL + L")` line from `~/.config/hypr/bindings.lua`.
3. Remove the `"system.lock"` entry from `~/.config/omarchy/extensions/omarchy-menu.jsonc`.
4. In `~/.config/omarchy/shell.json`, set `idle.lock` to the idle seconds. Press Super+Ctrl+I to turn Stay Awake off.
5. Run `sudo rm /etc/systemd/sleep.conf.d/omarchy-sleep-disabled.conf`, then the `systemctl unmask` line above with `sudo`.

## Work in Omarchy

Resize the window to change Hyprland's resolution. Omarchy starts at 2880 × 1800 with [Retina](https://osmates.com/docs/linux-graphics#draw-sharp-on-a-retina-screen) on, so text stays sharp.

Run desktop programs with `osmates vm exec desk --desktop`. Omarchy ignores the power button. Stop it from the window or with `osmates vm stop desk`, which use the guest agent.

## Let an AI agent use the desktop

AI agents read and press controls with the `screen_elements` and `element_action` tools. In Terminal, use `osmates vm elements desk` and `osmates vm act`. Some controls aren't exposed yet, as [Linux controls have no position](https://osmates.com/docs/known-issues#linux-controls-have-no-position) explains.
