Configure and validate the base computer
Source: target-root/usr/local/libexec/solidgroundux/console-modules/10-computer-setup.sh
Configure and validate the base computer
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_sgnd_lib_guard | Ensure the file is sourced as a library and marked as loaded. | — | (globals) |
_computer_set_identity | Run the canonical SolidGroundUX identity workflow. | — | — |
_computer_manage | Dispatch a machine action to its standalone manager. | - $1: Management action to execute. | — |
_computer_ssh_manage | Dispatch a user SSH action without privilege escalation. | - $1: Management action to execute. | — |
_computer_generate_ssh_keys | Invoke the ssh host keys action through the module manager. | — | — |
_computer_configure_ssh_service | Invoke the ssh service action through the module manager. | — | — |
_computer_configure_sudoers | Invoke the sudoers action through the module manager. | — | — |
_computer_status | Invoke the status action through the module manager. | — | — |
_computer_validate | Invoke the validate action through the module manager. | — | — |
_computer_ssh_generate_user_key | Invoke the generate key action through the module manager. | — | — |
_computer_ssh_install_key | Invoke the install key action through the module manager. | — | — |
_computer_ssh_unlock_key | Invoke the unlock key action through the module manager. | — | — |
_computer_ssh_test_access | Invoke the test access action through the module manager. | — | — |
_computer_prepare | Run the normal post-clone computer setup sequence. | — | — |
_prepare_template | Invoke sgnd-prepare-template to prepare the computer for cloning. | — | — |
Description
Registers post-clone computer setup and optional outbound SSH deployment access management. Prepare computer retains its existing four-step sequence.
Module validation contract
Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable
Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.
Console registration
Provides the base post-clone computer setup workflow, including machine identity, SSH, SolidGround sudo access, status, validation, and preparation for cloning.
Menu items
! Prepare computer
Run the normal post-clone setup sequence. Handler: _computer_prepare
! Set computer identity
Configure hostname, network identity, DNS, and search domain. Handler: _computer_set_identity
! Generate SSH host keys
Generate missing host keys, validate sshd, and restart SSH. Handler: _computer_generate_ssh_keys
! Generate deployment SSH key / Install SSH public key
Prepare outbound SSH key authentication for a chosen user and remote host.
! Unlock SSH key in agent / Test deployment SSH access
Reuse a secure user agent and verify non-interactive SSH login.
! Configure SSH service
Enable or disable the SSH service. Handler: _computer_configure_ssh_service
! Setup SolidGround sudo access
Allow the administrator to run trusted SolidGroundUX tools without a password. Handler: _computer_configure_sudoers
! Show computer status
Show identity, network, SSH, host-key, and SolidGround sudo state. Handler: _computer_status
! Validate computer setup
Validate identity, SSH, host keys, and SolidGround sudo access. Handler: _computer_validate
! Prepare for cloning
Prepare a template computer for cloning. Handler: _prepare_template Command: sgnd-prepare-template
Preserve one chapter per source. Group headings have consecutive sort order, and menu numbering is continuous across groups for this MCM module.
