News for hackers. Stuff that matters.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gorgoiler on Tuesday November 10, 2020 @11:53PM (#25055599)
More unwanted complexity in the base system :(

I wish I had a Linux distro that split the OS from the userland more neatly.

I want to boot into something minimal and static, and then add complexity from there. Maybe logging in to a local container instead of the actual OS?

Linux as an easily extendable building filled with rooms and workshops and entertainment areas, rather than Linux as a mere desktop.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jdally987 on Wednesday November 11, 2020 @04:01AM (#25056751)
NixOS, my friend. NixOS.

I still can't believe it's not more widely used (and I only started using linux full-time earlier this year). It confines the entire (non-user) filetree into the read-only /nix directory, and manages every single component of the OS through Nix, the package manager - and I guess nix-daemon in the case of NixOS specifically - 100% declaratively. You define the entire thing through a single configuration.nix file.

You can even do crazy stuff like erasing the root upon each reboot, leaving only /nix and /home if you wanted, and I think I remember in the article I was reading about it that it can mount everything on a tmpfs or something like that, so you have a perfectly "clean" root tree every time you restart the computer (as /nix is stateless, it's guaranteed not to change except when rebuilding the system configuration).

The point of nixos is really the declarative aspect, with "splitting" the OS being more of a secondary benefit, but for your case, you might like the whole declarative builds thing in general to accomplish that.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by AnIdiotOnTheNet on Wednesday November 11, 2020 @09:02AM (#25058451)
> NixOS, my friend. NixOS.

Is there an option that doesn't require everyone who uses it to learn an entirely new language?

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by Tehchops on Wednesday November 11, 2020 @11:14AM (#25059544)
>Is there an option that doesn't require everyone who uses it to learn an entirely new language?

This.

Also, in my experience proponents of NixOS significantly understate the technical complexity and various idiosyncrasies present in trying to get NixOS set up and usable for daily driving. I found several examples where the documentation was unclear, confusing, or out of date.

Coming from DevOps, I'm certainly a fan of declarative/immutable patterns, but it feels like NixOS requires more work than some would have you believe.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by devenblake on Wednesday November 11, 2020 @09:21AM (#25058589)
One of the joys of computing is that sometimes you have to educate yourself on new developments.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by LambdaComplex on Wednesday November 11, 2020 @01:50AM (#25056097)
Maybe look into Qubes OS? I've never used it, but the concept sounds kinda like what you're describing: "a security-focused desktop operating system that aims to provide security through isolation. Virtualization is performed by Xen, and user environments can be based on Fedora, Debian, Whonix, and Microsoft Windows, among other operating systems." (from Wikipedia)
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by danieldk on Wednesday November 11, 2020 @05:36AM (#25057234)
Besides NixOS, which is mentioned by jdally987, Fedora Silverblue also fits that bill. A basic immutable desktop OS with atomic updates/rollbacks. Applications are installed through Flatpaks or containers (per Fedora Toolbox or podman).