Commit Graph
61 Commits
Author SHA1 Message Date
bchanot 8d4e698adb chore(memory): journal — bashrc redeploy for tmux-before-router 2026-10-15 18:05:30 +02:00
bchanot c9e6ba3013 chore(memory): journal — tmux before dtach menu 2026-10-15 00:53:28 +02:00
bchanot 30588892ae feat(shell): SSH login enters tmux before the dtach menu
Interactive SSH shell outside tmux and outside a VS Code terminal now execs
tmux new-session -A -s main; the shell inside tmux re-reads the rc and opens
the dtach-router menu there, so it no longer has to be quit and reopened.
2026-10-15 00:53:22 +02:00
bchanot 2ca06763c0 chore(memory): journal — rust toolchain at install 2026-10-12 23:35:49 +02:00
bchanot 7d62da44b0 feat(install): Rust toolchain via rustup, cargo env sourced by the rc files
install_rust(): official rustup script as the user (stable, default profile,
--no-modify-path), rustup update on a re-run, rust-analyzer + rust-src added.
libssl-dev (apt) / openssl@3 (brew) for openssl-sys crates. bashrc-linux,
bashrc-osx and zshrc-osx source ~/.cargo/env when present. README, CHANGELOG,
CLAUDE.md, TODO plan.
2026-10-12 23:35:39 +02:00
bchanot c9d47ce91d chore(memory): LRN-018 + journal — hotfix sshd-reload-inactive 2026-10-12 21:24:09 +02:00
bchanot 64f7d92b0b chore(memory): journal — desktop/RDP offer, WSL 2026-10-11 23:37:15 +02:00
bchanot 5d602696d5 feat(install): offer GNOME desktop and RDP remote login instead of forcing them, default no on WSL
ubuntu-desktop-minimal and gnome-remote-desktop were installed unconditionally
in the Linux block. On WSL they are useless (Windows owns the display) and the
desktop's NetworkManager/systemd-resolved rewrite /etc/resolv.conf, which lost
DNS mid-install (fail2ban/whois fetch failed on 'Temporary failure resolving').

- confirm() takes an optional default (y → [Y/n], Enter = yes, no tty = yes)
- is_wsl(): WSL_DISTRO_NAME or 'microsoft' in /proc/version
- offer_desktop(): desktop [Y/n], then RDP [Y/n]; WSL flips both to [y/N]
- README step 11 + table + packages, CHANGELOG Unreleased
2026-10-11 23:37:05 +02:00
bchanot deb1449c82 chore(memory): journal — tmux Ctrl+Alt+arrow panes, README key mappings 2026-10-09 15:53:29 +02:00
bchanot 4cbc54511e chore(memory): journal — tmux Alt+arrow windows 2026-10-09 15:42:12 +02:00
bchanot d5a500bb46 chore(memory): LRN-017 tmux conf keys/list-keys/hooks/headless tests + journal — feat tmux-copy-exit-keys 2026-10-09 13:18:34 +02:00
bchanot ead6f96eb0 feat(tmux): after a mouse selection any bare key leaves copy-mode — bin/tmux-copy-exit-keys wraps the copy-mode-vi keys behind @mouse_sel (set on MouseDragEnd1Pane, cleared by pane-mode-changed hook); install.sh deploys it; docs + CHANGELOG 2026-10-09 13:08:16 +02:00
bchanot be0e5eda47 chore(memory): journal — tmux status tabs 2026-10-09 11:21:34 +02:00
bchanot a7b3646d15 chore(memory): journal — tmux pane moves + hooks fail-closed merged 2026-10-09 09:27:22 +02:00
bchanot de6fa1659c feat(install): rootless Docker offer disables the rootful daemon first
docker.service + docker.socket disabled and /var/run/docker.sock removed before
dockerd-rootless-setuptool.sh install, as the docs recommend; skipped when no
rootful unit exists.
2026-10-09 00:28:51 +02:00
bchanot 6882aa7c14 chore(memory): journal — feat docker-rootless 2026-10-09 00:26:26 +02:00
bchanot eb7a75182e feat(install): offer rootless Docker at the end of the Linux install
docker-ce-rootless-extras joins the Docker package list; offer_docker_rootless
installs uidmap/dbus-user-session/slirp4netns, runs dockerd-rootless-setuptool.sh
install (apt variant: /usr/bin, no PATH export) and enables linger. The rootful
daemon is left alone. bashrc-linux exports DOCKER_HOST only when the user socket
exists. README step 16 + package lists.
2026-10-09 00:26:26 +02:00
bchanot b637601176 chore(memory): BDR-019 + LRN-016 — feat gitconfig-autopush 2026-10-07 18:28:48 +02:00
bchanot c2196424b9 chore(memory): journal + contract/plan/oracle — feat gitconfig-autopush 2026-10-07 18:25:56 +02:00
@USER@ f721a2b809 Merge branch 'develop' into feature/repo-sync
# Conflicts:
#	.claude/memory/journal.md
2026-10-07 15:45:57 +02:00
@USER@ 4414bed2a6 chore(memory): journal — macOS zsh default, remote-install prompts 2026-10-07 15:42:38 +02:00
bchanot f42e28807b feat(repo-sync): one local tree for every repo reachable on your forges
bin/repo-sync ports the Alphalink dotfiles repo/repo-reset zsh functions to
bash + zsh on Linux and macOS, for several forges at once: GitLab, GitHub
(+GHES), Gitea/Forgejo, Bitbucket Cloud, via curl + jq (no per-forge CLI).
Tokens live in ~/.config/repos/forges.conf (0600, parsed line by line, never
tracked), written by `repo-sync add`. Cache ~/.cache/repos/list refreshed
at most once a day (mkdir lock: flock is not on macOS), same namespace/project
on two forges kept once, archived and mirrors skipped. Layout
~/repos/<namespace with / as @>/<project>.

rc files: `repo <project> [namespace]` clones on demand and cd's, with
completion (bash compgen, zsh _describe), background refresh at shell start.
install.sh: jq in the apt and brew lists, chmod repo-sync.

Verified: shellcheck + bash -n, zsh -n; stub-curl harness over the four forges
(pagination, dedup, auth headers, lock, stale cache, path/clone); live GitLab
refresh (139 projects, 3s).
2026-10-07 15:31:03 +02:00
bchanot 2573756e73 chore(memory): LRN-015 tmux window-active-style inherits window-style 2026-10-07 12:32:38 +02:00
bchanot 6f0f6c1fa3 chore(memory): journal — tmux dim inactive panes 2026-10-07 12:23:58 +02:00
bchanot 6b634e2c77 chore(memory): journal — tmux drag fix merged 2026-10-06 18:05:20 +02:00
bchanot 72d38b68df chore(memory): journal — tmux drag syntax error 2026-10-06 18:02:54 +02:00
bchanot 773e1c5fa6 chore(memory): journal — tmux ctrl nav in copy-mode 2026-10-06 17:16:20 +02:00
bchanot cbdbe58491 chore(memory): journal — tmux wheel halved, dtach mac/termux 2026-10-06 16:51:39 +02:00
bchanot 7f63f4b0e2 chore(memory): journal — identity asked at install 2026-10-06 15:35:22 +02:00
bchanot 8f6969001f feat(identity): ask name/email at install, no hardcoded USER/EMAIL in the repo
- rc templates carry @USER@/@EMAIL@ placeholders; install.sh renders them
- resolve_identity: an export already in ~/.bashrc or ~/.zshrc is reused silently,
  else IDENTITY_USER/IDENTITY_EMAIL, else a prompt, else login name + empty email
- render_gitconfig generalised to render_identity_template (gitconfig unchanged)
- vimrc reads g:_author/g:_email from $USER/$EMAIL instead of hardcoded values
- README + CLAUDE.md
2026-10-06 15:34:11 +02:00
bchanot f6a039fc80 chore(memory): journal — tmux click exit, alt copy/paste 2026-10-06 15:22:23 +02:00
bchanot ef418fea04 chore(memory): journal — tmux selection, keep tmux 2026-10-06 15:05:00 +02:00
bchanot ec9187c70f chore(memory): BDR-017 tmux ctrl+uhjk, BDR-018 Linux clipboard OSC 52 2026-10-06 14:28:35 +02:00
bchanot 7abef66f50 chore(memory): journal — tmux keys + Linux deploy 2026-10-06 14:26:39 +02:00
bchanot d2821fa462 feat(tmux): deploy the config on Linux too; prefix i / - splits
- install.sh: deploy_tmux_config runs on both OSes after the bashrc (gated on tmux)
- tmux.conf: clipboard via if-shell (pbcopy on macOS, tmux buffer + OSC 52 elsewhere)
- bashrc-linux exports XDG_CACHE_HOME like the macOS rc files
- prefix i = side-by-side split, prefix - = stacked split (h/j/k/l kept)
- verified in an Ubuntu 24.04 container (tmux 3.4): deploy, bindings, split, plugins, libtmux
2026-10-06 13:09:34 +02:00
bchanot 825abe842a feat(macos): deploy tmux.conf + tpm plugins; cloudpex becomes an install-time offer
- tmux.conf (vi keys, C-a prefix, resurrect/continuum, window-name) → ~/.config/tmux/tmux.conf
  on macOS; tpm cloned, plugins fetched headlessly, libtmux installed non-fatally
