<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="https://amrosia.dev/feed_style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <tabi:metadata xmlns:tabi="https://github.com/welpo/tabi">
        <tabi:base_url>https:&#x2F;&#x2F;amrosia.dev</tabi:base_url>
        <tabi:separator>
            •
        </tabi:separator>
        <tabi:about_feeds>This is a web feed, also known as an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It&#x27;s free.</tabi:about_feeds>
        <tabi:visit_the_site>Visit website</tabi:visit_the_site>
        <tabi:recent_posts>Recent posts</tabi:recent_posts>
        <tabi:last_updated_on>Updated on $DATE</tabi:last_updated_on>
        <tabi:default_theme>dark</tabi:default_theme>
        <tabi:post_listing_date>date</tabi:post_listing_date>
        <tabi:current_section>remote access</tabi:current_section>
    </tabi:metadata><link rel="extra-stylesheet" href="https://amrosia.dev/skins/teal.css?h=bd19e558a52d678a50de" /><title>Segfault diaries - remote access</title>
        <subtitle>Welcome to my blog!</subtitle>
    <link href="https://amrosia.dev/tags/remote-access/atom.xml" rel="self" type="application/atom+xml"/>
    <link href="https://amrosia.dev/tags/remote-access/" rel="alternate" type="text/html"/>
    <generator uri="https://www.getzola.org/">Zola</generator><updated>2026-11-20T00:00:00+00:00</updated><id>https://amrosia.dev/tags/remote-access/atom.xml</id><entry xml:lang="en">
        <title>Replacing a laptop with a rooted Android tablet</title>
        <published>2026-11-20T00:00:00+00:00</published>
        <updated>2026-11-20T00:00:00+00:00</updated>
        <author>
            <name>amrosia</name>
        </author>
        <link rel="alternate" href="https://amrosia.dev/blog/replacing-a-laptop-with-a-rooted-android-tablet/" type="text/html"/>
        <id>https://amrosia.dev/blog/replacing-a-laptop-with-a-rooted-android-tablet/</id>
        
            <content type="html">&lt;p&gt;An Android tablet can replace the laptop you carry without replacing the workstation that does the work. Use AVNC for the desktop and Herdr Mobile for agents and terminals; the server keeps working when the tablet disconnects or switches off.&lt;&#x2F;p&gt;
