Systemd's Nuts and Bolts - A Visual Guide to Systemd (medium.com)
from sebastiancarlos@lemmy.sdf.org to linux@lemmy.ml on 11 Jul 2025 19:30
https://lemmy.sdf.org/post/38386112

#linux

threaded - newest

leo85811nardo@lemmy.world on 11 Jul 2025 19:32 next collapse

That title gotta be intentional

TropicalDingdong@lemmy.world on 11 Jul 2025 19:40 next collapse

the Millie Vanillie of vibe coding if you will…

corsicanguppy@lemmy.ca on 11 Jul 2025 21:02 collapse

Systemd is the Kanye West of vibe-coding.

Naich@lemmings.world on 11 Jul 2025 20:03 next collapse

I started reading that because I want to learn more about systemd and ended up wanting to go back to DOS. Presumably it all makes sense, but when I tried to read it my brain stopped working and my eyes slid off the bottom of the screen.

I don’t know why but I just found it incomprehensible.

edinbruh@feddit.it on 11 Jul 2025 20:15 next collapse

I have yet to read this, but. But the first part is like the internals of systemd, you won’t immediately need it.

If you want to make use of systemd, you can skip directly to where it explains unit files. You’ll soon see just how much it can do for you

corsicanguppy@lemmy.ca on 11 Jul 2025 21:00 collapse

I don’t know why but I just found it incomprehensible.

#alwaysHasBeen, but for us graybeards the confusion has been “this is a solution with no problem” and “it’s eaten WHAT now?”

atzanteol@sh.itjust.works on 11 Jul 2025 22:26 collapse

As a proper “gray beard” myself the utility of systemd vs. sys-v init scripts has always been blindingly obvious. 🤷

dan@upvote.au on 11 Jul 2025 20:14 next collapse

Great article! This helped me understand a lot more about D-Bus.

SnotFlickerman@lemmy.blahaj.zone on 11 Jul 2025 20:22 next collapse

systemdeez nuts!

_spiffy@lemmy.ca on 11 Jul 2025 21:37 next collapse

Ha! Gottem.

d00phy@lemmy.world on 11 Jul 2025 23:02 collapse

This is the beauty of open source. If you wrote an app called “eeznuts” and mad it something everyone needed, eventually a sysadmin somewhere would get to explain that joke to a stiff EVP, and they’d both have a good chuckle about it.

Album@lemmy.ca on 11 Jul 2025 20:24 next collapse

Ayyyyy!

Love systemd thanks for the writeup 👍🏽

theshatterstone54@feddit.uk on 11 Jul 2025 20:33 next collapse

If you’re a new or intermediate Linux user or sysadmin, you might have felt an odd fascination with the myth of systemd. I invite you to this deep dive into systemd’s nuts and bolts. I’m not gonna beat around the bush: It’s a hairy business, it will be hard, but I promise juicy and satisfying rewards if you keep pumping through this guide.

Let’s start by uncovering the “D” of systemd, the secret sauce that doesn’t get the love it deserves: D-Bus.

Okay, those innuendos have to be intentional!

SnotFlickerman@lemmy.blahaj.zone on 11 Jul 2025 20:56 next collapse

Thank you Ted, that’s the joke.

corsicanguppy@lemmy.ca on 11 Jul 2025 21:01 collapse

  1. Take a non-stop Linux box where even the kernel can be patched while it’s hot
  2. Glance at d-bus sideways
  3. Now you must reboot.
haroldstork@lemmy.ml on 11 Jul 2025 23:42 next collapse

Informative and informal. Love it!

syklemil@discuss.tchncs.de on 12 Jul 2025 09:13 next collapse

I’ve very barely dipped my toes in dbus before, and the option to have something else is on its face attractive (not a fan of XML and the late 90s/early aughties style of oop), but JSON for a system interface?

I mean, Kubernetes shows that yaml can work, but in this day and age I’d expect several options for serialisation, and for the default to be binary, not strings.

String serialisations are primarily for humans IMO, either as readers or writers. As writers we want something with comments (and preferably no “find the missing }” game), so for that most of us would prefer something like TOML if the data is simple enough, and actually Yaml for complexity at the level of Kubernetes—JSON manages to be even more of a PITA at that level.

