manage-computer

SolidGroundUX DocumentationSolidGroundUX
NL

Computer Setup action implementation

Source: target-root/usr/local/libexec/solidgroundux/manage-computer.sh

Computer Setup action implementation

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_computer_configure_ssh_serviceEnable or disable SSH and keep its runtime state aligned.——
_computer_generate_ssh_keysEnsure OpenSSH Server is installed, generate missing SSH host keys,——
_computer_configure_sudoersGrant the selected administrator passwordless access to trusted——
_computer_has_cinnamonDetect an installed Cinnamon X11 session, including over SSH.——
_computer_display_managerIdentify the configured display manager, not the calling SSH session.——
_computer_desktop_backendSelect the installed workstation desktop and suitable RDP integration.——
_computer_configure_desktop_loginConfigure manual AD login and PAM home-directory creation for common display managers.——
_computer_validate_rdp_sourceValidate an explicit RFC1918 IPv4 subnet before creating an RDP firewall rule.$1 - Source subnet in IPv4/CIDR notation.—
_computer_rdp_set_sessionSelect the managed Cinnamon session without overwriting xrdp's startwm.sh.——
_computer_sssd_map_xrdpRegister xrdp-sesman as an AD remote-interactive PAM service.——
_computer_gnome_rdpConfigure GNOME's system Remote Login rather than an Xorg session.- $1: yes to enable or no to disable.—
_computer_plasma_rdpPrepare KRDP for an existing Plasma session without claiming remote login.- $1: yes to prepare; no to display disable instructions.—
_computer_configure_rdpConfigure the desktop-native RDP implementation and an optional scoped UFW rule.——
_computer_rdp_choose_sessionDisplay logind sessions and optionally select one by number.- $1: list to only display, or select to prompt for a session.—
_computer_rdp_terminate_sessionTerminate one selected logind session after explicit confirmation.——
_computer_rdp_terminate_userClear all sessions and remaining user processes for a selected user.——
_computer_manage_rdp_sessionsPresent an optional interactive menu for inspecting and clearing sessions.——
_computer_statusDisplay the current Computer Setup state without changing the machine.——
_computer_validateValidate the principal Computer Setup outcomes without changing the machine.——
_run_actionDispatch the requested management action to its implementation.- $1: Management action to execute.—

Description

Standalone management actions dispatched from 10-computer-setup.sh. UI, reporting and errors use the SolidGroundUX framework.

Usage

Run the executable from its shell command (or installed wrapper):

manage-computer --action ssh-host-keys

Script-specific options:

  • --action NAME, -a: Computer Setup action (choices: ssh-host-keys, ssh-service, sudoers, desktop-login, rdp, rdp-sessions, status, validate).