Chimera Linux is a novel Linux distribution built around FreeBSD core tools and
the LLVM toolchain. Since its initial launch in 2021, it has made a lot of
progress and is now in alpha stage. The system can be deployed on a wide array
of hardware and many people are using it as their desktop system; it works on
x86_64, AArch64, POWER (little and big endian) as well as RISC-V and by now
comes with thousands of packages.
While trying to be practical, Chimera is also highly hardened, partly thanks to
the LLVM toolchain, rendering it immune to various security issues other
distros are vulnerable to. It has transparent and robust infrastructure,
ensuring smooth deployment of packages. We are also developing various new
tooling that the whole ecosystem can benefit from, including the Turnstile
session tracker. Service management is based around Dinit, a modern,
supervising system; we maintain and create a variety of tooling around it,
trying to break the existing status quo with systemd, while abandoning legacy
approaches.
2023 has seen several major milestones, so I will focus on these, while also
giving a short overview so that people unfamiliar with the system don't feel
lost. I will also explain how our work benefits the entire Linux ecosystem, as
well as beyond.
(c) FOSDEM 2024
3 & 4 February 2024
https://fosdem.org/2024/schedule/event/fosdem-2024-2524-2023-in-chimera-linux/
2. 2023/02/03 Chimera Linux @ FOSDEM 2024 2
Overview
●
General-purpose Linux distribution
●
Built from scratch with broad focus
●
Based on FreeBSD core tools, musl, and LLVM
●
Hardened (more than most)
●
Portable (aarch64, ppc64le, ppc64, riscv64, x86_64)
3. 2023/02/03 Chimera Linux @ FOSDEM 2024 3
Overview
●
Binary packaging (apk-tools), rolling release
●
Custom-built source packaging infra (cports)
●
Lightweight and pragmatic, but also versatile
●
Not trying to be like anything else
●
No systemd, but not militant about it
4. 2023/02/03 Chimera Linux @ FOSDEM 2024 4
Why?
●
Make a well-rounded system I’d enjoy using
●
Make proper use of LLVM (e.g. security hardening)
●
Improve software I’m unhappy with
●
Focus on robustness, determinism, and good defaults
●
Have some fun doing all that
5. 2023/02/03 Chimera Linux @ FOSDEM 2024 5
Core tenets
●
Purity is counter-productive and makes things worse
●
“Minimalism” doesn’t actually mean anything
●
Simple > complex, but complex > complicated
●
Opinionated = good, but dogmatic = bad
●
Good software design is key
6. 2023/02/03 Chimera Linux @ FOSDEM 2024 6
Core tenets
●
Inclusive, open, accessible
●
It’s free software
●
It’s important to have fun
●
Reactionaries ruin everything, so keep them out
●
Otherwise, almost anything goes
7. 2023/02/03 Chimera Linux @ FOSDEM 2024 7
System design
●
Always be strict by default
●
There should be a good, obvious way to do things
●
Portability > security > benchmarks
●
Self-sustaining, transparent tooling
●
Flexible, retargetable infrastructure
8. 2023/02/03 Chimera Linux @ FOSDEM 2024 8
System design
●
Atomicity and determinism
●
It should usually not be written in shell
●
Encourage doing good
●
Always improve, nothing is good enough
●
Systemd is not the devil, no shame in inspiration
9. 2023/02/03 Chimera Linux @ FOSDEM 2024 9
Packaging infrastructure
●
Custom system (cports)
●
Written in Python
●
Sandboxed, fast, and easy to use
●
Optimized to minimize effort needed for small teams
●
Easy to add new packages
13. 2023/02/03 Chimera Linux @ FOSDEM 2024 13
Alpha “release”
●
The project is now ready to take on adventurous users
●
Repositories receiving major expansion
●
The system is usable as a daily driver
●
Still plenty more work to be done in all areas
●
Add what you like to the repos
14. 2023/02/03 Chimera Linux @ FOSDEM 2024 14
Major software packaged
●
All big open source web browsers present:
– Firefox, Chromium, GNOME Web
●
Container infrastructure
– Podman, Docker, containerd, and related
●
LibreOffice
15. 2023/02/03 Chimera Linux @ FOSDEM 2024 15
Major software packaged
●
Qt6
●
OpenJDK 17
●
GIMP, Inkscape, Thunderbird, QEMU, etc.
●
Various popular software, from neovim to emacs and sway
●
Flatpak support
16. 2023/02/03 Chimera Linux @ FOSDEM 2024 16
Toolchain changes
●
LLVM 17
●
-fno-semantic-interposition by default
●
-ftrivial-auto-var-init=zero by default
●
Hardened libc++, expanded _FORTIFY_SOURCE
●
-z pack-relative-relocs for smaller executables
17. 2023/02/03 Chimera Linux @ FOSDEM 2024 17
Infrastructure update
●
Buildbot
– Packages are now built automatically for all architectures as
soon as changes reach the cports Git repo
– Build servers for aarch64, ppc64le, ppc64, riscv64, x86_64
●
Fancy package browser at pkgs.chimera-linux.org
18. 2023/02/03 Chimera Linux @ FOSDEM 2024 18
Low level userland changes
●
Initial API for our Turnstile session tracker
●
Userland based on FreeBSD 14
●
Systemd-udev in place of eudev
●
Adoption of systemd-tmpfiles and systemd-sysusers
●
Systemd-compatible binfmt support
19. 2023/02/03 Chimera Linux @ FOSDEM 2024 19
Service management
●
Preparing for adoption of dbus-broker
– Fully service-driven dbus activation (supervised)
●
Libdinitctl
– An API to interact with Dinit from C and over D-Bus
– To be used in various other places
20. 2023/02/03 Chimera Linux @ FOSDEM 2024 20
Service management
●
New service targets (e.g. for firewalls and time-sync)
●
Early services overhaul
– Various new helpers, e.g. for swclock, swap, sysctl
●
Improved support for read-only root
●
Countless minor quality-of-life improvements
22. 2023/02/03 Chimera Linux @ FOSDEM 2024 22
Hardware support
●
LTS kernel 6.6 and stable kernel 6.7
●
Raspberry Pi 5 support (unified image 3/4/5)
●
Steam Deck support (incl. OLED)
●
Big endian ppc64 repos introduced (G5+)
●
Ampere Altra amdgpu support out of the box
23. 2023/02/03 Chimera Linux @ FOSDEM 2024 23
Conclusion
●
A good, productive year
●
Beta release possibly in late spring/summer
●
Upcoming focus is service mgmt, session tracking
– And getting rid of elogind if we can
●
And also package management