• 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle

  • Concerning logs:

    1. You can still log to text if you want by configuration (e.g. forward stuff to syslog) and you can use any tools you like to read those files you want. So if you like text logs you can get them. You can even invoke journalctl to output logs on an ad hoc / scheduled basis in a variety of text formats and delimited fields.
    2. Binary allows structured logging (i.e. each log message is comprised of fields in a record), indexing and searching options that makes searches & queries faster. Just like in a database. e.g. if you want to search by date range, or a particular user then it’s easy and fast.
    3. Binary also allows the log to be signed & immutable to prevent tampering, allow auditing, intrusion detection etc… e.g. if someone broke into a system they could not delete records without it being obvious.
    4. You can also use splunk with systemd.

    So people object to systemd writing binary logs and yet they can get text, or throw it into splunk or do whatever they like. The purpose of the binary is make security, auditing and forensics better than it is for text.

    As for scripts, the point I’m making is systemd didn’t supplant sysvinit, it supplanted upstart. Upstart recognized that writing massive scripts to start/stop/restart a process was stupid and chose an event driven model for running stuff in a more declarative way. Basically upstart used a job system that was triggered by an event, e.g. the runlevel changes, so execute a job that might be to kick off a process. Systemd chose a dependency based model for starting stuff. It seems like dists preferred the latter and moved over to it. Solaris has smf which serves a similar purpose as systemd.

    So systemd is declarative - you describe a unit in a .service file - the process to start, the user id to run it with, what other units it depends on etc. and allow the system to figure out how to launch it and take care of other issues. It means stuff happens in the right order and in parallel if it can be. It’s fairly simple to write a unit file as opposed to a script. But if you needed to invoke a script you could do that too - write a unit file that invokes the script. You could even take a pre-existing init script and write a .service file that kicks it off.


  • arc@lemm.eetolinuxmemes@lemmy.worldSystemd controversy be like
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    edit-2
    7 months ago

    Kind of sad there are still people raging over systemd. When it flares up in discussions there is the usual debunked nonsense:

    • it only logs information to binary and this is somehow bad. Except it it can be configured to log to text as well and it uses binary so it can forward secure sign records to prevent tampering as well as offering database style query operations.
    • it’s insecure because the repo has millions of lines of code. Except that they compile into hundreds of small binaries running with least privilege, and often replacing the task of far more dangerous processes (e.g. there is an NTP client in systemd which sets the time and nothing else).
    • various rants about the primary author

    What is more bizarre is the nostalgia and hearkening back to sysvinit scripts when systemd didn’t replace sysvinit! Systemd replaced upstart which replaced sysvinit. Because writing 100s of lines of script to stop/start/restart a process sucked - insecure, slow, didn’t scale, didn’t capture dependencies and everyone knew it. Upstart was the first attempt to solve the issue and was used in Debian / Ubuntu, Fedora / Red Hat, openSUSE and others until systemd came along.







  • arc@lemm.eetolinuxmemes@lemmy.worldLinus does not fuck around
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    10 months ago

    I define effective by the fact it was self evidently effective. No need to split hairs or dissemble here. Linux is objectively, indisputably the most important piece of code in the world. Everything else, such as a the context free boo hoo about some times when he has had a go at people is just noise.







  • arc@lemm.eetolinuxmemes@lemmy.worldLinus does not fuck around
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    10 months ago

    In almost instances of Linus going off on one in public it is because maintainers weren’t doing their jobs (to act as quality gatekeepers), or particular developers thinking they could steam roll road changes through if they kept submitting them, or not listening to what Linus was saying. I remember Linus used to ream out Hans Reiser a lot (the guy who was subsequently imprisoned for murdering his wife) because he constantly tried to get ReiserFS into the kernel despite serious issues Linus had with it.

    So generally when you see a rant, there is a history behind it and the rant itself is directed with a point. I also think it’s self evident that the kernel has benefited from this “benevolent dictator” model. I’m sure some people have gotten all precious over their feelings being hurt. The rest raised their game and the result has been a code quality standard you’ll probably never see anywhere else.


  • arc@lemm.eetolinuxmemes@lemmy.worldLinus does not fuck around
    link
    fedilink
    arrow-up
    9
    arrow-down
    13
    ·
    10 months ago

    His style of being direct, having a high quality threshold and calling out bullshit immediately and bluntly is why the Linux kernel went from a university project to powering everything from lightbulbs to super computers. I think it kind of ridiculous that this demonstrably effective style got framed as “toxic” just because he hurt a few people’s fee-fees.


  • It didn’t come out in 1984. And that’s without pointing out that X11 is a protocol, not a window manager. I.e. it rendered stuff in a box but didn’t say what to do other than that. It took the likes of xt and window managers et al to place some semblance of widgets on apps and they were still a disconnected mess. The first time X became a “desktop” were things like Solaris, XDE, CDE etc. It was still disjointed dogshit compared to Windows, MacOS, AmigaOS, GEM, RISC OS, OS2 etc. The first time that something approached being a modern desktop was with GNOME and KDE but even those spent a long time getting anywhere close to usable. E.g. GNOME sucked untl GNOME red carpet / later ximian was the first pretty good Linux desktop.



  • The only ads I see are the clickbait garbage MSN shit that the browser defaults to but I’ve disabled it. I don’t really see ads other than that. Then again I live in Europe and I upgraded from a purchased copy of Windows 10 so maybe there are lesser or greater degrees of advertising Microsoft puts on users depending on their location, version of Windows 11 etc.