<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Inconvenience Institute on Medium]]></title>
        <description><![CDATA[Stories by Inconvenience Institute on Medium]]></description>
        <link>https://medium.com/@inconvenience-institute?source=rss-a8a11664f11b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L_IWEiJodbWMm2bpd4PAQQ.png</url>
            <title>Stories by Inconvenience Institute on Medium</title>
            <link>https://medium.com/@inconvenience-institute?source=rss-a8a11664f11b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:19:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@inconvenience-institute/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Muse Couldn’t Visit Medium — So It Borrowed My Chrome]]></title>
            <link>https://medium.com/inconvenience-institute/muse-couldnt-visit-medium-so-it-borrowed-my-chrome-e4e208efb8fd?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4e208efb8fd</guid>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[playwrights]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[muse]]></category>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 06:37:48 GMT</pubDate>
            <atom:updated>2026-11-23T09:52:55.069Z</atom:updated>
            <content:encoded><![CDATA[<h3>Medium’s robot check stops Muse’s own browser, and the account lives in the owner’s Chrome anyway — so we tunnelled in with SSH and Playwright instead</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnqauoK2W_DX9LyiMCi2zg.jpeg" /></figure><p>This series has a pattern by now. An assistant that can reason about a machine turns out to have no hands on it, and the fix is a door the owner builds, owns, and can close. <a href="https://medium.com/inconvenience-institute/muse-meet-linux-930854e8bc7a">Case File №2</a> built that door for a Linux PC. <a href="https://medium.com/inconvenience-institute/giving-muse-a-shell-on-macos-45a746e9e23e">Case File №3</a> built the same door for a Mac, because the Mac app gives Muse the screen, the files and the apps — but no shell.</p><p>This case is about a different surface of the same problem. Not a machine Muse couldn’t reach, but a website it couldn’t enter — and this time the website had a point.</p><h3>The wall</h3><p>Publishing these case files means publishing on Medium, and Medium is where Muse’s own browser stops.</p><p>The wall is the <strong>robot check</strong>. Muse works in a browser of its own — a cloud browser, run by automation. Medium, like most large publishing platforms, screens for exactly that, and the visit ends at a bot wall before any page loads. This is not a bug to be indignant about. A platform that lets automated browsers wander in unchallenged will be filled by automated browsers, and not the polite kind.</p><p>So the question was never really “how does Muse get its own browser past the check?” It was: “how does Muse work in the browser where the work already lives?”</p><h3>What we tried first, and why it was poor</h3><p>The early workaround treated the Mac as a place to run scripts. Muse would write a Playwright script, copy it over to the Mac, run it there, and read the logs that came back. It worked, in the way that describing a room by telephone works. Every step was a round trip — write, copy, run, wait, read, adjust, repeat — and every adjustment cost the whole loop again. Publishing one article took around half an hour and seven versions of a script. The Mac accumulated script files; the owner accumulated waiting.</p><p>Worse, one early attempt pointed the automation at the owner’s <strong>real Chrome profile</strong> — the profile with the live sessions in it. That caused actual harm, and it is worth recording plainly, because it is the kind of harm that looks like a minor glitch until you have to re-sign-in to everything: the stray automation launch purged the owner’s real Medium session, and Chrome itself refuses remote debugging on a default profile directory anyway. The real profile is not a tool. It is the owner’s desk. You do not run experiments on someone’s desk.</p><p>Two lessons survived that phase, and they shaped everything after:</p><ul><li><strong>Never point automation at the real/default Chrome profile.</strong> Ever. A dedicated scratch profile exists precisely so that automation has somewhere to stand that is not the owner’s actual browser life.</li><li><strong>Automation must not launch the browser it signs into.</strong> Sign-in — Google’s in particular — refuses to proceed inside an automation-launched browser. The browser has to be launched <em>normally</em>, by the ordinary route, with the owner signing in as a person. Automation may only attach afterwards.</li></ul><h3>The prerequisite</h3><p>This case does not re-teach its foundation. The connection between Muse and the Mac — Tailscale for the private route, key-only SSH for the login, the owner approving Muse’s device and able to revoke it in one move — was built in Case Files №2 and 3, and it is assumed here, the way Case 3 assumed Case 2.</p><p>That matters for one specific reason: the fix below opens a powerful local port on the Mac — Chrome’s debugging port, through which a connected program can drive the browser completely. A port like that must never face the public internet, and in this arrangement it never does. It is reached only through the SSH connection that already exists, over the private tailnet, admitted by one key. The new door is hung inside the house the earlier cases built.</p><p>If you do not already have that connection, build it first. This case starts where those two end.</p><h3>The fix, in four steps</h3><h3>Step 1 — Launch a scratch-profile Chrome on the Mac, normally</h3><p>On the Mac, Chrome is launched the ordinary way — a normal launch, not started by any automation — using a <strong>dedicated scratch profile</strong> rather than the owner’s real one, and with Chrome’s remote debugging port enabled. The full launch line, with the scratch profile’s location shown generically:</p><pre>open -na &quot;Google Chrome&quot; --args \<br>  --remote-debugging-port=9222 \<br>  --user-data-dir=&lt;scratch-profile-dir&gt; \<br>  --profile-directory=Default</pre><p>Two details in that line carry weight. -na forces a <em>new</em> Chrome instance: if the owner&#39;s ordinary Chrome is already running, a plain launch hands the request to that running instance and silently discards the port and profile flags — the window you need simply never appears. And the profile directory is the scratch one, named explicitly, so there is no ambiguity about which Chrome this is: not the owner&#39;s real profile, ever.</p><p>The owner signs in to Medium <strong>in that window, as themselves</strong>, and leaves the window open. That human sign-in inside a normally launched browser is not a workaround for the security check — it is the legitimate act the check exists to distinguish. A person, in their own browser, on their own machine, signed into their own account. Everything after this point happens inside a session a person opened.</p><p>The scratch profile is the safety boundary. If anything goes wrong, what is at risk is a copy made for the purpose — never the owner’s real profile and its live sessions.</p><h3>Step 2 — Forward the port through the SSH tunnel</h3><p>Steps 2–4 all happen on Muse’s side, so — as in Case File №2 — they begin as a prompt. The owner does not run these commands; the owner <em>asks</em>, and Muse runs them and reports back.</p><p><strong>Prompt for Muse:</strong></p><pre>My Chrome is open on the Mac — the scratch-profile instance, signed in to Medium,<br>with the debugging port on. I will leave the window open.<br><br>Open an SSH tunnel to the Mac that forwards its port 9222 to your side,<br>then connect to that Chrome with Playwright over CDP.<br>Work only in the tab that is already open — do not open new tabs and do not launch a browser.<br>Take small steps, show me screenshots as you go, and stop for my approval before anything that publishes.</pre><p>From Muse’s side, one SSH command opens a local forward — the debugging port on the Mac becomes reachable, privately, from Muse’s computer:</p><pre>ssh -N -L 9222:127.0.0.1:9222 mac</pre><p>Read it left to right: connect to the Mac (mac, the same generic name used in the earlier cases), run no command (-N — this connection is a tunnel, nothing more), and forward local port 9222 to port 9222 on the Mac&#39;s own loopback. The port is not published anywhere. It exists at exactly two ends of an encrypted connection between two machines the owner has already admitted to one private network. mac itself is not a placeholder, either: it is the host alias defined in the SSH configuration when the Mac connection was built, in Case №3 — the entry that carries the Mac’s tailnet address, the user and the key. Whatever alias your own configuration defines is the one to use here.</p><h3>Step 3 — Attach Playwright over CDP</h3><p>With the tunnel up, Muse does not launch a browser at all. It <strong>attaches</strong> to the one already running, using Playwright’s CDP connection:</p><pre>browser = playwright.chromium.connect_over_cdp(&quot;http://127.0.0.1:9222&quot;)</pre><p>That one line is the whole change of posture. There is no script file on the Mac, no batch to copy over and re-run. Muse is connected, live, to the owner’s real, signed-in Chrome — the scratch-profile instance of it — and can work in it the way a person at the keyboard would, one step at a time.</p><h3>Step 4 — Work interactively, in the one existing tab</h3><p>The working style is the opposite of the batch scripts it replaced: small live steps, in the single tab that is already open. Open the editor. Check what is on the page. Make one change. Look again — screenshots come back directly, as images, so Muse sees what the owner sees. Verify before any consequential click, and stop before it if a check fails.</p><p>One tab is a rule, not a preference. Probes that open extra tabs pile up on the owner’s screen and quietly spend the owner’s trust; the work stays in the tab the owner can see.</p><h3>What it proved, the same day</h3><p>This was not built as a theory. It was built in the middle of publishing Case File №3, and it carried that publication end to end: the draft placed in Medium’s editor and verified, the submission flow walked — publication selected, topics picked one exact row at a time — and the final <strong>“Approve and publish”</strong> clicked only after every check had passed, with the live public page re-verified afterwards.</p><p>Later the same day, the same route replaced the cover images on all three published case files — each one opened in its edit page, its first image swapped, saved and published again, and verified live. Three articles, three covers, one tunnel, no script files left behind on the Mac.</p><p>The time difference is the honest summary. The batch-script route took roughly half an hour and seven script versions to publish a postscript. The tunnel route is how publishing works here now — interactively, in minutes, with the owner watching the same window Muse is driving.</p><h3>The rules, distilled</h3><p>For anyone building the same arrangement, the method compresses to five rules:</p><ol><li><strong>Never automate against the real browser profile.</strong> A dedicated scratch profile, launched for the purpose, every time.</li><li><strong>Launch normally; attach afterwards.</strong> The owner signs in as a person in a normally launched browser. Automation that launches its own browser will be refused at sign-in — correctly.</li><li><strong>Reach the debugging port only through a private tunnel.</strong> SSH over a tailnet, admitted by a key. The port never faces the internet.</li><li><strong>Work interactively, not in batches.</strong> Small live steps with screenshots beat scripts copied to the other machine and debugged through logs.</li><li><strong>Stay in one visible tab, and verify before the irreversible click.</strong> The owner should be able to watch the work in the window they opened — and anything that publishes, sends, or deletes waits until the checks pass.</li></ol><p>And the closing rule, which is really the series’ rule by now: <strong>the arrangement ends when the owner says so.</strong> Close the Chrome window and the session is gone. Kill the tunnel and the port is unreachable. Remove the key or the device, as in Cases 2 and 3, and the road itself closes. Nothing here persists against the owner’s wishes, because nothing here was ever Muse’s to keep.</p><h3>Summary</h3><p>Muse’s own browser could not work on Medium — stopped at the robot check. The answer was not a better disguise for the robot. It was to stop sending a robot: launch the owner’s own Chrome — a scratch profile of it — normally, on the owner’s Mac; let the owner sign in; forward its debugging port through the SSH tunnel the earlier cases had already built; and let Muse attach, live, and work in the open, one verified step at a time.</p><p>The robot check is still there, doing its job. Muse just no longer needs to pass it. It was invited into the house instead — through a door the owner built, on a road the owner owns.</p><p><em>Previous — Case File №3: Giving Muse a Shell on macOS: </em><a href="https://medium.com/inconvenience-institute/giving-muse-a-shell-on-macos-45a746e9e23e"><em>https://medium.com/inconvenience-institute/giving-muse-a-shell-on-macos-45a746e9e23e</em></a></p><p><em>Scope note: this guide covers driving the owner’s own Chrome browser on their Mac from Muse — a cloud-based AI assistant — using a dedicated scratch Chrome profile launched normally with a remote debugging port, an SSH local forward over a Tailscale tailnet with key-only login (built in Case Files №2–3), and Playwright’s </em><em>connect_over_cdp. Hostnames, usernames and addresses are shown generically (</em><em>mac, </em><em>user, </em><em>100.x.y.z); no private information, key material, passwords, sign-in links or real profile paths are included, and none are needed to follow the method. The debugging port is reachable only through the SSH tunnel and is never exposed to the public internet.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4e208efb8fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inconvenience-institute/muse-couldnt-visit-medium-so-it-borrowed-my-chrome-e4e208efb8fd">Muse Couldn’t Visit Medium — So It Borrowed My Chrome</a> was originally published in <a href="https://medium.com/inconvenience-institute">The Inconvenience Institute</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Giving Muse a Shell on macOS]]></title>
            <link>https://medium.com/inconvenience-institute/giving-muse-a-shell-on-macos-45a746e9e23e?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/45a746e9e23e</guid>
            <category><![CDATA[tailscale]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[muse]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 04:57:40 GMT</pubDate>
            <atom:updated>2026-11-23T05:33:43.861Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Mac app gave Muse the screen, the files and the apps — but no way to run a command, so we used Tailscale and key-only SSH, without opening a port.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4t3NrIralFsIb4p8OssNw.png" /></figure><p>This one was supposed to be trivial.</p><p><a href="https://medium.com/inconvenience-institute/muse-meet-linux-930854e8bc7a">Case File №2</a> ended with a workaround: there is no Muse app for Linux, so we connected Muse to an Ubuntu machine with Tailscale and key-only SSH, and gave it hands that way. The Mac, by contrast, is a machine Muse is supposed to support natively. There is a Muse app for Mac, and this Mac was connected through it.</p><p>Two days after that article was published, the same gap opened on the Mac. The reason was different from the Linux case, and more general — which is why it gets its own case file, and why this one is shorter. The cure was already written. What was new was the discovery that it was still needed.</p><h3>What the Mac app gives — and what it does not</h3><p>The connection through the Mac app is real, and it is not small. It gives Muse, each of them configurable by the owner in the app’s settings:</p><ul><li><strong>Computer use</strong> — control of the screen, the pointer and the keyboard</li><li><strong>File system access</strong> — the owner’s files, not just files inside a chat</li><li><strong>Screen and camera capture</strong></li><li><strong>The local apps’ data</strong> — Notes, Messages, Mail, Calendar, Reminders, Contacts</li><li><strong>Work in the owner’s own browser</strong> — not a separate, empty browser, but the one already signed in and in use</li></ul><p>Read that list and the expectation writes itself: an assistant with the screen, the files and the apps surely has the machine.</p><p>What no setting on that list gives it is a shell. The Mac app has no program runner, so a terminal command cannot be run on the Mac through it — and Muse’s control of the Mac’s screen always skips Terminal and scripting apps. That word, <em>skips</em>, is the documentation’s own. An assistant that can click anything except the one window where commands live can do almost everything on a Mac, except run a command on it.</p><p>GUI access is not shell access. That sentence is the whole case.</p><h3>The human clipboard, briefly</h3><p>So the human clipboard came back.</p><p>Every terminal task on the Mac — installing tools, building software, changing configuration, reading logs, checking what a process was doing — was dictated one command at a time, run by the owner, and pasted back, exactly as on the Linux machine before its door was built.</p><p>It did not last as long this time, because nobody had to be persuaded it was a problem. The app had changed the surface of the problem, not the problem: for any work that <em>is</em> terminal work, Muse was once again an adviser with no hands. The moment the work is a command — an install, a build, a log, a setting — the shell <em>is</em> the work.</p><h3>The cure, in five steps</h3><p>The cure was the recipe from Case File №2, in macOS dialect — shorter, because macOS ships the server. The full recipe, with its reasoning about reachability, fingerprints and revocation, is there and is not repeated here. In compressed form:</p><ol><li><strong>Tailscale</strong>, installed from the App Store and signed into the same account. Muse’s own device had been signed out of the tailnet since the Linux session, so it re-joined — and the owner approved its join link again. Admission stayed the owner’s act, exactly as before.</li><li><strong>Remote Login on</strong>: System Settings → General → Sharing → Remote Login. No package to install; the SSH server is built into macOS, behind a toggle.</li><li><strong>The same public key</strong> — the identical ssh-ed25519 line used on the Linux machine — appended to ~/.ssh/authorized_keys on the Mac, at 100.x.y.z, its tailnet address.</li><li><strong>The same proof before trust</strong>: hostname &amp;&amp; whoami, run from Muse&#39;s side over the tailnet, returning the Mac&#39;s name and the owner&#39;s account — shown generically here as mac and user.</li><li><strong>The same hardening, last as before</strong>: a 99-key-only.conf drop-in — the same filename as on the Linux machine — in /etc/ssh/sshd_config.d, switching password login for SSH off. Verified in both directions: the key still admitted, a password-only attempt refused with Permission denied (publickey).</li></ol><p>With the door built, the working pattern from the Linux case applies unchanged: connect when asked, prove the machine’s identity before real work, output before changes, and sudo always the owner’s own step, never a standing permission. Revocation is the same one-move affair — delete the key line, remove Muse’s device from the tailnet, or switch Remote Login off.</p><h3>Summary</h3><p>The Mac app’s existence did not remove the need for this door; it defined the need’s shape. What Case File №2 described is not a Linux workaround. It is the general arrangement — a private route, one key, and an owner who can revoke both — and it now guards two machines.</p><p>Giving Muse a shell on macOS did not mean giving it more of the Mac. It meant giving it the one part of the Mac it had never had — the place where commands live.</p><p><em>Previous — Case File №2: Muse, Meet Linux: </em><a href="https://medium.com/inconvenience-institute/muse-meet-linux-930854e8bc7a"><em>https://medium.com/inconvenience-institute/muse-meet-linux-930854e8bc7a</em></a></p><p><em>Scope note: this guide covers key-only SSH access from Muse — a cloud-based AI assistant — to a Mac, using Tailscale’s free Personal plan for the private route, as a supplement to the Muse app for Mac. Hostnames, usernames and addresses are shown generically (</em><em>mac, </em><em>user, </em><em>100.x.y.z); no private information, key material, passwords or sign-in links are included, and none are needed to follow the method. The full setup reasoning is in Case File No. 2; verify a working key login before disabling password authentication for SSH.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45a746e9e23e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inconvenience-institute/giving-muse-a-shell-on-macos-45a746e9e23e">Giving Muse a Shell on macOS</a> was originally published in <a href="https://medium.com/inconvenience-institute">The Inconvenience Institute</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Muse, Meet Linux]]></title>
            <link>https://medium.com/inconvenience-institute/muse-meet-linux-930854e8bc7a?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/930854e8bc7a</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[muse]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[tailscale]]></category>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 02:56:27 GMT</pubDate>
            <atom:updated>2026-11-23T05:32:55.494Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to give Muse hands on an Ubuntu 24.04 machine with Tailscale and key-only SSH — without a Linux app, and without opening a port</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDT9S99N8Pll1jFJtJ7AGw.png" /></figure><p>Anyone who works with an AI assistant across more than one computer knows a quieter kind of friction. The assistant can reason about your Linux machine, write commands for it, and check the results you paste back — but it cannot touch the machine itself. Muse’s apps today are web, iOS, Android and a Mac app; there is no Linux app. A browser tab on Ubuntu is a chat window, not a pair of hands, and Muse itself runs on a cloud computer that is not on your home network, so the machine on your desk might as well be on another continent.</p><p>This guide describes the workaround: Tailscale to give the two computers a private route to each other, and SSH with a single public key for the login, with password login for SSH switched off at the end. It was written and tested against an Ubuntu 24.04 machine dual-booting with Windows 11, but nothing in the method depends on that particular PC — any Linux machine will do. It ends with the only verification that matters: the key logging in, a password being refused, and the owner able to revoke the whole arrangement in one move.</p><h3>Why Muse could not reach the machine</h3><p>There are two separate problems here, and it helps to keep them apart, because they have two separate fixes.</p><p>The first is <em>reachability</em>. Muse’s computer is a cloud virtual machine. It is not a device on your home LAN, and from where it sits, your machine’s local network address does not exist. No login method, however good, helps two computers that have no route to each other.</p><p>The second is <em>login</em>. Even with a route, the remote side needs a credential the Linux machine will accept — one that can be given to an assistant, checked exactly, and taken back cleanly.</p><p>Until both were solved, the gap was filled by a person. During an earlier project on this machine — installing and testing an inference engine on Ubuntu — every terminal step passed through human hands: the assistant dictated one command at a time (a deliberate rule, because batched commands produced mixed, hard-to-trust output), the owner ran it, copied the output, pasted it back, and waited for the next one. It worked, in the way that carrying water in buckets works. A human copy-pasting between a terminal and a chat window is not a connection; it is a person imitating one. The fix below replaces the imitation with the real thing.</p><h3>Why Tailscale</h3><p>SSH solves the login problem. It does not solve reachability, and the obvious reachability fix — forwarding a port on the home router so SSH can be reached from the internet — exposes the login door to the entire internet in order to admit one assistant. That trade is not necessary.</p><p>Tailscale builds an encrypted mesh network, a <em>tailnet</em>, between your own devices, using WireGuard underneath. Each device gets a stable private address, reachable only by members of the same tailnet. No router port is opened.</p><p>Two facts about it are worth knowing before you rely on it. First, it is partly open: the client software and WireGuard are open source, while Tailscale’s coordination server — the part that helps devices find each other and manages tailnet membership — is closed. Second, that server’s view is limited to identity and device metadata: who signed in, device names and hostnames, operating systems, public addresses, public keys, and connection statistics. The content of the traffic is WireGuard-encrypted end to end between the devices; the coordination server cannot read it.</p><p>The sign-in deserves the same care, because Tailscale has no password of its own — sign-in is single sign-on only. In this case, signing in with GitHub was considered and rejected: the GitHub account was registered with the same email address, so it would have exposed the same email plus a public username, and a tailnet created under GitHub cannot later be migrated to another sign-in provider. Google sign-in exposed less and kept the exit open.</p><p>The free Personal plan was sufficient, and not close to its limits: up to 6 users and unlimited devices. This procedure needs exactly one user and two devices.</p><h3>Before you start</h3><p>A few prerequisites and precautions:</p><ul><li><strong>Local access to the Linux machine.</strong> You will be changing how it accepts remote logins. Do every step from a session at the machine itself, not through the connection you are building, so a mistake cannot lock you out of your own work.</li><li><strong>Prove the key before you harden anything.</strong> The order of the steps below is deliberate: password login for SSH is switched off only <em>after</em> a key login has been demonstrated to work. Reversing that order is how people lock themselves out.</li><li><strong>Treat the key pair as what it is: a credential.</strong> The private half never leaves the computer it was generated on. Only the public half is placed on the Linux machine, and that is the only part this guide ever moves. The machine owner’s sudo password is not needed by the assistant at any point, and should not be shared in chat.</li><li><strong>Design for revocation from the start.</strong> Access that cannot be withdrawn by the owner alone, in one move, should not be granted in the first place. A later section of this guide lists the three independent ways to undo this setup.</li></ul><h3>Step 1 — Put the Linux machine on the tailnet</h3><p>On the Linux machine, install Tailscale using the official install script from tailscale.com:</p><pre>curl -fsSL https://tailscale.com/install.sh | sh</pre><p>Then bring it up:</p><pre>sudo tailscale up</pre><p>Sign in in the browser when prompted. In this case that was Google sign-in, with <em>Personal or at-home use</em> and <em>Personal user</em> selected in Tailscale’s onboarding.</p><p>From this point the machine has two addresses: its ordinary local one, for home, and a stable tailnet address — written throughout this guide as 100.x.y.z — visible only to members of the tailnet. That second address is the one the remaining steps use.</p><h3>Step 2 — Install the SSH server, and make sure it is running</h3><p>Install the server package:</p><pre>sudo apt install -y openssh-server</pre><p>Then enable and start the service explicitly:</p><pre>sudo systemctl enable --now ssh</pre><p>The second command is not a formality. On Ubuntu 24.04, the service can report inactive after installation — a consequence of socket activation — and only the enable --now above made it active in this case. Installed and listening are different claims; check which one you have.</p><h3>Step 3 — Ask Muse to join the same tailnet</h3><p>The second computer in this setup is Muse’s — the cloud computer Muse itself runs on. It does not join by being configured at the Linux machine; you ask Muse to join, and Muse starts the join from its own side. If you are setting this up with your own Muse, the prompt is the command — copy it as it stands.</p><p><strong>Prompt for Muse:</strong></p><pre>Join my Tailscale network, so you can work on my Linux machine directly.<br>Start Tailscale on your side and give me the sign-in link.<br>I will approve your device in my own Tailscale account — wait for my confirmation before you test any connection.<br>When you are in, tell me the device name you joined as, so I can check it in my console.</pre><p>Muse then joins as a new device (in this case it appeared under the device name muse), and the owner approves that device in the Tailscale admin console. That approval step is the point: a new device is admitted by the account owner, the way any new device of your own would be — not added by Muse on its own authority.</p><p>The two computers can now see each other on private tailnet addresses. No public port has been opened anywhere.</p><h3>Step 4 — Give the Linux machine the public key</h3><p>Muse’s side holds an ed25519 key pair. First, ask Muse for the public half — and only the public half.</p><p><strong>Prompt for Muse:</strong></p><pre>Give me your SSH public key — the whole ssh-ed25519 line — and its fingerprint.<br>I will add the public key to authorized_keys on my Linux machine and check the fingerprint on both sides.<br>Never send me a private key.</pre><p>Its <em>public</em> half is added as a single line to this file on the Linux machine:</p><pre>~/.ssh/authorized_keys</pre><p>with the directory and file kept to the permissions SSH requires:</p><pre>mkdir -p ~/.ssh<br>chmod 700 ~/.ssh<br>chmod 600 ~/.ssh/authorized_keys</pre><p>In your own setup, the line you add is your remote computer’s public key, in this form:</p><pre>ssh-ed25519 &lt;your-public-key&gt; &lt;label&gt;</pre><p>Before trusting it, compare the key’s fingerprint as reported on both sides. In this case the two matched exactly, character for character; in keeping with this guide’s practice, the actual string is not printed here — fingerprints of real keys are not published. The form it takes is:</p><pre>SHA256:&lt;fingerprint — the same string on both sides&gt;</pre><p>If the two do not match exactly, stop here and re-check what was copied. Do not proceed on “close enough” with a credential.</p><h3>Step 5 — Test the key, before changing any login rules</h3><p>The test runs from Muse’s side, so Muse is who you ask.</p><p><strong>Prompt for Muse:</strong></p><pre>Test the SSH connection to my Linux machine at its tailnet address (100.x.y.z).<br>Run: hostname &amp;&amp; whoami<br>Show me exactly what it returns. Do not change any settings on either machine yet.</pre><p>From Muse’s computer, over the tailnet, this asks the Linux machine to identify itself:</p><pre>ssh user@100.x.y.z &quot;hostname &amp;&amp; whoami&quot;</pre><p>In this case it returned:</p><pre>linux-pc<br>user</pre><p>(Hostnames and usernames are shown generically throughout this guide; yours will differ, and should.) This is a small output, and it is the correct one to insist on before going further: the far machine naming itself, and naming the account it admitted. Only when this test passes is it safe to change the login rules.</p><h3>Step 6 — Switch off password login for SSH</h3><p>With a working key login demonstrated, make SSH key-only. On the Linux machine, write a small drop-in configuration file:</p><pre>sudo tee /etc/ssh/sshd_config.d/99-key-only.conf &gt; /dev/null &lt;&lt;&#39;EOF&#39;<br>PasswordAuthentication no<br>KbdInteractiveAuthentication no<br>PubkeyAuthentication yes<br>EOF</pre><p>Validate the configuration before applying it — a configuration error here is the other classic way to lock yourself out:</p><pre>sudo sshd -t<br>sudo systemctl reload ssh</pre><p>Two scope notes. First, this affects SSH only: logging into the machine’s desktop, sitting at it, works exactly as before. Second, nothing else was changed to accommodate Muse — no account was created for it, and no other password was disabled. Muse connects as the existing user, through one key, or not at all.</p><h3>Step 7 — Verify the finished setup, in both directions</h3><p>A fix is not the steps; it is the demonstration afterwards. Both checks run from Muse’s side.</p><p><strong>Prompt for Muse:</strong></p><pre>Verify the finished setup in both directions and report the exact output of each:<br>1. Log in with the key and run: hostname &amp;&amp; whoami<br>2. Try a password-only login (no key) and show me the result.<br>Do not change any settings.</pre><p>Two checks, both of which passed in this case:</p><ol><li><strong>The key still works.</strong> Repeat the Step 5 command. It should return the hostname and username exactly as before.</li><li><strong>A password no longer works.</strong> Make a deliberate password-only attempt:</li></ol><pre>ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@100.x.y.z</pre><p>It should be refused with:</p><pre>Permission denied (publickey)</pre><p>That refusal is a success message. The tailnet already limits who can reach the door at all; key-only login limits what reaching it can do. Between them, the door opens for one key — and for a guessed, leaked, or brute-forced password, it does not open at all.</p><h3>Coming back to it — using the connection after setup</h3><p>Nothing about the setup is per-session: the key stays in place on the Linux machine, both devices stay on the tailnet, and the SSH service starts with the machine. When you come back — tomorrow, or next month — there is nothing to install or configure again.</p><p><strong>On the Linux machine itself, there is nothing to do.</strong> No app to open, no server to start, no request to approve. If the machine is switched on and booted into Linux, it is ready — the service and the tailnet simply wait in the background. Everything in this section happens on Muse’s side, or in the asking.</p><p>You simply start a session by asking Muse to connect, and it is good practice to have Muse prove it is on the right machine before any real work begins.</p><p><strong>Prompt for Muse:</strong></p><pre>Connect to my Linux machine over SSH.<br>First run: hostname &amp;&amp; whoami<br>Show me the result, so we both know you are on the right machine.<br>Then wait for my instructions.</pre><p>From there, work is just instructions. One pattern is worth keeping: output first, change second — and sudo as a separate, explicit step, never a standing permission.</p><p><strong>Prompt for Muse:</strong></p><pre>On my Linux machine: &lt;describe the task&gt;.<br>Show me the relevant output first, before changing anything.<br>If any step needs sudo, stop and ask me — I will run that part, or approve it explicitly.</pre><p>If a session will not connect, the checks are short, and they are almost always on the Linux side:</p><ul><li><strong>Is the machine on, and booted into Linux?</strong> A dual-boot machine sitting in its other operating system is not reachable, however correct the setup is.</li><li><strong>Is Tailscale running on both sides?</strong> On the Linux machine, tailscale status shows the tailnet; Muse can check its own side the same way.</li><li><strong>Is the SSH service up?</strong> systemctl status ssh on the Linux machine should say active.</li></ul><p>If all three are true and it still fails, something has changed since setup — re-run the two checks in Step 7 to find which half of the proof no longer holds.</p><h3>Postscript — Muse, Meet macOS</h3><p>Two days after this article was published, the same gap opened on a machine Muse is supposed to support natively — and it is worth recording why, because the reason is different, and more general.</p><p>There is a Muse app for Mac, and this Mac was connected through it. That connection gives Muse real capabilities on the machine — Computer use, file system access, screen and camera capture, the local apps’ data (Notes, Messages, Mail, Calendar, Reminders, Contacts), even work in the owner’s own browser — each of them configurable by the owner in the app’s settings. What no setting gives it is a shell. The Mac app has no program runner, so a terminal command cannot be run on the Mac through it — and Muse’s control of the Mac’s screen always skips Terminal and scripting apps. An assistant that can click anything except the one window where commands live can do almost everything on a Mac, except run a command on it.</p><p>So the human clipboard came back. Every terminal task on the Mac — installing tools, building software, changing configuration, reading logs, checking what a process was doing — was dictated one command at a time, run by the owner, and pasted back, exactly as on the Linux machine before its door was built. The app had changed the surface of the problem, not the problem: for any work that <em>is</em> terminal work, Muse was once again an adviser with no hands.</p><p>The cure was the recipe from this article, in macOS dialect — shorter, because macOS ships the server:</p><ol><li><strong>Tailscale</strong>, installed from the App Store and signed into the same account. Muse’s own device had been signed out of the tailnet since the Linux session, so it re-joined — and the owner approved its join link again. Admission stayed the owner’s act, exactly as before.</li><li><strong>Remote Login on</strong>: System Settings → General → Sharing → Remote Login. No package to install; the SSH server is built into macOS, behind a toggle.</li><li><strong>The same public key</strong> — the identical ssh-ed25519 line used on the Linux machine — appended to ~/.ssh/authorized_keys on the Mac.</li><li><strong>The same proof before trust</strong>: hostname &amp;&amp; whoami, run from Muse&#39;s side over the tailnet, returning the Mac&#39;s name and the owner&#39;s account.</li><li><strong>The same hardening, last as before</strong>: a 99-key-only.conf drop-in — the same filename as on the Linux machine — in /etc/ssh/sshd_config.d, switching password login for SSH off. Verified in both directions: the key still admitted, a password-only attempt refused with Permission denied (publickey).</li></ol><p>With the door built, the working pattern from the Linux case applies unchanged: connect when asked, prove the machine’s identity before real work, output before changes, and sudo always the owner’s own step, never a standing permission. One rule has since been made global, across both machines: every command Muse runs over this connection is printed in full in the chat before it runs, so that nothing happens on either machine that the owner has not already read. Ordinary commands need no approval — the printing is for the owner’s eyes, not his permission. Dangerous ones are the exception, and wait for an explicit yes: anything that deletes or overwrites data, changes the machine’s security settings, or stops the machine or its services. Revocation is the same one-move affair — delete the key line, remove Muse’s device from the tailnet, or switch Remote Login off.</p><p>The necessity, stated plainly: the Mac app’s existence did not remove the need for this door; it defined the need’s shape. GUI access is not shell access, and the moment the work is a command — an install, a build, a log, a setting — the shell <em>is</em> the work. What this article described is not a Linux workaround. It is the general arrangement — a private route, one key, and an owner who can revoke both — and it now guards two machines.</p><h3>If you ever want to undo it</h3><p>The setup is not permanent, and it is not meant to be. The owner can revoke Muse’s access at any time, without Muse’s cooperation, in any of three independent ways:</p><ul><li>Delete the one public-key line from ~/.ssh/authorized_keys on the Linux machine.</li><li>Remove Muse’s device in the Tailscale admin console.</li><li>Stop the SSH service, or bring Tailscale down, on the Linux machine.</li></ul><p>Any one of the three is sufficient; together they mean the access exists only while the owner continues to permit it. If a Linux app for Muse is released in the future, this whole arrangement can be retired the same way — it is a workaround for a missing product, and it should be labelled as one. Until then, it has one property worth stating plainly: the private key never left Muse’s computer, the owner’s password was never shared, and undoing the setup never requires Muse’s permission. That asymmetry is not a lack of trust. It is what makes the trust well-placed.</p><h3>Summary</h3><p>The unreachable Linux machine was not a capability problem; it was a missing connection, filled for a while by a person copy-pasting one command at a time. Put both computers on one private tailnet, place a single public key on the Linux machine, prove it works, and only then switch password login off. Muse, meet Linux — one private route, one key, and an owner who keeps the right to end both.</p><p><em>Previous — Case File №1: One Keyboard, Two Operating Systems: </em><a href="https://medium.com/inconvenience-institute/one-keyboard-two-operating-systems-2a822f20cc55"><em>https://medium.com/inconvenience-institute/one-keyboard-two-operating-systems-2a822f20cc55</em></a></p><p><em>Scope note: this guide covers key-only SSH access from Muse — a cloud-based AI assistant — to a Linux machine, using Ubuntu 24.04 (dual-boot with Windows 11) as the worked example and Tailscale’s free Personal plan for the private route. Hostnames, usernames and addresses are shown generically (</em><em>linux-pc, </em><em>user, </em><em>100.x.y.z); no private information, key material, passwords or sign-in links are included, and none are needed to follow the method. It is a workaround for the absence, at the time of writing, of a Muse app for Linux. Verify the fingerprint on both sides, and test a working key login before disabling password authentication for SSH.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=930854e8bc7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inconvenience-institute/muse-meet-linux-930854e8bc7a">Muse, Meet Linux</a> was originally published in <a href="https://medium.com/inconvenience-institute">The Inconvenience Institute</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Keyboard, Two Operating Systems]]></title>
            <link>https://medium.com/inconvenience-institute/one-keyboard-two-operating-systems-2a822f20cc55?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a822f20cc55</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bluetooth]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[dual-boot]]></category>
            <category><![CDATA[windows-11]]></category>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 11:11:30 GMT</pubDate>
            <atom:updated>2026-11-23T05:31:59.543Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to share a Bluetooth keyboard between Windows 11 and Ubuntu 24.04 — without re-pairing every time you reboot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sn2SmoeRvcWMb16NWL9CUw.png" /></figure><p>Anyone who dual-boots knows the ritual. You pair your Bluetooth keyboard in Windows, reboot into Linux, and it refuses to connect. You pair it again in Linux, reboot back into Windows, and it refuses there instead. The keyboard is not broken, neither operating system is misconfigured, and re-pairing is not a solution. It is a symptom of how Bluetooth pairing actually works — and once you understand that, the real fix takes about fifteen minutes and no special-purpose tools.</p><p>This guide describes the manual method: no dedicated dual-boot pairing utilities, just standard system tools. It was written and tested against a classic Bluetooth keyboard on Windows 11 and Ubuntu 24.04, and it ends with the only verification that matters — the keyboard working in both systems, back to back, with no re-pairing in between.</p><h3>Why the keyboard keeps “forgetting” your computer</h3><p>When a Bluetooth device pairs, the two sides negotiate a secret called a <em>link key</em>. The device stores that key, indexed by the host’s Bluetooth adapter address. The host stores its copy too — but where it stores it is up to the operating system. Windows keeps pairing keys in its registry. Linux, through the BlueZ stack, keeps them in text files under /var/lib/bluetooth.</p><p>A dual-boot machine has one Bluetooth adapter with one address, shared by both operating systems. From the keyboard’s point of view, Windows and Ubuntu are the same host. But each pairing creates a <em>new</em> link key, and the keyboard can hold only one key for that host address. Pair in Ubuntu and the keyboard overwrites the key Windows was relying on. Pair in Windows and Ubuntu’s copy becomes worthless. Each operating system still shows the device as “paired” — that label only means a record exists, not that the keys still match.</p><p>The fix follows directly: stop letting the two systems hold different keys. Choose one pairing as the master, and copy its key into the other system. Both sides then present the same credential, and the keyboard cannot tell the operating systems apart — which is precisely the point.</p><h3>Before you start</h3><p>A few prerequisites and precautions:</p><ul><li><strong>A wired or USB keyboard.</strong> You will, at one stage, deliberately be in the operating system where the Bluetooth keyboard does not yet work. Keep a fallback within reach. You will also need it at the boot menu: no operating system means no Bluetooth stack, so Bluetooth keyboards never work in firmware setup or in the GRUB menu. That limitation is separate from this guide and cannot be fixed by anything in it.</li><li><strong>Know which Bluetooth flavour your device uses.</strong> The procedure below covers a <em>classic</em> Bluetooth device, which uses a single link key. Bluetooth Low Energy (BLE) devices store several keys with a field-by-field mapping between the two systems; that case is related but different, and it is not covered here.</li><li><strong>An unencrypted Windows partition, for this route.</strong> The method reads the Windows registry offline, from Linux. If the Windows partition is protected by BitLocker, Linux cannot read it, and you should instead export the same registry branch from inside Windows, running the Registry Editor as the SYSTEM account with Microsoft’s PsExec tool from Sysinternals.</li><li><strong>Shut Windows down completely</strong> before working from Linux, and disable Fast Startup. A hibernated or fast-startup session can leave the Windows file system in a state Linux should not touch. Throughout this guide, the Windows partition is mounted <em>read-only</em> — nothing is written to Windows at all.</li><li><strong>Treat the link key as a credential.</strong> It is, literally, a password that authenticates your keyboard. In the procedure below, the key is never displayed on screen, never leaves the machine, and the intermediate file that contains it is securely deleted at the end. Keep it that way: do not paste keys into forums, chats, screenshots, or issue reports.</li></ul><h3>Step 1 — Check the device type in Linux</h3><p>Pair the keyboard in Linux first, if it is not paired already. Then inspect the section headers of BlueZ’s stored configuration for the device. One practical subtlety: /var/lib/bluetooth is accessible only to root, so the shell pattern has to be expanded by a root shell, not by your own:</p><pre>sudo sh -c &#39;grep -H &quot;^\[&quot; /var/lib/bluetooth/*/*/info&#39;</pre><p>The output lists the sections of the device’s info file and, in the path, the adapter and device addresses — note both down, as you will need them throughout. A classic device shows a [LinkKey] section and no [LongTermKey] section. That is the simple case: exactly one key to copy. If you see [LongTermKey], you have a BLE device and should stop here and follow a BLE-specific guide instead.</p><h3>Step 2 — Pair in Windows, and make that pairing the master</h3><p>Reboot into Windows. If the keyboard already appears under <strong>Settings → Bluetooth &amp; devices</strong>, remove that entry first. It is a stale record holding a key the keyboard no longer has; “paired” in the list says nothing about whether it can still connect. Removing it forces a genuinely new pairing.</p><p>Put the keyboard into pairing mode, add it as a new Bluetooth device, and confirm it actually types. This pairing is now the master: the key it created is the one the keyboard currently stores, and it is the key Linux will be given.</p><p>Expect the keyboard to stop working in Linux at this point. That is the ping-pong working exactly as described — one step from the end.</p><h3>Step 3 — Read the Windows key, offline, from Linux</h3><p>Back in Linux, with your wired keyboard, mount the Windows partition read-only and confirm the registry hive is present:</p><pre>sudo mkdir -p /mnt/windows<br>sudo mount -o ro /dev/&lt;your-windows-partition&gt; /mnt/windows<br>ls -l /mnt/windows/Windows/System32/config/SYSTEM</pre><p>Identify your Windows partition beforehand (for example with lsblk -f); it is the NTFS partition labelled for Windows, not the EFI, recovery, or data partitions.</p><p>Windows stores its Bluetooth pairing keys in the SYSTEM hive, under:</p><pre>ControlSet001\Services\BTHPORT\Parameters\Keys\&lt;adapter&gt;\&lt;device&gt;</pre><p>That branch is not readable by an ordinary Windows user session — one reason the offline route is convenient. Install the small offline registry tool chntpw for this job; you will remove it again at the end:</p><pre>sudo apt install -y chntpw</pre><p>Then export just that branch to a local file with its companion tool, reged:</p><pre>reged -x /mnt/windows/Windows/System32/config/SYSTEM \<br>  &#39;HKEY_LOCAL_MACHINE\SYSTEM&#39; \<br>  &#39;ControlSet001\Services\BTHPORT\Parameters\Keys&#39; \<br>  ~/btkeys.reg</pre><p>Two safety notes about this file. First, it contains pairing keys for <em>every</em> Bluetooth device paired in Windows, not only the keyboard — handle it accordingly, and never share it. Second, you do not need to open it and read the key with your eyes. The next step processes it locally, in place.</p><p>In the exported file, a classic device appears as a single value named by its device address (lowercase, without colons) under the adapter’s section, in the form:</p><pre>&quot;&lt;device-address&gt;&quot;=hex:xx,xx,xx,... (16 bytes in total)</pre><p>You can confirm your device is present — and check the format — without exposing the key, by counting matches and by printing the line with every hex digit masked:</p><pre>grep -ci &quot;&lt;device-address&gt;&quot; ~/btkeys.reg<br>grep -i &quot;&lt;device-address&gt;&quot; ~/btkeys.reg | sed -E &#39;s/[0-9a-fA-F]/X/g&#39;</pre><p>Expect a count of 1, and a masked line of Xs in the pattern above.</p><h3>Step 4 — Give Linux the same key</h3><p>BlueZ expects the key as 32 uppercase hexadecimal characters, with no separators. The exported form needs only the commas removed and the case changed — read left to right, with no byte reordering for a classic link key. The following converts the key in a shell variable, checks its length, backs up the existing Linux configuration, and rewrites only the Key= line of the device&#39;s info file. The key itself is never printed:</p><pre>KEY=$(grep -i &quot;&lt;device-address&gt;&quot; ~/btkeys.reg \<br>  | sed -E &#39;s/.*hex://; s/,//g&#39; \<br>  | tr -d &#39;\r\n &#39; | tr &#39;a-f&#39; &#39;A-F&#39;)<br>echo &quot;len=${#KEY}&quot;   # must print len=32; stop here if it does not<br><br>sudo cat /var/lib/bluetooth/&lt;ADAPTER&gt;/&lt;DEVICE&gt;/info &gt; ~/bt-info-backup<br>sudo sed -i &quot;s/^Key=.*/Key=$KEY/&quot; \<br>  /var/lib/bluetooth/&lt;ADAPTER&gt;/&lt;DEVICE&gt;/info</pre><p>Replace &lt;ADAPTER&gt; and &lt;DEVICE&gt; with the colon-separated, uppercase addresses you noted in Step 1.</p><p>Before testing anything, verify the write — locally, printing only the verdict:</p><pre>UBUNTU_KEY=$(sudo grep &quot;^Key=&quot; \<br>  /var/lib/bluetooth/&lt;ADAPTER&gt;/&lt;DEVICE&gt;/info \<br>  | sed &#39;s/^Key=//&#39; | tr -d &#39;\r\n &#39;)<br>[ &quot;$KEY&quot; = &quot;$UBUNTU_KEY&quot; ] &amp;&amp; echo MATCH || echo NO-MATCH</pre><p>Anything other than MATCH means stop and re-check the addresses and the conversion; do not proceed on a mismatch.</p><h3>Step 5 — Test in Linux, then prove the round trip</h3><p>Restart the Bluetooth service so BlueZ re-reads the configuration:</p><pre>sudo systemctl restart bluetooth</pre><p>Wake the keyboard. It should connect on its own and type — do not pair it again. Pairing again would generate a new key and undo everything.</p><p>That is half the proof. The full proof is a round trip with no pairing step anywhere in it:</p><ol><li>Reboot into Windows. The keyboard should connect and type.</li><li>Reboot into Linux. The keyboard should connect and type.</li></ol><p>When both pass consecutively, the two operating systems are presenting the same key, and the re-pairing loop is over.</p><h3>Step 6 — Clean up</h3><p>The export file has served its purpose, and it contains credentials for all of your Windows-paired Bluetooth devices. Delete it properly, along with the backup of the old Linux configuration, unmount the Windows partition, and remove the tool you installed for the occasion:</p><pre>shred -u ~/btkeys.reg ~/bt-info-backup<br>sudo umount /mnt/windows<br>sudo apt remove -y chntpw</pre><h3>If it ever breaks again</h3><p>The synchronisation is not fragile in daily use, but it is not permanent either. Re-pairing the device on either side creates a new key and desynchronises the systems, and a major Windows update or a Bluetooth driver reinstall can do the same. The recovery is simply to repeat the copy: pair fresh in Windows, export the key from Linux, write it into the Linux configuration, restart Bluetooth, and run the round-trip test. Fifteen minutes, most of it rebooting.</p><p>There is also an alternative worth knowing before you start: many keyboards offer multiple Bluetooth channels (often labelled BT1, BT2, BT3). Pairing one channel to Windows and another to Linux sidesteps the shared-key problem entirely, at the cost of switching channels when you switch systems. If your keyboard has spare channels and you prefer that trade-off, take it. The key-sync method above is for the common case — one channel, two operating systems, and no interest in thinking about either ever again.</p><h3>Summary</h3><p>The dual-boot pairing loop is not a device fault; it is two key stores overwriting one shared credential. Pair in Linux, pair in Windows, copy the Windows link key into Linux’s configuration without ever displaying it, and verify with a clean round trip. One keyboard, two operating systems, one key.</p><p><em>Scope note: this guide covers classic Bluetooth devices (a single </em><em>[LinkKey]) on Windows 11 and Ubuntu 24.04, using the offline registry route. BLE devices, BitLocker-encrypted Windows installations, and multi-host channel switching follow different procedures. Work on a backup, keep a wired keyboard at hand, and treat all pairing keys as credentials.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a822f20cc55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inconvenience-institute/one-keyboard-two-operating-systems-2a822f20cc55">One Keyboard, Two Operating Systems</a> was originally published in <a href="https://medium.com/inconvenience-institute">The Inconvenience Institute</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why [‘11’, ‘11’, ‘11’].map(parseInt) returns [11, NaN, 3] in Javascript]]></title>
            <link>https://inconvenience-institute.medium.com/why-11-11-11-map-parseint-returns-11-nan-3-in-javascript-3b47f79c8920?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b47f79c8920</guid>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Sat, 01 May 2021 01:50:32 GMT</pubDate>
            <atom:updated>2021-05-01T01:59:32.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Array.prototype.map passes 3 arguments to callback: currentValue, index, array<br><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map</a></p><p>parseInt takes string and the 2nd optional argument radix.<br>Valid radix is an integer between 2 and 36.<br>radix is 10 if 0 is specified and the string doesn’t start with “0x” or “0X”.<br><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt</a></p><p>So the parseInt is called with arguments:</p><blockquote>(‘11’, 0, [‘11’, ‘11’, ‘11’]) =&gt; 11 // 0 is interpreted as 10<br>(‘11’, 1, [‘11’, ‘11’, ‘11’]) =&gt; NaN // invalid radix<br>(‘11’, 2, [‘11’, ‘11’, ‘11’]) =&gt; 3 // radix is 2</blockquote><p>BTW, partialRight of Ramda.js doesn’t help. partialRight just add another argument to the end of the function call.</p><blockquote>&gt; const R = require(‘ramda’);<br>&gt; [‘11’, ‘11’, ‘11’].map(R.partialRight(parseInt, [10]))<br>[ 11, NaN, 3 ]</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b47f79c8920" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrate Google Authenticator to speakeasyjs]]></title>
            <link>https://inconvenience-institute.medium.com/migrate-google-authenticator-to-speakeasyjs-8bd1a1eab5fa?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bd1a1eab5fa</guid>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 03:58:43 GMT</pubDate>
            <atom:updated>2021-04-29T04:10:09.851Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Google Authenticator: three-dot menu &gt; Transfer accounts &gt; Export accounts &gt; (PIN) &gt; Next &gt; (Pick your accounts) &gt; Next</li><li>You will get a QR code</li><li>Scan the QR code by any QR code scanner to get the text like otpauth-migration://offline?data=…</li><li>Decode the otpauth-migration link by using <a href="https://github.com/scito/extract_otp_secret_keys">https://github.com/scito/extract_otp_secret_keys</a></li><li>You will get the Name, Secret, Issuer, Type and the QR code</li><li>The following code can generate the TOTP and you can find it’s same as the code generated in Google Authenticator</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef163e9f1863b8fff3b3cf66c7e1e77c/href">https://medium.com/media/ef163e9f1863b8fff3b3cf66c7e1e77c/href</a></iframe><p>Links:</p><ul><li>Speakeasy: <a href="https://github.com/speakeasyjs/speakeasy">https://github.com/speakeasyjs/speakeasy</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bd1a1eab5fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Remote Controller]]></title>
            <link>https://inconvenience-institute.medium.com/android-remote-controller-5ed5b60137ad?source=rss-a8a11664f11b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed5b60137ad</guid>
            <category><![CDATA[cv2]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[adb]]></category>
            <dc:creator><![CDATA[Inconvenience Institute]]></dc:creator>
            <pubDate>Sat, 10 Oct 2020 05:48:18 GMT</pubDate>
            <atom:updated>2020-10-10T05:49:19.077Z</atom:updated>
            <content:encoded><![CDATA[<p>Android Phone の電池を自前で交換してタッチパネルが効かなくなってしまった。</p><p>ADB が有効になっているので ADB を通して操作できないかと思って WSL 上 opencv-python を試してみた。</p><p>結果的には時間が経ってタッチパネルも復活したので必要なくなったが、せっかく試したのでここにメモを残すことに。</p><h4>事前準備</h4><ul><li>VcXsrv Windows X Server をインストール<br><a href="https://sourceforge.net/projects/vcxsrv/">https://sourceforge.net/projects/vcxsrv/</a></li><li>opencv をインストール<br>pip3 install scikit-build<br>pip3 install opencv-python<br>pip3 install opencv-contrib-python</li></ul><h4>コード</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ded888a5426ca7a15c6f0cc987e4c32/href">https://medium.com/media/3ded888a5426ca7a15c6f0cc987e4c32/href</a></iframe><h4>参考情報</h4><ul><li><a href="https://www.pyimagesearch.com/2015/03/09/capturing-mouse-click-events-with-python-and-opencv/">https://www.pyimagesearch.com/2015/03/09/capturing-mouse-click-events-with-python-and-opencv/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ed5b60137ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>