391 points · by truth_seeker · 4y ago · 362 comments
Some more points:
- bhyve, developed by netapp, they ditched all old technologies support and it works faster on my i5 server than kvm on my i7 laptop. Snapshoting using ZFS is not a feature to discard either.
- FIBs, absolute miracle routing tables that you can apply to whatever software, define the routes as fib 1 (lets say it is openvpn) and then use them as simply as `setfib 1 bash` to use them in all child processes
- backward compatibility, this is where linux is really horrible, there was an article about compiling binary on freebsd 2 and running it on freebsd 10. Try this on linux, binaries are not compatible even on minor versions.
- jails... docker? Really? Jails are 15+ years old implementation, kernel supported, that stood test of time, actually being a security feature. It runs circles around the docker in everything except how much it was adapted by community. I never understood why people rather used an inferior solution like docker.
- not to mention all the chaos in linux ecosystem, in next sub-version, the commands can have completely different switches,...
I will never understand on what technical merits people are using linux for servers except the support-ability of hardware. Due to the whole show that linux is getting we would prosper as a humanity by ditching the linux. Unfortunately, marketing is worth more than anything.
(I do understand that people will not agree due to their preference, but try to use it. I doubt you will prefer linux ever again.)
The jails vs docker argument is a good example: while technically better, Docker (or rather, cgroups and image distribution) have been standardised and have tremendous community adoption. FreeBSD cannot tap into any of this at all. Yes, jails might be better, but because they lack widespread adoption, they’re far less useful.
It’s a sad state of affairs, I wish things went otherwise, but I feel Linux is sometimes a good example of the “worse is better” approach at work.
I think keeping this layer in development, maybe having a similar setup to SmartOS, letting you set up "Linux jails" or something like that, would significantly help adoption in the desktop/workstation space. This would of course lead to recruiting more developers, and so on.
Drivers are trickier, but I actually never had driver issues the last time I used FreeBSD as a daily driver(for about 6 months a few years ago, until I ran back to Linux with my tail between my legs).
It would be nice if at some point many decades ago, the Unix world had agreed on a standardised kernel API for modular drivers, so that drivers could more easily be ported between kernels, but it's way too late for that at this point I guess.
And maybe not even technically feasible, but I'm not qualified to comment on that.
What an understatement. The modern Linux syscalls are tightly coupled to the implementation of Linux. Special fds, io_uring, robust lists, etc etc …
There’s a reason why Microsoft said fuck it and run Linux in a VM for WSL2.
If you want Linux, just run Linux.
Assuming you mean linux(4), http://man.freebsd.org/linux, it's absolutely not abandoned: https://wiki.freebsd.org/Linuxulator; it recently got a proper ARM64 support for example.
>"Linux jails" or something like that
Drivers for niche stuff seem like they would be an issue as well.
It takes true nerds (or "geek" in the sense it had around 2000, when it was still a bit derogatory and not yet a fashionable identity marker) to go off the beaten path.
Cgroups, namespaces have been implemented once, in Linux, by Google for their own needs. Not standardized in any meaningful interpretation of that word, just like "web standards" aren't. With now a generation of developers raised by big media and fake grassroots and staged march of progress stories, I'm wondering if that generation will be able to tell the difference, or are invested too much already.
But all that would be a distraction from the point I was trying to make, so I simplified it a bit.
In reality, Betamax was nearly indistinguishable from VHS.
Linux userspace is considered unstable. It's not a cohesive system like the BSDs but lots of independent projects all doing their own thing.
The Linux kernel is capable of running binaries compiled in the 90s. Breaking changes in the kernel-userspace binary interface makes Linus Torvalds scream at people on the mailing list.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
People were getting used to the old reliable Gnome2 and the Windows-esque KDE desktop.
But there's always some team of developers thinking they are Apple and completely throw years of progress out the window by breaking compatibility because of some usability "feature" their own selfish conception of usability thinks is a good decision. Some of then even go to the point of rejecting Merge requests to their supposed open source software because of that kind of Whim
Especially as with some evolution it seems it's always a mix of people complaining new change means some X program made in the 70s will break and people who wants to redo something made in the last 6mo because it is "old" already and meet the newfangled thing which is 50% breaking changes 50% barely new things
...except?
Meh. People who want to engage in this argument are generally trying to argue about jails vs. the collection of linux container technologies. That's not Docker. Docker won because of Dockerfiles. Docker isn't, at its core, an interesting container technology. Docker is a simple metaphor and programming environment to leverage container technology to solve practical[1] problems.
And as it happened, it was done on Linux and not jails, owing in large part to the more configurable/toolkit-style/policy-free tools available there. Jails were indeed more mature, but they were solving the wrong problem.
[1] Also thorny, boring problems like configuration management of large apps developed piecewise from components and by large teams. The kind of thing that is historically not well served by the operating system, BSD included.
Dockerfiles make it super simple. There is similar stuff for jails but you need a jails frontend that use it.
A few years ago i wanted to build the Jailfile equivalent, call it Warden, and have Warden manage the jails.
But honestly i doubt it would get traction outside a small community.
But docker is just a frontend for linux containers :) You're not comparing the right things here: Linux containers with a popular frontend and all the trimmings, to barebones FreeBSD jails.
Have you ever looked at what Docker puts in your iptables? I challenge you to understand what's happening with your networking after that.
If you want containers, lxc command line and a bit of configuration for a bridge interface is all you really need.
https://www.diva-portal.org/smash/get/diva2:1453017/FULLTEXT...
My theory at the time was this: GNOME won on developers' desktops, so most software was developed on Linux natively, with BSD compatibility (and performance) as an afterthought. IIRC Linus made a similar point on the mailing list that developers love servers that resemble their programming environments. TDLR: BSDs got stuck in CLI-only mode for too long.
The more common explanation was that Linux got a head start by a few years by being a clean-sheet implementation, while the BSD had to spend its early years purging itself off the AT&T copyrighted code, so it was untouchable from a commercial use perspective.
Hardware compatibility. I could install Linux on my shabby work desktop, and it just worked. Actually it worked more stably than NT 4.
Binary distros. I could apt-get install stuff onto my box in minutes. I rarely had to build things from source.
Speed of change. Linux was acquiring features at a breakneck speed. Large companies started contributing. SMP, interesting networking stuff, better disk I/O, new filesystems, stuff like that. Hell, Windows emulation good enough to run StarCraft! It felt alive and cared for. It was apparent that many serious businesses want to bet big on Linux. Some say marketing; I say GPL and project guidance.
I also had a lovely server box with FreeBSD. It had select compatible hardware. It had really nice documentation. It ran Apache and Squid pretty well. I had to build the latter from source IIRC. I had to build a lot from source (slow in 1998). If that was not available as a buildable package, I often had to tweak header files to make it build. For many amenities which I took for granted on my linux box, I decided that it's too much hassle to make them built on BSD.
Features like SMP or journaling file systems were a bit late in FreeBSD. Maybe they were more solid, and achieved performance parity with Linux with time. Sadly, the industry largely made the choice.
I also find modern Linux a mess, and run a minimalist distro (Void) on my laptop. I could consider running BSD on a server, but most servers now have to run VMs and containers within them, most tooling just assumes Linux.
Yep, it was timing for me - the Asus BP6 allowed dual Celerons but only Windows 2000 and Linux 2.6 supported SMP. I was using FreeBSD at the time, but had to move because of hardware support.
But I wouldn't say it was hardware support alone - I think GNU/Linux won because of the licensing - FreeBSD not having a viral license would have turned people off contributing only to have their code distributed closed source by companies... that's my take anyway.
I think it was too easy.
My favorite theory for why Linux got a head start is in this (long) comment I found some time ago here: https://news.ycombinator.com/item?id=21420338
Some excerpts:
"With Linux, I just booted from a Linux boot floppy with my Linux install CD in the CD-ROM drive, and ran the installation. With BSD...it could not find the drive because I had an IDE CD-ROM and it only supported SCSI."
"It insisted on being given a disk upon which it could completely repartition. [...] Linux, on the other hand, was happy to come second after my existing DOS/Windows."
"By the time the BSD people realized they really should be supporting IDE CD-ROM and get along with prior DOS/Windows on the same disk, Linux was way ahead."
On the other side, the Linux community fought hard to get everything to work, creating positive loops: the more hardware it supported, the more people could get it to work on their hobby hardware, the more they'd become familiar with it and push for adoption at work.
These systems aren’t busy trumpeting their presence. Maybe the originators just don’t have fragile egos.
when i tried FreeBSD a couple years ago i was actually surprised that gnome worked OOTB. i remember some of the settings were gated off (Bluetooth? can’t remember the specifics), but the base desktop worked exactly as before.
maybe different in the early days though: dunno, wasn’t there.
Docker has Dockerfiles, layers, and trivial push/pull of images. Compared to those workflow improvements, nobody cares if the guts suck.
Some people care, this is why FreeBSD is still around :)
And it's not really relevant if you build your own images anyway. And in fact within the scope of FreeBSD jails offer very similar features, one of the things that's very common to do is make a base image with ZFS and then base all your jails off it. This means you just have to update your base and all your jails are updated. It's similar to pulling the latest alpine with docker. If you embrace the full ecosystem with Bastille you will have very similar capabilities.
The big missing point is that you can't use images from docker hub. This is a big negative but if you already don't plan on using those it's not really a bad thing. And there is increasing resistance to pulling things made by unknown people into production (I'm sure many vulnerabilities will happen in the future as attackers start to take advantage of this).
But anyway it doesn't have to be for everyone. It doesn't have to be the biggest thing around.
I have never seen anyone build jail-images from CI and deploying them to fleets of FreeBSD hosts. This may be technically feasible with zfs send/recieve but in practice people I know distributed packages (not images) to 10s of FreeBSD jails/hosts.
I want to deploy container images to a cluster - not install a package in a zone/jail. Is anyone doing this with FreeBSD/Solaris? (Outside of Joyent)
AUR may not be perfect but there is very little software out there that someone hasn’t already packaged in it and it’s a great deal more convenient to use than faffing with custom repos.
The Arch Wiki is second to none too. I’ve even occasionally found myself using it when debugging other Linuxes.
I definitely wouldn’t use Arch on a server though. I mean, I have done, multiple times in fact, but they’ve always been personal systems. I much prefer FreeBSD for servers. Professionally it has usually been Debian, CentOS, or, much more recently, Ubuntu Server (but I really don’t like Ubuntu Server. Or Desktop for that matter).
Disclaimer: this is all my own opinion and I’m not trying to pass any of it off as fact.
More like the reverse, the Arch Wiki is the best so everyone uses it. Although for some topics it makes sense to take a look at Debian or Gentoo wikis, too.
Not sure what other kind of 'Debian resources'/assets you had in mind.
But I came back to it in the last few years and it's matured a lot.
FreeBSD 7 was the first release to support ZFS and even in that it was marked as experimental support.
So if you were using ZFS before FreeBSD 8, and especially somehow on 6 and below, then you’re very much using ZFS at your own risk and can’t really complain if things go sideways.
What a completely bizarre claim. I have commercial linux/x86 binaries from the 90s that work perfectly well on my current PC running Linux 5.15.
I am not sure about other BSDs, but at least OpenBSDs is all but abi-stable; when they wanted to introduce 64-bit time_t to fix Y2038, they just changed the typedef and declared a flag day.
I think if you do anything GUI-ish over the last 20 years there's been many shared library breaking changes. But that'd be true of FreeBSD too since those dependencies are just the same when they live in ports.
Docker, kubernetes et all was the nail in the coffin.
BSDs are amazing for universities, OS classes and some outliers in the industry here and there.
The one thing FreeBSD had was network stack performance. Linux supports higher throughput for a while now.. so even that ship sailed.
Really that's new...because netflix thinks otherwise.
This "complete software stack" deliverables is what makes the difference today. You deliver software with greater ease. Jails isn't meant for that. Ignoring this point and claiming the same existed for 15 years is wrong.
That claim seems crazy and doesn't match my experience at all. Please name a widely used program that changed its switches completely in a sub-version.
How did you have ZFS change how it allocates memory?
In FreeBSD 12.x and older, you could opt out of using UMA with: vfs.zfs.zio.use_uma=0, but that is not necessary
Laptop processors are usually slower, due to lower thermal and power limits, so that's not surprising at all.
What benchmark and what processors exactly?
Most software that run on Linux may or may not run on FreeBSD. And when it doesn’t, it’s typically hard or impossible to get instructions or community support.
Looking at the download page, Firefox doesn’t even seem to have a FreeBSD version or instructions.
I can understand for servers although you lose community support for most software and can’t use ready to deploy docker images, as much as I loathe docker.
FreeBSD is vastly superior to Linux IMHO (the handbook is a great read), but it’s unfortunately not practical for most usages.
Erm, what? It's not Windows, that's what packages are for. Just "pkg install firefox".
Glad to hear Firefox has up to date packages in FreeBSD though!
Aside: the thing that annoys me the most about FreeBSD is how bitter its proponents are that Linux "won". The tone of your comment a great example. It seriously turns me off. Some humility in finding out the shortcomings of BSD and ironing them out would be more beneficial in creating more competition in the OS space than complaining that all Linux users are idiots that haven't seen the light.
System upgrades are cleaner in Linux. Debian has had pkgbase ever since I can remember and it’s still underway in the BSDs. Live kernel patching is nice, too. Just two examples.
- My wifi card doesn't work. The installer recognizes it, but the driver doesn't work.
- The console terminal defaults to 80x25, I don't know how to resize it.
- I can't figure out how to start X Windows.
- If I run it in a VM (e.g. VirtualBox), the network bridging doesn't work so my FreeBSD instance has no internet access.
It's probably my fault, I'm sure it's in the docs somewhere. But it probably means that I'm not the target audience for FreeBSD, since I don't have the time and patience to figure out the most basic things.
It really depends on your Wi-fi card. If you're installing FreeBSD on bare metal with an Intel card, iwx now supports Wifi 6 and 6E cards. Although, since I haven't tested it myself, I can't say it will work as expected if it works at all.
> - The console terminal defaults to 80x25, I don't know how to resize it.
Select console terminal at the boot screen and type the following:
gop list
gop set {mode number}
and then reboot the VM> - I can't figure out how to start X Windows.
Assuming you've installed the appropriate graphics driver from the pkg or ports repo:
pkg install xorg
startx
If you don't have the appropriate graphics driver, proceed to step 8 in the webpage below.> - If I run it in a VM (e.g. VirtualBox), the network bridging doesn't work so my FreeBSD instance has no internet access.
https://freebsdfoundation.org/freebsd-project/resources/inst...
Step 8 might help.
Anyway, there are some options to ease into it more. I find some of the ancient FreeBSD-isms a bit grating on occasion but overall I'm glad it's part of the mix.
----
1: https://arstechnica.com/gadgets/2020/04/not-actually-linux-d...
You do need to be sure your desktop machine is well-suited for OpenBSD. This means supported Intel or AMD graphics (Nvidia won't work well if at all, and not all AMD will either) and network/wifi card.
The only place FreeBSD (or any of the other BSDs) is less robust is driver support, though most common stuff is available. In any event, those needing support for the latest greatest of hardware are probably better of with Windows.
This is why FreeBSD loses in my view. The arrogance of claiming to be a complete system when basic stuff like wifi doesn’t work.
Wi-fi is not basic.
Having written a wifi driver, that’s something I’m comfortable stating unequivocally.
The hardware is almost always proprietary and undocumented, and in many cases (looking at you, Broadcom), a poorly-designed shitshow of complex errata, proprietary magic numbers required for initialization, and in general, an absolute dogshit technology stack.
The only reason Linux has working Wi-Fi at all tends to be because it was used to power a lot of cheap consumer access points, and Wi-Fi chipset manufacturers released binary and open-source Linux drivers — generally of horrific quality, but drivers nonetheless.
For me, FreeBSD wifi works straight of the box on the laptop I have.
It will "work" correctly when it supports general consumer expectations e.g 5ghz networks, which has been a common complaint about FreeBSD for years now.
(Even if you get it to work, it's not going to be full speed)
Does this mean WiFI is only for Win/Mac?
The NT ACLs used in Windows and SMB are much more expressive than Linux's POSIX draft ACLs. When a Windows client writes a file to a Linux Samba server, it cannot necessarily express the file's ACL as a POSIX ACL losslessly. To work around this, Samba's vfs_acl_xattr saves the "real" ACL as an extended attribute: https://www.samba.org/samba/docs/current/man-html/vfs_acl_xa...
This means the ACLs set by clients won't be enforced for local users on the file server, and that you need special tools to view and edit those ACLs.
In contrast, FreeBSD supports NFSv4 ACLs on ZFS, and those are a superset of NT ACLs. Samba saves the NT ACL as an NFSv4 ACL, and this can be viewed or edited using getfacl and setfacl as with any other file on the server.
1. vulnerability list is not very relevant as a measure if you don't relate to SLOC, features available or something;
2. having a lot of configuration options for security is far from being good, security should be easy and by default; if the tradeoffs are unclear you enter FUD and avoid enabling them; is randomizing PIDs good? what are the downsides? :shrug:
3. I stopped reading given that the most prominent arguments seemed heavily biased;
Now, it’s possible that the number of vulnerabilities are much higher in the Linux Kernel because there is more research interest due to its larger usage.
The same people who respond in the community to questions about changes often respond to defend the changes, but rarely respond with answers to the technical questions about them. It's frustrating.
I, on the other hand, tend to think of distributions as operating systems in their own right, so the difference between them is something I welcome - otherwise what’s the point?
A Linux distro is an OS. They have in common with your Android phone the Linux kernel. That's a very, very small part of what goes into a distro.
All Linuxes right back to the 90s are basically the same. There are more obvious differences between them and other Unix-like OSes, like SunOS/Solaris, the BSDs, and so on.
rm -rf /* has very limited damage. chmod -R 0000 /* won't touch chmod and all kind of ooops become much less destructive.
It's probably not useful in all scenarios, but definitely some systems deserve to never be touch live. Automation, scada, super important core backbone systems.
FreeBSD is the power to serve. It deserves more credits.
I picked this little trick up watching a red team discuss how they set themselves persistence on the target system by making /etc/shadow immutable this way.. Fun bit is, root can't even remove the file until the flag is removed, and you can't see the immutable flag on the file unless you know what you are looking for via lsattr.
At security level 1, the immutable and append only attributes on files can't be removed, so even chattr -i would be useless.
You could literally hand out root shell to people, and they wouldn’t be able to make much mess out of it.
There are SELinux policies to prevent disabling selinux too, of course.
You probably wouldn’t even need chattr.
Which is why I love FreeBSD so much. It's consistent, clearly explained, thoroughly documented, powerful, and flexible. I have a home server (just upgraded to 13.1) that I go months at a time without logging in. And while I do tend to forget a lot of important details, looking them up is incredibly easy.
I don't really care about what software FreeBSD uses, just that it is consistent and well-documented.
Plus, the whole architecture of it fits comfortably in my head. It is so nice to reason about.
sed
* The `-i` flag - In the absence of a file extension given, I should not have to specify with `''` that I want the original file over-written. The flag is called in-place for a reason.
* BSD sed doesn't support ANSI-C escape sequences, so you have to fall back to your shell quoting them for you.
xargs
* Why is there no `-d` flag for BSD?
There are others I've found over the years, but those come to mind as annoyances.
But it's a different OS. Solaris tools were different from the GNU toolset. HP-UX' tools were very different (try compiling something on HP-UX CC lol). MacOS' tools are also different.
If you expect things to be GNU, use GNU/Linux. Or Hurd :) Or install GNU coreutils.
This is a fair point, and I suppose something I just have grown used to, similar to how I can type `tar xvzf` without any `-` at all, and it works.
> MacOS' tools are also different.
Tbf when I talk of using BSD tools, I'm talking about using MacOS tools - I don't have any BSD installations, I just recognize that MacOS includes mostly (?) BSD tools by default.
I do in fact install coreutils, and either alias them or move PATH priority so they get called first.
It's not inaccurate, but somewhat unfair to use MacOS tools and call them BSD tools. They are ports of BSD tools, but Apple rarely refreshes them from the original sources, so it's kind of a time capsule to 2000. If you dropped 2000 era Linux userland on someone today, there would be a lot of complaints and concerns. On some tools, command flags added in GNU coreutils do get added to FreeBSD, although I did not check your list of specifics.
So for a while GNU tar didn't support automatic compression detection, and you had to manually specify 'z' or 'j' every time. Quite annoying when you are used to bsdtar, which does this for you.
That said, this is why I’ve always given up on BSD every time I’ve tried it—all of the low-level technical benefits touted in the article never actually make a difference in my day-to-day usage, whereas little annoyances with the userspace really add up.
What's the reason? Surprisingly, the file is never edited in place.
Also proton gaming seems to be best supported on Linux from what I can tell.
- ZFS on root install of essentially void Linux
- rEFInd with a kernel sufficient just to boot into
- ZFSBootMenu which lets you boot into a prior boot environment
- ZFS native encryption of /home per user directory set up to unlock when you log in via PAM and zfscrypt
- An update script that automatically creates a boot environment prior to updating
- A mediocre choice of display manager and their own customer desktop environment that was neither in my opinion terrible nor interesting. Trivially replaceable with a different DE and lightdm.
Trident is alas gone but all the pieces remain and work fine.
https://web.archive.org/web/20211223122028/https://project-t...
I've not got zfs on root on my fedora 36 install but if i did this is something i'd seriously look into
- I like the idea of "kern_securelevel", but I can only use it on the low setting (1 out of 3) because the machine (VM) is sometimes powered off and its time gets de-synced. The server is running ntpd but on this security level you're not allowed to change time by more than a second.
- ntpd doesn't support running with ASLR enabled. Fortunately, you can disable ASLR for a particular process with "proccontrol".
- ASLR is not enabled by default. Not that it cannot be defeated but it's a basic security measure, isn't it?
- User installed packages put their configuration into "/usr/local/etc/". Or more generally user level stuff goes to "/usr/local". I like that, keeps things more tidy.
- Upgrading between major versions requires several reboots. You also have to reinstall / recompile all of your installed packages / ports because ABI can change between versions.
- IPv6 didn't work out of the box because the standard DHCP client doesn't support DHCPv6. Getting it to work took me a while but works now with the use of rtsold.
- pf is nice. Enabling pflog and then inspecting the logged traffic via standard tools such as tcpdump is handy.
- In line with UNIX philosophy, each utility does one thing and one thing only. I find it quite annoying though when dealing with long running services. There doesn't seem to be a standardized way of monitoring once a particular service is started via rc. Some packages use daemontools, some use something else (I forget the name), and some don't do any monitoring at all. Similarly with logging. I very much prefer systemd in this regard.
- Jails are cool but annoying sometimes. Jails are created from a particular version of FreeBSD and you have to keep them up to date with "freebsd-update" like a regular host (including the reboot dance). There's a way to share most of the files between jails using mount_nullfs but I haven't tried that.
- I miss "journalctl --since=-5hours" every time I ssh into the machine. Not sure how I could do it with just plain log files without parsing their specific format.
Have you tried configuring your NTP daemon so it would only adjust time in sub-second increments?
he seems to be obsessed with an os he doesn't use.
Don't know what keeps him going. A desire to see FreeBSD fix those defaults? Desire for OpenBSD to be recognised as having better defaults for security than FreeBSD? What would that even look like?
The rest is about preference with the exception of DTrace that is imho superior , but I am not going to pick freebsd over Linux only for DTrace, as Linux has better compatibility and support with software and hardware in general imho
Edit ps: I use gentoo so I see the power of ports but I can match it with the wider support of Linux
I use FreeBSD as a daily driver on my desktop. Very happy with it. My reasons to choose it were more that I feel like Linux has become a toy of big tech. If you look at the kernel contributions, most of them are from people working for all the big names. Linux has become Big Business and each company is trying to safeguard their interests in it. Linus is still in charge of the kernel officially but all the steering groups are dominated by big tech. Look at the Linux Foundation for instance: https://www.linuxfoundation.org/board-of-directors/ . These are not the kind of people you'd expect to lead 'free software', these are all boardroom types. Maybe Linux has outgrown the beardy hacker culture but I have not :P
Of course, Linux is not much worse for it... Yet. I think this is for 2 reasons: Linus' benevolent dictatorship, and the fact that they won't be able to agree on much given that these guys are all competitors. But in the long term I'm sure this will take its toll. For example, would these guys ever have approved the GPL-3? Everyone in business is pretty universally against it.
And in fact it's the very BSD license that makes big business shun FreeBSD. Which I think is a good thing. FreeBSD still feels like a grassroots development and as such I feel more in control. The excellent and consistent documentation and friendly community is another plus for me. And the combination of stable OS with rolling third-party software (but this is something that was also mentioned in the article). ZFS on Root is another one (though Ubuntu is now catching up to that).
Like hardware manufacturers? I thought getting commercial users to contribute to the kernel was desirable?
> For example, would these guys ever have approved the GPL-3?
Didn't Torvalds himself reject GPL-3?
> And in fact it's the very BSD license that makes big business shun FreeBSD
Now I'm really confused. Why would businesses not like the BSD license? And they don't like GPL-3 either? Is GPL-2 the goldilocks license for them?
Contribute to drivers, yes. Steer development of the kernel, no, IMO. The more they contribute, the more influence they gain. And a lot of the contributions are not hardware related at all.
> Didn't Torvalds himself reject GPL-3?
I don't know, I didn't follow this as I don't follow Linux news that closely anymore. I thought it was mainly about the way that it was introduced. But I think it's a much better license than GPL-2.
> Now I'm really confused. Why would businesses not like the BSD license? And they don't like GPL-3 either? Is GPL-2 the goldilocks license for them?
Businesses hate the BSD license because any code derived does not have to be open at all. So that means anything they contribute can be taken by their competitors and used in closed-source software. That's totally OK. Because of this there's only a few companies involved in BSD. Notably Netflix, the former Skype (before it was acquired by MS), and some smaller orgs like Netapp and iX that makes freenas/truenas.
Companies hate GPL-3 because their license gets revoked if a company uses its patents to attack GPLd software. It also stipulates some other things like that devices running GPL-3 software must also be open (e.g. no locked bootloaders etc). Very good things IMO. A lot of GPL-3's stipulations were triggered by real-world exploitation of free software. Examples: By TiVo (hence the name "anti-TiVoisation clause" for the open hardware thing). And the anti-patent clause was a direct result of Microsoft's patent attacks on Linux. No wonder Steve Ballmer hated the GPL-3 so much.
This is why Microsoft and most of the others hate it so much, they love giving open source lip service, but are not really open source companies. The GPL-2 gives them enough loopholes to get away with this. Many companies avoid GPL-3 licensed software at all costs, it was the driving force for bash not being updated (and replaced by zsh) on macOS for example.
Personally I think it would be better if FreeBSD was GPL-3d but BSD is not bad for me as a use that doesn't want too much corporate influence. After all, if a company makes a closed-source fork it doesn't impact me in any way. I won't use it anyway.
Isn't this why businesses love the BSD license?
They can take BSD-licensed code and do what they want with it and keep the end result closed.
This is why it powers the PlayStation.
Businesses love BSD licenses, because they can use the code for any purpose they need, whether internal use or building something and distributing it. No one can force them to share any part of their work, or even share anything.
Netflix, Juniper, Apple (and many others) all use BSD derived UNIX components, precisely for that. They contribute back what they want (and mainly what they do jot wish to maintain as a company secret).
GPL-3 is much more complex because it can /require/ you to share code. BSD licenses do not require you to share anything.
Businesses in general do not like ‘requirements’ like that even if only because they have to track them and ensure they do not break any licenses.
I work for a large financial services company, GPL-3 licensed software requires specific approval, AGPL is banned across the board (same as in Google). BSD and GPL-2 is fully permitted (as is MIT and all the other style licenses)
That's the opposite of truth.
For example, Apple ships many BSD software on macOS, explicitly shuns updates for GPL software, and endorses the LLVM project from very early time exactly to avoid the GPL license of GCC.
Or take Google. Android, Kubernetes and Tensorflow are licensed under Apache. Chromium, V8 and GoLang are licensed under BSD.
Or take Microsoft. Typescript is licensed under Apache. VSCode is licensed under MIT. .Net Core are licensed under both Apache and MIT.
Companies choose Linux despite its GPL license, not because of it.
Was the GPLv3 ever formally rejected? Isn't the problem that the Linux kernel was GPLv2 only before the GPLv3 existed, and by the time it did come out, there were too many contributors for there to be any hope of getting it changed?
https://www.linux.com/news/why-torvalds-sitting-out-gplv3-pr...
I used FreeBSD starting in 1999-ish and I still have the original Design and Implementation of the 4.4 BSD Operating System on my shelf. I used FreeBSD exclusively for years, but it has completely lost to Linux and Linux frankly is good enough.
Of course there is also netbsd + openbsd, but imo those are really far behind FBSD when it comes to being mainstream and usable as daily drivers. One of the main reasons I personally can't daily drive FBSD on my laptop is the lack of proper drivers (I know about 'running' the linux ones). Still a more than decent choice for any desktop unless running very obscure hardware or needing specific requirements (think cuda,cudnn,rt and similar proprietary software/libs)
This is a cool project but it's in no way usable right now.
That being said, some tooling assumes linux sometimes, but the popular stuff is generally gtg, especially if you get it via the ports tree.
https://forums.freebsd.org/threads/setting-up-a-debian-linux...
Building the .NET Core SDK on FreeBSD
From that point of view, you can even do "modern" web backends on IBM and Unisys mainframes, using their POSIX environments.
And yes, they do actually support everything on that list, by the way, mainframes invented noSQL databases before SQL was a thing, have a look on ISAM.
And no, there aren't many things you can run on z/OS POSIX environment, because it fails to support absolutely basic things, like fork(2).
>mainframes invented noSQL databases before SQL was a thing
I'm not sure about this; structured storage was popular before Unix made flat files common, but there was a fundamental flaw in how it was implemented: it was all in the kernel, not on top of it.
In any case, in what concerns "modern" Web development, z/OS has you covered,
https://www.ibm.com/products/open-enterprise-sdk-go-zos
Yes I know it's available on Ubuntu but everything else about Ubuntu is just so messy.
What are some workflows that ZFS enables for you on servers that you couldn’t do with ext4 or stock FreeBSD FFS ?
* data compression - say midsized 1.6TB mysql db compressed into 400Gb => allows to run replica servers on cheaper hardware (smaller drives)
* hot data set caching - depending on case can be 5-100 times better performance
* single pool but different settings per FS - say block sizes 16k for DB and 256kb for file storage
* snapshots. Instant snapshots
* coming back to db replication case, this helps to test db scheme migration on close to production env and prepare better planning/downtime window. Once tests done - rollback snapshot and enable replica back without full reclone.
And so onjust disable snap and you're good ;)
FreeBSD has great engineering and release management practices
When someone gets an idea and develops something new, it first gets peer technical reviews
The recent WireGuard debacle left a bad taste about this. As it actually turns out, sometimes there is zero technical review for very important patches and a few blessed developers can (and sometimes do) just throw their stuff directly into trunk. Unlike on Linux, the ZFS filesystem is a first class citizen on FreeBSD
ZFS has first-class support on Ubuntu and is compiled into the kernel. FreeBSD also supports boot environments
Including this one IIRC. Jails
Well... linux has containers, and if all you need is isolation there's this: https://news.ycombinator.com/item?id=29976096systemd is not required (all the heavy lifting is done by the kernel using the same features employed by containers), but it's available almost everywhere and makes this easy.
security
I actually think it's worse in this regard because of the link above. Most services on my machines are heavily locked down and isolated from each other since systemd makes this very easy (add a few key-value pairs to an .ini file and it's done). On FreeBSD the developer must add capsicum support (which is not easy to say the least), or you have to setup jails for each and every application manually. Capsicum
Excluding the usual boring stuff like seccomp-bpf, we now also have this: https://lwn.net/Articles/859908It's pretty much unveil for Linux. I think it kind of flew under the radar.
I don't believe there's anything like capcisum, though.
DTrace
https://www.brendangregg.com/dtrace.html#LinuxThere's also real DTrace on Oracle Linux if you're ready to sell your soul:
https://docs.oracle.com/en/operating-systems/oracle-linux/dt...
bhyve
Not sure if this counts as a particular advantage. Firewall
I find nftables to be pretty enjoyable to work with. It has a similar syntax, removes duplication of rules (supporting both ipv4 and ipv6 at the same time), etc. I actually removed firewalld from many RHEL servers and went with nft directly. Security Event Auditing
Uhm… so like auditd?This seems like a misunderstanding of the FreeBSD development model. Yes, immature code landed in HEAD, but it was removed before the next release.
In general in FreeBSD there's no expectation that HEAD is always usable. Sometimes it won't even build! It's a place where code can land in the hope that it will be ready by the time the next release rolls around, but "remove code which isn't ready for prime time" isn't an exceptional case.
FreeBSD has a very strong history of post-commit code review, largely because every FreeBSD committer gets email when commits go into the tree -- that's a lot of eyeballs. We're moving towards increased pre-commit review thanks now that better tools are available for that, but that's a separate matter.
(Yes, Netflix runs FreeBSD HEAD. I think they're nuts.)
https://lwn.net/Articles/850098
It was rushed because a particular vendor wanted to have it as soon as possible. If not for Jason Donenfeld's diligence it looks like we would have out there in the open, full of bugs and all.
Doesn't seem like a normal occurrence though, seeing how much noise it made.
And fundamentally the system worked! The code was deemed to not be ready and was yanked before the release.
damn....
> Sleep to mitigate race conditions
ouch...
> Validation functions which simply return true
da f*
> strange hexadecimal output spamming the root console of their router
:D
Sounds like chaos engineering to me ;)
The reason I think they're nuts isn't stability but rather security. I guess since they're shipping these boxes around the world there's nothing really sensitive on them; but still, if I were in their shoes I would be worried about security bugs being introduced.
And Ubuntu is also the only distribution which has ZFS. Using ZFS on any other distribution (for example RHEL, Rocky Linux, etc.) is a pain. Every update is Russian roulette in which it can break.
And everyone except Ubutunu thinks it's a violation of the CDDL. Keep in mind that Oracle is the copyright holder of ZFS. So you (and Ubuntu) are violating Oracle's license terms. Would be realy interesting to see what happens if Oracle decides to sue an Ubuntu user. Would Ubuntu step in to help?
> There's also real DTrace on Oracle Linux if you're ready to sell your soul:
I can't run Ubuntu (for ZFS) and Oracle Linux (for DTrace) at the same time. Besides, like you said; Why would anyone want to use Oracle's Unbreakable Linux?
> Well... linux has containers, and if all you need is isolation...
No that's not all I need. I need things like virtual networking between my containers.
> I actually think it's worse in this regard because of the link above.
Depends. If you put them in a FreeBSD jail they are probably better isolated then only using systemd.
If anything IS a problem here it is violating the terms of the GPL, not the CDDL.
So no, no one is violating Oracles licensing terms - and if they were, they’d have been sued in 2016 when this shipped. Do you really think ORACLE of all people is just holding back out the goodness of their hearts?
Complete FUD.
How so? Aren't the GPL and CDDL both copyleft?
> So no, no one is violating Oracles licensing terms - and if they were, they’d have been sued in 2016 when this shipped. Do you really think ORACLE of all people is just holding back out the goodness of their hearts?
No, Oracle is holding back because they want more money. If they sue a little guy now, then everyone else will immediately stop using ZFS-on-Linux. They're waiting until someone with really deep pockets starts to use it before they sue.
The CDDL terms are violated because you can't re-license code that is under the CDDL (in contrast to for example the BSD licenses). The GPLv2 is a strong copy-left license that puts the CDDL files under GPLv2.
Even the creators of the CDDL themselves have stated that the CDDL is probably incompatible with the GPL [1].
Do you have a guide handy? A quick Google search only showed generic nonsense. I'll appreciate a recipe-like pointer. Been curious about this for a while.
Have a gander at the comment I linked (https://news.ycombinator.com/item?id=29976096).
---
Probably the easiest way to start is to create your unit file as usual, copy the list from the comment into it, and then run:
$ systemd-analyze security unit-name
It prints a huge list of suggestions along with a short description of each one. Look up their names in here: $ man systemd.directives
and look at the man linked there. Usually it's one of $ man systemd.exec
$ man systemd.resource-control
I think the starter list should get you 95% there (I use it for most applications with minor variations in paths and flags like MemoryDenyWriteExecute that breaks JIT compilers).---
If you want to keep your configuration as short as possible, the list with the most bang for your buck would look something like this:
User=non-root-username
# disable privilege escalation through SUID binaries
NoNewPrivileges=yes
CapabilityBoundingSet=
# removes access to /home
ProtectHome=yes
# makes most paths read-only
ProtectSystem=strict
# opens read-write access only to paths your application needs
ReadWritePaths=/var/lib/foo /var/lib/bar
If your application follows FHS and writes stuff to /var/whatever, prefer: RuntimeDirectory=appname
StateDirectory=appname
CacheDirectory=appname
LogsDirectory=appname
ConfigurationDirectory=appname
instead of RuntimeDirectory=/var/run/appname
StateDirectory=/var/lib/appname
CacheDirectory=/var/cache/appname
LogsDirectory=/var/log/appname
ConfigurationDirectory=/etc/appnameThere is nothing in the CDDL that prevent a user to use ZFS with a kernel under GPL license and no leverage for Oracle to sue the end user for this. The end user is not distributing the software. Ubuntu or possibly an hosting provider or a company incorporating ubuntu in its product does.
On the server/router maybe. For IT pros maybe.
The desktop is a whole different matter.
As someone who has run Linux and FreeBSD desktops for years -- no, Linux on the desktop is actually quite a bit better and easier to use than FreeBSD.
As someone who actually started learning *NIX on BSDs and later switched to Linux, I think "quite a bit better and easier" is an understatement. I tried the latest FreeBSD last year on a not so recent Lenovo laptop and it was a horrible experience.
But FreeBSD is great as a desktop for tinkerers — if you want something that’s simple enough that you can actually understand how it works, and whose source code you can quite easily jump into, modify, and rebuild, it blows Linux out of the water.
That said, I still have a Linux system for things like gaming, Cuda, and containers. Though, as I never have time to game anyways, I could just use the Linux system as a server.
But, I've used Linux for 10+ years and it only started annoying me recently so I may also get frustrated with freeBSD eventually.
Happy if I'm wrong and someone can point me in the right direction. But the few times I've looked into it it doesn't seem worth the expenditure.
raw cve counts seem meaningless without a denominator to me. those numbers should be normalized by estimated install base if they're going to be compared.
There's probably a niche for freebsd but unless you know exactly what it is and how to exploit that niche, you're not going to find it by accident.
I am quite certain that you would be shocked if you learned how many people use it. I've worked at two companies where more than 95% of servers ran FreeBSD, and these are absolutely companies that you have heard of. 10s of thousands of servers at each when I worked at them, and likely 5x that amount, now.
lots of people care about FreeBSD. they just aren't known for crapping on Linux, like Linux users are known for crapping on everything that is not Linux.
Without this diversity, in face of a security issue, you can only shut-down or take the risk.
On the other hand, when there’s a bug or suspicious activity on FreeBSD servers, you can turn off only those servers, while the problem is patched, and viceversa.
Today, I can pick a regular Windows laptop and have a decent experience with it on Linux, whereas with FreeBSD it is likely that WiFi/BT won't work, GPU acceleration might not work, software is likely to be out of date compared to rolling release Linux distros, then there's the whole WireGuard fiasco[1] and an apparent disregard for code quality, no Docker, no k8s, slow boot times, no ability to play AAA games, non-declarative init etc. etc.
If I were to run a BSD on a server or a router, it would most likely be OpenBSD as that at least has the security aspect going for it.
FreeBSD seems like Linux, but from 2006.
the article mentions this, and when I started typing I thought I could do a better job of explaining, but as I typed I realize that I could not.
it just feels better to me. it may not feel better, or even good, to any of you, and that's (of course) fine with me. I just like FreeBSD.
I think FreeBSD deserves far more attention than it gets, and I am therefore quite happy to see this article on HN, even if others can't see why it's a valid option for anything they need.
When I had Windows on this laptop, the audio over HDMI worked beautifully.
Ugh, this argument is long in the tooth. It’s not a complete operating system. It never will be, and neither will GNU/Linux. To be “complete” you need to support all the hardware. You can’t.
Also, a base install of FreeBSD is missing the port tree sources… so complete…
You redefined a crucial word from the author’s thesis, in a way that’s obviously not remotely close to what was originally meant, and then concluded that the argument was “wrong”. Well, of course…
1. copy-on-write and snapshots
2. checksums that are automatically verified on reads
3. btrfs' version of RAID1 (meaning I don't have to buy identical HDDs only)
What would be my options?
OpenBSD doesn't have ZFS and probably never will.
I’m running freebsd on my NAS and it’s been great.
Disk space is, as expected, limited to the smaller disk in each pair. However, if you replace the smaller disk with a larger one, ZFS will automatically grow to the new minimum. You fault one disk in a pair, swap it with a larger and bring it online, ZFS will repair (fill the new disk) and once finished the pool will be larger just like that.
I've used this approach to increase the size of my pool, which again meant having a pair of different disks in the mirror as I did the the swap process.
Is that not what OC is asking for?
- it sounds like an perfect server os, but not am desktop os: i tried 3 times install gnome on freebsd inside kvm, i didn't make it.
- how about install on laptop? On arm laptop? How about power management?
i think linux is much better for workstation / desktop computers
> Add input device "EvTouch USB Graphics Tablet" in virt-manager.
> In the guest:
> pkg install utouch-kmod xf86-input-evdev
> edit /boot/loader.conf as instructed (this is output during the pkg install)
> reboot (guest)
Also:
Read my other comment later in this thread.
Has anyone switched back to FreeBSD lately? And why?
This list of reasons here makes it easy for me and others to choose neither and tell users to just stick with either Windows or macOS (which macOS is a BSD Unix, but the users don't care and they should not).
Both FreeBSD and the trillions of GNU/Linux distros are still not ready for a simple desktop usage.
This is even before mentioning the in-fighting on swapping out system components like desktop environments, windowing systems, init systems, service, etc.
It’s no surprise that they’re not as nice on the desktop as OSes produced by corporations that pour billions into making them polished. I’m not sure why so many people expect them to be and get indignant when they’re not.
I started by putting Minix on my 286 at home, but I longed to run 386BSD. I eventually realized my dream with some nice OpenBSD installs. I was a partisan, not entirely a bigot, but I'd also seen Linux grow from infancy and considered it a toy or plaything, compared to mature BSD codebases. And truly, Linux was a hobbyist's choice for ages, but many hobbyists grow up to be professionals, don't they?
In 1999 (to prove I wasn't a bigot) I installed Linux on the old 386. It was either Slackware or Debian, and the reason I chose it was to support the floppy-tape controller that was unsupported by BSD.
I continued to use OpenBSD as a daily driver, alongside Windows, until 2004. Then a trusted sysadmin friend listened to my pleas for help with audio and assorted hardware, and simply directed me to Ubuntu. Since then I've been BSD-free (including no Apple devices.)
My needs over the decades have reduced from "godlike control-freak sysadmin" to "power user" to "does ordinary consumerist stuff on a Windows laptop". BSD has great technical reasons and use cases. If you still use BSD, more power to you! BSD's dual legacy for the world, even after the OS itself has evaporated, will be MacOS X and BSD's corporate-profit-friendly licensing terms.