mirror of
https://github.com/blazblue547-afk/nova-os.git
synced 2026-12-02 14:54:17 -05:00
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:
1 parent
84883f8175
commit
b1f913ff14
2 files changed
+34
-53
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
**Burn bright, run light.**
|
**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 ║
|
║ kernel 7.0.12-nova-os ║
|
||||||
║ "Burn bright, run light." ║
|
║ "Burn bright, run light." ║
|
||||||
║ 100% from source — zero prebuilt ║
|
║ 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 |
|
| C Library | glibc 2.41 | ftp.gnu.org |
|
||||||
| Init system | systemd 260.2 | github.com/systemd/systemd |
|
| Init system | systemd 260.2 | github.com/systemd/systemd |
|
||||||
| Core utils | BusyBox 1.36.1 | busybox.net (static) |
|
| Core utils | BusyBox 1.36.1 | busybox.net (static) |
|
||||||
|
| SSH server | OpenSSH 10.3p1 | openssh.com |
|
||||||
| SSL/TLS | OpenSSL 3.5.6 | openssl.org |
|
| SSL/TLS | OpenSSL 3.5.6 | openssl.org |
|
||||||
| Compression | zlib 1.3.1 + zstd 1.5.7 | github.com |
|
| Compression | zlib 1.3.1 + zstd 1.5.7 | github.com |
|
||||||
| Capabilities | libcap 2.75 | kernel.org |
|
| 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) | — |
|
| Architecture | aarch64 (ARM64) | — |
|
||||||
| Target | Raspberry Pi 5 (BCM2712) | — |
|
| Target | Raspberry Pi 5 (BCM2712) | — |
|
||||||
| Image size | ~1.5 GB | — |
|
| Image size | ~1.5 GB | — |
|
||||||
| Rootfs size | ~222 MB | — |
|
|
||||||
|
|
||||||
## Version History
|
## Quick Start
|
||||||
|
|
||||||
| Version | Init | Userspace | Source Purity |
|
```bash
|
||||||
|---------|----------|----------------|---------------|
|
# Flash to SD card
|
||||||
| v1.0 | BusyBox | BusyBox static | Full from-source |
|
sudo dd if=nova-os-4.1-ssh.img of=/dev/mmcblk0 bs=4M status=progress
|
||||||
| v2.0 | systemd | Debian minbase | Debian binaries |
|
|
||||||
| v3.0 | systemd | BusyBox + host libs | Kernel+systemd+busybox from source |
|
# Boot your Pi 5 — OpenSSH starts automatically
|
||||||
| **v4.0** | systemd | **Full bootstrap** | **100% from source — incl. glibc** |
|
# 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
|
## Build from Source
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Prerequisites
|
|
||||||
sudo apt-get install meson ninja-build gcc gawk gperf gettext python3-jinja2
|
sudo apt-get install meson ninja-build gcc gawk gperf gettext python3-jinja2
|
||||||
|
|
||||||
# Full build (kernel + toolchain + systemd + busybox + image)
|
make all # kernel + toolchain + systemd + openssh + busybox + image
|
||||||
make all
|
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
| Version | Key Changes |
|
||||||
sudo dd if=nova-os-4.0-bootstrap.img of=/dev/mmcblk0 bs=4M status=progress
|
|---------|-------------|
|
||||||
```
|
| v1.0 | BusyBox init, minimal |
|
||||||
|
| v2.0 | systemd via Debian minbase |
|
||||||
## What's Inside
|
| v3.0 | systemd + BusyBox from source |
|
||||||
|
| v4.0 | Full bootstrap: glibc + all libs from source |
|
||||||
Every library and binary compiled from upstream source on this Raspberry Pi 5:
|
| **v4.1** | **OpenSSH 10.3 from source, auto-starts at boot** |
|
||||||
|
|
||||||
- **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
|
|
||||||
```
|
|
||||||
|
|
||||||
## License
|
## 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
|
||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
NOVA_ROOT="/home/joe/nova-os"
|
NOVA_ROOT="/home/joe/nova-os"
|
||||||
IMAGE="$NOVA_ROOT/nova-os-4.0-bootstrap.img"
|
IMAGE="$NOVA_ROOT/nova-os-4.1-ssh.img"
|
||||||
SIZE_MB=1536 # 1.5 GB
|
SIZE_MB=1536 # 1.5 GB
|
||||||
TMP_MNT="/tmp/nova-os-mnt"
|
TMP_MNT="/tmp/nova-os-mnt"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user