Computer Setup

SolidGroundUX DocumentationSolidGroundUX
NL

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
FunctionPurposeArgumentsOutput
_computer_set_identityRun the canonical SolidGroundUX identity workflow.——
_computer_manageDispatch a machine action to its standalone manager.- $1: Management action to execute.—
_computer_ssh_manageDispatch a user SSH action without privilege escalation.- $1: Management action to execute.—
_computer_generate_ssh_keysInvoke the ssh host keys action through the module manager.——
_computer_configure_ssh_serviceInvoke the ssh service action through the module manager.——
_computer_configure_sudoersInvoke the sudoers action through the module manager.——
_computer_configure_desktop_loginConfigure domain login and PAM home creation for LightDM, GDM3 or SDDM.——
_computer_configure_rdpConfigure Cinnamon XRDP, GNOME Remote Login or KDE KRDP with optional UFW scope.——
_computer_statusInvoke the status action through the module manager.——
_computer_validateInvoke the validate action through the module manager.——
_computer_ssh_generate_user_keyInvoke the generate key action through the module manager.——
_computer_ssh_install_keyInvoke the install key action through the module manager.——
_computer_ssh_unlock_keyInvoke the unlock key action through the module manager.——
_computer_ssh_test_accessInvoke the test access action through the module manager.——
_computer_prepareRun the normal post-clone computer setup sequence.——
_prepare_templateInvoke sgnd-prepare-template to prepare the computer for cloning.——

Description

Registers post-clone computer setup and optional outbound SSH deployment access management. Optional Cinnamon, GNOME and Plasma desktop login and RDP are managed separately; 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.

! 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

! Configure desktop login

Configure desktop manual domain login and PAM home creation. Handler: _computer_configure_desktop_login

! Configure Remote Desktop (RDP)

Configure desktop-specific RDP with optional trusted LAN scope. Handler: _computer_configure_rdp

! 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.