<< lib/operating-system/SLLinuxOSModel.sleela SLeeLa Standard Library Definition. Definition: Defines SLLinuxOSModel — a preset that extends SLOSModel and extrapolates it into a Linux-shaped operating system: a Linux kernel, UEFI+GRUB boot with an initramfs, an ext4 root under the Filesystem Hierarchy Standard, a systemd service set, a Debian-style base package seed, and a GNOME-on-Wayland desktop. It is the OOD realisation of "assume the shape of Linux" and the model the OS projects in this lineage (an Ubuntu-derived distribution) start from. After build(), refine any layer through the inherited accessors — e.g. swap the desktop with desktopSpec().useAlternate(...), or add packages with packageSet().add(...). Call asServer() for a headless server edition. Family: operating-system. Extends SLOSModel. >> #sleela 2.5 material; class SLLinuxOSModel extends SLOSModel { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 10903; String metaAuthor = "Kiro Agent"; String metaDate = "2026-10-16"; String metaCopyright = "SLeeLa project"; String metaTrademark = "none"; String metaCorporation = "none"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-10-10"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "none"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } < Build a Linux-shaped model with the given product name/version on amd64. > void build(String name, String ver) { configure(name, ver); shapeAs("Linux", "amd64"); kernelSpec().appendCmdline("splash"); < Layer the toolchain and desktop packages a Linux desktop expects. > packageSet().add("gcc", "14"); packageSet().add("binutils", "2.42"); packageSet().add("grub", "2.12"); packageSet().add("gnome-shell", "46"); packageSet().add("mesa", "24.0"); } < Build a multi-arch Linux model (adds arm64 to the primary amd64 target). > void buildMultiArch(String name, String ver) { build(name, ver); architectures().addTarget("arm64"); architectures().addTarget("riscv64"); } }