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:
@@ -61,18 +61,7 @@ Not ported, and why:
|
||||
|
||||
## Pop!_OS-specific
|
||||
|
||||
- [ ] Pin srt. `configure.d/lib/tools.sh` installs the latest
|
||||
`@anthropic-ai/sandbox-runtime`, so a new release reaches every computer
|
||||
untested. One already broke opencode's sandbox: srt's Unix socket filter
|
||||
needs a user namespace inside bubblewrap, which Pop!_OS' AppArmor
|
||||
(`bwrap-userns-restrict`) denies. opencode now allows all Unix sockets
|
||||
and hides their paths instead, as Hermes and Cline Desktop do. Pin a
|
||||
version the smoketest passed with, and move the pin only after
|
||||
`smoketest/run 50 80` passes on the new one.
|
||||
- [ ] Start the real opencode in its sandbox on Pop!_OS, to check it needs no
|
||||
socket the new `denyRead` list hides. Only a stand-in has run so far.
|
||||
- [ ] The development machine runs Pop!_OS 26.04, but the smoketest still builds on Ubuntu
|
||||
24.04 and smoketest/README.md says 24.04. Decide which release the
|
||||
connector supports, and test on it.
|
||||
- [ ] The manual checks in [TEST.md](TEST.md) on a real Pop!_OS machine,
|
||||
against a real Core. None have been done yet.
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -30,7 +30,7 @@ every change that a container can check.
|
||||
|
||||
You need:
|
||||
|
||||
- A computer with Pop!_OS 24.04 and COSMIC, logged in as an administrator.
|
||||
- A computer with Pop!_OS 26.04 and COSMIC, logged in as an administrator.
|
||||
A fresh install, or a VM, is best for the install tests.
|
||||
- A Federated Core you can test with: its Superpanel address, and an email
|
||||
address and password on it.
|
||||
@@ -51,7 +51,8 @@ ticks when the item changes.
|
||||
puts `configure` and `update` on PATH in a new terminal, and offers to
|
||||
run `configure`
|
||||
- [ ] `update` shows what changed and installs it, while a backup runs
|
||||
- [ ] On another Ubuntu 24.04-based system, `configure` says it isn't Pop!_OS
|
||||
- [ ] On another Ubuntu 26.04-based system, `configure` says it isn't Pop!_OS
|
||||
- [ ] On Pop!_OS 24.04, the installer says to upgrade, and installs nothing
|
||||
|
||||
### Your Federated Core (`configure core`)
|
||||
|
||||
@@ -116,6 +117,4 @@ Once it's packaged for Pop!_OS (see [PLAN.md](PLAN.md)):
|
||||
- [ ] Each agent installs and signs in, and runs in the sandbox
|
||||
- [ ] Claude Code's notification, from Claude in COSMIC Terminal, shows the
|
||||
project folder, and clicking it brings COSMIC Terminal back
|
||||
- [ ] If Pop!_OS restricts user namespaces, the AppArmor profile for
|
||||
bubblewrap lets the sandbox start
|
||||
- [ ] An AI server on the network or tailnet is found by `configure ai-servers`
|
||||
|
||||
@@ -134,8 +134,12 @@ case "$1" in
|
||||
exit 2 ;;
|
||||
esac
|
||||
|
||||
if os_too_old; then
|
||||
echo -e "\e[31mThis needs Pop!_OS 26.04 or later; this computer runs $(os_name). Upgrade first.\e[0m"
|
||||
exit 1
|
||||
fi
|
||||
if ! is_pop; then
|
||||
echo -e "\e[33mThis is made for Pop!_OS with COSMIC; this computer runs $(os_name).\e[0m"
|
||||
echo -e "\e[33mThis is made for Pop!_OS 26.04 or later with COSMIC; this computer runs $(os_name).\e[0m"
|
||||
echo "Most of it works on other Ubuntu-based systems too."
|
||||
fi
|
||||
|
||||
|
||||
@@ -645,8 +645,8 @@ failed() {
|
||||
# <title> <provider> <identity> <setup> <fix> <enable>
|
||||
# Email's password is checked with Nextcloud before it's tried on the mail
|
||||
# server: each wrong password counts towards the mail server blocking this
|
||||
# computer. Online Accounts 3.50, which Pop!_OS 24.04 has, marks an account
|
||||
# as needing attention when the server can't be reached too, so that isn't
|
||||
# computer. Online Accounts can mark an account as needing attention when the
|
||||
# server can't be reached too, so that isn't
|
||||
# taken to mean a wrong password.
|
||||
test_account() {
|
||||
local error off works=1
|
||||
|
||||
@@ -13,7 +13,6 @@ BASE_CONFIG="$CONNECTOR/sandbox/config/base.json"
|
||||
BASHRC="$HOME/.bashrc"
|
||||
BLOCK_START="# >>> Federated Connector: agents >>>"
|
||||
BLOCK_END="# <<< Federated Connector: agents <<<"
|
||||
APPARMOR_PROFILE="/etc/apparmor.d/federated-connector-bwrap"
|
||||
source "$CONNECTOR/configure.d/lib/json.sh"
|
||||
source "$CONNECTOR/configure.d/lib/tools.sh"
|
||||
|
||||
@@ -61,31 +60,12 @@ put_on_path() {
|
||||
|
||||
# --- bubblewrap and Ubuntu's AppArmor ---------------------------------------------
|
||||
|
||||
# Ubuntu 24.04 lets only programs AppArmor allows make the user namespaces
|
||||
# bubblewrap needs, and has no rule for bubblewrap itself
|
||||
# Pop!_OS 26.04 lets bubblewrap make user namespaces: Ubuntu's AppArmor
|
||||
# profile for it (bwrap-userns-restrict) allows them
|
||||
bwrap_works() {
|
||||
bwrap --ro-bind / / --unshare-user --unshare-net true 2> /dev/null
|
||||
}
|
||||
|
||||
allow_bwrap() {
|
||||
echo "Ubuntu's AppArmor doesn't let bubblewrap, which the sandbox is built on, make"
|
||||
echo "user namespaces. A profile for /usr/bin/bwrap allows it, as Ubuntu suggests."
|
||||
confirm_yes "Add it ($APPARMOR_PROFILE)?" || return 1
|
||||
sudo tee "$APPARMOR_PROFILE" > /dev/null << 'EOF' || return 1
|
||||
# Written by Federated Connector (configure agents): let bubblewrap, which the
|
||||
# AI agent sandbox uses, make user namespaces
|
||||
abi <abi/4.0>,
|
||||
include <tunables/global>
|
||||
|
||||
profile federated-connector-bwrap /usr/bin/bwrap flags=(unconfined) {
|
||||
userns,
|
||||
include if exists <local/federated-connector-bwrap>
|
||||
}
|
||||
EOF
|
||||
sudo apparmor_parser -r "$APPARMOR_PROFILE" || return 1
|
||||
bwrap_works || { echo "bubblewrap still can't make user namespaces."; return 1; }
|
||||
}
|
||||
|
||||
# --- Claude Code -------------------------------------------------------------------
|
||||
|
||||
# Claude Code runs every command it starts in its own sandbox, also built on
|
||||
@@ -214,7 +194,7 @@ sandbox_cline() {
|
||||
# --- The item -------------------------------------------------------------------------
|
||||
|
||||
sandbox_ready() {
|
||||
srt_path > /dev/null && on_path && pkg_installed "${SANDBOX_PACKAGES[@]}" && bwrap_works \
|
||||
srt_current && on_path && pkg_installed "${SANDBOX_PACKAGES[@]}" && bwrap_works \
|
||||
&& { ! agent_installed claude || { claude_sandbox_on && ! old_claude_notifications; }; } \
|
||||
&& gateway_ok && cline_ok
|
||||
}
|
||||
@@ -263,13 +243,9 @@ run_configure() {
|
||||
echo
|
||||
pkg_ensure "The sandbox" "${SANDBOX_PACKAGES[@]}" || return 1
|
||||
if ! bwrap_works; then
|
||||
if [ "$(sysctl -n kernel.apparmor_restrict_unprivileged_userns 2> /dev/null)" = 1 ]; then
|
||||
allow_bwrap || { echo -e "\e[31mWithout it, the agents can't run in the sandbox.\e[0m"; return 1; }
|
||||
else
|
||||
echo -e "\e[31mbubblewrap can't make user namespaces on this computer, so the sandbox can't run.\e[0m"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
srt_ensure || { echo -e "\e[31mWithout srt, opencode and Hermes can't run in the sandbox.\e[0m"; return 1; }
|
||||
if ! on_path; then
|
||||
echo "Typing opencode or hermes should run it in the sandbox. That takes a line at the"
|
||||
|
||||
@@ -36,9 +36,8 @@ GNOME Settings), such as "Calendar, Files", and enable turns them back on.
|
||||
|
||||
attention exits 0 if Online Accounts marked the account as needing
|
||||
attention. It doesn't sign in, so it doesn't add to the server's count of
|
||||
failed logins. Online Accounts 3.50, which Pop!_OS 24.04 has, marks it for
|
||||
any failure, including a server it couldn't reach, so it's only a hint that
|
||||
the password may be wrong (see system/email-watch).
|
||||
failed logins. Online Accounts can mark it for any failure, including a
|
||||
server it couldn't reach, so it's only a hint that the password may be wrong (see system/email-watch).
|
||||
|
||||
pause empties the account's saved password, keeping its place in the keyring.
|
||||
Online Accounts signs in again whenever the network changes, and Evolution
|
||||
|
||||
@@ -11,6 +11,15 @@ is_pop() {
|
||||
[ "$(. /etc/os-release 2> /dev/null && echo "$ID")" = pop ]
|
||||
}
|
||||
|
||||
# Pop!_OS (or Ubuntu) older than 26.04, which the connector no longer supports
|
||||
os_too_old() {
|
||||
local id version
|
||||
id="$(. /etc/os-release 2> /dev/null && echo "$ID")"
|
||||
version="$(. /etc/os-release 2> /dev/null && echo "$VERSION_ID")"
|
||||
case "$id" in pop|ubuntu) ;; *) return 1 ;; esac
|
||||
[ -n "$version" ] && [ "$(printf '%s\n' 26.04 "$version" | sort -V | head -n 1)" != 26.04 ]
|
||||
}
|
||||
|
||||
os_name() {
|
||||
(. /etc/os-release 2> /dev/null && echo "${PRETTY_NAME:-$ID}") || uname -s
|
||||
}
|
||||
|
||||
@@ -4,11 +4,18 @@
|
||||
# sandbox. Source this file after lib/agents.sh; it uses
|
||||
# confirm_yes from configure.
|
||||
#
|
||||
# srt needs Node.js 22.12 or later, and Pop!_OS 24.04's is 18. So unless a
|
||||
# new enough one is installed already, the current long-term support release
|
||||
# is downloaded from nodejs.org into FC_TOOLS/node, checked against the
|
||||
# SHA-256 sums it publishes, and used only for srt: nothing in /usr or your
|
||||
# shell changes.
|
||||
# srt needs Node.js 22.12 or later, which Pop!_OS doesn't install. So unless
|
||||
# one is installed already (Pop!_OS 26.04's nodejs package is new enough), the
|
||||
# current long-term support release is downloaded from nodejs.org into
|
||||
# FC_TOOLS/node, checked against the SHA-256 sums it publishes, and used only
|
||||
# for srt: nothing in /usr or your shell changes.
|
||||
#
|
||||
# srt is pinned to a version the smoketest passed with: a new release once
|
||||
# broke opencode's sandbox on Pop!_OS. To move the pin, change SRT_VERSION,
|
||||
# run smoketest/run 50 80, and commit only if it passes. Computers that have
|
||||
# the old version see the agents item as to do in configure, which installs
|
||||
# the new one.
|
||||
SRT_VERSION=0.0.83
|
||||
|
||||
# srt needs Node.js 22.12 or later
|
||||
node_ok() {
|
||||
@@ -61,12 +68,30 @@ install_srt() {
|
||||
node_dir="$(dirname "$(PATH="$FC_TOOLS/node/bin:$PATH" command -v node)")"
|
||||
echo "Installing the sandbox runtime (srt) from npm..."
|
||||
PATH="$node_dir:$PATH" "$node_dir/npm" install --global --prefix "$FC_TOOLS/srt" \
|
||||
--no-fund --no-audit --ignore-scripts @anthropic-ai/sandbox-runtime > /dev/null
|
||||
--no-fund --no-audit --ignore-scripts "@anthropic-ai/sandbox-runtime@$SRT_VERSION" > /dev/null
|
||||
}
|
||||
|
||||
# The version of Federated Connector's own srt, or nothing
|
||||
srt_version() {
|
||||
jq -r '.version // empty' \
|
||||
"$FC_TOOLS/srt/lib/node_modules/@anthropic-ai/sandbox-runtime/package.json" 2> /dev/null
|
||||
}
|
||||
|
||||
# Federated Connector's own srt is installed, at the version it's pinned to
|
||||
srt_current() {
|
||||
[ "$(srt_version)" = "$SRT_VERSION" ] && srt_path > /dev/null
|
||||
}
|
||||
|
||||
# Updating srt is installing it again
|
||||
srt_ensure() {
|
||||
srt_path > /dev/null && return 0
|
||||
srt_current && return 0
|
||||
if [ -n "$(srt_version)" ]; then
|
||||
echo "The sandbox runtime (srt) is at $(srt_version); this version of Federated Connector"
|
||||
echo "was tested with $SRT_VERSION."
|
||||
confirm_yes "Install $SRT_VERSION?" || return 1
|
||||
install_srt
|
||||
return
|
||||
fi
|
||||
echo "The sandbox is Anthropic's sandbox runtime (srt), which runs on Node.js."
|
||||
node_ok || echo "This computer's Node.js is older than srt needs, so it gets its own, from nodejs.org."
|
||||
confirm_yes "Install it (into $FC_TOOLS)?" || return 1
|
||||
|
||||
+6
-1
@@ -73,8 +73,13 @@ preflight() {
|
||||
[ "$(uname -s)" = Linux ] || fail "This is for Pop!_OS. On a Mac, use Federated Connector for macOS."
|
||||
[ "$(id -u)" -ne 0 ] || fail "Run this as yourself, not as root. It asks for your password when it needs it."
|
||||
command -v apt-get > /dev/null || fail "This is for Pop!_OS (or another Ubuntu-based system); this one has no apt."
|
||||
case "$(os_field ID)" in
|
||||
pop|ubuntu)
|
||||
[ "$(printf '%s\n' 26.04 "$(os_field VERSION_ID)" | sort -V | head -n 1)" = 26.04 ] \
|
||||
|| fail "This needs Pop!_OS 26.04 or later; this computer runs $(os_field PRETTY_NAME). Upgrade first." ;;
|
||||
esac
|
||||
if [ "$(os_field ID)" != pop ]; then
|
||||
echo "${YELLOW}This is made for Pop!_OS with COSMIC; this computer runs $(os_field PRETTY_NAME)."
|
||||
echo "${YELLOW}This is made for Pop!_OS 26.04 or later with COSMIC; this computer runs $(os_field PRETTY_NAME)."
|
||||
echo "Most of it works on other Ubuntu-based systems too.$RESET"
|
||||
fi
|
||||
if ! id -Gn | tr ' ' '\n' | grep -qxE 'sudo|admin'; then
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Ubuntu 24.04, which Pop!_OS 24.04 is built on: the same apt packages,
|
||||
# Ubuntu 26.04, which Pop!_OS 26.04 is built on: the same apt packages,
|
||||
# except COSMIC's own. A user "pop" with passwordless sudo, as configure
|
||||
# expects an administrator. configure's own packages (install.sh's PACKAGES)
|
||||
# are already in, to keep each scenario quick; 05-install takes one out.
|
||||
FROM ubuntu:24.04
|
||||
FROM ubuntu:26.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends sudo ca-certificates curl dbus-x11 gnome-keyring \
|
||||
@@ -10,6 +10,6 @@ RUN apt-get update \
|
||||
jq libsecret-tools python3-gi gir1.2-secret-1 libnotify-bin avahi-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN useradd -m -s /bin/bash pop && echo 'pop ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/pop \
|
||||
&& printf 'ID=pop\nNAME="Pop!_OS"\nPRETTY_NAME="Pop!_OS 24.04 LTS (smoketest)"\nVERSION_ID="24.04"\nID_LIKE="ubuntu debian"\nUBUNTU_CODENAME=noble\nVERSION_CODENAME=noble\n' > /etc/os-release
|
||||
&& printf 'ID=pop\nNAME="Pop!_OS"\nPRETTY_NAME="Pop!_OS 26.04 LTS (smoketest)"\nVERSION_ID="26.04"\nID_LIKE="ubuntu debian"\nUBUNTU_CODENAME=resolute\nVERSION_CODENAME=resolute\n' > /etc/os-release
|
||||
USER pop
|
||||
WORKDIR /home/pop
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Smoketest
|
||||
|
||||
These tests run `configure`'s pieces on Ubuntu 24.04, which Pop!_OS 24.04 is built on, in throwaway Docker containers. A container has the same apt packages as Pop!_OS, except COSMIC's own, and `/etc/os-release` says Pop!_OS. Each scenario starts with what a login gives: `USER`, `/run/user/<uid>`, a session D-Bus in it and an unlocked gnome-keyring, as on Pop!_OS.
|
||||
These tests run `configure`'s pieces on Ubuntu 26.04, which Pop!_OS 26.04 is built on, in throwaway Docker containers. A container has the same apt packages as Pop!_OS, except COSMIC's own, and `/etc/os-release` says Pop!_OS. Each scenario starts with what a login gives: `USER`, `/run/user/<uid>`, a session D-Bus in it and an unlocked gnome-keyring, as on Pop!_OS.
|
||||
|
||||
They check what lint can't:
|
||||
|
||||
@@ -43,7 +43,7 @@ Each run writes its logs to `smoketest/results/<time>/`, one per scenario, and p
|
||||
|
||||
## What still needs Pop!_OS
|
||||
|
||||
A container has no COSMIC session, systemd user manager, FUSE mounts or AppArmor, so check these by hand on Pop!_OS 24.04:
|
||||
A container has no COSMIC session, systemd user manager, FUSE mounts or AppArmor, so check these by hand on Pop!_OS 26.04:
|
||||
|
||||
- **COSMIC Files** shows a folder added to its sidebar, with its name.
|
||||
- **Evolution** shows the email, calendars and contacts that `configure core` adds, against a real Core.
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Purpose : Run the smoketest scenarios, each in a fresh Ubuntu 24.04
|
||||
# container (Pop!_OS 24.04's base) with Docker. See README.md.
|
||||
# Purpose : Run the smoketest scenarios, each in a fresh Ubuntu 26.04
|
||||
# container (Pop!_OS 26.04's base) with Docker. See README.md.
|
||||
#
|
||||
# Usage: smoketest/run [--tier quick|all] [--keep] [scenario...]
|
||||
# smoketest/run --list
|
||||
|
||||
@@ -26,4 +26,12 @@ scenario() {
|
||||
check "no staging folders are left" bash -c '! compgen -G "$HOME/.local/share/federated-connector/.connector-*"'
|
||||
check_eq "the PATH block is in ~/.bashrc once" 1 "$(grep -c '>>> Federated Connector commands >>>' "$HOME/.bashrc")"
|
||||
check "the installed configure runs" "$HOME/.local/bin/configure" --help
|
||||
|
||||
step "On Pop!_OS 24.04, which isn't supported"
|
||||
sudo cp /etc/os-release "$HOME/os-release"
|
||||
sudo sed -i 's/26\.04/24.04/g; s/resolute/noble/g' /etc/os-release
|
||||
bash < "$CONNECTOR/install.sh" > "$HOME/old.log" 2>&1
|
||||
check_eq "install.sh stops" 1 $?
|
||||
check "it says to upgrade" grep -q "needs Pop!_OS 26.04 or later" "$HOME/old.log"
|
||||
sudo cp "$HOME/os-release" /etc/os-release
|
||||
}
|
||||
|
||||
@@ -21,4 +21,11 @@ scenario() {
|
||||
check "configure core gives up on a Superpanel it can't reach" \
|
||||
bash -c "printf 'https://superpanel.smoke.invalid\n' | '$CONNECTOR/configure' core | grep -q \"Couldn't reach https://superpanel.smoke.invalid\""
|
||||
check_not "it doesn't run as root" sudo "$CONNECTOR/configure" --list
|
||||
|
||||
sudo cp /etc/os-release "$HOME/os-release"
|
||||
sudo sed -i 's/26\.04/24.04/g; s/resolute/noble/g' /etc/os-release
|
||||
out="$(echo q | "$CONNECTOR/configure" 2>&1)"
|
||||
check_eq "on Pop!_OS 24.04, the menu stops" 1 "$(echo q | "$CONNECTOR/configure" > /dev/null 2>&1; echo $?)"
|
||||
check "and says to upgrade" grep -q "needs Pop!_OS 26.04 or later" <<< "$out"
|
||||
sudo cp "$HOME/os-release" /etc/os-release
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ scenario() {
|
||||
check "install_srt" install_srt
|
||||
check "Node.js is in ~/.local/share/federated-connector/node" test -x "$FC_TOOLS/node/bin/node"
|
||||
check "srt is found" srt_path
|
||||
check "srt is the version it's pinned to ($SRT_VERSION)" srt_current
|
||||
|
||||
step "A stand-in agent"
|
||||
mkdir -p "$HOME/.local/bin" "$HOME/.ssh" "$project"
|
||||
|
||||
+3
-3
@@ -7,9 +7,9 @@ changes, and Evolution each time it fetches mail, and after a few wrong
|
||||
passwords the mail server's fail2ban blocks this computer.
|
||||
|
||||
Online Accounts doesn't reliably say when a mail server refuses a password:
|
||||
3.50, which Pop!_OS 24.04 has, marks an account as needing attention for any
|
||||
failure, including a server it can't reach, and 3.58 reports a refused mail
|
||||
password as a general failure. It does say when Nextcloud refuses one, and Nextcloud
|
||||
3.58, which Pop!_OS 26.04 has, reports a refused mail password as a general
|
||||
failure, and older ones mark an account as needing attention for any failure,
|
||||
including a server they can't reach. It does say when Nextcloud refuses one, and Nextcloud
|
||||
turns off its app passwords when your Core password changes. So when the
|
||||
Core's Nextcloud in Online Accounts needs attention, this signs in to Nextcloud,
|
||||
once, with the password email has (your Core password). If Nextcloud says it's
|
||||
|
||||
Reference in New Issue
Block a user