Skip to content
XenoTechWorksPublic

About

No description, website, or topics provided.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Meldra OS

Linux compatibility. BSD discipline. One carefully engineered system.

Developer Preview Kernel libc Desktop

Meldra OS is an experimental operating system that keeps Linux's hardware and application compatibility while introducing selected BSD designs through reviewed, testable subsystem boundaries.

This is not a textual splice of two kernel trees. Meldra starts from a pinned Linux LTS baseline, then evaluates BSD-derived components one subsystem at a time. Every import needs clear provenance, compatible licensing, measurable benefit, tests, and a rollback path.

First graphical milestone

Meldra now boots its own kernel and userspace in QEMU, starts Hearth as PID 1, brings up udev and seatd, and launches a native Labwc Wayland session.

Meldra OS running Labwc in QEMU with its root menu open

The first real compositor frame from Meldra OS. The next visual milestone adds the wallpaper, terminal, panel, and launcher.

GNOME Shell boots

Meldra also boots GNOME Shell 50.6 as a Wayland display server in QEMU: Hearth starts elogind and D-Bus, a PAM session is opened for an unprivileged user, and Mutter drives the virtual GPU (software rendering).

Meldra OS running GNOME Shell: the Activities Overview with the blue GNOME wallpaper in the workspace thumbnail, the search field and the app grid button

GNOME Shell's Activities Overview on Meldra OS, with the GNOME wallpaper (decoded by glycin inside its bubblewrap sandbox) and the Adwaita icons.

Meldra OS running GNOME Shell: the desktop with the wallpaper and the top bar, after pressing the Super key

The same session after a Super key press sent through QEMU: the Shell left the Overview for the desktop. Both frames come from tools/gnome_smoke.py, which boots the image, waits for the Shell, and checks that it draws and reacts to the keyboard.

Meldra OS running GNOME Shell: the app grid after a mouse click on the app grid button

The app grid is driven through QEMU's QMP input path. The current image includes Foot and three minimal Meldra apps: Files, Text Editor and Settings.

Meldra OS running GNOME Shell with the foot terminal open, showing uname and ls output

The foot terminal, launched from the app grid by mouse and driven from the keyboard.

Working, checked in QEMU:

  • Apps: GNOME Settings, GNOME Console (bash with GNU coreutils, grep, sed, findutils, gawk, less, procps, and fastfetch with the Meldra logo), GNOME Files (Nautilus) and GNOME Text Editor. Settings' Printers panel is left out until printing (CUPS server, Samba) lands; its About page cannot rename the computer yet.
  • GPU acceleration: Mesa 26 with virgl (QEMU 3D), radeonsi and RADV for AMD (compiled with ACO, no LLVM), nouveau and zink. Checked with virgl: virgl (AMD Radeon ...). Intel (iris) needs LLVM/clang at build time and comes later. GPU, Wi-Fi and network firmware ships xz-compressed (275 MB).
  • Networking: NetworkManager with wpa_supplicant (WPA2/WPA3); GNOME shows the network icon with Wired and Wi-Fi tiles. Drivers load automatically (eudev + kmod). Wi-Fi was tested with simulated radios (mac80211_hwsim): scan and a WPA2 connection work; real Wi-Fi cards are untested.
  • Audio: PipeWire, WirePlumber and pipewire-pulse; GNOME's volume control works, and a test sound played through an emulated Intel HDA card was recorded with real signal.
  • polkit, UPower, AccountsService, GeoClue, RealtimeKit, and power off/reboot from the user's session.

GNOME Settings on Meldra showing the Network panel with a connected wired connection

GNOME quick settings on Meldra with Wired and Wi-Fi tiles, volume slider and network icon

Install to disk and log in

The live image has an Install Meldra app. It asks for a disk, a user name, a password and a computer name, then erases the disk and installs Meldra on it: a GPT disk with an EFI system partition and an ext4 root. The kernel boots straight from the firmware through its EFI stub (no bootloader menu); Secure Boot must be off. meldra-install is the same installer on the command line.

The Install Meldra window asking for a user name, password and computer name

Installed systems start at Meldra's login screen: greetd runs the login form in the cage kiosk compositor and starts GNOME after a successful login. (GDM is not used: since GNOME 49 it needs systemd, which Meldra does not use.) The live image still logs in automatically.

Meldra's login screen with user name and password fields and Restart and Power off buttons

Checked in QEMU by tools/install_smoke.py: install onto a blank disk, boot it with UEFI firmware, reject a wrong password, log in with the right one. Files, the host name and the account survive reboots. Not yet: choosing a keyboard layout or time zone in the installer, dual-boot next to another system, disk encryption, and testing on real hardware.

What works today

