Add configure.sh wizard, server checks, KS profile selection, and install improvements #16

Merged
obel1x merged 14 commits from :main into devel 2026-04-29 22:13:45 +02:00
Contributor

Summary

  • configure.sh: interactive first-time setup wizard with dynamic variable prompts, Nextcloud and FreeIPA server reachability checks, and kickstart profile selection (copies chosen profile to ks.cfg)
  • configure.md: usage documentation for configure.sh
  • install.sh: repo URL checksum verification via curl, offer to run configure.sh after cloning, chmod to allow non-root edits
  • ks_base_profiles: added description headers to KDE and Cinnamon profiles; removed part_sda.cfg
  • ks.cfg removed from repo and added to .gitignore (now generated by configure.sh)
  • setup_system.inc.sh: get_nc_token supports temporary token (no file write when DAVTOKENFILENAME unset)

Test plan

  • Run install.sh on a test machine and verify checksum check and configure.sh launch
  • Run configure.sh standalone, verify prompts, NC/IPA checks, and ks.cfg generation
  • Verify ks.cfg is gitignored

🤖 Generated with Claude Code

## Summary - `configure.sh`: interactive first-time setup wizard with dynamic variable prompts, Nextcloud and FreeIPA server reachability checks, and kickstart profile selection (copies chosen profile to `ks.cfg`) - `configure.md`: usage documentation for configure.sh - `install.sh`: repo URL checksum verification via curl, offer to run configure.sh after cloning, chmod to allow non-root edits - `ks_base_profiles`: added description headers to KDE and Cinnamon profiles; removed part_sda.cfg - `ks.cfg` removed from repo and added to .gitignore (now generated by configure.sh) - `setup_system.inc.sh`: get_nc_token supports temporary token (no file write when DAVTOKENFILENAME unset) ## Test plan - [ ] Run install.sh on a test machine and verify checksum check and configure.sh launch - [ ] Run configure.sh standalone, verify prompts, NC/IPA checks, and ks.cfg generation - [ ] Verify ks.cfg is gitignored 🤖 Generated with [Claude Code](https://claude.com/claude-code)
unbrot added 14 commits 2026-04-29 19:59:19 +02:00
Replaces KDE desktop environment group and KDE-specific packages
with Cinnamon equivalents (transmission-gtk replaces ktorrent).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- system_setup/configure.sh: interactive first-time setup wizard that
  edits config.d/configure.conf, tests the encrypted home mount, and
  obtains a Nextcloud WebDAV token
- configure.md: short usage documentation for configure.sh
- system_setup/install.sh: after cloning the repo, ask whether to run
  configure.sh immediately (as the sudo-invoking user via su)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Before partitioning, check_repo_url() downloads
system_setup/install.sh from REPO_URL and compares its sha256sum
against the running script. Warns and asks to continue if the URL
is unreachable or the checksums differ.

Also accept an optional first argument to override REPO_URL.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pass DISPLAY and WAYLAND_DISPLAY explicitly through the su call in
install.sh so Firefox can connect to the user's display session.
Remove the now-unnecessary DISPLAY=:0 fallback from get_nc_token.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Instead of obtaining a Nextcloud WebDAV token, verify the configured
servers directly:
- Nextcloud: check /status.php for "installed":true and show version
- FreeIPA: check /ipa/session/json for HTTP 200 or 401

Both checks offer restart or quit on failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After server checks pass, present all ks_base_profiles/*.cfg files
with their first-paragraph description and require the user to pick
one. The selected profile is copied to ks.cfg in the repo root.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
obel1x merged commit 92453699a8 into devel 2026-04-29 22:13:45 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: obel1x/fedora-OEMDRV#16