v4.1: Add OpenSSH 10.3p1 from source, auto-start at boot

- Build OpenSSH 10.3p1 from openssh.com source
- sshd links against our own libcrypto, libc, libz, libzstd
- systemd service: sshd auto-starts on boot
- Root password: nova (change on first login)
- Host keys pre-generated (RSA 4096, ECDSA 521, Ed25519)
- Enabled PermitRootLogin + PasswordAuthentication
- Output: nova-os-4.1-ssh.img
This commit is contained in:
blazblue547-afk committed 2026-06-14 12:25:03 -04:00
1 parent 84883f8175
commit b1f913ff14
2 files changed
+34 -53

No files matched your search

+33 -52
View File
@@ -2,7 +2,7 @@
**Burn bright, run light.**
A 100% from-source Linux distribution. Every binary on this image was compiled on this machine — kernel, systemd, glibc, BusyBox, openssl, zlib, zstd, libcap, libxcrypt. Zero prebuilt packages. Designed for the Raspberry Pi 5.
A 100% from-source Linux distribution. Every binary on this image was compiled on this machine — kernel, systemd, glibc, BusyBox, openssl, OpenSSH, zlib, zstd, libcap, libxcrypt. Zero prebuilt packages. Designed for the Raspberry Pi 5.
```
╔══════════════════════════════════════════╗
@@ -10,7 +10,7 @@ A 100% from-source Linux distribution. Every binary on this image was compiled o
║ kernel 7.0.12-nova-os ║
║ "Burn bright, run light." ║
║ 100% from source — zero prebuilt ║
║ systemd 260 · glibc 2.41 · BusyBox ║
║ systemd 260 · OpenSSH 10.3 ║
╚══════════════════════════════════════════╝
```
@@ -22,6 +22,7 @@ A 100% from-source Linux distribution. Every binary on this image was compiled o
| C Library | glibc 2.41 | ftp.gnu.org |
| Init system | systemd 260.2 | github.com/systemd/systemd |
| Core utils | BusyBox 1.36.1 | busybox.net (static) |
| SSH server | OpenSSH 10.3p1 | openssh.com |
| SSL/TLS | OpenSSL 3.5.6 | openssl.org |
| Compression | zlib 1.3.1 + zstd 1.5.7 | github.com |
| Capabilities | libcap 2.75 | kernel.org |
@@ -29,68 +30,48 @@ A 100% from-source Linux distribution. Every binary on this image was compiled o
| Architecture | aarch64 (ARM64) | — |
| Target | Raspberry Pi 5 (BCM2712) | — |
| Image size | ~1.5 GB | — |
| Rootfs size | ~222 MB | — |
## Version History
## Quick Start
| Version | Init | Userspace | Source Purity |
|---------|----------|----------------|---------------|
| v1.0 | BusyBox | BusyBox static | Full from-source |
| v2.0 | systemd | Debian minbase | Debian binaries |
| v3.0 | systemd | BusyBox + host libs | Kernel+systemd+busybox from source |
| **v4.0** | systemd | **Full bootstrap** | **100% from source — incl. glibc** |
```bash
# Flash to SD card
sudo dd if=nova-os-4.1-ssh.img of=/dev/mmcblk0 bs=4M status=progress
# Boot your Pi 5 — OpenSSH starts automatically
# SSH in:
ssh root@<pi-ip>
# Password: nova
```
## Services at Boot
| Service | Status | Description |
|---------|--------|-------------|
| systemd-networkd | enabled | DHCP networking |
| systemd-resolved | enabled | DNS resolution |
| sshd | enabled | OpenSSH server, port 22 |
| nova-splash | enabled | Boot banner on tty1 |
## Build from Source
```bash
# Prerequisites
sudo apt-get install meson ninja-build gcc gawk gperf gettext python3-jinja2
# Full build (kernel + toolchain + systemd + busybox + image)
make all
make all # kernel + toolchain + systemd + openssh + busybox + image
```
Individual targets: `make kernel`, `make toolchain`, `make systemd`, `make busybox`, `make image`.
Individual targets: `make kernel`, `make toolchain`, `make systemd`, `make openssh`, `make busybox`, `make image`.
## Flash to SD Card
## Version History
```bash
sudo dd if=nova-os-4.0-bootstrap.img of=/dev/mmcblk0 bs=4M status=progress
```
## What's Inside
Every library and binary compiled from upstream source on this Raspberry Pi 5:
- **glibc 2.41** — C runtime, math lib, dynamic linker, NSS, pthreads
- **systemd 260.2** — init, journald, networkd, resolved, logind, udevd
- **BusyBox 1.36.1** — ash shell, 200+ Unix utilities (static binary)
- **OpenSSL 3.5.6** — libcrypto + libssl (shared)
- **zlib 1.3.1** — compression
- **zstd 1.5.7** — modern compression
- **libcap 2.75** — POSIX capabilities
- **libxcrypt 4.4.38** — password hashing
## Directory Layout
```
nova-os/
├── Makefile # Build system
├── mkimage.sh # Image packager
├── boot/ # Pi boot partition
├── rootfs-custom/ # Built root filesystem
│ ├── sbin/init → /usr/lib/systemd/systemd
│ ├── bin/busybox # Static, from source
│ ├── lib/ # OUR glibc + all runtime libs
│ ├── usr/lib/systemd/ # OUR systemd binaries
│ └── etc/ # System configuration
└── build/ # All sources + build artifacts
├── linux-7.0.12/ # Kernel
├── systemd-260.2/ # systemd
├── busybox-1.36.1/ # BusyBox
└── toolchain/ # glibc, openssl, zlib, zstd, libcap, libxcrypt
```
| Version | Key Changes |
|---------|-------------|
| v1.0 | BusyBox init, minimal |
| v2.0 | systemd via Debian minbase |
| v3.0 | systemd + BusyBox from source |
| v4.0 | Full bootstrap: glibc + all libs from source |
| **v4.1** | **OpenSSH 10.3 from source, auto-starts at boot** |
## License
glibc: LGPLv2.1+ · systemd: LGPLv2.1+ · Linux: GPLv2 · BusyBox: GPLv2 · OpenSSL: Apache 2.0
glibc: LGPLv2.1+ · systemd: LGPLv2.1+ · Linux: GPLv2 · BusyBox: GPLv2 · OpenSSH: BSD · OpenSSL: Apache 2.0