Skip to content
CastaliaOS

Powerful Edition · v0.1.0-preview1 · an original retro desktop OS

The 1999 desktop, rebuilt by hand.

CastaliaOS 98 PE is a late-nineties professional desktop written from the platform layer up in portable C: a real window manager, an Explorer-style file manager with a task pane, a word processor, a spreadsheet, a paint program, a media player and Solitaire. It boots over FreeDOS in protected mode, takes the VESA framebuffer and fits in a few megabytes. Every pixel, every window, no Microsoft code.

  • 3.7 MB idle, 4 MB ceiling enforced in CI
  • 7,609 unit checks
  • 4 virtual desktops
  • 800×600 at 16 bpp
CastaliaOS 98 PE desktop: rolling green hills under a blue sky with clouds, a small castle, a column of icons named This Machine, Documents, Control Center, Log Viewer, Media Player, Clock and Recycle Bin, and a blue taskbar with a clock reading 21:59. The Start panel open. File Manager. CastaliaSheet. Solitaire. Plasma screensaver.
VESA 800×600 · Aurora theme

What it is

Inspired by an era, not copied from a product

CastaliaOS began as a simple question: could you build that feeling from scratch, legally clean, small enough to run on a 386? It turned into a full system. Where most retro desktops are themes layered on a modern operating system, this is the real thing: a 32-bit DOS protected-mode application that starts over FreeDOS through the DOS/4GW extender, takes over the graphical session through VESA, and renders everything itself into one 32-bit back buffer in RAM.

One strict rule shaped it: nothing above the platform layer may touch the hardware. Two backends implement that seam. A headless host backend renders to memory and is what continuous integration, the sanitisers and every screenshot use. The DOS backend drives VESA, the mouse and keyboard interrupts and DPMI. Everything above the seam is portable C89, which is why the system can be tested on a modern machine and still ship to DOS.

System Information
Boot pathBIOS → FreeDOS → DOS/4GW → DPMI → VESA desktop
Reference targetPentium II with an Intel 440BX chipset, a VESA (VBE) BIOS, IDE disk, PS/2 keyboard and mouse
Video800×600×16, falling back to 640×480×16 and 640×480×8; 16- and 256-colour pipelines
RenderingSoftware compositor into one XRGB buffer; dirty rectangles converted to RGB565 or 3-3-2 on present
LanguageStrict C89; Open Watcom for DOS, gcc or clang for the host build
DependenciesNone at runtime. DOS/4GW is bundled; FreeDOS is yours
Verification7,609 unit checks in 59 files, 74 demo scenes, valgrind, ASan, UBSan, strict-C89 lint, a DOS build and a QEMU boot per push
Idle: 3.7 MBCeiling: 4 MB

Features and status

What is available, what is in validation, what comes next

Verified by the test suite on every change and booted in QEMU; validation on the reference hardware completes the path to 1.0.

available in the preview in validation built, pending hardware validation roadmap planned

Desktop and applications

  • availableShellTwo-column Start panel, taskbar with Quick Launch and tray, four virtual desktops, window snapping with a preview outline, Alt+Tab, context menus, drop shadows, splash and shutdown screens, four screensavers and a Welcome tour.
  • availableFile ManagerTask pane, address bar, three views with thumbnails, associations, drag and drop, find in files, a Recycle Bin with restore, archiving and Properties.
  • availableOfficeCastaliaWrite and CastaliaSheet with unit-tested engines and CSV; CastaliaPaint with eleven tools and BMP files.
  • availableUtilitiesNotepad, Calculator, Task Manager, Log Viewer, Control Center, System Information, Disk Usage treemap, File Compare, Character Map, Console, Help, Theme Editor, Clock, Calendar and Agenda, Benchmark Suite.
  • availableGamesMines, Solitaire with drag and drop and the win cascade, FreeCell.
  • availableTheming and extensionsClassic, Storm, Forest, High Contrast and Aurora presets with live recolour; a package format with validator, loader and SDK headers.

Hardware, media and network

  • availableBoot, install and recoveryCBOOT safe launcher, Safe Mode, a crash boundary, last-known-good config, INSTALL.EXE with install, uninstall, backup, repair and upgrade, a FreeDOS floppy builder.
  • availableMedia PlayerSample-driven visualiser, equaliser and playlist.
  • in validationSound on DOSSound Blaster cues over 8-bit DMA; streaming playback for the Media Player is on the roadmap.
  • in validationNetworkingAn original ARP, IPv4, ICMP and UDP stack with a ping window and a DOS packet-driver client; receive path, TCP and a downloader follow.
  • roadmapHardware validationPS/2, VESA modes, IDE, CD and audio on the reference Pentium II system.
  • roadmapBootable CD or USB image, localisation, an add-on catalogueToday the preview installs onto an existing FreeDOS system.

Download

v0.1.0-preview1

Public preview, 19 August 2026. The archive is the installable tree: the desktop, the safe launcher, the installer, the bundled DOS/4GW extender, boot templates and documentation. Nothing to compile.

castalia-98-pe-v0.1.0-preview1.zip 1,208,637 bytes · CASTALIA.EXE, CBOOT.EXE, INSTALL.EXE, DOS4GW.EXE, templates, docs sha256 c044ae07ac7743fb91ef0ad949a623de047afc243c4b2a303b6182a181cdd164 Download the preview

Checksum as published by GitHub for the release asset. Release notes: v0.1.0-preview1 on GitHub. A host build for Linux and macOS is available from source.

Setup — from zip to desktop
  1. Copy the CASTALIA\ folder to the root of a FreeDOS drive as C:\CASTALIA.
  2. Run BIN\INSTALL.EXE. It backs up CONFIG.SYS and AUTOEXEC.BAT and adds the boot entries; running it again is safe.
  3. Reboot, or start it now with BIN\CBOOT.EXE. Add /safe for Safe Mode.
  4. Optional: load CTMOUSE.EXE /P first for a pointer. The whole desktop is keyboard-navigable without one.
  5. Recovery: press F5 or F8 at boot, then edit SYS\CASTALIA.INI. The last known good configuration is kept for you.

Preview software

Verified in QEMU with FreeDOS and the CuteMouse driver, the recommended way to evaluate the preview. The emulator guide walks through it.

Roadmap

From preview to release

  1. Public preview

    Shell, file manager, office applications, games, theming, installer and recovery; a full test harness; a DOS build that boots in QEMU.

  2. Hardware validation

    The reference Pentium II system: PS/2, VESA modes, IDE, CD and audio.

  3. Sound and network on DOS

    Streaming playback for the Media Player; the network receive path, then TCP and a downloader; a user guide.

  4. Setup and beyond

    A bootable CD or USB image with guided setup, an add-on catalogue, localisation and performance work for lower-end targets.