But machine-to-machine? Protobuf, cap’n’proto, postcard, even CBOR should all be alternatives to examine

Ferk@lemmy.ml on 16 Jul 2025 14:17 collapse

100%

JSON is not the optimal solution for either humans nor for machines… it’s a compromise in-between that is more complex to parse than most binary alternatives (and even some text-based ones, if the data can be represented in CSV tables for example), while also often requiring post-processing through beautifiers and similar to be able to visualize it cleanly for humans.

There are situations where it’s the format that makes the most sense… like in the web, where you are already working with javascript anyway. But it’s not a golden bullet to use everywhere.

syklemil@discuss.tchncs.de on 16 Jul 2025 15:43 collapse

Yeah, JSON is essentially a side effect of having JavaScript already. It makes sense that it shows up a lot of places, especially web. But just like with JS, it’s not really good, just ubiquitous.

MonkderVierte@lemmy.zip on 12 Jul 2025 10:12 next collapse

Why it is a guide, it’s not a visual guide.

somerandomperson@lemmy.dbzer0.com on 12 Jul 2025 16:25 next collapse

article has a typo. opinion discarded.

/s

Everyday0764@lemmy.zip on 12 Jul 2025 18:33 next collapse

i would read it, if medium allowed me…

hobbsc@lemmy.sdf.org on 12 Jul 2025 19:48 collapse
irotsoma@lemmy.blahaj.zone on 13 Jul 2025 00:45 next collapse

That was a lot of really good info. I’ve been having to deal with some more complex systemd configurations at work which has gotten me interested in the subject. This was a really good intro and will help a lot in my own self-hosted activities as well as work.

sebastiancarlos@lemmy.sdf.org on 13 Jul 2025 01:16 collapse

Thanks bro, just doing my best to keep our kind employed and informed. Long live the machine whisperers

ReversalHatchery@beehaw.org on 14 Jul 2025 19:26 next collapse

Sorry American readers, we in the real world use soccer metaphors, we are manly like that, even our women

As a European reader I highly doubt all claims in that sentence. refe what?

Actually I would have thought its the Americans that do this.

sebastiancarlos@lemmy.sdf.org on 14 Jul 2025 21:03 collapse

Hmm, you must be Germænic or nordic. You know, places in which the soccer ball freezes during winter before the invention of frost resistant turf

ReversalHatchery@beehaw.org on 14 Jul 2025 22:19 collapse

eastern, or middle, depends on how you look at it. orbán is not representative, he’s special

hayk@lemmy.ml on 16 Jul 2025 08:11 collapse

a slightly unrelated question. do the authors at least get paid for posting things on Medium? if not, why do that? I’m unironically curious. it’s a bad platform no matter how you look at it: it’s closed for unregistered readers, it’s typesetting sucks ass… the only reason I could see, is if the authors actually get some of the ad revenue, in which case I’d much rather pay directly to the authors.

sebastiancarlos@lemmy.sdf.org on 16 Jul 2025 20:17 collapse

Yes, I do get paid. Sometimes considerably (for what tech writing can provide).

Indeed, writing tech articles on Medium has allowed me to get some extra income/free-time in between jobs, which I use to upskill myself and then share what I learn with the community (with some amount of friction regarding the paywall). This self-reinforcing loop is quite appealing to me, and - I would argue - aligns somewhat with my take on the Kantian categorical imperative.

For what it’s worth, I like the typesetting. Medium also has extremely good SEO, likely from some direct negotiation with search engines, I assume. Eventually I plan to move my tech writings to my own blog, with some sort of minimal ad system, no paywalls. Also, I usually unpaywall my tech articles after the window of high income dries up.

I updated the post to use the “friend link” which should allow you to read for free. (I didn’t realize you could edit the link on lemmy after publishing).

in which case I’d much rather pay directly to the authors.

All my stories have a link to my ko-fi at the end, but the income from that is significantly less than what I get from Medium directly.

Edit: Thanks @hayk@lemmy.ml for donating! Much appreciated!

hayk@lemmy.ml on 17 Jul 2025 17:56 collapse

re: Medium I was genuinely curious why people use it, thanks for the clarification.

still as someone who writes only open source codes, it goes a bit against my religion, but I totally understand if your income depends on it! thanks for the text, and for the “friend link”. as promised… ; )