Live data from Hacker News

Migrate Everything from Linux to BSD

unixsheikh.com

81–90 of 169 posts

Re: Migrate Everything from Linux to BSD

#81
post #42

Earlier quoted context omitted.

You know you turn that DNS server off by adding "DNSStubListener=no" to /etc/systemd/resolved.conf right?

Then.. why does it exist? More importantly, why is it enabled by default? Does systemd want to be an init system? A logging system? a dnsmasq replacement?

Systemd is a replacement for Unix.

Folks at Red Hat noticed that the Linux userland architecture is not convenient for what they would like to build. So they are building systems which replace the traditional mechanisms: first DBus, then systemd, which is an umbrella of many services: init + service monitoring + containers, logging, interactive login, some networking, etc. I suppose that in 10 years a linux kernel + systemd could be a complete system, with little need for other userland.

Re: Migrate Everything from Linux to BSD

#82
post #79

> Linux is fragmented Ten year old FUD. Most distros are on systemd now. Whatever you want to say about systemd, it's definitely not fragmentation. Also there's the freedesktop project and dbus which creates a standard API for desktop applications. All Linux distros use glibc and GNU coreutils. Where's the fragmentation? Linux desktop applications are all very fragmented and broken (GNOME, KDE, 100 different tiling w…

> Linux desktop applications are all very fragmented and broken (GNOME, KDE, 100 different tiling window managers, 100 different music players that all suck), but that's not Linux, that's userspace.

See, I get where you are coming from, and I use Linux myself, but I feel that the author sees this as the fragmentation problem. One of the author's points is that the division between userspace and kernel is a problem, and the *BSDs offer up full operating systems, not just kernels.

From TFA: "Linus Torvalds has many times made it very clear that he doesn't care about what goes on in the "Linux world", all he cares about is the kernel development"

Otherwise, yeah... BSD is a great choice for some stuff, but it certainly falls short of the tools available to a Linux environment.

Re: Migrate Everything from Linux to BSD

#83
post #42

Earlier quoted context omitted.

I noticed that, too: the author doesn't mention the many-splendored versions of *BSD. My personal favorite is FreeBSD. I like Linux, but I have mixed feelings about systemd, especially when I discovered that systemd runs its own DNS server, which prevents the DNS server I wrote from binding to port 53 using INADDR_ANY. Instead, I had to write code to enumerate the interfaces & corresponding IP addresses & bind to eac…

You know you turn that DNS server off by adding "DNSStubListener=no" to /etc/systemd/resolved.conf right?

I recently discovered that systemd supports drop-in config files so I'd recommend putting the changed settings into something like /etc/systemd/resolved.conf.d/disable-stub.conf. That way your package manager isn't upset that files it controls are modified.