&lt;span id=&quot;continue-reading&quot;&gt;&lt;&#x2F;span&gt;&lt;h2 id=&quot;keep-the-workstation-replace-what-you-carry&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#keep-the-workstation-replace-what-you-carry&quot; aria-label=&quot;Anchor link for: keep-the-workstation-replace-what-you-carry&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Keep the workstation, replace what you carry&lt;&#x2F;h2&gt;
&lt;p&gt;The tablet does not need a local Linux installation, a container full of development tools, or enough RAM to build the project. Those stay on a Linux workstation or VM. Android supplies the display, keyboard, mouse and network connection.&lt;&#x2F;p&gt;
&lt;p&gt;There are two access paths:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;AVNC:&lt;&#x2F;strong&gt; receive the desktop image and send keyboard and pointer events back.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;Herdr Mobile:&lt;&#x2F;strong&gt; interact with server-side agents and terminal sessions over SSH, without streaming an entire desktop.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;&lt;img src=&quot;&#x2F;img&#x2F;rooted-tablet&#x2F;architecture-qrexec.gif&quot; alt=&quot;Animated Qubes architecture: AVNC connects over Tailscale to rc-forwarder’s VNC port, then qrexec carries the stream to dom0. Herdr Mobile uses a separate forwarded SSH connection to the work qube.&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;p&gt;In the Qubes setup, Tailscale runs in a networked qube called &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;. Its VNC listener forwards through qrexec to dom0; a separate SSH forward reaches the qube running Herdr. &lt;strong&gt;VNC does not use an SSH tunnel.&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Tailscale supplies the private network to &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;, not an application server that runs the work. It can connect peers directly or carry their encrypted traffic through a relay. Neither case moves the desktop or agents onto the tablet.&lt;&#x2F;p&gt;
&lt;p&gt;The workstation must remain powered on and awake. Disconnecting a client is not the same as logging out of the desktop, stopping the Herdr server, or suspending its host. A server reboot does not preserve arbitrary running processes.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-you-need&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#what-you-need&quot; aria-label=&quot;Anchor link for: what-you-need&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
What you need&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;An Android tablet, a physical keyboard, and a mouse or usable trackpad. A stand matters more than another benchmark score.&lt;&#x2F;li&gt;
&lt;li&gt;A workstation or VM with the applications and coding agents you intend to use. The reference setup uses Qubes: the X11 desktop is in dom0, and Herdr runs in a work qube.&lt;&#x2F;li&gt;
&lt;li&gt;Tailscale on Android and the networked endpoint (&lt;code&gt;rc-forwarder&lt;&#x2F;code&gt; in Qubes), or an equivalent private network.&lt;&#x2F;li&gt;
&lt;li&gt;An SSH server, AVNC on Android, and Herdr plus Herdr Mobile for agent work.&lt;&#x2F;li&gt;
&lt;li&gt;For the Lenovo keyboard changes below: a rootable device and a recovery method for its exact firmware.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The reference tablet is a &lt;strong&gt;Lenovo TB321FU running Android 16 with ZUI&lt;&#x2F;strong&gt;. The remote-access arrangement is general; BetterZUIKey and the keyboard-policy changes are specific to supported Lenovo firmware. Root is not required for Tailscale, AVNC or Herdr Mobile themselves.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;root-and-prepare-the-tablet&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#root-and-prepare-the-tablet&quot; aria-label=&quot;Anchor link for: root-and-prepare-the-tablet&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Root and prepare the tablet&lt;&#x2F;h2&gt;
&lt;p&gt;Root is useful here because the operating system intercepts shortcuts before the remote client can receive them. It is not a way to give the tablet the workstation’s computing power.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;use-a-device-specific-rooting-procedure&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#use-a-device-specific-rooting-procedure&quot; aria-label=&quot;Anchor link for: use-a-device-specific-rooting-procedure&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Use a device-specific rooting procedure&lt;&#x2F;h3&gt;
&lt;p&gt;Back up the tablet before unlocking its bootloader. Unlocking commonly wipes user data; unsupported images or a wrong partition can leave it unable to boot. Keep the matching stock firmware and the device’s recovery instructions available on another machine.&lt;&#x2F;p&gt;
&lt;p&gt;Follow the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;topjohnwu.github.io&#x2F;Magisk&#x2F;install.html&quot;&gt;official Magisk installation instructions&lt;&#x2F;a&gt;, together with bootloader-unlock instructions for the exact model and firmware:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Confirm that the bootloader can be unlocked and that you have a recovery path.&lt;&#x2F;li&gt;
&lt;li&gt;Obtain the stock firmware matching the installed build.&lt;&#x2F;li&gt;
&lt;li&gt;Determine which image contains the ramdisk: this may be &lt;code&gt;boot.img&lt;&#x2F;code&gt;, &lt;code&gt;init_boot.img&lt;&#x2F;code&gt;, &lt;code&gt;vendor_boot.img&lt;&#x2F;code&gt;, or a device-specific recovery arrangement.&lt;&#x2F;li&gt;
&lt;li&gt;Patch the appropriate image &lt;strong&gt;in Magisk on the tablet that will use it&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;Flash it using that device’s documented procedure, reboot, and verify Magisk is installed.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Do not flash somebody else’s patched image, guess the target partition, or relock the bootloader around modified images. The tablet used for this setup was already rooted; these are prerequisites, not a separately validated TB321FU flashing recipe.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;grant-root-explicitly&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#grant-root-explicitly&quot; aria-label=&quot;Anchor link for: grant-root-explicitly&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Grant root explicitly&lt;&#x2F;h3&gt;
&lt;p&gt;With &lt;strong&gt;Magisk 31.1&lt;&#x2F;strong&gt;, an unapproved &lt;code&gt;su&lt;&#x2F;code&gt; request can return &lt;code&gt;Permission denied&lt;&#x2F;code&gt; without displaying a prompt. That is &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;topjohnwu&#x2F;Magisk&#x2F;releases&#x2F;tag&#x2F;v31.1&quot;&gt;intentional&lt;&#x2F;a&gt;: applications must be granted access ahead of time.&lt;&#x2F;p&gt;
&lt;p&gt;For Termux:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open &lt;strong&gt;Magisk → Superuser → +&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Grant access to &lt;strong&gt;Termux&lt;&#x2F;strong&gt; (&lt;code&gt;com.termux&lt;&#x2F;code&gt;).&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;In Termux, check:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;su -c id
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;The output should include &lt;code&gt;uid=0(root)&lt;&#x2F;code&gt;. ADB’s shell has a separate identity and needs its own grant if you want &lt;code&gt;adb shell su&lt;&#x2F;code&gt; to work. Grant only the access you need; remote desktop and SSH clients do not need blanket root permission.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;stop-android-from-stealing-desktop-shortcuts&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#stop-android-from-stealing-desktop-shortcuts&quot; aria-label=&quot;Anchor link for: stop-android-from-stealing-desktop-shortcuts&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Stop Android from stealing desktop shortcuts&lt;&#x2F;h2&gt;
&lt;p&gt;A remote desktop is not much use if &lt;code&gt;Alt+Tab&lt;&#x2F;code&gt; switches Android applications or holding Win opens the tablet’s assistant. Disabling a shortcut in ZUI’s settings is not always enough: the system may still consume the event instead of passing it to the foreground application.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;CommandPrompt-Wang&#x2F;BetterZUIKey&quot;&gt;BetterZUIKey&lt;&#x2F;a&gt; changes that keyboard-policy chain on supported Lenovo firmware. The version used here requires &lt;strong&gt;libxposed API 102&lt;&#x2F;strong&gt;, not just any Xposed-compatible framework or an installed APK:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;Magisk → Zygisk → Vector with API 102 → BetterZUIKey
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Zygisk loads modules into Android processes. &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;JingMatrix&#x2F;Vector&quot;&gt;Vector&lt;&#x2F;a&gt; supplies the hooks; BetterZUIKey uses them to change shortcut handling. The old original LSPosed release is not a substitute for a framework providing the required API.&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Enable &lt;strong&gt;Zygisk&lt;&#x2F;strong&gt; in Magisk and reboot.&lt;&#x2F;li&gt;
&lt;li&gt;Choose a &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;JingMatrix&#x2F;Vector&#x2F;releases&quot;&gt;Vector build&lt;&#x2F;a&gt; with API 102 support and compatibility with your Android version. &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;JingMatrix&#x2F;Vector&#x2F;releases&#x2F;tag&#x2F;v2.2&quot;&gt;Vector 2.2&lt;&#x2F;a&gt; explicitly introduces API 102. Install its module ZIP through &lt;strong&gt;Magisk → Modules → Install from storage&lt;&#x2F;strong&gt;, then reboot.&lt;&#x2F;li&gt;
&lt;li&gt;Download the &lt;strong&gt;BetterZUIKey APK&lt;&#x2F;strong&gt; from its &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;CommandPrompt-Wang&#x2F;BetterZUIKey&#x2F;releases&quot;&gt;official Releases page&lt;&#x2F;a&gt; and install it on Android.&lt;&#x2F;li&gt;
&lt;li&gt;Open Vector’s manager and enable BetterZUIKey for its recommended &lt;strong&gt;System Framework&lt;&#x2F;strong&gt; scope (&lt;code&gt;android&lt;&#x2F;code&gt; &#x2F; &lt;code&gt;system_server&lt;&#x2F;code&gt;).&lt;&#x2F;li&gt;
&lt;li&gt;Reboot and check that BetterZUIKey reports &lt;strong&gt;Active&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;Create application-specific templates for AVNC and the terminal client rather than changing every shortcut globally.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;These modules modify a central Android system process. Use versions compatible with the installed firmware and know how to disable a bad module before experimenting. BetterZUIKey can work through the framework without a separate blanket Superuser grant to its own app.&lt;&#x2F;p&gt;
&lt;p&gt;For the shortcuts needed remotely, select &lt;strong&gt;pass-through&lt;&#x2F;strong&gt; rather than &lt;strong&gt;ignore&lt;&#x2F;strong&gt;. “Ignore” discards the event; it does not deliver it to the desktop. Keep a reliable local way to leave the remote application.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;preserve-held-modifiers&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#preserve-held-modifiers&quot; aria-label=&quot;Anchor link for: preserve-held-modifiers&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Preserve held modifiers&lt;&#x2F;h3&gt;
&lt;p&gt;A Win tap sent after key release is not a held Super key. Window-manager shortcuts need the remote desktop to see the modifier go down, another key arrive while it is held, and the modifier come back up.&lt;&#x2F;p&gt;
&lt;p&gt;The AVNC-specific mapping configured on the reference tablet was:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;Physical Win down → Right Alt down → AVNC sends Super down
Physical Win up   → Right Alt up   → AVNC sends Super up
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;To reproduce that arrangement, use BetterZUIKey’s application template to map Win to &lt;strong&gt;Right Alt&lt;&#x2F;strong&gt; while AVNC is foreground, and enable AVNC’s &lt;strong&gt;Right Alt → Super&lt;&#x2F;strong&gt; mapping under its input&#x2F;key-mapping settings. Disable the tablet’s Win long-press action in that same template. Do not substitute a “send shortcut on release” action for a held-key mapping.&lt;&#x2F;p&gt;
&lt;p&gt;This uses up Right Alt inside AVNC. If you need it for AltGr or another desktop binding, choose a different arrangement instead. The mapping was configured on the reference tablet, but I have not verified the complete physical held-key sequence. Test it with your own keyboard before relying on it.&lt;&#x2F;p&gt;
&lt;p&gt;Check plain typing, &lt;code&gt;Ctrl+C&lt;&#x2F;code&gt;, &lt;code&gt;Ctrl+V&lt;&#x2F;code&gt;, &lt;code&gt;Alt+Tab&lt;&#x2F;code&gt;, Super combinations, and key release in a harmless editor or a disposable terminal. A working mouse says nothing about the keyboard path. Do not test uncertain Enter or shortcut mappings in a live agent prompt.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;make-the-server-reachable&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#make-the-server-reachable&quot; aria-label=&quot;Anchor link for: make-the-server-reachable&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Make the server reachable&lt;&#x2F;h2&gt;
&lt;p&gt;Follow the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;tailscale.com&#x2F;kb&#x2F;1017&#x2F;install&quot;&gt;Tailscale installation instructions&lt;&#x2F;a&gt; on the tablet and the networked endpoint, sign both into the intended tailnet, and connect the Android VPN. In Qubes, the endpoint is &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;, &lt;strong&gt;not dom0&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;In &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;, with Tailscale installed:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;sudo tailscale up
tailscale ip -4
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Record its Tailscale address or MagicDNS name. AVNC connects to that address on port &lt;code&gt;5901&lt;&#x2F;code&gt;. Herdr Mobile uses a separate forwarded SSH port that reaches the work qube. Neither requires giving dom0 a normal network connection or installing an SSH server there.&lt;&#x2F;p&gt;
&lt;p&gt;Restrict access with the forwarding qube’s firewall and tailnet policy. Do not add a public router port-forward just to reach this setup. Tailscale membership alone is not a substitute for reviewing who may connect.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;create-the-separate-ssh-forward-for-herdr&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#create-the-separate-ssh-forward-for-herdr&quot; aria-label=&quot;Anchor link for: create-the-separate-ssh-forward-for-herdr&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Create the separate SSH forward for Herdr&lt;&#x2F;h3&gt;
&lt;p&gt;Install and enable OpenSSH in the qube that runs Herdr. The example below calls that qube &lt;code&gt;work&lt;&#x2F;code&gt; and uses a dedicated SSH listener on &lt;strong&gt;127.0.0.1:22222&lt;&#x2F;strong&gt; inside it. Configure the listener using your distribution’s SSH service mechanism, and check it with &lt;code&gt;ss -lnt&lt;&#x2F;code&gt;. If SSH already runs on another port, use that backend port in the qrexec policy and service argument instead; do not replace a working SSH setup just to match this example.&lt;&#x2F;p&gt;
&lt;p&gt;The VNC forward does &lt;strong&gt;not&lt;&#x2F;strong&gt; create an SSH forward. If your gateway already provides a working SSH endpoint, keep it and skip the creation steps below.&lt;&#x2F;p&gt;
&lt;p&gt;In dom0, add a narrowly scoped rule to a qrexec policy file under &lt;code&gt;&#x2F;etc&#x2F;qubes&#x2F;policy.d&#x2F;&lt;&#x2F;code&gt;, such as &lt;code&gt;30-tablet-ssh.policy&lt;&#x2F;code&gt;:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;qubes.ConnectTCP +22222 rc-forwarder work allow autostart=no
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Replace &lt;code&gt;work&lt;&#x2F;code&gt; with the actual destination qube name. This rule allows access to its SSH listener, not to dom0, and still requires normal SSH authentication. With &lt;code&gt;autostart=no&lt;&#x2F;code&gt;, start the destination qube before connecting.&lt;&#x2F;p&gt;
&lt;p&gt;Install &lt;code&gt;socat&lt;&#x2F;code&gt; in &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;. Restrict port &lt;code&gt;22222&lt;&#x2F;code&gt; with its firewall and tailnet policy before starting the listener. As the normal user in that forwarding qube, run:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;TS_IP=&amp;quot;$(tailscale ip -4)&amp;quot;
socat &amp;quot;TCP4-LISTEN:22222,bind=${TS_IP},reuseaddr,fork&amp;quot; \
  &amp;quot;EXEC:&#x2F;usr&#x2F;bin&#x2F;qrexec-client-vm work qubes.ConnectTCP+22222&amp;quot;
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This binds the gateway’s listener to its Tailscale IPv4 address and forwards through qrexec to the work qube’s local SSH port. The &lt;code&gt;TCP4-LISTEN&lt;&#x2F;code&gt; port is the &lt;strong&gt;client-facing&lt;&#x2F;strong&gt; port; &lt;code&gt;qubes.ConnectTCP+22222&lt;&#x2F;code&gt; and the policy select the &lt;strong&gt;backend&lt;&#x2F;strong&gt; port. Persist the listener and firewall through the forwarding qube’s service&#x2F;startup configuration, starting the listener after its Tailscale address is available. Do not leave the permanent forward dependent on an open terminal.&lt;&#x2F;p&gt;
&lt;p&gt;Before the first client connection, obtain the SSH host-key fingerprint through an existing trusted session or console &lt;strong&gt;in the destination work qube&lt;&#x2F;strong&gt;, not in the forwarding qube:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;# Example for an OpenSSH Ed25519 host key; use the listener&amp;#39;s actual key file.
ssh-keygen -lf &#x2F;etc&#x2F;ssh&#x2F;ssh_host_ed25519_key.pub
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Verify the endpoint from a trusted client, comparing the offered host key with that independently obtained fingerprint:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;ssh -o StrictHostKeyChecking=ask -p 22222 youruser@rc-forwarder
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Substitute the gateway’s actual tailnet address and forwarded port. Compare the same host-key algorithm on both ends; a dedicated SSH daemon may use a key outside &lt;code&gt;&#x2F;etc&#x2F;ssh&#x2F;&lt;&#x2F;code&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;This is ordinary &lt;strong&gt;OpenSSH over Tailscale&lt;&#x2F;strong&gt;. Select &lt;strong&gt;Private key&lt;&#x2F;strong&gt; or &lt;strong&gt;Password&lt;&#x2F;strong&gt; in Herdr Mobile, not its Tailscale authentication option. &lt;strong&gt;Tailscale SSH&lt;&#x2F;strong&gt; is a separate feature that must be offered by the actual SSH endpoint; a Tailscale address alone does not enable it. This SSH connection is for Herdr; AVNC’s VNC connection is independent of it.&lt;&#x2F;p&gt;
&lt;p&gt;On a non-Qubes Linux host, Tailscale can run on the host itself and there is no qrexec step. For direct VNC access, configure the server to listen only on its private&#x2F;VPN address, with access restricted to authorized clients. The loopback listener and qrexec forwarding steps below are specific to Qubes.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;access-the-desktop-with-avnc&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#access-the-desktop-with-avnc&quot; aria-label=&quot;Anchor link for: access-the-desktop-with-avnc&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Access the desktop with AVNC&lt;&#x2F;h2&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;gujjwal00&#x2F;avnc&quot;&gt;AVNC&lt;&#x2F;a&gt; connects directly to &lt;code&gt;rc-forwarder:5901&lt;&#x2F;code&gt; over Tailscale. The forwarding qube carries that TCP stream through &lt;code&gt;qubes.ConnectTCP&lt;&#x2F;code&gt; to the loopback-only VNC server on &lt;strong&gt;dom0:5901&lt;&#x2F;strong&gt;. AVNC’s built-in SSH tunnel stays &lt;strong&gt;disabled&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;img src=&quot;&#x2F;img&#x2F;rooted-tablet&#x2F;vnc-over-qrexec.gif&quot; alt=&quot;Animated VNC path: AVNC connects over Tailscale to rc-forwarder on port 5901. qubes.ConnectTCP carries the stream through qrexec to dom0’s loopback VNC server on port 5901 and its existing desktop. Screen updates return along the same path; no SSH tunnel is involved.&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;Tablet &#x2F; AVNC
    │ VNC over Tailscale
    ▼
rc-forwarder:5901
    │ qrexec &#x2F; qubes.ConnectTCP
    ▼
dom0:127.0.0.1:5901 → existing X11 desktop
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The loopback address belongs to dom0. It is the &lt;strong&gt;backend&lt;&#x2F;strong&gt; destination reached by qrexec, not the address to enter in AVNC.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;share-an-existing-x11-desktop&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#share-an-existing-x11-desktop&quot; aria-label=&quot;Anchor link for: share-an-existing-x11-desktop&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Share an existing X11 desktop&lt;&#x2F;h3&gt;
&lt;p&gt;Install TigerVNC’s server tools using the desktop host’s supported package-installation method. In Qubes, use the dom0 package-management mechanism rather than giving dom0 Internet access. From a terminal &lt;strong&gt;inside dom0’s graphical session&lt;&#x2F;strong&gt;, set a VNC password and start &lt;code&gt;x0vncserver&lt;&#x2F;code&gt;:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;mkdir -p &amp;quot;$HOME&#x2F;.config&#x2F;tigervnc&amp;quot;
vncpasswd &amp;quot;$HOME&#x2F;.config&#x2F;tigervnc&#x2F;passwd&amp;quot;

x0vncserver \
  -display &amp;quot;$DISPLAY&amp;quot; \
  -localhost \
  -rfbport 5901 \
  -SecurityTypes VncAuth \
  -PasswordFile &amp;quot;$HOME&#x2F;.config&#x2F;tigervnc&#x2F;passwd&amp;quot;
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This shares the current X display; it does not create a new desktop for each connection. Check that the listener is restricted to loopback:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;ss -lnt &amp;#39;( sport = :5901 )&amp;#39;
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Expect loopback addresses such as &lt;code&gt;127.0.0.1&lt;&#x2F;code&gt; or &lt;code&gt;::1&lt;&#x2F;code&gt;, not &lt;code&gt;0.0.0.0&lt;&#x2F;code&gt; or &lt;code&gt;[::]&lt;&#x2F;code&gt;. Keep this process running while testing. Once it works, arrange startup through the desktop’s autostart or graphical-session service so it receives the correct display and authentication environment.&lt;&#x2F;p&gt;
&lt;p&gt;This is an &lt;strong&gt;X11&lt;&#x2F;strong&gt; example. On Wayland, use a remote-desktop server supported by the compositor, or a deliberately configured X11 session. Do not assume x0vncserver can capture a Wayland desktop. A headless host also needs a graphical session or virtual-display setup first.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;forward-through-qrexec-not-ssh&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#forward-through-qrexec-not-ssh&quot; aria-label=&quot;Anchor link for: forward-through-qrexec-not-ssh&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Forward through qrexec, not SSH&lt;&#x2F;h3&gt;
&lt;p&gt;In dom0’s qrexec policy, allow only the intended source qube and destination port:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;qubes.ConnectTCP +5901 rc-forwarder @adminvm allow
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Before starting the listener, restrict the forwarding qube’s port &lt;code&gt;5901&lt;&#x2F;code&gt; to authorized Tailscale access. The stock &lt;code&gt;qvm-connect-tcp&lt;&#x2F;code&gt; helper can bind &lt;code&gt;0.0.0.0&lt;&#x2F;code&gt;; its listener is not automatically VPN-only. Check both firewall and tailnet rules, and verify that non-VPN access is blocked.&lt;&#x2F;p&gt;
&lt;p&gt;For a new forward, run this &lt;strong&gt;as the normal user in &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;, not in dom0. Do not start another copy if a listener already exists:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;qvm-connect-tcp 5901:dom0:5901
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Persist the forward and its firewall restrictions through the forwarding qube’s boot configuration. The &lt;a href=&quot;https:&#x2F;&#x2F;amrosia.dev&#x2F;blog&#x2F;the-cost-of-isolating-the-qubes-desktop&#x2F;#the-simpler-remote-access-compromise&quot;&gt;Qubes remote-access discussion&lt;&#x2F;a&gt; covers the boundary and its tradeoffs; this is not a reason to allow arbitrary ports into dom0.&lt;&#x2F;p&gt;
&lt;p&gt;Classic VNC authentication uses only the first eight password characters and does not encrypt the desktop stream. &lt;strong&gt;Tailscale encryption ends at &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;.&lt;&#x2F;strong&gt; qrexec crosses the Qubes boundary, but does not make the VNC stream end-to-end encrypted against the forwarding qube. That qube is a trusted relay and can access the stream. If that trust is unacceptable, use an authenticated end-to-end VNC security mode supported by both viewer and server, with server-identity validation.&lt;&#x2F;p&gt;
&lt;p&gt;Remote desktop access to dom0 also carries the desktop user’s administrative authority, and a vulnerability in the VNC server can affect the host. Keep its listener on loopback, narrowly scope the qrexec policy, and do not expose the forwarding listener publicly.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;create-the-avnc-connection&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#create-the-avnc-connection&quot; aria-label=&quot;Anchor link for: create-the-avnc-connection&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Create the AVNC connection&lt;&#x2F;h3&gt;
&lt;p&gt;Install AVNC from its official release or its linked app-store distribution, then add a connection with:&lt;&#x2F;p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Setting&lt;&#x2F;th&gt;&lt;th&gt;Value&lt;&#x2F;th&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Connection name&lt;&#x2F;td&gt;&lt;td&gt;Any useful label&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;VNC destination&lt;&#x2F;td&gt;&lt;td&gt;&lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;’s Tailscale address or MagicDNS name&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;VNC port&lt;&#x2F;td&gt;&lt;td&gt;&lt;code&gt;5901&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;VNC authentication&lt;&#x2F;td&gt;&lt;td&gt;The password set with &lt;code&gt;vncpasswd&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;SSH tunnel&lt;&#x2F;td&gt;&lt;td&gt;&lt;strong&gt;Disabled&lt;&#x2F;strong&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;p&gt;There are no SSH host, user or key fields to configure for this VNC path. If AVNC cannot connect, check Tailscale reachability, the forwarding listener and firewall, the qrexec policy, and dom0’s local VNC listener—in that order. If it reaches the server but authentication fails, check the VNC password.&lt;&#x2F;p&gt;
&lt;p&gt;Start with fit-to-screen scaling. Increase the desktop’s font or UI scaling if fitting it makes text unreadable. Select the pointer mode that suits your mouse or trackpad, then test scrolling, right-click, dragging and the keyboard mappings.&lt;&#x2F;p&gt;
&lt;p&gt;Disconnecting AVNC should leave applications running. Locking the shared desktop can lock what AVNC sees too; disconnecting is not itself a physical lock. Test the intended locking behaviour while you still have local access.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;connect-herdr-mobile-to-the-server&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#connect-herdr-mobile-to-the-server&quot; aria-label=&quot;Anchor link for: connect-herdr-mobile-to-the-server&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Connect Herdr Mobile to the server&lt;&#x2F;h2&gt;
&lt;p&gt;For agent work, a mobile interface is often more useful than a scaled-down desktop. I developed a terminal-focused fork of &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;tuan3w&#x2F;herdr-mobile&quot;&gt;Herdr Mobile&lt;&#x2F;a&gt; for this workflow. &lt;strong&gt;The instructions below use the publicly available upstream app&lt;&#x2F;strong&gt;; the local fork is not required. Use AVNC when you need a full interactive desktop terminal.&lt;&#x2F;p&gt;
&lt;p&gt;Herdr runs on the server. The Android app authenticates over SSH and reaches Herdr through that user’s local socket. You do not need to expose a separate Herdr API port.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;img src=&quot;&#x2F;img&#x2F;rooted-tablet&#x2F;herdr-continuity.gif&quot; alt=&quot;Animated Herdr path: Herdr Mobile connects over SSH to a per-user bridge and the server’s local Herdr socket. The tablet disconnects and its SSH session ends, but the Herdr server and agents keep running. Reconnecting returns to the same panes.&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;h3 id=&quot;prepare-the-server&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#prepare-the-server&quot; aria-label=&quot;Anchor link for: prepare-the-server&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Prepare the server&lt;&#x2F;h3&gt;
&lt;p&gt;Use the Linux account that will own the projects and agent processes, not root. Install Python 3, the desired agent CLI, and &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;herdr.dev&#x2F;tui&#x2F;docs&#x2F;install&#x2F;&quot;&gt;Herdr&lt;&#x2F;a&gt;. For Herdr’s installer, download and inspect the script before running it:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;curl -fsSLo &#x2F;tmp&#x2F;herdr-install.sh https:&#x2F;&#x2F;herdr.dev&#x2F;install.sh
less &#x2F;tmp&#x2F;herdr-install.sh
sh &#x2F;tmp&#x2F;herdr-install.sh
export PATH=&amp;quot;$HOME&#x2F;.local&#x2F;bin:$PATH&amp;quot;
herdr --version
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Keep Herdr running independently of the tablet’s SSH connection. On a new Linux installation with systemd, a user service is one option. Create &lt;code&gt;~&#x2F;.config&#x2F;systemd&#x2F;user&#x2F;herdr.service&lt;&#x2F;code&gt;, adjusting the executable path if the installer placed it elsewhere:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;ini&quot;&gt;[Unit]
Description=Herdr server

[Service]
ExecStart=%h&#x2F;.local&#x2F;bin&#x2F;herdr server
Restart=on-failure
RestartSec=5

[Install]
WantedBy=default.target
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Then, as that user:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;systemctl --user daemon-reload
systemctl --user enable --now herdr.service
systemctl --user status herdr.service
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;If the server must run without a login session, an administrator can enable lingering for that account:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;sudo loginctl enable-linger youruser
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Make sure Herdr, Python and agent executables are available in the environment used to launch the work. If you already have a running Herdr server, keep its existing service arrangement; do not start a second manager or restart active agents just to follow this example.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;add-the-server-in-the-app&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#add-the-server-in-the-app&quot; aria-label=&quot;Anchor link for: add-the-server-in-the-app&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Add the server in the app&lt;&#x2F;h3&gt;
&lt;p&gt;Download the APK and its matching &lt;code&gt;SHA256SUMS&lt;&#x2F;code&gt; from the same release on the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;tuan3w&#x2F;herdr-mobile&#x2F;releases&quot;&gt;upstream Releases page&lt;&#x2F;a&gt;. On a computer, put both files in one directory and verify the APK before transferring it to the tablet:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;sh&quot;&gt;sha256sum --check --ignore-missing SHA256SUMS
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Check that the APK’s filename reports &lt;strong&gt;OK&lt;&#x2F;strong&gt;, then install it on Android. These releases are the original app, not my local fork. The workflow here does not depend on the fork’s streaming-terminal features or tablet sidebar.&lt;&#x2F;p&gt;
&lt;p&gt;On first launch, choose &lt;strong&gt;Add your first machine&lt;&#x2F;strong&gt;. Later, tap the machine count at the top left of the board to open &lt;strong&gt;Machines&lt;&#x2F;strong&gt;, then tap &lt;strong&gt;+&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;Fill in:&lt;&#x2F;p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Field&lt;&#x2F;th&gt;&lt;th&gt;What to enter&lt;&#x2F;th&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Name&lt;&#x2F;td&gt;&lt;td&gt;A label, such as &lt;code&gt;Workstation&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;Host&lt;&#x2F;td&gt;&lt;td&gt;The server’s reachable address, or &lt;code&gt;rc-forwarder&lt;&#x2F;code&gt;’s tailnet name&#x2F;address when using its SSH forward&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;SSH port&lt;&#x2F;td&gt;&lt;td&gt;&lt;code&gt;22&lt;&#x2F;code&gt; for a direct connection, or the gateway’s forwarded SSH port (&lt;code&gt;22222&lt;&#x2F;code&gt; in the example)&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;Username&lt;&#x2F;td&gt;&lt;td&gt;The account that runs Herdr&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;Authentication&lt;&#x2F;td&gt;&lt;td&gt;&lt;strong&gt;Private key&lt;&#x2F;strong&gt; for the key-based OpenSSH setup below; &lt;strong&gt;Password&lt;&#x2F;strong&gt; only if deliberately enabled on the server&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;p&gt;Herdr Mobile uses &lt;strong&gt;trust on first use&lt;&#x2F;strong&gt;: the test automatically accepts an unknown host key and authenticates before showing its fingerprint. There is no pre-authentication confirmation dialog. Use a trusted network path for the initial test and prefer a dedicated key. Comparing the fingerprint afterwards cannot protect a password already sent during that test.&lt;&#x2F;p&gt;
&lt;p&gt;For key authentication:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Choose &lt;strong&gt;Private key → Generate key&lt;&#x2F;strong&gt; to create a dedicated Ed25519 key on the tablet.&lt;&#x2F;li&gt;
&lt;li&gt;Copy its &lt;strong&gt;public key&lt;&#x2F;strong&gt; or the app’s &lt;strong&gt;authorized_keys command&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;From an already trusted session on the server, add that public key to the Herdr user’s &lt;code&gt;~&#x2F;.ssh&#x2F;authorized_keys&lt;&#x2F;code&gt;. The app provides a command with the required directory and file permissions. Do not copy the private key to the server.&lt;&#x2F;li&gt;
&lt;li&gt;Over the trusted initial path, tap &lt;strong&gt;Test connection&lt;&#x2F;strong&gt;. Compare the displayed host-key fingerprint with the fingerprint independently obtained from the work qube’s console or trusted session.&lt;&#x2F;li&gt;
&lt;li&gt;Tap &lt;strong&gt;Add machine&lt;&#x2F;strong&gt; only if they match. If they differ, stop and investigate; do not save or send agent input.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;On later connections, a changed pinned host key blocks access. Investigate the change rather than bypassing the warning.&lt;&#x2F;p&gt;
&lt;p&gt;Select the server and open an existing agent pane or a supported agent session. The upstream app provides agent controls, conversation views and terminal output; it is not the fork’s full live ANSI terminal. Use AVNC for unrestricted interactive CLI work. Agents and their provider credentials remain on the server; the app stores its SSH credential on the tablet. Do not start a second agent merely to view an existing session.&lt;&#x2F;p&gt;
&lt;p&gt;To change an address, user or key later, open &lt;strong&gt;Machines → ⋯ &#x2F; More → Edit&lt;&#x2F;strong&gt;, test the connection, and &lt;strong&gt;Save&lt;&#x2F;strong&gt;. Server configuration is in &lt;strong&gt;Machines&lt;&#x2F;strong&gt;, not Settings. Changing the host or port requires a new host-key check; use the same trusted-path procedure.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;work-from-the-tablet&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#work-from-the-tablet&quot; aria-label=&quot;Anchor link for: work-from-the-tablet&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Work from the tablet&lt;&#x2F;h2&gt;
&lt;p&gt;Use native Android applications for browsing, reading and local documents. Open AVNC when you need the full desktop, graphical tools or an unrestricted terminal. Open Herdr Mobile for agent conversations, controls and server-side pane output without fitting a desktop onto the screen.&lt;&#x2F;p&gt;
&lt;p&gt;Use the app’s remote file browser to bring results onto the tablet and Android’s save&#x2F;share interface to put them into another application. The SSH server needs SFTP enabled for file browsing. Copying a report locally does not move the project or its running tools off the server.&lt;&#x2F;p&gt;
&lt;p&gt;Before depending on the arrangement away from home:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Start a harmless, identifiable long-running task in a &lt;strong&gt;Herdr-owned pane&lt;&#x2F;strong&gt;, not an ordinary unprotected SSH shell.&lt;&#x2F;li&gt;
&lt;li&gt;Disconnect the app, switch networks, and reconnect. Confirm it is the same pane and process, not a newly started replacement.&lt;&#x2F;li&gt;
&lt;li&gt;Turn the tablet off and reconnect after booting it again. The server-side task should still be present if the host and Herdr remained running.&lt;&#x2F;li&gt;
&lt;li&gt;Check desktop access and the physical keyboard independently. Test Enter and newline combinations in a disposable session before sending real agent instructions.&lt;&#x2F;li&gt;
&lt;li&gt;If you want agent alerts while another app is open, enable Herdr Mobile’s notifications and the required Android permissions. Check battery&#x2F;background restrictions on your firmware rather than assuming a foreground notice guarantees a permanent SSH connection.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Only work already submitted to the server can continue. An unsent draft or a follow-up held in the mobile client’s queue cannot be delivered while the tablet is off.&lt;&#x2F;p&gt;
&lt;p&gt;A powered-off tablet cannot receive notifications, and Android can restrict networking during deep idle. Neither condition requires stopping a server-side agent. Reconnecting restores access; it does not undo a host suspend, server crash or reboot.&lt;&#x2F;p&gt;
&lt;p&gt;This replaces carrying the workstation, not the need for one. Offline Android applications still work locally, but remote tools need a reachable host. Keep that host awake, retain a separate recovery path, and test its boot-time services before leaving physical access behind.&lt;&#x2F;p&gt;
</content>
        <summary type="html">Use a rooted Android tablet, AVNC and Herdr Mobile as clients for a workstation that keeps your desktop and coding agents running.</summary>
        </entry><entry xml:lang="en">
        <title>sys-gui and the cost of isolating the Qubes desktop</title>
        <published>2026-11-10T00:00:00+00:00</published>
        <updated>2026-11-10T00:00:00+00:00</updated>
        <author>
            <name>amrosia</name>
        </author>
        <link rel="alternate" href="https://amrosia.dev/blog/the-cost-of-isolating-the-qubes-desktop/" type="text/html"/>
        <id>https://amrosia.dev/blog/the-cost-of-isolating-the-qubes-desktop/</id>
        
            <content type="html">&lt;p&gt;Moving the Qubes desktop into &lt;code&gt;sys-gui&lt;&#x2F;code&gt; separates the interface from dom0’s administrative authority. It also separates it from the local tools and hardware access that make dom0 useful as an administrative desktop.&lt;&#x2F;p&gt;
&lt;span id=&quot;continue-reading&quot;&gt;&lt;&#x2F;span&gt;&lt;h2 id=&quot;which-gui-domain&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#which-gui-domain&quot; aria-label=&quot;Anchor link for: which-gui-domain&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Which GUI domain?&lt;&#x2F;h2&gt;
&lt;p&gt;The &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;doc.qubes-os.org&#x2F;en&#x2F;r4.3&#x2F;user&#x2F;advanced-topics&#x2F;gui-domain.html&quot;&gt;Qubes 4.3 guide&lt;&#x2F;a&gt; describes three arrangements:&lt;&#x2F;p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Arrangement&lt;&#x2F;th&gt;&lt;th&gt;Physical graphics&lt;&#x2F;th&gt;&lt;th&gt;Desktop&lt;&#x2F;th&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Hybrid &lt;code&gt;sys-gui&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;td&gt;GPU and physical X server remain in dom0&lt;&#x2F;td&gt;&lt;td&gt;GUI VM displayed fullscreen through a nested display path&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;code&gt;sys-gui-gpu&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;td&gt;GPU passed through to the GUI VM&lt;&#x2F;td&gt;&lt;td&gt;Desktop uses the assigned hardware&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;code&gt;sys-gui-vnc&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;td&gt;Virtual display&lt;&#x2F;td&gt;&lt;td&gt;Dedicated remote desktop&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;p&gt;The tested setup used Qubes OS 4.3 and &lt;strong&gt;hybrid sys-gui with x0vncserver sharing its existing desktop&lt;&#x2F;strong&gt;. It was not GPU passthrough or the stock &lt;code&gt;sys-gui-vnc&lt;&#x2F;code&gt; recipe.&lt;&#x2F;p&gt;
&lt;p&gt;Hybrid mode moves the desktop environment and GUI daemons out of dom0. It does not remove dom0’s physical graphics stack. GPU passthrough changes that boundary, but does not provide general GPU acceleration to application qubes.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;the-boundary-it-actually-protects&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#the-boundary-it-actually-protects&quot; aria-label=&quot;Anchor link for: the-boundary-it-actually-protects&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
The boundary it actually protects&lt;&#x2F;h2&gt;
&lt;p&gt;A GUI domain is trusted with the windows and input of its assigned qubes. Compromising it can expose displayed secrets, spoof the interface, and inject commands through applications. Administrative permissions can give it additional direct control.&lt;&#x2F;p&gt;
&lt;p&gt;That does not make GUI isolation pointless. There is still a difference between controlling an application’s interface and executing arbitrary code in &lt;strong&gt;dom0&lt;&#x2F;strong&gt;. Keeping complex desktop software outside the administrative domain can preserve that second boundary.&lt;&#x2F;p&gt;
&lt;p&gt;The problem is maintaining it while making the desktop useful for administration.&lt;&#x2F;p&gt;
&lt;p&gt;The official recipe defaults to global Admin API &lt;code&gt;rwx&lt;&#x2F;code&gt;. Those permissions can be reduced to &lt;code&gt;ro&lt;&#x2F;code&gt;, but that does not make the whole GUI domain read-only: the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;QubesOS&#x2F;qubes-mgmt-salt-dom0-virtual-machines&#x2F;blob&#x2F;master&#x2F;qvm&#x2F;template-gui.jinja&quot;&gt;common Salt policy&lt;&#x2F;a&gt; also grants local management permissions over itself and assigned qubes.&lt;&#x2F;p&gt;
&lt;p&gt;Upstream &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;QubesOS&#x2F;qubes-issues&#x2F;issues&#x2F;8957&quot;&gt;tracks the difficulty of providing useful partial administration without effective dom0-shell access&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The competing requirements are:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;The administrator should be able to manage the system from sys-gui.&lt;&#x2F;li&gt;
&lt;li&gt;Compromising sys-gui should not give the attacker control of dom0.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Giving the GUI VM unrestricted administrative access resolves the usability problem by weakening the intended boundary. Restricting it means some operations need separate, narrowly scoped interfaces.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;administration-stops-being-local&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#administration-stops-being-local&quot; aria-label=&quot;Anchor link for: administration-stops-being-local&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Administration stops being local&lt;&#x2F;h2&gt;
&lt;p&gt;A script written for dom0 may assume it can call an administrative executable, inspect host state, edit a local policy file, or control a physical device. Running that script in sys-gui changes what “local” means.&lt;&#x2F;p&gt;
&lt;p&gt;Some operations work through the Admin API, subject to policy. Others need new RPC services or a different workflow. Installed frontends do not necessarily have the backends they expect.&lt;&#x2F;p&gt;
&lt;p&gt;The updater on this installation demonstrated the distinction:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;The frontend failed to create &lt;code&gt;&#x2F;var&#x2F;log&#x2F;qubes&#x2F;qui.updater.log&lt;&#x2F;code&gt; as the desktop user.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;qubes-vm-update&lt;&#x2F;code&gt; was absent.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;qubes-dom0-update&lt;&#x2F;code&gt; was absent.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Making the log directory writable would fix only the first problem. Running the frontend with sudo would not create a missing cross-domain update backend.&lt;&#x2F;p&gt;
&lt;p&gt;The official guide still lists dom0 updates as a known issue. The &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;QubesOS&#x2F;qubes-issues&#x2F;issues&#x2F;7950&quot;&gt;update architecture discussion&lt;&#x2F;a&gt; explains why this is more than a launcher-permission problem. These particular failures were observed locally; they are not a claim that every GUI-domain installation fails identically.&lt;&#x2F;p&gt;
&lt;p&gt;The same applies to automation. A dom0 script does not become a safe distributed administrative service merely because it is invoked from another VM.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;host-integrations-are-not-turnkey&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#host-integrations-are-not-turnkey&quot; aria-label=&quot;Anchor link for: host-integrations-are-not-turnkey&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Host integrations are not turnkey&lt;&#x2F;h2&gt;
&lt;p&gt;Moving the desktop does not move the hardware interfaces it relies on. Battery status, brightness controls, lid handling, and power actions still need information or cooperation from the domain that owns the relevant hardware.&lt;&#x2F;p&gt;
&lt;p&gt;Some integration helpers exist, but sys-gui is not a complete out-of-the-box replacement for dom0’s desktop integration. Expect additional services, qrexec policies, and configuration. Where a suitable interface is missing, someone has to implement and maintain it.&lt;&#x2F;p&gt;
&lt;p&gt;Getting these integrations right is harder than forwarding a few values or exposing a command. Each interface needs appropriate permissions, validated requests, robust handling of responses and failures, and behavior that survives changes on either side.&lt;&#x2F;p&gt;
&lt;p&gt;A narrow read-only RPC can preserve a useful boundary. Replacing it with a generic dom0 shell avoids the integration work by granting much broader authority.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;settings-can-affect-the-wrong-layer&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#settings-can-affect-the-wrong-layer&quot; aria-label=&quot;Anchor link for: settings-can-affect-the-wrong-layer&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Settings can affect the wrong layer&lt;&#x2F;h2&gt;
&lt;p&gt;The physical keyboard passed through multiple layers: dom0’s X server, the GUI VM’s virtual display stack, and the inner desktop. Remote input entered through another path.&lt;&#x2F;p&gt;
&lt;p&gt;Keyboard repeat was disabled inside the GUI VM but remained enabled in dom0. The inner setting could not undo repeated events already generated upstream.&lt;&#x2F;p&gt;
&lt;p&gt;Other settings have similar ownership problems:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Physical touchpad and input-device properties belong to the layer handling the device.&lt;&#x2F;li&gt;
&lt;li&gt;Display hotplug and physical monitor modes belong to the hardware owner.&lt;&#x2F;li&gt;
&lt;li&gt;Brightness, lid events, suspend, and host shutdown need explicit integration.&lt;&#x2F;li&gt;
&lt;li&gt;Qubes GUI shortcut defaults belong to the actual hosting GuiVM; dom0’s values do not simply follow the desktop.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Making a settings application visible does not move its hardware or administrative backend into the VM. The &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;QubesOS&#x2F;qubes-issues&#x2F;issues&#x2F;4186&quot;&gt;GUI-domain integration tracker&lt;&#x2F;a&gt; covers several of these gaps.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;remote-access-and-physical-locking-are-separate-problems&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#remote-access-and-physical-locking-are-separate-problems&quot; aria-label=&quot;Anchor link for: remote-access-and-physical-locking-are-separate-problems&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Remote access and physical locking are separate problems&lt;&#x2F;h2&gt;
&lt;p&gt;x0vncserver shares an existing X display. It does not create a second independent user session.&lt;&#x2F;p&gt;
&lt;p&gt;Locking the &lt;strong&gt;inner sys-gui desktop&lt;&#x2F;strong&gt; locks what the remote viewer sees too. Disconnecting VNC does not inherently lock that desktop. Suspending the host stops remote work regardless of where the GUI runs.&lt;&#x2F;p&gt;
&lt;p&gt;Physical-only locking requires locking an outer layer while leaving the shared desktop running.&lt;&#x2F;p&gt;
&lt;p&gt;One candidate is switching to a local text console with &lt;code&gt;Ctrl+Alt+F2&lt;&#x2F;code&gt; and running this &lt;strong&gt;as the normal dom0 user, not inside an AppVM&lt;&#x2F;strong&gt;:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;bash&quot;&gt;vlock --all
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;According to the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;man.archlinux.org&#x2F;man&#x2F;vlock.1.en&quot;&gt;vlock manual&lt;&#x2F;a&gt;, this locks the console and disables VT switching without logging out the graphical session.&lt;&#x2F;p&gt;
&lt;p&gt;It is not a universal guarantee that VNC will remain usable. A physical X server on an inactive VT can behave differently from a virtual display. Test while physically present, with saved work and a known unlock password. Check both that local VT switching is blocked and that &lt;strong&gt;live remote rendering and input&lt;&#x2F;strong&gt; continue.&lt;&#x2F;p&gt;
&lt;p&gt;This lock-and-capture combination was not validated during this setup. Existing authenticated consoles also need to be accounted for.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;the-simpler-remote-access-compromise&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#the-simpler-remote-access-compromise&quot; aria-label=&quot;Anchor link for: the-simpler-remote-access-compromise&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
The simpler remote-access compromise&lt;&#x2F;h2&gt;
&lt;p&gt;For a workstation heavily dependent on dom0 administration, keeping the ordinary desktop can be the lower-maintenance choice:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;remote viewer
    │ Tailscale
    ▼
rc-forwarder
    │ qubes.ConnectTCP
    ▼
dom0: loopback VNC server → existing Xfce desktop
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This does not require giving dom0 a normal network connection. It &lt;strong&gt;does&lt;&#x2F;strong&gt; expose a server running in dom0 to forwarded remote requests. A vulnerability in that server can affect the host; authenticated desktop access also carries the administrator’s practical authority.&lt;&#x2F;p&gt;
&lt;p&gt;That is an explicit security tradeoff, not equivalent isolation under another name.&lt;&#x2F;p&gt;
&lt;p&gt;The relevant controls are:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Run the server as the desktop user, with authentication and a loopback-only listener.&lt;&#x2F;li&gt;
&lt;li&gt;Permit only the intended source qube and service port in qrexec policy.&lt;&#x2F;li&gt;
&lt;li&gt;Restrict the forwarding VM’s listener to authorized VPN access. The stock &lt;code&gt;qvm-connect-tcp&lt;&#x2F;code&gt; helper can bind all IPv4 addresses, so do not assume it is loopback-only.&lt;&#x2F;li&gt;
&lt;li&gt;Test that non-VPN access is blocked.&lt;&#x2F;li&gt;
&lt;li&gt;Treat the viewer and forwarding VM as trusted components.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Classic &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;tigervnc.org&#x2F;doc&#x2F;vncpasswd.html&quot;&gt;VncAuth uses only the first eight password characters&lt;&#x2F;a&gt; and does not encrypt the desktop stream. Tailscale protects traffic to the forwarding VM, but that VM can still access the VNC stream. Removing that trust requires authenticated end-to-end encryption to the VNC server, with the viewer validating the server’s identity.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;amrosia.dev&#x2F;blog&#x2F;creating-reasonably-secure-remote-administration-for-qubes-os&#x2F;&quot;&gt;earlier remote-administration post&lt;&#x2F;a&gt; covers the forwarding architecture. It is a separate design from placing the whole desktop inside a GUI VM.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;returning-to-dom0-is-not-live-migration&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#returning-to-dom0-is-not-live-migration&quot; aria-label=&quot;Anchor link for: returning-to-dom0-is-not-live-migration&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Returning to dom0 is not live migration&lt;&#x2F;h2&gt;
&lt;p&gt;In dom0, restore the global default and inspect per-qube assignments:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;bash&quot;&gt;qubes-prefs default_guivm dom0
qvm-ls --fields NAME,STATE,GUIVM
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Explicit assignments can still point to sys-gui. For each affected qube, replace &lt;code&gt;work-qube&lt;&#x2F;code&gt; with its actual name:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;bash&quot;&gt;qvm-prefs work-qube guivm dom0
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Include templates and disposable bases in the review. Changing the global default does not override an explicit per-qube setting.&lt;&#x2F;p&gt;
&lt;p&gt;Save work and plan normal restarts of affected qubes. Do not stop the old GUI VM while it still hosts unsaved graphical sessions. Select &lt;strong&gt;Xfce&lt;&#x2F;strong&gt;, rather than &lt;strong&gt;GUI Domain (sys-gui)&lt;&#x2F;strong&gt;, at LightDM.&lt;&#x2F;p&gt;
&lt;p&gt;Once it is no longer needed at boot:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;bash&quot;&gt;qvm-prefs sys-gui autostart false
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Verify the replacement remote path before retiring the GUI VM. If the forwarding VM does not autostart, a working VNC desktop entry alone will not make remote access available after reboot.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;should-you-use-sys-gui&quot;&gt;&lt;a class=&quot;header-anchor no-hover-padding&quot; href=&quot;#should-you-use-sys-gui&quot; aria-label=&quot;Anchor link for: should-you-use-sys-gui&quot;&gt;&lt;span class=&quot;link-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
Should you use sys-gui?&lt;&#x2F;h2&gt;
&lt;p&gt;&lt;strong&gt;For a daily workstation used to administer Qubes, I would keep the desktop in dom0 rather than treat hybrid sys-gui as a drop-in replacement.&lt;&#x2F;strong&gt; If your workflow depends on dom0 scripts, hardware controls, and direct host administration, sys-gui replaces working local interfaces with integration work. Moving the desktop alone does not provide an equivalent administrative environment.&lt;&#x2F;p&gt;
&lt;p&gt;Use sys-gui when keeping desktop or remote-access software outside dom0 is an explicit security objective, and you can accept a restricted desktop, perform host administration separately, or maintain the necessary narrow interfaces. With appropriately restricted permissions, that separation has real value. Giving the GUI VM unrestricted dom0 access to recover convenience weakens the reason for moving it.&lt;&#x2F;p&gt;
&lt;p&gt;If you only need remote access, sys-gui is not required. Forwarding to a desktop server in dom0 is simpler, but exposes host-side software to remote requests and gives the remote session the desktop user’s authority. Choose that arrangement only if you accept the added host-compromise risk.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Use sys-gui for a boundary you intend to preserve, not as a turnkey way to make dom0 remotely accessible without its security costs.&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
</content>
        <summary type="html">What a Qubes GUI domain protects, which administrative workflows it breaks, and the tradeoff of returning remote access to dom0.</summary>
        </entry>
</feed>
