Computer Setup action implementation
Source: target-root/usr/local/libexec/solidgroundux/manage-computer.sh
Computer Setup action implementation
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_computer_configure_ssh_service | Enable or disable SSH and keep its runtime state aligned. | — | — |
_computer_generate_ssh_keys | Ensure OpenSSH Server is installed, generate missing SSH host keys, | — | — |
_computer_configure_sudoers | Grant the selected administrator passwordless access to trusted | — | — |
_computer_has_cinnamon | Detect an installed Cinnamon X11 session, including over SSH. | — | — |
_computer_display_manager | Identify the configured display manager, not the calling SSH session. | — | — |
_computer_desktop_backend | Select the installed workstation desktop and suitable RDP integration. | — | — |
_computer_configure_desktop_login | Configure manual AD login and PAM home-directory creation for common display managers. | — | — |
_computer_validate_rdp_source | Validate an explicit RFC1918 IPv4 subnet before creating an RDP firewall rule. | $1 - Source subnet in IPv4/CIDR notation. | — |
_computer_rdp_set_session | Select the managed Cinnamon session without overwriting xrdp's startwm.sh. | — | — |
_computer_sssd_map_xrdp | Register xrdp-sesman as an AD remote-interactive PAM service. | — | — |
_computer_gnome_rdp | Configure GNOME's system Remote Login rather than an Xorg session. | - $1: yes to enable or no to disable. | — |
_computer_plasma_rdp | Prepare KRDP for an existing Plasma session without claiming remote login. | - $1: yes to prepare; no to display disable instructions. | — |
_computer_configure_rdp | Configure the desktop-native RDP implementation and an optional scoped UFW rule. | — | — |
_computer_rdp_choose_session | Display logind sessions and optionally select one by number. | - $1: list to only display, or select to prompt for a session. | — |
_computer_rdp_terminate_session | Terminate one selected logind session after explicit confirmation. | — | — |
_computer_rdp_terminate_user | Clear all sessions and remaining user processes for a selected user. | — | — |
_computer_manage_rdp_sessions | Present an optional interactive menu for inspecting and clearing sessions. | — | — |
_computer_status | Display the current Computer Setup state without changing the machine. | — | — |
_computer_validate | Validate the principal Computer Setup outcomes without changing the machine. | — | — |
_run_action | Dispatch 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).