Area State Implementation
Kernel Boots Linux 6.18.62-meldra with a reproducible config fragment
Early userspace Boots musl-static recovery/initramfs path
Main userspace ABI Built glibc 2.44
Init system Running Hearth service supervisor as PID 1
Package manager Tested Kiln packages with dependency and path-safety checks
Graphics Accelerated Mesa 26: virgl, radeonsi/RADV (ACO), nouveau, zink; Intel later
Text and UI Built FreeType, Fontconfig, HarfBuzz, FriBidi, Cairo, Pango
Window manager Running Labwc 0.9.1 on virtio-vga in QEMU
Desktop assets Packaged Current GNOME backgrounds plus Aqua, Curves, and Sunset
GNOME desktop Usable preview Shell 50.6, Settings, Console, Files, Text Editor, NetworkManager, PipeWire; portals remain
Install and login Working in QEMU Graphical installer (GPT, EFI stub, ext4), greetd login screen, persistent home

Meldra is a developer preview, not yet an installable daily-driver OS. Audio, network management, graphical login, a terminal, a panel, and the full GNOME session are still being integrated.

Architecture

                         Meldra OS
                            │
          ┌─────────────────┼─────────────────┐
          │                 │                 │
   Linux 6.18 LTS      Meldra userspace   Desktop profiles
   drivers + ABI       Hearth + Kiln      Labwc / GNOME
          │                 │                 │
          └──────── reviewed subsystem adapters ────────┘
                            │
                  selected BSD designs
  • Linux remains the compatibility spine. Drivers, the syscall ABI, and mainstream Linux applications keep working throughout development.
  • BSD work is admitted, not assumed. components.toml records provenance, ownership, licensing, integration boundaries, and maturity.
  • glibc is the desktop ABI. musl remains intentionally scoped to static recovery and early-boot tools.
  • Upstream updates are the security unit. Meldra avoids an unauditable pile of permanent one-off patches.

Build and test

The build expects a Linux host with Python 3.11+, a C/C++ toolchain, Meson, Ninja, CPIO, and QEMU. Downloaded sources are checksum-pinned in sources.lock.toml.

# Validate component policy, build Hearth, and run the test suite
make check

# Build the kernel and base userspace
make kernel
make packages

# Build the Wayland and desktop dependency stacks
make graphics-packages
make desktop-libs
make fonts
make xkeyboard-config
make labwc

# Assemble and pack the graphical preview from a fresh build tree
make desktop-initramfs

# Boot the real Meldra graphical image
./scripts/run-desktop-preview.sh

For the smaller serial-only smoke test:

make boot-smoke

Meldra-owned components

Hearth

Hearth is Meldra's compact PID 1 and service supervisor. It mounts the early filesystems, launches declarative services, reaps child processes, respawns long-running services, and performs orderly shutdown.

Kiln

Kiln is Meldra's package format and package manager. Packages carry explicit dependencies and are installed through traversal-safe, conflict-aware archive handling. The current implementation is intentionally small enough to audit.

Repository map

components.toml                 BSD component admission and provenance
sources.lock.toml               pinned upstream versions and checksums
repository.toml                 package dependency and readiness catalog
kernel/config/                  Meldra kernel configuration fragments
init/                           Hearth and service definitions
kiln/                           Kiln package manager
desktop/labwc/                  Meldra Labwc session configuration
profiles/                       base, Labwc, and GNOME installation profiles
assets/wallpapers/              experimental Meldra artwork
docs/                           architecture, boot, desktop, security, roadmap
scripts/                        QEMU smoke and graphical preview launchers
tools/                          reproducible build and assembly pipelines
tests/                          policy, resolver, and package-manager tests

Roadmap

  1. Add the wallpaper client, Foot terminal, Fuzzel launcher, and Waybar.
  2. Add greetd and a graphical login flow.
  3. Move the preview from a large initramfs to an installable disk image.
  4. Bring up networking, audio, portals, and Polkit.
  5. Port Mutter, GNOME Shell, GDM, and the remaining GNOME platform stack.
  6. Begin isolated BSD-subsystem experiments behind stable Linux interfaces.

The detailed delivery gates live in docs/roadmap.md, while docs/architecture.md explains the kernel-integration model and docs/security.md defines vulnerability handling.

Project rules

  1. Keep the system bootable after every integration step.
  2. Port one subsystem at a time behind an explicit boundary.
  3. Preserve upstream copyright and license notices.
  4. Require repeatable builds, tests, and a rollback path.
  5. Report limitations honestly—screenshots and status must come from the real Meldra image, not a host-side mockup.

Meldra OS is under active construction.
The first desktop frame exists; the usable desktop comes next.

About

No description, website, or topics provided.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages