News for hackers. Stuff that matters.
Re:Systemd, 10 years later: a historical and technical retro... by abnry on Tuesday August 06, 2024 @05:10PM (#41175412)
I still haven't fully grasped the Systemd drama, or systemd for that matter, but boy do I love it. I enjoy how Linux has those turf wars nobody outside of it knows about.
Re:Systemd, 10 years later: a historical and technical retro... by jandrese on Tuesday August 06, 2024 @05:29PM (#41175583)
SystemD is great when it works, which is most of the time. But when it breaks or you have to do something that SystemD doesn't support it becomes an enormous pain in the ass. It's like being back in Windows land again.

Some DBus message is not appearing and it stalls out your boot process, finding where it was supposed to come from and why it didn't appear is a nightmare. If you want to use a different daemon than the one SystemD provides for some service it will fight you every step of the way, sometimes even undoing whatever you had to do to make the process work in a random update. As someone who experiments with weird networking stuff from time to time I've been kicked in the nuts by NetworkManager on several occasions.

Re:Systemd, 10 years later: a historical and technical retro... by pdw on Tuesday August 06, 2024 @06:07PM (#41175914)
I know this is a completely unimportant tangent. But I'm always amused that systemd skeptics insist on the "SystemD" spelling. Where does that come from? I never see anybody talk about NtpD, InetD or VsftpD. But somehow systemd needs to be SystemD. As I said, amusing.
Re:Systemd, 10 years later: a historical and technical retro... by Analemma_ on Tuesday August 06, 2024 @07:19PM (#41176563)
I'm pretty sure it's just ingroup signaling: it's not the only example of "spelling something wrong because you really hate it". For years I've seen people on forums who want to show their dislike say "MAC" instead of "Mac", "MicroSoft" and so on.
Re:Systemd, 10 years later: a historical and technical retro... by ssl-3 on Tuesday August 06, 2024 @09:56PM (#41177518)
In what way is strange capitalization of a technical word usement indicative specifically of hate within a group of haters?

And what does this mean of the amateur radio operators who call themselves HAMs?

Re:Systemd, 10 years later: a historical and technical retro... by philistine on Tuesday August 06, 2024 @11:48PM (#41178078)
Well if people are unhappy about MAC adresses on Macs, that's their perogative.
Re:Systemd, 10 years later: a historical and technical retro... by Enginerrrd on Tuesday August 06, 2024 @06:29PM (#41176124)
Here's one for you: I can't remember the exact details, but I was trying to get do something with a samba share folder via systemd unit file and the way systemd handles the escape characters used by the samba client was not compatible for windows network shares that used spaces in the name.
Re:Systemd, 10 years later: a historical and technical retro... by sophacles on Tuesday August 06, 2024 @05:38PM (#41175662)
> As someone who experiments with weird networking stuff from time to time I've been kicked in the nuts by NetworkManager on several occasions.

nit: NetworkManager is not the one provided by systemd in the first place - that's systemd-networkd.

That aside I do wierd networking stuff for a living and here's how I see the available tooling:

* NetworkManager - great for a laptop where you're moving between networks and don't need anything too fancy.

* systemd-networkd - great for servers and other mostly static networking setups, even weird ones.

* If you're doing anything weird dynamically (e.g. experimenting) - disable the above or move the interfaces you are experimenting on to a fresh netns and do everything by hand with the ip command (and maybe udchpc or dhclient if you need a dhcp client, but be aware of how to write your own callback scripts for how to handle various associated events).

Re:Systemd, 10 years later: a historical and technical retro... by creshal on Tuesday August 06, 2024 @05:44PM (#41175715)
Now for the weird part: Redhat wrote both NM and sd-nd, and decided what servers really need is NM by default, and getting a server to actually use sd-nd is like pulling teeth on RHEL. Completely baffling.
Re:Systemd, 10 years later: a historical and technical retro... by ChocolateGod on Tuesday August 06, 2024 @06:06PM (#41175911)
NetworkManager can read old style sysconfig network configuration, which is still used to this very day even if Red Hat wishes you wouldn't, and you really shouldn't.
Re:Systemd, 10 years later: a historical and technical retro... by sophacles on Tuesday August 06, 2024 @06:02PM (#41175872)
I don't know why Redhat would do that, but I've never used RHEL - I quit the redhat and derivatives in the 90's due to rpm hell, and never looked back.
Re:Systemd, 10 years later: a historical and technical retro... by creshal on Wednesday August 07, 2024 @02:30AM (#41178755)
A new job forced me to get intimately familiar with how fractally dysfunctional RHEL and derivatives still are, and the only thing more baffling than Redhat's self-sabotaging decision making process is why anyone would voluntarily use it.

I hope we can finish the Debian migration soon.

Re:Systemd, 10 years later: a historical and technical retro... by gsich on Tuesday August 06, 2024 @05:53PM (#41175798)
systemd-networkd also has the big advantage in using the same config for all distributions. No weird Debian or Redhat config pain.
Re:Systemd, 10 years later: a historical and technical retro... by pantalaimon on Tuesday August 06, 2024 @06:02PM (#41175873)
And that’s why Canonical came up with Netplan because otherwise things would get boring.
Re:Systemd, 10 years later: a historical and technical retro... by jandrese on Tuesday August 06, 2024 @11:17PM (#41177930)
Yes, but then NetworkManger will override Netplan sometimes but not others. There is a setting in one of the buried config files to configure this behavior, but it doesn't always work depending on how NetworkManager is feeling that day.
Re:Systemd, 10 years later: a historical and technical retro... by rlpb on Tuesday August 06, 2024 @05:59PM (#41175845)
I'm not keen on the network config being scattered across a dozen tiny files. It makes it hard to see what's going on, or to spot a configuration error.
Re:Systemd, 10 years later: a historical and technical retro... by gsich on Tuesday August 06, 2024 @07:19PM (#41176564)
Also true.
Re:Systemd, 10 years later: a historical and technical retro... by tuatoru on Tuesday August 06, 2024 @05:35PM (#41175626)
Yah, Networkmanager is a rootkit.
Re:Systemd, 10 years later: a historical and technical retro... by hi-v-rocknroll on Tuesday August 06, 2024 @06:04PM (#41175892)
Because it completely violates the UNIX philosophy and mission creeps into taking over essentially every part of the system. It was shoved down the throats of every user because the major distros kowtowed to a FOSS diva with a spotty track record, creating a monoculture built on awfulness and bloat.
Re:Systemd, 10 years later: a historical and technical retro... by delta_p_delta_x on Tuesday August 06, 2024 @06:46PM (#41176258)
Hot take: the 'UNIX philosophy' is stuck in the 1970s. It was the only practical compromise when computers were constrained to kilobytes of memory (at best) and a megabyte of storage (at best).
Re:Systemd, 10 years later: a historical and technical retro... by wakawaka28 on Tuesday August 06, 2024 @08:22PM (#41176971)
No, the UNIX philosophy persisted since the 70s because it is great default philosophy for building software. Not all kinds of software but most, I'd say. Doing one thing well plus all the other stuff (like preferring plain text output) means that users can easily assemble whatever they need. When applications are doing only one thing, you can thoroughly test them as well and enjoy a level of security that monolithic programs have to add via sketchy hacks. And when a monolithic system is compromised, it is a bigger threat than one with smaller scope.
Re:Systemd, 10 years later: a historical and technical retro... by dale_glass on Wednesday August 07, 2024 @04:01AM (#41179211)
Yeah, that works best in the 70s.

With modern software it's a pain in the butt. Remember CD burning software? That at least used to invoke cdrecord underneath, and whenever that went wrong it was awful, because text is an awful interface for a complex system.

Today you'll find many things that actually "de-UNIX-philosophy" stuff, by making a library that wraps around an invocation to a complex tool and presents what 99% of users actually want -- a library style interface.

Re:Systemd, 10 years later: a historical and technical retro... by hulitu on Wednesday August 07, 2024 @05:35PM (#41185828)
Then why do we need binaries when we have ld.so ?
Re:Systemd, 10 years later: a historical and technical retro... by wakawaka28 on Thursday August 08, 2024 @08:02PM (#41197654)
A GUI program invoking a program not designed to be a GUI in the laziest fashion is fringe example. Such a GUI would have been a herculean feat to implement if the authors could not piggyback off of an existing, simple tool. If the GUI authors really wanted, they could have tried to parse the output of cdrecord and/or contribute to making the output of cdrecord suitable for easy processing.

>Today you'll find many things that actually "de-UNIX-philosophy" stuff, by making a library that wraps around an invocation to a complex tool and presents what 99% of users actually want -- a library style interface.

There are tradeoffs to this simplicity. Your "library" is most likely a pain in the ass to use even for people using the same language, much less other languages. The output and invocation of a simple program is less likely to add a breaking change than its code. Do you think libraries were just invented, or what?

I like the idea of making the library first and then using that to build a tool. But that may not make sense in all cases, and it's extra work as well. For people using other languages, or trying to write simple shell scripts, a library alone is not going to work.

Re:Systemd, 10 years later: a historical and technical retro... by 7bit on Tuesday August 06, 2024 @06:38PM (#41176198)
I appreciated it. I fucking hated all these init scripts and find it muuuuuch easier to get services running under systemd. I don't care about philosophy when it gets in my way of managing systems.
Re:Systemd, 10 years later: a historical and technical retro... by palata on Tuesday August 06, 2024 @06:49PM (#41176283)
Had it not been for the philosophy, Linux would not have been a thing. If you don't care about philosophy, consider going to Windows?
Re:Systemd, 10 years later: a historical and technical retro... by qu4z-2 on Tuesday August 06, 2024 @07:20PM (#41176572)
Why would they have to go to Windows when systemd is bringing Windows to Linux?
Re:Systemd, 10 years later: a historical and technical retro... by ranger207 on Tuesday August 06, 2024 @07:18PM (#41176558)
I seem to remember a lot of debates on whether or not Linux followed that philosophy compared to a microkernel
Re:Systemd, 10 years later: a historical and technical retro... by lmm on Tuesday August 06, 2024 @10:48PM (#41177785)
Probably less than it might. I expect microkernels to eventually displace Linux, whether explicitly or by gradually turning Linux into a microkernel.
Re:Systemd, 10 years later: a historical and technical retro... by mariusor on Wednesday August 07, 2024 @02:43AM (#41178818)
> Had it not been for the philosophy, Linux would not have been a thing

I'm not entirely sure what you mean by this, but linux (the kernel) is very much not a "do one thing and do it well" kind of program. You'd need a microkernel for that.