From ca220ccd92036ca409198da56fc955f310ea76bf Mon Sep 17 00:00:00 2001 From: cnmcdee Date: Sat, 28 Nov 2026 17:09:26 -0500 Subject: [PATCH] README: per-distro install scripts, tested in LXC on 6 distros Add install-.sh for Ubuntu, Debian, Fedora, Arch, Mint and ParrotOS, each verified end to end in its own LXC container (update/upgrade, install toolchain, git clone, make, fdesigner built): - Ubuntu 24.04 / Debian 13: plain README apt command works as-is - Fedora 43: dnf + gtk3-devel / gcc-c++ names - Arch rolling: pacman-key --init/--populate first (empty keyring in the LXC image), then pkgconf + gtk3 - Mint 22.3: same apt command as Ubuntu, older GTK 3.24.33 - ParrotOS: no native LXC image, tested on Debian 13 stand-in; backports suite is echo-backports, NOT trixie-backports Also correct the Troubleshooting backports line (it wrongly said ParrotOS uses trixie-backports) and note the lxcbr0 IPv4 FORWARD fix needed on the test host. --- README.md | 31 ++++++++++++++++++++++++++++++- install-arch.sh | 17 +++++++++++++++++ install-debian.sh | 14 ++++++++++++++ install-fedora.sh | 11 +++++++++++ install-mint.sh | 14 ++++++++++++++ install-parrot.sh | 22 ++++++++++++++++++++++ install-ubuntu.sh | 16 ++++++++++++++++ 7 files changed, 124 insertions(+), 1 deletion(-) create mode 100755 install-arch.sh create mode 100755 install-debian.sh create mode 100755 install-fedora.sh create mode 100755 install-mint.sh create mode 100755 install-parrot.sh create mode 100755 install-ubuntu.sh diff --git a/README.md b/README.md index e0a2534..1efea06 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,9 @@ sudo apt install -t trixie-backports libgtk-3-dev ``` (Use the backports suite name for your release if it differs — on -ParrotOS / Debian 13 it is `trixie-backports`.) +Debian 13 it is `trixie-backports`, on ParrotOS it is `echo-backports`, +**not** `trixie-backports`. So on ParrotOS the command is +`sudo apt install -t echo-backports libgtk-3-dev`.) **2. Let aptitude resolve it:** @@ -124,6 +126,32 @@ installed runtimes, instead of downgrading anything. them with `dpkg --force-depends`. That installs just the headers without touching the runtime libraries. Only do this if options 1 and 2 fail. +### Per-distro install scripts (tested 2026-11-28) + +Each distro below was verified end to end in its own LXC container +(images from images.linuxcontainers.org, 4 CPU cores, 15 GB RAM, 30 GB +disk, SSH verified from the host): update/upgrade, install the toolchain +with the distro's own package manager, `git clone` this repo, `make` — +and the `fdesigner` binary was produced. Run the script for your distro +as root, or with `sudo` (`sudo bash install-ubuntu.sh`). + +| Distro | Version tested | Script | gtk+-3.0 | Notes | +|---|---|---|---|---| +| Ubuntu | 24.04.5 LTS (noble) | `install-ubuntu.sh` | 3.24.41 | The plain README command works as-is; no extra step. | +| Debian | 13 (trixie) | `install-debian.sh` | 3.24.49 | The plain README command works as-is; no backports needed on a fresh minimal install (no backports runtimes preinstalled, so no conflict). | +| Fedora | 43 | `install-fedora.sh` | 3.24.52 | `dnf update`, then `dnf install -y git gcc gcc-c++ make pkg-config gtk3-devel glade cmake gdb xorg-x11-server-Xvfb python3` — Fedora has no `build-essential` / `-dev` split; `gtk3-devel` is the GTK dev package. | +| Arch Linux | rolling (`current`) | `install-arch.sh` | 3.24.52 | **`pacman-key --init` + `pacman-key --populate archlinux` is required first** — the LXC Arch image ships with an empty keyring, so every install fails with `signature ... is unknown trust` until the keyring is populated. Then `pacman -S --noconfirm --needed git base-devel pkgconf gtk3 glade cmake gdb xorg-server-xvfb python` (`pkgconf` provides `pkg-config`; `gtk3` already includes the headers). | +| Linux Mint | 22.3 (Zena, Ubuntu noble based) | `install-mint.sh` | 3.24.33 | Same apt command as Ubuntu; Mint's repos ship an older GTK (3.24.33 vs Ubuntu's 3.24.41). A native Mint LXC image exists (`mint zena`). | +| ParrotOS | — (see note) | `install-parrot.sh` | 3.24.49 on stand-in | **No native Parrot LXC image exists**, so this was tested on Parrot's parent, Debian 13 (trixie). The same apt commands apply on real ParrotOS — but if `libgtk-3-dev` conflicts, the backports suite on Parrot is `echo-backports`, **not** `trixie-backports` (see Troubleshooting above). | + +Test-environment note: on the LXC host used for these tests, the +containers initially could not reach GitHub at all (IPv4 only — GitHub +has no IPv6 address) because the host's iptables `FORWARD` chain was +`DROP` with rules only for Docker's bridges, so LXC's IPv4 masquerade +never saw a packet. Restoring the standard lxcbr0 `FORWARD` accepts +fixed it. That is specific to that host, not to these scripts — on a +normal desktop install `git clone` just works. + ## Build and run ```sh @@ -184,6 +212,7 @@ through it. Breakpoints and debugger settings live under ``` . ├── Makefile # the build (g++ + pkg-config gtk+-3.0) +├── install-*.sh # per-distro install scripts (see "Per-distro install scripts" above) ├── DESIGN.md # full design notes: widget mapping, model, phases ├── src/ # designer source (C++17, GTK C API, GtkBuilder) │ ├── main.cpp # entry point, main window diff --git a/install-arch.sh b/install-arch.sh new file mode 100755 index 0000000..79eee31 --- /dev/null +++ b/install-arch.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# install-arch.sh — build cfree (FDesigner) on Arch Linux +# Tested 2026-11-28 in LXC container cfree-arch (archlinux current, amd64, IP 10.0.3.50). +# Run as root (or prefix pacman commands with sudo) on a fresh system. +# Gotcha: the LXC Arch image ships with an empty pacman keyring, so package +# signatures fail ("unknown trust") until you run pacman-key --init and +# pacman-key --populate archlinux. That step is included below and is +# required before any pacman install on a fresh LXC Arch container. +set -e +pacman-key --init +pacman-key --populate archlinux +pacman -Syu --noconfirm +pacman -S --noconfirm --needed git base-devel pkgconf gtk3 glade cmake gdb xorg-server-xvfb python +git clone https://github.com/cnmcdee/cfree.git +cd cfree +make +ls -l fdesigner diff --git a/install-debian.sh b/install-debian.sh new file mode 100755 index 0000000..7b97e22 --- /dev/null +++ b/install-debian.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# install-debian.sh — build cfree (FDesigner) on Debian GNU/Linux 13 (trixie) +# Tested 2026-11-28 in LXC container cfree-debian (debian trixie, amd64, IP 10.0.3.128). +# Run as root (or prefix apt commands with sudo) on a fresh system. +# Requires: internet access, git (installed below if missing). +set -e +export DEBIAN_FRONTEND=noninteractive +apt-get update +apt-get upgrade -y +apt-get install -y git build-essential pkg-config libgtk-3-dev glade cmake gdb xvfb python3 +git clone https://github.com/cnmcdee/cfree.git +cd cfree +make +ls -l fdesigner diff --git a/install-fedora.sh b/install-fedora.sh new file mode 100755 index 0000000..26b0b7d --- /dev/null +++ b/install-fedora.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# install-fedora.sh — build cfree (FDesigner) on Fedora Linux 43 (Container Image) +# Tested 2026-11-28 in LXC container cfree-fedora (fedora 43, amd64, IP 10.0.3.133). +# Run as root (or prefix dnf commands with sudo) on a fresh system. +set -e +dnf update -y +dnf install -y git gcc gcc-c++ make pkg-config gtk3-devel glade cmake gdb xorg-x11-server-Xvfb python3 +git clone https://github.com/cnmcdee/cfree.git +cd cfree +make +ls -l fdesigner diff --git a/install-mint.sh b/install-mint.sh new file mode 100755 index 0000000..6cc17b4 --- /dev/null +++ b/install-mint.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# install-mint.sh — build cfree (FDesigner) on Linux Mint 22.3 +# Tested 2026-11-28 in LXC container cfree-mint (mint zena, amd64, IP 10.0.3.200). +# Run as root (or prefix apt commands with sudo) on a fresh system. +# Requires: internet access, git (installed below if missing). +set -e +export DEBIAN_FRONTEND=noninteractive +apt-get update +apt-get upgrade -y +apt-get install -y git build-essential pkg-config libgtk-3-dev glade cmake gdb xvfb python3 +git clone https://github.com/cnmcdee/cfree.git +cd cfree +make +ls -l fdesigner diff --git a/install-parrot.sh b/install-parrot.sh new file mode 100755 index 0000000..ae8d721 --- /dev/null +++ b/install-parrot.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# install-parrot.sh — build cfree (FDesigner) on ParrotOS (Debian 13 / trixie based). +# Tested 2026-11-28 in LXC container cfree-parrot. NOTE: there is no native +# Parrot LXC image on images.linuxcontainers.org, so the test ran on Parrot's +# parent, Debian 13 (trixie), amd64, IP 10.0.3.9. The same apt commands apply +# on real ParrotOS; the plain install below worked on the stand-in. +# Result on stand-in: clean build, fdesigner binary produced, gtk+-3.0 3.24.49. +# Real-Parrot gotcha (from the author's own ParrotOS machine, NOT reproduced +# in the container): if `apt install libgtk-3-dev` fails with a dependency +# conflict (newer ATK runtimes vs older -dev packages), prefer the backports +# suite — on Parrot it is named `echo-backports`, NOT `trixie-backports`: +# apt install -t echo-backports libgtk-3-dev +# If that still fails, try aptitude (see README troubleshooting). +set -e +export DEBIAN_FRONTEND=noninteractive +apt-get update +apt-get upgrade -y +apt-get install -y git build-essential pkg-config libgtk-3-dev glade cmake gdb xvfb python3 +git clone https://github.com/cnmcdee/cfree.git +cd cfree +make +ls -l fdesigner diff --git a/install-ubuntu.sh b/install-ubuntu.sh new file mode 100755 index 0000000..56757be --- /dev/null +++ b/install-ubuntu.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# install-ubuntu.sh — build cfree (FDesigner) on Ubuntu 24.04 LTS (noble). +# Tested 2026-11-28 in LXC container cfree-ubuntu (Ubuntu 24.04.5 LTS, amd64). +# Run as root (or prefix the apt commands with sudo) on a fresh system. +# Result: clean build, fdesigner binary produced, gtk+-3.0 3.24.41. +# Gotcha: none — the plain one-line install from the README works as-is on +# a fresh minimal Ubuntu 24.04. No backports flag or extra step was needed. +set -e +export DEBIAN_FRONTEND=noninteractive +apt-get update +apt-get upgrade -y +apt-get install -y git build-essential pkg-config libgtk-3-dev glade cmake gdb xvfb python3 +git clone https://github.com/cnmcdee/cfree.git +cd cfree +make +ls -l fdesigner