Set up Pop!_OS for a Federated Core, like CoreDesktop's configure

A port of CoreDesktop's configure to Pop!_OS 24.04 with COSMIC, in the shape
of connector-macos: its own install.sh, update and configure, installed in
~/.local/share/federated-connector/connector.

Every configure item is ported: the Core (email, calendars and contacts
through GNOME Online Accounts and Evolution, as COSMIC has no accounts of its
own; Superpanel; files over davfs2; Element; Tally; the email watcher),
Tailscale, backups, AI agents in the sandbox and their sign-ins, languages
with mise, AI servers, printers, network storage and the agent sandbox.
Folders go in the COSMIC Files sidebar. Each item installs what it needs
from apt, Flathub or the tool's own apt repository when you set it up.

smoketest/run checks it in Ubuntu 24.04 containers with Docker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 14:20:47 -07:00
co-authored by Claude Opus 5.5
commit bc07e1d3e3
60 changed files with 5626 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# shellcheck shell=bash
# Scenarios set what the runner and items read
# shellcheck disable=SC2034
DESCRIPTION="install.sh piped into bash, as curl | bash runs it, then update"
TIER=quick
scenario() {
step "Install the working copy, with jq missing"
sudo apt-get remove -y jq > /dev/null 2>&1
export FEDERATED_CONNECTOR_SOURCE="$CONNECTOR"
bash < "$CONNECTOR/install.sh" > "$HOME/install.log" 2>&1
check_eq "install.sh succeeds" 0 $?
check "it installed jq again" pkg_installed jq
check "configure is linked in ~/.local/bin" test -L "$HOME/.local/bin/configure"
check "update is linked in ~/.local/bin" test -L "$HOME/.local/bin/update"
check "the install is in place" test -x "$HOME/.local/share/federated-connector/connector/configure"
check_eq "it records the version" local "$(cat "$HOME/.local/share/federated-connector/connector/.version")"
check "configure is on PATH in a new bash" bash -ic 'command -v configure' < /dev/null
check "it didn't ask to run configure without a terminal" grep -q "In a new terminal, run: configure" "$HOME/install.log"
check "it wrote a log" compgen -G "$HOME/.local/state/federated-connector/install-*.log"
step "update"
check "update --version" "$HOME/.local/bin/update" --version
"$HOME/.local/bin/update" > "$HOME/update.log" 2>&1
check_eq "update succeeds" 0 $?
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
}