Hacker News new | past | comments | ask | show | jobs | submit login

Alternatively, if you're not stuck on Linux, just install OpenBSD or NetBSD. Both will try to install X by default, but you can easily disable this in the TUI installers. After a reboot you'll go straight to a shell with very few daemons running (and certainly no systemd). Install the packages you need and start the daemons you need from there.

Imagine having the entire output of `top` fit in a terminal window with empty space at the bottom.




I do just this with Alpine Linux. I've been running it on Raspberry Pi Zeros with great success, and less than 18MB read only ramdisk.


I really wanted to like Alpine, but I can't for the life of me understand why it wants to do a ramdisk instead of just plain old read-only filesystem?


RAM disk is way faster and more reliable than SD cards. You can even remove the SD cards after boot.


Everything that's used should be cached in RAM, anyway. Everything that isn't used, well, I prefer that not to be in RAM. These things don't exactly have gobs of it.

And why would I want to remove the SD card after boot? Now I can't reboot the system, and it won't reboot if it crashes?


> Everything that's used should be cached in RAM

This isn't guaranteed, depending on many factors.

> why would I want to remove the SD card after boot

It's unnecessary to remove it. It's more about reliability. SD cards are notoriously unreliable, and it could potentially fail after boot. Coupled with the previous point, it has happened multiple times that I wanted to login to troubleshoot the system, but cannot because the basic system binaries like `ls` are not cached in RAM (as you said these are not used for the normal operation of these unattended systems).

This is when RAM disk is very helpful: as long as the system is powered on, I have reasonable confidence that I can login and see what's going wrong. It's mostly because RAM is way more reliable, faster, and cheap enough to "waste" a few dozens megabytes for the entire base OS.

Also there're diskless PXE systems where you just load the OS from network only once upon boot.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: