Pin srt to a tested version; support only Pop!_OS 26.04 and later
srt is pinned to 0.0.83, the version the smoketest passed with. A computer with another version sees the agents item as to do in configure, which installs the pinned one. Move the pin only after smoketest/run 50 80 passes. The installer and configure stop on Pop!_OS (or Ubuntu) older than 26.04. The smoketest builds on Ubuntu 26.04, with checks that 24.04 is refused. 26.04's own AppArmor profile lets bubblewrap make user namespaces, so the connector's profile for it, and the code that offered to add it, are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ Sets up a Pop!_OS computer for your Federated Core. It's the Pop!_OS counterpart
|
||||
|
||||
## Requirements
|
||||
|
||||
- Pop!_OS 24.04 with COSMIC. Most of it works on other Ubuntu 24.04-based systems too; `configure` says so if it's run on one.
|
||||
- Pop!_OS 26.04 or later, with COSMIC. Older releases aren't supported: the installer and `configure` stop on them. Most of it works on other Ubuntu-based systems too; `configure` says so if it's run on one.
|
||||
- An administrator account (in the `sudo` group): `configure` installs packages and changes system settings such as mounts, printers and Tailscale.
|
||||
|
||||
## Installing
|
||||
@@ -107,7 +107,7 @@ So the email watcher watches for it, without ever trying the password on the mai
|
||||
|
||||
Click the notification to open `configure core` in COSMIC Terminal, choose "Your Core password changed" and enter your new password; that ends the pause.
|
||||
|
||||
The Online Accounts that Pop!_OS 24.04 has (3.50) also flags an account when its server just can't be reached. The watcher and "Test a Core" don't take that to mean a wrong password: they check with Nextcloud first, and do nothing if Nextcloud can't be reached either.
|
||||
Online Accounts doesn't reliably tell a refused password from a server it just can't reach. The watcher and "Test a Core" don't take that to mean a wrong password: they check with Nextcloud first, and do nothing if Nextcloud can't be reached either.
|
||||
|
||||
### Restoring from a backup
|
||||
|
||||
@@ -138,9 +138,7 @@ Typing `opencode`, `hermes` or `hermes-agent` runs it in the sandbox: `configure
|
||||
|
||||
If Hermes' gateway is set up as a service, `configure agents` runs it in the sandbox too. Hermes can change its own settings from inside the sandbox, so the Matrix server they name isn't trusted on its own: `configure hermes` asks whether it's your server and may be reached, and keeps your answer in `~/.config/federated-connector/sandbox/hermes.json`, which no sandbox can read or write. For other messaging services, add their domains to that file as shown below. If Cline Desktop is installed, its entry in the app library opens it in the sandbox.
|
||||
|
||||
srt needs Node.js 22.12 or later, and Pop!_OS 24.04's is older. Unless a new enough one is installed already, `configure agents` downloads the current LTS from nodejs.org into `~/.local/share/federated-connector/node`, checks it against the SHA-256 sums nodejs.org publishes, and uses it only for srt.
|
||||
|
||||
Ubuntu 24.04 lets only programs AppArmor allows make the user namespaces bubblewrap needs. If that stops the sandbox here, `configure agents` offers to add an AppArmor profile for `/usr/bin/bwrap` (`/etc/apparmor.d/federated-connector-bwrap`), as Ubuntu suggests.
|
||||
srt needs Node.js 22.12 or later, which Pop!_OS doesn't install. Unless a new enough one is installed already (Pop!_OS 26.04's `nodejs` package is), `configure agents` downloads the current LTS from nodejs.org into `~/.local/share/federated-connector/node`, checks it against the SHA-256 sums nodejs.org publishes, and uses it only for srt. srt itself is pinned to a version the smoketest has passed with (`SRT_VERSION` in `configure.d/lib/tools.sh`); when a newer Federated Connector moves the pin, `configure` shows the agents item as to do, and running it installs that version.
|
||||
|
||||
To allow more, put a file in the same format as `sandbox/config/base.json` in `~/.config/federated-connector/sandbox/`: `base.json` for every agent, or `<agent>.json` for one. Lists in it are added to the built-in ones.
|
||||
|
||||
@@ -174,7 +172,7 @@ Each file in `configure.d/` is one item. It sets `TITLE` and `DESCRIPTION` and d
|
||||
|
||||
## Testing
|
||||
|
||||
`make lint` runs shellcheck. `smoketest/run` runs the scenarios in `smoketest/`, each in a fresh Ubuntu 24.04 container with Docker. See [smoketest/README.md](smoketest/README.md).
|
||||
`make lint` runs shellcheck. `smoketest/run` runs the scenarios in `smoketest/`, each in a fresh Ubuntu 26.04 container with Docker. See [smoketest/README.md](smoketest/README.md).
|
||||
|
||||
## Differences from CoreDesktop
|
||||
|
||||
@@ -183,7 +181,7 @@ Each file in `configure.d/` is one item. It sets `TITLE` and `DESCRIPTION` and d
|
||||
- The Files sidebar is COSMIC Files'; folders are added to GTK's bookmarks too.
|
||||
- davfs2 mounts need Ubuntu's setuid `mount.davfs` and the `davfs2` group, where Arch uses the `network` group.
|
||||
- Languages come from mise's apt repository, and nothing is installed with it up front. CoreDesktop's `update` upgrades them; here, run `mise upgrade`.
|
||||
- The agents are installed by `configure agents`, and srt runs on its own Node.js. On Ubuntu, bubblewrap may need an AppArmor profile.
|
||||
- The agents are installed by `configure agents`, and srt runs on its own Node.js. bubblewrap needs Pop!_OS 26.04's AppArmor profile for it (`bwrap-userns-restrict`).
|
||||
- A fingerprint works for sudo and polkit, but not the login and lock screens: COSMIC's greeter signs in through `common-auth`, which this leaves alone. CoreDesktop's works on GNOME's login and lock screens too.
|
||||
- `update` updates only Federated Connector; Pop!_OS updates the rest. Like CoreDesktop's, it keeps the computer awake until it's done.
|
||||
- Taildrop receives files, but COSMIC Files has no Scripts menu for CoreDesktop's "Send with Tailscale"; send with `tailscale file cp`.
|
||||
|
||||
Reference in New Issue
Block a user