An .exe is just a program
No prefixes to create, no bottles to configure, no launcher in between. The system knows what a Windows program is, the way it knows what a Linux one is.
ninjinOS is a free Linux distribution that runs Windows programs natively.
Not in a virtual machine, not through a translator living off to the side: the Windows NT
kernel interface is built into the Linux kernel itself. The goal is that simple: you
double-click an .exe, and it runs.
Free software. Not one line of Microsoft code.
you@ninjinos:~$ ./hello.exe Hello, world! you@ninjinos:~$ file hello.exe hello.exe: PE32+ executable (console) x86-64, for MS Windows
What it is
Most people who stay on Windows don't stay for Windows. They stay for one game, one tool, one program from work. ninjinOS is a Linux built so that those come with you — next to every Linux program you already use, on the same machine, at the same time.
No prefixes to create, no bottles to configure, no launcher in between. The system knows what a Windows program is, the way it knows what a Linux one is.
Direct3D through Vulkan with DXVK and VKD3D-Proton, controllers, audio and Wayland are on the roadmap from the start — and the timing-sensitive core already lives in the kernel.
Your hardware drivers, your file systems, your network, your security updates: all standard Linux. ninjinOS adds to Linux; it never replaces it.
An image-based system on Fedora Atomic: an update replaces the whole system at once, and if anything goes wrong, you boot the previous one.
Why it's different
Wine and Proton made Windows software on Linux possible, and ninjinOS stands on their shoulders. But in Wine, the Windows kernel is imitated by an ordinary program running beside your apps. ReactOS rewrites all of Windows, drivers included, from zero. ninjinOS takes a third road: the Windows NT kernel interface implemented inside Linux.
| Wine / Proton | ReactOS | ninjinOS | |
|---|---|---|---|
| Built on | Linux, in userspace | Its own kernel | The Linux kernel |
| Windows kernel behaviour | Imitated by a userspace server (wineserver) | Reimplemented from scratch | Implemented in the kernel, on top of Linux |
| Hardware drivers | Linux's | Has to write its own | Linux's |
Windows kernel drivers (.sys) | Not possible | Yes | Planned |
| Linux programs alongside | Yes | No | Yes |
Where it stands
ninjinOS is not ready for your desktop yet, and we would rather say so than overstate it. What exists today is the foundation — the part everything else is built on — and every claim about it is tested against real Windows.
Foundation and first light. A bootable image built in CI, a Windows reference machine, and a first .exe running as a real NT process.
The executive skeleton. Windows objects, handles, names, events, mutexes, semaphores, timers and waits, in the kernel; Wine's tests pass through it; signed for Secure Boot.
doneProcesses and memory. Windows processes, threads and virtual memory, created by the kernel, threads suspended, ended and their registers read and changed from any thread, and threads started in another process; programs run with Wine's ntdll and C runtime, and a C hello world prints the same bytes as on Windows; cmd.exe runs batch files and a dozen console tools as NT processes, each created by the kernel. Native C __try/__except and __finally now run through AMD64 frame unwinding, also across code a program generates and registers, as a JIT compiler does, and when a filter or a cleanup block raises an exception of its own; a thread that runs out of stack gets STATUS_STACK_OVERFLOW and can catch it. Whole-stack exit unwinds and eighteen readable unwind-record cases match Windows, and a native debugger attached at child creation can inspect and change the stopped context or observe the fatal exit. Programs can handle the CPU's other traps too, single steps, privileged instructions, stack-segment and alignment faults, and x87 and SSE floating-point errors, each reported as Windows reports it, and resume with an edited context. A guarded page raises its one-shot exception and is clear before the handler retries, as on Windows.
Files, registry, security. The userspace server reduced to window-manager state; installers that install and uninstall real applications. Begun: the kernel's I/O manager, whose first device, NUL, answers every request exactly as Windows does, the C: drive, ext4 with case-insensitive names, which the system makes by itself in a file until the installer gives it a partition, whose files behave as on Windows' NTFS: sharing modes, deletion, renames, attributes, sorted directory listings, byte-range locks, which wait for their range when they must, extended attributes, change notification, which tells programs of every change to a directory, Linux programs' too, and scatter/gather I/O; named pipes and mailslots, with the requests that wait for the other end, which Wine's programs now use in place of its server's; tokens, security descriptors, access checks, impersonation, integrity labels and restricted tokens, the first of Windows security, every process's identity made from its Linux user, with Wine's programs using those same kernel tokens and access checks and the server asking the kernel to check the objects it still serves; and the registry, in the kernel as on Windows, its keys and values created, read, listed, renamed and deleted exactly as Windows does, each user's its own, and kept across restarts in Windows' own hive files, which Windows itself can read, with notification when a key changes (through either of Windows' two services for it), Wine's programs using it in place of Wine's server, their 32-bit view included, and an existing Wine prefix's registry imported into it once, symbolic links between keys, SYSTEM's CurrentControlSet as Windows makes it, and hives saved to a file and loaded from one as Windows does; and ALPC, Windows' local message ports, in the kernel: connecting, requests and replies, and impersonating the client, exactly as Windows does; and each user's Service Control Manager, which installs, starts, stops and deletes Windows services as Windows' does, runs them from login to logout, and shuts them down in Windows' order. Each user has a C: drive of their own, a directory of one volume, on which only a file's owner changes its security, and the kernel memory a user's Windows programs take counts against that user's own limits. Sockets are in the kernel now: Windows' socket driver, each socket over a Linux socket made for its program's user, which every Wine program's Winsock uses, connecting, accepting, sending, receiving, polling and selecting events exactly as Windows does, and passing all of Wine's own socket tests as Wine's server does. Wine's drives are the kernel's now too: every Wine program's C: is its user's own, into which an existing prefix's files move once, and Z: the Linux tree, with every one of Wine's own file tests for ntdll and kernel32 passing on them, apart from differences decided and written down, such as no 8.3 short names; a program's own file is opened by the kernel too, and shared as Windows shares it.
Desktop and games. Windows, input, Direct3D 11 and 12 through Vulkan, audio and controllers, with games at parity with Proton as the goal. The first public release comes after this.
plannedNative system calls and drivers. Real NT system calls into the kernel, and Windows drivers for the hardware that only has them.
laterClean room
Recreating how Windows behaves, so that its programs run elsewhere, is lawful — copying Microsoft's code is not, and would put the whole project at risk. So the rules are strict, and the tooling enforces them.
Behaviour is learned from public documentation and by watching real Windows run our own test programs. What we see becomes a written specification, and code is written from that.
Nobody who has read leaked Microsoft source may work on the part it touches. Every change is scanned for Microsoft notices and binaries before it lands.
The kernel module is GPL-2.0, the userland and tools LGPL-2.1, the documentation CC BY 4.0. Nobody can take it away from you.
“Why is there a carrot again?” Ninjin is Japanese for carrot. Same family as DSN. Still don't ask.
Follow along
The source code is not public yet, and there is nothing to install today. If you have a Windows program or game you can't live without, write to us: the list of what people actually need is what decides what gets tested first.
One email, and we'll answer it. No newsletter, no tracking.