I wrote a personal blog post about this (https://www.turek.dev/posts/disable-systemd-resolved-cleanly...) to try to help people out.

Re: Migrate Everything from Linux to BSD

#84
post #63
post #32

> DNS over HTTPS is by itself bad enough, and highly criticized with good reason The criticisms of DoH seem to be around removing the ability of third parties to snoop on your DNS queries. Am I missing something here? Like, yes, some of the use cases outlined in the linked wiki article [0] are arguably legitimate (parental controls, cybersecurity identification of C&C nodes), but then we quickly move into murkier ter…

A better criticism of DoH is here: https://blog.powerdns.com/2019/12/03/doh-anti-competitive-an... I just hate that it breaks Split Horizon which is totally legitimate. Leaking local-to-the-LAN queries onto the public internet is also a concern. IMO the right way to do this is to run your own local DNS recursive resolver, and deploy DNSCurve. This doesn't work for myopic browser vendors though...

I get that breaking split horizon is a real concern, but also I would expect any enterprise deployment using internal DNS resolvers should be able to set up its users' Firefox config to either a) point at an internal DoH server, or b) turn it off?

On one hand, I see the arguments against DoH-by-default -- loss of control, potential for unfixable poor / buggy implementations, requiring trust of third parties... (The trust problem isn't going to be solved any time soon, though.)

It would be nice if implementations just used the discovered DNS server across the board, but DNS servers don't support DoH across the board yet.

On the flip side, I don't see any widespread shifts in this space until a large enough player (in this case, Mozilla) decides to put its thumb on the scale to "encourage" wider adoption. While centralized DoH may be the only game in town today, I would argue that's due to lack of adoption, and I would hope that's not the desired end state.

Re: Migrate Everything from Linux to BSD

#85
Fix Realtec Ethernet Driver support?(In response to the title). I have tried to use FreeBSD many times at work, but due to the driver support I cannot. It hangs and fails super often when using a Realtek device. I got to look like a dick during a board meeting trying to show off our throughput when the issue manifested itself for the third time.

Re: Migrate Everything from Linux to BSD

#86
post #41

Earlier quoted context omitted.

I really don’t get the weird cult of people seemingly obsessed with Lennart. The man sets out to solve really hard problems in the Linux desktop space, isn’t afraid of tackling complexity when it shows up in the problem domain, and is obsessed with correctness. That last one gets him in trouble from people who want him to be more pragmatic but I personally really appreciate it. I really admire him for being the poste…

I can agree with not taking things personally but "obsessed with correctness" is not how I would describe systemd or PA

I can’t understand why ini format for config files, cant use sed easy... :(

Re: Migrate Everything from Linux to BSD

#87
post #67
post #41

Earlier quoted context omitted.

I really don’t get the weird cult of people seemingly obsessed with Lennart. The man sets out to solve really hard problems in the Linux desktop space, isn’t afraid of tackling complexity when it shows up in the problem domain, and is obsessed with correctness. That last one gets him in trouble from people who want him to be more pragmatic but I personally really appreciate it. I really admire him for being the poste…

Agreed. I think the hate against him stems from him just completely dismissing POSIX and the unix philosophy. Personally, I think this is a positive direction to move in. Let's stop worrying about the design principles that happened to underlie one of the operating systems that got popular. Instead, let's keep innovating and thinking of better ways to do things. That's what Poettering is doing.

Proclaiming this explicitly and clearly would be nice.

Say, "let's do away with the old Unix ways, and build a new, much better userland!"

People at least would expect the radical change of the direction which is taking place.

Re: Migrate Everything from Linux to BSD

#88
post #38

Earlier quoted context omitted.

systemd isn't an init system and doesn't pretend to be one [note] - it's OS middleware with ambitions to becoming a distro unto itself. The systemd project assumes responsibility for numerous aspects of the system that have no technical justification for being under the same project umbrella. You might like systemd-homed, for instance, but it doesn't really have anything to do with the functions of init. Calling it a…

Honest question, if nobody likes systemd, then why is it still around and why is it so difficult for me to find a distro that hasn't adopted it?

Because most people like (or at least tolerate) it, but those people are not yapping their mouths about it all the time. IMHO systemd is actually one of the best improvements in the Linux ecosystem in the last 10 years.

You can see the same effect in e.g. politics.

Re: Migrate Everything from Linux to BSD

#89
post #53

Earlier quoted context omitted.

I noticed that, too: the author doesn't mention the many-splendored versions of *BSD. My personal favorite is FreeBSD. I like Linux, but I have mixed feelings about systemd, especially when I discovered that systemd runs its own DNS server, which prevents the DNS server I wrote from binding to port 53 using INADDR_ANY. Instead, I had to write code to enumerate the interfaces & corresponding IP addresses & bind to eac…

You don't have to use systemd-resolved. Most distros have been using systemd but not systemd-resolved for years. Fedora only just started using systemd-resolved by default in the most recent release. It's like, yeah, that's a funny thing to also live in systemd.git, but systemd-resolved is functionally a separate product from systemd.

Yup. My recent Fedora upgrade broke my internet access due to this change. That was eye-opening, kinda turned me off from Fedora.

Re: Migrate Everything from Linux to BSD

#90
post #79

> Linux is fragmented Ten year old FUD. Most distros are on systemd now. Whatever you want to say about systemd, it's definitely not fragmentation. Also there's the freedesktop project and dbus which creates a standard API for desktop applications. All Linux distros use glibc and GNU coreutils. Where's the fragmentation? Linux desktop applications are all very fragmented and broken (GNOME, KDE, 100 different tiling w…

>> How do I run containers

Agree on all your other comments, but BSD jails and Solaris zones were a thing long before Docker made it mainstream on Linux.

Post reply on HN