- bashrc-osx / zshrc-osx export XDG_CACHE_HOME (session save dir of the config)
- Linux: install_cloudpex → offer_cloudpex ([y/N] with the /tmp and SSH offers)
- README + CLAUDE.md updated
2026-10-06 12:27:22 +02:00
bchanot 1fbbffcedc chore(memory): journal — v1.0.0 release 2026-10-06 11:53:26 +02:00
Bastien CHANOT 51521e7ca4 feat(git): deploy user-scope ~/.gitconfig from the repo template
Git never expands $VARS in its config, so gitconfig carries @USER@ and
@EMAIL@ placeholders that install.sh fills from the deployed bashrc's
USER/EMAIL exports. A differing ~/.gitconfig is kept as
~/.gitconfig.backup-<date>; an identical one is left alone. A repo's
.git/config still overrides it. excludesfile uses ~ (git expands it,
not $HOME).

The rc files now override $USER, so the installer takes the login name
from id -un for dscl and the code-server unit.
2026-10-06 10:55:24 +02:00
Bastien CHANOT f053164cf7 chore(memory): BDR-015/016 macOS + zshrc backup, LRN-014 BSD traps, BLK-007 master URL, journal 2026-10-05 17:32:33 +02:00
Bastien CHANOT 7edde9d0f3 chore(todo): macOS support + zsh choice plans 2026-10-05 17:28:47 +02:00
bastien ba1817a4e9 chore(memory): BDR-014 apt mirror choices, LRN-013 gitleaks version probe 2026-09-28 21:57:03 +02:00
bastien 3c5b1ece6e chore(memory): journal — apt packages feature, gitleaks hook fix 2026-09-28 21:41:27 +02:00
bastien 0bc9e3f467 feat(install): mirror this machine's apt packages
gitleaks, web stack (mariadb-server, imagemagick, unversioned php-* modules),
ubuntu-desktop-minimal before the RDP setup, and a lspci-gated
install_nvidia_driver() that runs ubuntu-drivers install. README + TODO updated.
2026-09-28 21:41:05 +02:00
bastien 58adb28ec2 chore(memory): journal, branch cleanup + gitea-deploy split out 2026-09-22 18:03:46 +02:00
bastien cfd144d158 chore(memory): journal, security baseline merged 2026-09-22 17:53:53 +02:00
bastien 26c8e345c5 chore(memory): BDR-013 security baseline, LRN-012 fail2ban port vs allports, journal 2026-09-22 17:47:35 +02:00
bastien 55ede6f08c feat(install): security baseline: fail2ban, unattended-upgrades, sshd hardening
Always applied in the Linux block, no prompt, idempotent:
- install_fail2ban: fail2ban + nftables, etc/fail2ban/jail.d/local.conf.
  sshd jail reads the journal (backend systemd, works with or without
  auth.log) and bans the offender on every port, so the SSH port is
  irrelevant: the previous server's jail banned 22 while sshd listened
  on 337. 5 failures / 10 min / 1 h. Loopback + RFC1918 never banned.
- install_unattended_upgrades: package + 20auto-upgrades (the file
  dpkg-reconfigure writes, without the prompt).
- harden_sshd: sshd_config.d/20-hardening.conf (PermitRootLogin no,
  MaxAuthTries 3, LoginGraceTime 20), sshd -t gated: a rejected file is
  removed and the install continues with a warning. Auth methods, port
  and user lists untouched.
Docs: README table + step 13 + packages, CLAUDE.md layout.
2026-09-22 17:47:34 +02:00
bastien 0d2e96819a chore(memory): journal 2026-09-22, round-2 TODO closed 2026-09-22 17:35:05 +02:00
bastien a9f7b6437f chore(memory): capitalize /tmp on disk, SSH guard, cloudpex conf (BDR-010..012, LRN-009..011, BLK-005/006, EVAL-002) 2026-09-22 17:34:18 +02:00
bastien 4f8bb61458 feat(cloudpex): site values out of the script, prompted at install into /etc/cloudpex.conf
cloudpex/cloudpex no longer carries the NAS host, share name, SMB user,
mount point or SMB version. It reads /etc/cloudpex.conf (root:root 0600,
KEY=value) line by line, never sources it, and dies with a hint when the
file is missing, incomplete or has a relative mount point.

cloudpex/install.sh prompts for the five values (regex-validated, re-asked
on bad input so the main installer never aborts), shows and keeps an
existing config unless answered n, and skips the config when no terminal
is attached. README (FR) + root README + CLAUDE.md updated.
2026-09-22 17:34:18 +02:00