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
+47
View File
@@ -0,0 +1,47 @@
#!/bin/bash
#
# Purpose : Find the AI agents' real commands, outside the sandbox's own
# (sandbox/bin), and the sandbox runtime. Sourced by configure and
# sandbox/agent. Needs CONNECTOR.
SANDBOX_BIN="$CONNECTOR/sandbox/bin"
FC_TOOLS="$HOME/.local/share/federated-connector"
# Where the agents' installers put them, in case your shell's PATH doesn't
# have them yet (e.g. right after installing)
AGENT_DIRS="$HOME/.local/bin:$HOME/.opencode/bin:$HOME/.hermes/bin:/usr/local/bin:/usr/bin"
# The real command for an agent: the first on PATH, or in AGENT_DIRS, that
# isn't in sandbox/bin
agent_path() {
local dir bin_dir IFS=:
bin_dir="$(realpath "$SANDBOX_BIN" 2> /dev/null)"
for dir in $PATH:$AGENT_DIRS; do
[ -n "$dir" ] && [ -d "$dir" ] || continue
[ "$(realpath "$dir")" = "$bin_dir" ] && continue
if [ -x "$dir/$1" ] && [ ! -d "$dir/$1" ]; then
echo "$dir/$1"
return 0
fi
done
return 1
}
agent_installed() {
agent_path "$1" > /dev/null
}
# Run an agent's real command rather than its sandboxed one: setting an agent
# up writes outside its sandbox
unsandboxed() {
local agent="$1" real
shift
real="$(agent_path "$agent")" || { echo "$agent isn't installed."; return 127; }
"$real" "$@"
}
# srt, and the Node.js it runs with: Federated Connector's own, or one
# already installed
srt_path() {
PATH="$FC_TOOLS/srt/bin:$FC_TOOLS/node/bin:$PATH" command -v srt
}