docs/tools/HOWTO-SETUP-WSL-ALMALINUX.md
Standard: DSOM For My AI Protocol v6.1 | Infrastructure as Code Tools:setup-wsl-almalinux10.ps1,setup-dsom-control-node.shPlatforms: Windows Native (T1) → WSL2 (T2)
1. Purpose
setup-wsl-almalinux10 is the Control Node Automator. It bridges your Windows Tier 1 environment to a hardened Linux Tier 2 environment by automatically downloading, importing, and configuring an AlmaLinux 10 WSL2 instance. This instance becomes your primary DSOM/Ansible control node.
Use it to:
- Install a clean, official AlmaLinux 10 rootfs into WSL2.
- Provision a dedicated
dsom-control-almalinux10instance. - Automatically trigger the internal Linux bootstrap for Ansible and users.
- Standardize the development bridge across a Windows fleet.
tools/setup-wsl-almalinux10.ps1(Main Windows Orchestrator)tools/setup-dsom-control-node.sh(Internal Linux Bootstrap)
2. Prerequisites
3. Usage
Run this once from an elevated (Administrator) PowerShell terminal:4. Operation Workflow (The 6 Steps)
- System Check: Verifies WSL is enabled. If not, it enables the Virtual Machine Platform and requests a REBOOT.
- Download: Fetches the latest official AlmaLinux 10 WSL tarball from GitHub.
- Directory Prep: Creates
C:\WSL\dsom-control-almalinux10for high-performance virtual disk storage. - Import: Registers the instance via
wsl --import. - Verification: Boots the kernel and checks
/etc/almalinux-release. - Handover Bootstrap: Executes
setup-dsom-control-node.shinside the new instance to installansible,git, and configurewsl.conf.
5. Reading the Output & Status Codes
6. Security Advisory
[!IMPORTANT]
This script installs the Linux environment at C:\WSL\. Do not delete this directory while the instance is registered, or you will lose all data inside the T2 control node.
7. Related Documents
Standard: DSOM For My AI Protocol v6.1 | Harisfazillah Jamel | LinuxMalaysia Document Version: v1.0 | Created: 2026-04-08
Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-07-04 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0