[-] Zucca@sopuli.xyz 5 points 1 year ago
[-] Zucca@sopuli.xyz 5 points 1 year ago* (last edited 1 year ago)

I would then assume those scripts weren't written properly to begin with.

But yes, shell scripts should be used (normally) to automate some simple tasks (file copying, backups...) or as an wrapper to exec some other program. I've written several shell scripts to automate things on my personal machines.

However shell script can be complex program while at the same time being (somewhat) easy to maintain:

  • functions, use functions, alot
    • comment every function and describe what it expects in stdin or as an arguments
    • also comment what it outputs or sets

This way at least I don't break my scripts, when I need to modify a function or some way extend my scripts. Keeping the UNIX philosophy inside shell scripts: let one function do one thing well.

And of course: YMMV. People have wastly different coding standards when it comes to personal little(?) projects.

[-] Zucca@sopuli.xyz 5 points 1 year ago

Yeah. "Raining Blood" got few extra layers of meanings...

[-] Zucca@sopuli.xyz 5 points 1 year ago

Sir, your thinking is certainly what kids call "next-level".

[-] Zucca@sopuli.xyz 6 points 1 year ago

Void offers musl too. Unless they've discontinued it.

But

compile everything yourself?

I do (almost) exactly that. I run Gentoo almost everywhere. The 'almost' is because Gentoo now offers an official bin repository too, so I can mix compiled and pre-compiled software. (Although you've always had the option to set up your own binary host).

[-] Zucca@sopuli.xyz 5 points 2 years ago

To me it looks like Fedora is trying to guide you to make better file choices. \s

[-] Zucca@sopuli.xyz 5 points 2 years ago

Arch still doesn't have the same flexibility as Gentoo. Also Gentoo even offers sys-kernel/gentoo-kernel-bin for precompiled kernel. Personally I use sys-kernel/gentoo-kernel (which autocompiles and installs) and have custom config snippets at /etc/kernel/config.d/.

[-] Zucca@sopuli.xyz 5 points 2 years ago

indeed. Mint became what Ubuntu used to be, afaik.

I've never really used Ubuntu or Mint. I think I've installed both in VM but that's it.

[-] Zucca@sopuli.xyz 5 points 2 years ago

Gentoo is a metadistro - a set of tools to build your own distro. LFS is a documentation to build your own Linux system. And if one chooses to install some package manager and configure a repo for it, it basically becomes a distro. LFS can become Gentoo if you choose to install Portage and use Gentoo repository.

Setting Gentoo up seems to be quite simpler option compared to LFS. Sure LFS might teach you even more than Gentoo.

[-] Zucca@sopuli.xyz 6 points 2 years ago

Hehe.

I see what you did there.

[-] Zucca@sopuli.xyz 5 points 2 years ago

Alpine is nice, but this one has some differences:

  • LLVM instead of GCC toolchain
  • not so barebones, gives you more ready-to-go installation
  • obviously not so lightweight
view more: ‹ prev next ›

Zucca

joined 2 years ago