Avalonia for Linux

Build Linux apps in .NET, for the desktop and for embedded devices.

Platform support

Windowing

X11, Wayland, DRM or framebuffer

Four windowing backends, so the same build serves a laptop and a panel.

Rendering

Skia on OpenGL or EGL

Direct to the framebuffer on embedded, with no compositor.

Architectures

x64, ARM64 and ARM32

ARM32 covers the small boards, down to Raspberry Pi OS.

Runtime

.NET 8.0 on glibc 2.17

Desktop also wants libx11-6, libice6, libsm6 and libfontconfig1.

Every tested OS version is published in the support matrix.

Shipping today

Industrial panels, ground stations, developer tools.

On Linux, that range runs from a developer’s workstation to a fan-less panel that’ll run untouched for a decade, both served by the same framework.

A generation of HMI graphics, moved to embedded Linux.

Harmony panels render straight to the framebuffer, with no windowing system underneath.

Schneider Electric, Harmony HMI

A Schneider Electric Harmony HMI panel running a bio energy process screen with tank volumes and production figures

Three codebases became one.

WinForms, GTK# and Xamarin.Mac, replaced by a single client.

Daniel Peñalba, Unity Version Control

Schneider Electric’s Harmony panels run on as little as

512MB

of RAM, with no desktop compositor

Asv.Drones

An open source ground station, built and flown on Linux.

The Asv.Drones ground control station on Ubuntu, showing a flight map and telemetry readouts

Desktop and embedded

No compositor. No window manager. No X server on the device at all.

One method call is the difference.

Moving the same project from a developer laptop to a panel with no desktop stack is a change of entry point, not a change of codebase.

  • Hardware accelerated and tear-free through DRM/KMS
  • StartLinuxFbdev covers older boards that only offer /dev/fb0
  • Avalonia handles input, DPI scaling and window chrome
// Program.cs, running on the panel:
// no desktop, no compositor, no window manager
BuildAvaloniaApp().StartLinuxDrm(args);

Straight into your application.

With no login manager, no session and no desktop shell between power-on and the first frame, the device boots into your interface. That’s a shorter startup and a much smaller surface to harden.

  • Rotate and scale the panel
  • Touch, through libinput
  • Virtual keyboard, built in
A Schneider Electric Harmony touchscreen panel showing a screen of industrial lamps, switches and selectors

Spend fewer pixels per frame.

UseRegionDirtyRectClipping tracks precisely what changed and repaints only that. On a fan-less board that’s the difference between a smooth interface and a slideshow.

  • MaxDirtyRects caps the bookkeeping
  • Avalonia Enterprise includes designated LTS releases
.With(new CompositionOptions
{
    UseRegionDirtyRectClipping = true,
    MaxDirtyRects = 20,
})

X11 stays supported, Wayland is native, and it’s the same code on both.

Linux desktops are mid-migration and will be for years, so Avalonia targets both display protocols rather than betting on one and asking your users to wait.

  • Native Wayland in 12.1, and X11 stays the default
  • Orca reads your app through AT-SPI2
  • The Linux backend for .NET MAUI, too
BuildAvaloniaApp()
    .With(new WaylandPlatformOptions
    {
        UseDmabufSwapchain = true,
        UseGLibMainLoop = true,
    })

Getting it installed

Ship it however your users install things.

Avalonia produces an ordinary .NET application, so you choose how it’s packaged.

  • deb and rpm. Publish self-contained and wrap the output with the packaging tooling your distribution expects.

  • AppImage, Flatpak and snap. A self-contained publish has no runtime prerequisite, which is what makes the portable formats straightforward.

  • Yocto and Buildroot images. For embedded, the application goes into the image like any other binary, with no desktop stack to pull in behind it.

  • NativeAOT. Publish ahead of time for a smaller footprint and a faster start on boards where both are the constraint.

Avalonia itself is MIT licensed. Parcel is the packaging tool: the free Community edition packages for the machine it runs on, and Plus adds cross-platform packaging and the CLI.

Every target

The panel and the laptop are the same project.

If Linux is your hard target, the rest come close to free. The same views and view models produce the Windows, macOS, mobile and browser builds.

Avalonia for Windows

Direct Win32 calls, x64 and ARM64.

Avalonia for macOS

A native backend, universal binaries.

Avalonia for mobile

iOS and Android, from the same views.

Avalonia for WebAssembly

Static files, no server component.

One project, from the workstation to the panel.

Install the templates and run the sample on your laptop, then deploy the same project to a board. The framework is MIT licensed, and that same publish is what reaches it.