309 points · by fcambus · 8y ago · 175 comments
"Selected highlights include:
* Support has been added for qcow2 images and external snapshots in vmm(4)/vmd(8).
* "join" has been added for Wi-Fi networks.
* Security enhancements include unveil(2), MAP_STACK, and RETGUARD. Meltdown/Spectre mitigations have been extended further, and SMT is disabled by default.
* rad(8) has replaced rtadvd(8).
* bgpd(8) has undergone numerous improvements, including the addition of support for BGP Origin Validation (RFC 6811). smtpd.conf(5) uses a new, more flexible grammar.
* For the first time, there are more than 10,000 (binary) packages (for amd64 and i386)." [1]
[1] https://www.undeadly.org/cgi?action=article;sid=201810181400...
With a little work you can have your own caching DNS server including domain blocks for tracking sites and if you want privoxy or a squid proxy. It's also easy to set up your own root CA and switch over to certificate-based authentication for wireless clients as long as the wireless base station supports radius.
I haven't published a tech note on it yet because Android still complains about importing self-signed certificates even when you import the root CA.
Totally.
One thing I wish that OpenBSD devs would change in their philosophy is the --help messages. Many commands simply offer a list of switches, as if that's somehow helpful. Sometimes you need the detail in a man page, but a lot of times you don't and it would save so much time and energy to have a succinct list in the --help message itself.
# syspatch --help usage: syspatch [-c | -l | -R | -r]
One thing I really dislike about modern UNIXes is their lack of decent manpages in place of standins like --help.
I love the BSDs and especially OpenBSD for their attention to manpages. It's the main reason why I don't use Linux anymore unless I have to.
Adding detailed --help messages would take time away from maintaining manpages, it also presents a duplication of information. If you want to know what the switches do, read the manpage.
I completely agree. The difference in the quality of manpages between OpenBSD and Linux alone is enough for me to prefer OpenBSD.
With OpenBSD specifically, you can get 90% of the way there with chroots, standard process isolation, and a bit of shell scripting to handle deployment automation.
Yeah, Docker's cool, but it's really not that hard to run multiple applications/services on the same physical machine while keeping them from clobbering each other or the OS in general (step 1 being to make sure each service/daemon is running under its own minimally-privileged user).
Since I believe they don't accept code patches without relevant man page patches that explain them if they alter the behavior or add/modify an option, this seems like a sane way to avoid bikeshedding on what is essentially superfluous information, since the "appropriate" amount of info to include is ambiguous.
That's not the dispute. It's a question of how much you value brevity.
syspatch --help usage: syspatch [-c | -l | -R | -r]
looks quite friendly to me, but YMMV.
This is the 45th release of OpenBSD!
I'm quite amazed that there exists hardware where they can test this! Maybe there are some embedded systems still using motorola chips?
Anyway, OpenBSD is great. I'm running it on my router and it also powers my 96 mb ram dual pentium pro 200 mhz computer from the 90s :) That computer also has a quantum fireball 20 gb disk as it's main storage, another thing I am amazed that still runs..
Donate to this project, it deserves it!
https://www.openbsd.org/luna88k.html
OpenBSD also used to run on Motorola's 88k VME boards, but the mvme88k port was discontinued after 5.5.
https://www.openbsd.org/mvme88k.html
If you have any spare parts/systems, I suspect aoyama@ would be interested in hearing from you.
Is this on all architetures or just Intel's Hyperthreading? I'd imagine that other CPU's with hardware threads (especially the 4 and 8 way Sparc T series) would be quite hobbled in terms of performance with this change.
[0] - https://marc.info/?l=openbsd-tech&m=153504937925732
(edit: words)
When I want new packages, I'll upgrade the operating system. I very much appreciate the stability of packages during a release cycle.
url: "pkg+http://pkg.freebsd.org/${ABI}/latest",
in your configuration file instead of (say) url: "pkg+http://pkg.freebsd.org/${ABI}/release_3", url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly"
This is the default configuration. doas syspatch
doas pkg_add -uI don't think I'll run OpenBSD as a desktop OS unless performance drastically improves, but it's staying on my router for the foreseeable future.
(Specifically the part "instruct the boot loader to boot this kernel" because it says to type in the file name during the boot process, which is not exactly easy on a remote machine.) https://www.openbsd.org/faq/upgrade64.html
I have a lot of respect to OpenBSD devs when people don't contribute back much even if they use OpenSSH everyday but a bit more friendliness doesn't hurt to let people try it out more.
There is an in-between case where you have a console, but do not control the boot loader (so cannot boot bsd.rd) and cannot boot an iso. It sounds like maybe you are in this situation? In this case, you can still follow the upgrade directions as if you do not have a console[1]. Alternately, sometimes when I am in this situation I just download the install kernel (bsd.rd), move it where the boot loader is hard-coded to look (/bsd), and then reboot. The boot loader will boot the install kernel and you can follow the usual / common upgrade procedure on the console.
There is also autoinstall[2], which can automate the upgrade procedure for you and reduces upgrades to just rebooting into bsd.rd and waiting a bit. There is a bit of effort to create the response file, etc., so this may be overkill for a single instance but is very useful for upgrading fleets of machines quickly.
[1] https://www.openbsd.org/faq/upgrade64.html#NoInstKern [2] https://man.openbsd.org/autoinstall
If so, download the new bsd.rd image and place it in /
Reboot, and at the boot prompt type:
boot bsd.rd
Then follow the prompts.
For example, things that I need that it does not have (last that I checked) include: filesystem-neutral nmount(), POSIX RT signals, the "new" 1990s dynamic PTY allocation system, a KDGETMODE ioctl on wscons, waitid(), fexecve(), and ACLs.
And then there are the things that would make life easier to not have to bodge around: const-correct ncurses API (available in ncurses since 1997), const-correct login_cap API, const-correct sysctl(), and no multiple evaluations in EV_SET().
It would be very welcome for it to gain all of these, but until then there is no "it has all that you need" realization on the cards.
I'm tempted at using OpenBSD as OS, but need to run things like MS Office. A VM is probably the easiest way to do that.
I cannot comment on whether it is suitable for running VMs at this time.
As far as I know this is not possible. You can always do it with qemu but it wouldn't be practical.
If libreoffice is not appropriate for your needs, you may try googledocs inside the browser.
Battery life under OpenBSD is atrocious compared even to Linux.
It's a great server OS but it's not ready for laptop daily driver use unless your laptop just sits plugged in all day.
They've been adding drivers like crazy for a while now, too, so there are many more hardware choices than there were a couple years ago.
OS X and Windows are better GUI, OpenBSD is a better place for a lot of my work... basically anything that I’d use emacs for.
Guess I should give OBSD another chance...
Any growing project will always suffer from consistency problems -- humans just aren't capable of scaling to the point where a single hierarchy can consistently manage a monstrously large system. Linux doesn't have a 'base system' quite like OpenBSD: coreutils, libc, bash, and 20 other similar packages all come from a large variety of differently minded maintainers across the world.
Viewed from a macro scale, OpenBSD's consistency breaks down immediately upon starting to install stuff from the ports collection - sure the base system makes a great firewall and basic HTTP server, but to use anything popular you pretty much immediately end up with ports. And the quality standards there are identical to Linux land, because it's the same code.
sendmsg(2), sendto(2), recvfrom(2) and recvmsg(2) are run without KERNEL_LOCK.
The lock is being removed, slowly with care, piece by piece.
* Electron apps - VSCode, Atom, Slack, almost every universal desktop app that gets released today. Individual ports of apps to FreeBSD exist, but there is no way to automatically build Electron apps for any of the BSDs.
* Good desktop virtualization - KVM, VirtualBox (okay FreeBSD has these in theory), VMware
* First-class Docker and desktop container support (FreeBSD jails exist but there is no container ecosystem like there is on Linux)
You can still run Firefox, mail clients, vim/emacs, Unix utilities and LibreOffice on any of the BSDs just fine. They're lacking other niceties however. And that's a bad thing in my opinion - although it's mostly not the fault of any of these projects. Some people think BSD is better for lacking those options, but I can't live without them for one.
It's unfortunate: Linux and the BSDs used to have more or less the same application support. Anything Unix-y ran on anything Unix-y. There was nothing stopping you from having an OpenBSD desktop almost identical in function as, say, a Xubuntu desktop - one that looked much cleaner on the inside. But once broader commercial interest started happening for Linux, the BSDs were mostly left by the wayside in application support.
The areas where OpenBSD can compete (in addition to the ones it already fights in, like routing and network-edge roles) are cloud deployments and orchestration. If it were as easy to run OpenBSD for development as it is a containerized Linux, people would pick the more secure choice. They could also make prebuilt appliances for the most sensitive components in a deployment (databases etc).
Now what exactly created this divide to begin with is a matter of debate but it took place mostly in the 90's and the very early 00's. By the mid 2000's it was clear that BSDs would have a really hard time ever catching up with Linux, especially for non-server applications.
Paradoxically it might be partially why BSDs are so clean and tidy: fewer features, fewer contributors and of course they're making a complete operating system instead of just a kernel or just a distribution.
FreeBSD remains my favourite OS for servers, it's rock solid and a joy to administrate. Unfortunately for the desktop I've given up almost a decade ago, driver support is just too lackluster, especially (as you mention) for proprietary software that can't be easily ported.
The Linux users gave back (often because they had to) and the BSD users often didn't.
vmctl create disk1.img -s 10G
vmctl start vm1 -d disk1.img -b /bsd.rd -L -cGood! On FreeBSD, for now, sanity prevails!
This is one of many reasons not to use Electron. Claims of Electron portability are a sham.
However, when it comes to running scientific applications and squeezing out last bits of performance or servers where people expect stuff to "just work, and if doesn't do apt-get blah", it's Linux that takes the cake.
FreeBSD and ZFS - the best I've worked with for Network Attached Storage. Can't believe it is just free.
ZFS file server: https://aravindh.net/post/zfs_fileserver/
ZFS file server performance: https://aravindh.net/post/zfs_performance/
Linux has become a chaotic place to be, I agree.
Linux is terribly balkanized what with all the competing distros. There are no standards. This is one reason why Linux has not taken off on the desktop outside of tech circles.
systemd. It violates almost every *nix tenet out there, especially "a program should do one thing well". It's has a few benefits, but the negatives outweigh these, namely more and more programs outside of the base system now require systemd. This should never be. I and millions of others agree that an init system should be able to be tweaked as text files. Not happening now. The logs are stored as binaries when they should be plain text. Debugging is more difficult. A program should do one thing well. Full stop. There is always BSD and Slackware, and I don't think Slackware will adopt systemd, as their user base doesn't want it. Slackware is the oldest currently-developed Linux distro out there and the vast majority of users want it to remain true to its roots while still advancing.
I _really_ enjoy being able to apt-get or brew install pretty much any of the applications out there and am a bit worried about how that experience would be on OpenBSD. I guess the best way to find out would be to try it eh? :)
https://man.openbsd.org/fw_update.1
It basically requires you to copy the firmware to a USB stick and run the tool and then Wireless just works.
Personally, I’d be more interested into having openbsd as the standard for cloud deployments, a place currently inhabited by Ubuntu derivatives. If one could get the declarative goodness of Nix, the popularity of docker, and the reliability / security of openbsd, the world would be a better place.
I ended up having to switch to Slackware, though; lots of stuff I have to use for work that simply doesn't run on OpenBSD. If vmm gets to the point where I'm able to run Linux desktop apps with reasonable performance (and ideally a reasonable degree of integration with the rest of the system) I might try switching back.
You can search NYC*BUG board, where users submit their dmesg(8) output, e.g. there is a submission[1] for Dell Latitude e7270.
My most recent laptop upgrade ran like this: http://bsdly.blogspot.com/2017/07/openbsd-and-modern-laptop....
OpenBSD is great, of course, but my favorite thing about open source is the cross collaboration. Rather than dump literal decades of constant refinement to Linux and it's ecosystem because OpenBSD is much more elegant seems unwise. There are things Linux and the general Linux stacks could learn from OpenBSD (and should.)
I don't think the world would be better if OpenBSD were in the position Linux is in today (though I have a hunch the security story around FOSS stacks would be better.) I think there is a lot of good that Linux can do with its more fast-and-loose organizational structure.
Of course, a base OpenBSD installation is wonderful to work with and the damage can be minimized through the careful selection of packages.
I'm not sure that's fair.
Linux has snowballed, whereas OpenBSD hasn't. Linux is a much larger system. Is it surprising you find OpenBSD to be tidier?
Companies extend the BSD OSs with proprietary additions, then abandon the work and it gets lost. With Linux, everyone is forced to play nice and release under the GPL, and the work gets to live as long as people value it.
Hence the Linux kernel snowballing and taking over the world, whereas the BSDs have not, despite being at least as strong technically.
The better Linux gets, the more people target it, and the virtuous cycle continues.
Additionally, as it grows bigger and bigger, the more of the proprietary competition it crushes underfoot (sorry Solaris), and the more traction FOSS gets.
Citation or you only heard it.
Not even going to poke on your rest of statements.