News for hackers. Stuff that matters.
Re:Technical reasons to choose FreeBSD over GNU/Linux by viraptor on Sunday April 12, 2020 @10:25PM (#22852586)
I find some points... debatable. For example software:

> Normally when you install software on a Unix operating system you find and download the software.

According to the title, this is about choosing FreeBSD over Linux, not over Unix. That means the normal way to install is "<package_manager> install <package_name>". For the end user this is just like ports without having to compile anything. Once you don't have the package or the port available, you end up in the same situation: download the source and compile (which is more likely to work on Linux OOTB simply due to popularity).

> Poudriere is a utility for creating and testing FreeBSD packages. It utilize the FreeBSD jail system to set up isolated compilation environments.

In Debian-like systems you can use pbuilder in the same way. Each package is built in the same clean choot. I suspect RH has something similar?

> bhyve

They don't list anything technically better about bhyve. Why would I use this over xen or kvm?

> FreeBSD has three different firewalls built into the base system: PF, IPFW, and IPFILTER, also known as IPF.

Ok. Linux has iptables and now nftables/bpfilter. It's also got queuing, stateless and stateful features, protocol tracking, etc. CARP can be done in userland, or via other solutions like linux-ha/stonith. What are the reasons to choose FreeBSD here? (also, mentioning 3 firewalls after being excited about well-designed system that just comes together rather than being glued together from third-party software just sounds weird)

> BSD init

They haven't listed what's actually technically better about it than in systemd. (not subjectively)

> Jails

Jails as described in the article, have the same features as lxc. Lxd provides zfs-as-a-backing-store option as well.

> FreeBSD has over five hundred system variables that can be read and set using the sysctl utility.

Ok. On my Fedora system "sysctl -a | wc -l" gives 2093.

> For example, on top of the geom_mirror module an encryption module can be added, such as geom_eli to provide a mirrored and encrypted volume.

So how is it better than lvm with its layers dm-raid and dm-crypt?

I get that people are excited about FreeBSD and I'd love to learn what are the technically better sides of it. But this article really doesn't list that many.

Re:Technical reasons to choose FreeBSD over GNU/Linux by GordonS on Monday April 13, 2020 @06:22AM (#22854529)
> also, mentioning 3 firewalls after being excited about well-designed system that just comes together rather than being glued together from third-party software just sounds weird

I noticed this too. One of the main *BSD benefits people always tout is that it has "one true way" of doing things - yet having 3 different ways to do firewalling is somehow a great thing when we're talking about FreeBSD?

Re:Technical reasons to choose FreeBSD over GNU/Linux by mekster on Tuesday April 14, 2020 @05:20AM (#22864039)
Last time I checked, FreeBSD'd pf is quite older than OpenBSD's and also FreeBSD doc says it has diverged from the OpenBSD's pf.
Re:Technical reasons to choose FreeBSD over GNU/Linux by zzzcpan on Monday April 13, 2020 @06:32AM (#22854579)
ipfw would be that one true way on FreeBSD, pf on OpenBSD
Re:Technical reasons to choose FreeBSD over GNU/Linux by toohotatopic on Monday April 13, 2020 @02:36AM (#22853648)
>> bhyve

>They don't list anything technically better about bhyve. Why would I use this over xen or kvm?

Isn't it actually worse? There doesn't seem to be AMD support:

>Hosting Linux guests or FreeBSD guests with more than one vCPU requires VMX unrestricted mode support (UG)

Does AMD have UG or does this mean no AMD support for multi-processor guests?

With Meltdown and Spectre, doesn't this mean that VMs on linux AMD systems provide much better performance, and even better performance per dollar?

Re:Technical reasons to choose FreeBSD over GNU/Linux by magicalhippo on Monday April 13, 2020 @07:08AM (#22854758)
> does this mean no AMD support for multi-processor guests

I dunno about the details but I've got a Debian VM with 6 vCPUs running on Bhyve, FreeBSD 11.3, on my Threadripper 1920X.

Re:Technical reasons to choose FreeBSD over GNU/Linux by bonzini on Monday April 13, 2020 @07:21AM (#22854831)
AMD doesn't need unrestricted guest support, it has always had it.
Re:Technical reasons to choose FreeBSD over GNU/Linux by msla on Sunday April 12, 2020 @11:08PM (#22852828)
> They haven't listed what's actually technically better about it than in systemd. (not subjectively)

And even to avoid running headlong into this troll pit: Linux distros without systemd exist. It's dishonest to compare FreeBSD to Linux and then only focus on a subset of Linux distros.

Re:Technical reasons to choose FreeBSD over GNU/Linux by lmm on Monday April 13, 2020 @12:22AM (#22853157)
> And even to avoid running headlong into this troll pit: Linux distros without systemd exist. It's dishonest to compare FreeBSD to Linux and then only focus on a subset of Linux distros.

Are any of them mature enough to depend on for serious work? I looked at moving back to Linux a few months ago, but all the non-systemd distributions seemed to be small projects and many of them looked to have schismed, collapsed, or both.

Re:Technical reasons to choose FreeBSD over GNU/Linux by robertlagrant on Monday April 13, 2020 @08:52AM (#22855393)
Ah, "serious work". That well-known absolute thing that is the same for everyone.
Re:Technical reasons to choose FreeBSD over GNU/Linux by KitDuncan on Monday April 13, 2020 @12:32AM (#22853193)
Void is a small project, but absolutely rock solid. It's BSD inspired and systemd free. I like it a lot.
Re:Technical reasons to choose FreeBSD over GNU/Linux by _emacsomancer_ on Monday April 13, 2020 @12:57AM (#22853293)
I can also vouch for Void - I've used it on my primary laptop for about 4 years. It's a solid distro, with a great community. Void is very configurable, and it's easy to contribute to the project.

It's also unlike a number of 'systemd free' distros (many of which are essentially "Distro X, except without systemd") because its non-use of systemd is not out of some hate for systemd, but because the developers decided after using systemd (Void adopted systemd for a time really early on) that it conflicted with other goals of the project (like offering a musl libc flavour alongside a glibc flavour).

Re:Technical reasons to choose FreeBSD over GNU/Linux by Jonnax on Monday April 13, 2020 @04:21AM (#22854050)
Here's the thing. I would run: Ubuntu, Debian, Centos or Red Hat on my laptop, desktop and also on any server that I run.

I wouldn't run any small distro in AWS.

Re:Technical reasons to choose FreeBSD over GNU/Linux by freedomben on Monday April 13, 2020 @10:45AM (#22856274)
Have to agree here. I get a lot of benefits professionally from running Linux personally. I've been a full time desktop linux user over 10 years, and I'm often considered the "linux wizard" because I'm known for SSHing into servers and fixing obscure errors that others have looked at for hours with no success. My secret, is that I've run into most of the common problems (filesystem permission issues, including ACLs, selinux, low memory/OOM, conflicting dependency versions, etc) before and already mostly know how to fix them. The time I did on Arch was particularly helpful here. It was a hard first week or so but I learned more about linux during that two weeks than any other time.

Anyway the reasons I say that: These days I only run distros locally that I would run in production. I get intimately familiar with the intricacies of the distro that way and managing the servers comes natural to me because of that.

Re:Technical reasons to choose FreeBSD over GNU/Linux by _ZeD_ on Monday April 13, 2020 @08:29AM (#22855234)
Slackware is still here looking at you guys
Re:Technical reasons to choose FreeBSD over GNU/Linux by Koshkin on Monday April 13, 2020 @08:57AM (#22855417)
Slackware is the one Linux I keep coming back to after trying out something else. As always, it just works (and no dependency checking in its package managers is a blessing compared to dealing with some issues in Ubuntu or Debian; for others there's always pkgsrc, by the grace of NetBSD).
Re:Technical reasons to choose FreeBSD over GNU/Linux by favadi on Monday April 13, 2020 @07:52AM (#22854994)
I know some developers use Gentoo with OpenRC for their daily work machines.
Re:Technical reasons to choose FreeBSD over GNU/Linux by probably_wrong on Monday April 13, 2020 @08:06AM (#22855080)
Devuan is a fork of Debian and it's alive and well.
Re:Technical reasons to choose FreeBSD over GNU/Linux by RMPR on Monday April 13, 2020 @04:54AM (#22854184)
Alpine and AntiX, I use them in VMs because they are lightweight, so far no issues.
Re:Technical reasons to choose FreeBSD over GNU/Linux by freedomben on Monday April 13, 2020 @10:47AM (#22856291)
What kind of apps do you run? A variety of languages/platforms?

Some stuff runs great in Alpine. Other stuff is subtlety but catastrophically broken in Alpine (such as database servers/clients and others that depend highly on locale for determining encoding).

Re:Technical reasons to choose FreeBSD over GNU/Linux by Grimm665 on Monday April 13, 2020 @11:29AM (#22856676)
Agreed. I thought Alpine was superb until I ran into an issue mounting NFS shares that seem to be mountable just fine on every other Linux machine I've got lying around. No idea what's wrong with Alpine's NFS.
Re:Technical reasons to choose FreeBSD over GNU/Linux by RMPR on Monday April 13, 2020 @05:19PM (#22860133)
> What kind of apps do you run? A variety of languages/platforms?

Mainly Python, some issues with Musl, but nothing too bad. Anyway, these days I tend to mainly use AntiX.

Re:Technical reasons to choose FreeBSD over GNU/Linux by meshenna on Monday April 13, 2020 @05:48AM (#22854390)
Gentoo, maybe?
Re:Technical reasons to choose FreeBSD over GNU/Linux by viraptor on Sunday April 12, 2020 @11:20PM (#22852901)
I chose systemd since BSD's init has some points over the classic init used in linux previously. But any of the modern choices which actually manage processes (upstart, systemd, whatever you prefer) score a few technical points. Definitely didn't intend to single out systemd as better in this case.
Re:Technical reasons to choose FreeBSD over GNU/Linux by aganame on Monday April 13, 2020 @11:03AM (#22856428)
None of those are beyond hobby level, though.
Re:Technical reasons to choose FreeBSD over GNU/Linux by chungy on Sunday April 12, 2020 @11:10PM (#22852851)
> According to the title, this is about choosing FreeBSD over Linux, not over Unix.

"Unix" hasn't referred to a specific operating system since the 1980s. FreeBSD and Linux are both Unix OSes: different flavors of it.

Re:Technical reasons to choose FreeBSD over GNU/Linux by viraptor on Sunday April 12, 2020 @11:12PM (#22852867)
That is my point though. Not every Unix system has a package manager. But almost every Linux distribution does.
Re:Technical reasons to choose FreeBSD over GNU/Linux by ekianjo on Monday April 13, 2020 @12:00AM (#22853067)
That's even one of they key attributes that makes differences between distributions: the package manager. Other major ones include the init system, and whether the distro is rolling release or not.
Re:Technical reasons to choose FreeBSD over GNU/Linux by zelphirkalt on Monday April 13, 2020 @04:37AM (#22854122)
Well, if you want to be precise … Linux is a kernel.
Re:Technical reasons to choose FreeBSD over GNU/Linux by rbanffy on Monday April 13, 2020 @05:38AM (#22854344)
And the OS is called GNU/Linux.

/me ducks

Re:Technical reasons to choose FreeBSD over GNU/Linux by saagarjha on Monday April 13, 2020 @04:30AM (#22854085)
Linux isn’t really a UNIX, though.
Re:Technical reasons to choose FreeBSD over GNU/Linux by hollander on Monday April 13, 2020 @05:34AM (#22854333)
Isn't Linux an anagram (no not an anagram but I can't come up with the right word) for Linux Is Not UNix?

https://acronyms.thefreedictionary.com/LINUX

Re:Technical reasons to choose FreeBSD over GNU/Linux by rejschaap on Monday April 13, 2020 @05:43AM (#22854371)
You might be thinking of GNU, which is a recursive acronym that stands for "GNU's Not Unix".

As far as I understand it we got the name Linux because Linus Torvalds was quite bad at naming things. :)

https://en.wikipedia.org/wiki/Linux#Naming

Re:Technical reasons to choose FreeBSD over GNU/Linux by laumars on Monday April 13, 2020 @03:28PM (#22859145)
No, that’s GNU with the “not UNIX” recursive acronym. Linux was named by the guy who first hosted Linus’ OS and was an amalgamation of “Linus” and “UNIX” (“nix” was a popular suffix for platforms of that type back in those days so “Linux” was a play on the authors name in the style of that naming convention).

If I recall correctly, Linus originally wanted his OS to be called “Freenix” because he thought naming it after himself was a little vein.

Re:Technical reasons to choose FreeBSD over GNU/Linux by noisem4ker on Monday April 13, 2020 @10:44AM (#22856270)
It's a recursive acronym.
Re:Technical reasons to choose FreeBSD over GNU/Linux by hkt on Monday April 13, 2020 @07:20AM (#22854821)
Backronym?
Re:Technical reasons to choose FreeBSD over GNU/Linux by Koshkin on Monday April 13, 2020 @08:50AM (#22855378)
For all intensive purposes, it is.
Re:Technical reasons to choose FreeBSD over GNU/Linux by sudosysgen on Monday April 13, 2020 @09:21AM (#22855577)
I think the expression might be "for all intents and purposes".
Re:Technical reasons to choose FreeBSD over GNU/Linux by Koshkin on Monday April 13, 2020 @09:33AM (#22855673)
I hole-hardedly agree, but allow me to play doubles advocate here for a moment...
Re:Technical reasons to choose FreeBSD over GNU/Linux by sudosysgen on Monday April 13, 2020 @02:06PM (#22858280)
goddamnit, well played :)
Re:Technical reasons to choose FreeBSD over GNU/Linux by cercatrova on Monday April 13, 2020 @09:19AM (#22855565)
Intents and purposes
Re:Technical reasons to choose FreeBSD over GNU/Linux by utxaa on Tuesday April 14, 2020 @11:20AM (#22867052)
really?
Re:Technical reasons to choose FreeBSD over GNU/Linux by monadic2 on Sunday April 12, 2020 @11:40PM (#22852993)
> That means the normal way to install is "<package_manager> install <package_name>".

This excludes a lot of non-free software, which is included in ports.

> Ok. Linux has iptables and now nftables/bpfilter. It's also got queuing, stateless and stateful features, protocol tracking, etc. CARP can be done in userland, or via other solutions like linux-ha/stonith. What are the reasons to choose FreeBSD here?

Documentation, in my experience.

> They haven't listed what's actually technically better about it than in systemd. (not subjectively)

From experience, documentation and bugs (mostly due to age, but still absolutely relevant). I have about a billion questions about why systemd is built the way it is but I suppose that's a matter of taste and who paid to build it.

> Jails as described in the article, have the same features as lxc.

Documentation as always with the linux/bsd comparison. In addition, LXC—in particular cgroups—is still quite young and unproven. The major benefit here is the docker interface enabling easier deploys and an image specification format, which freebsd still lacks.

Honestly, the documentation alone is enough to move me over to BSD—linux is basically the wild west, and you often discover undocumented behavior (is it a bug? is it intended? ask developer xxx on the mailing list.)

Re:Technical reasons to choose FreeBSD over GNU/Linux by viraptor on Sunday April 12, 2020 @11:54PM (#22853041)
> This excludes a lot of non-free software, which is included in ports.

This depends completely on your choice of a distribution. There's nothing about package managers that makes a difference in this case.

For example Arch, especially with AUR will include all non-free software you want. Ubuntu offers them. Debian/RH have them one config edit away. Recently snap/flatpak also provide those to all distros - whether they're using free-only repos by default or not.

> In addition, LXC—in particular cgroups—is still quite young and unproven.

LXC was introduced over a decade ago. Cgroups even before that. Cgroups themselves are enabled per-session and per-service in pretty much every modern linux deployment for years now. There's less time between jails and cgroups than between cgroups and current day. Cgroups were added to linux in the same year as zfs was added to freebsd. (2007)

I'm not sure what you see as young or unproven about them.

Re:Technical reasons to choose FreeBSD over GNU/Linux by monadic2 on Monday April 13, 2020 @04:08PM (#22859492)
LXC was only introduced in 2007. I wouldn't call ZFS a good comparison as I would also still consider it rather young in terms of basic unix technologies—depending on your needs, you could easily use some other simpler but older (and likely less buggier) software.

With respect to cgroups versus lxc specifically, I don't think the approach is well suited for security reasons—the surface area for bugs and vulnerabilities is much larger than with the jails approach.

Re:Technical reasons to choose FreeBSD over GNU/Linux by viraptor on Monday April 13, 2020 @07:42PM (#22861407)
> the surface area for bugs and vulnerabilities is much larger than with the jails approach

It would be great if someone wrote an article with technical details about it. I see this repeated very often, but if you actually go looking for details... it's hard to find any justification.

Re:Technical reasons to choose FreeBSD over GNU/Linux by monadic2 on Wednesday April 15, 2020 @02:05PM (#22880973)
I can’t say I have a decent justification off hand myself—this was the impression I had when digging through a comparison of the two softwares about a year back. Cgroups appears to have a much more detail laden implementation, but this could be explained away with my lack of Linux internals.
Re:Technical reasons to choose FreeBSD over GNU/Linux by TylerE on Monday April 13, 2020 @02:19AM (#22853590)
The thing that always impressed me with FreeBSD was how it was a complete integrated system, and not a group of miscellaneous parts in loose formation.