News for hackers. Stuff that matters.
Re:An Introduction to OpenBSD [video] by brobdingnagians on Monday August 17, 2020 @07:58AM (#24186367)
I've grown to love OpenBSD recently (and BSDs in general). I started life using Windows all the time, switched to Linux when I went to university, had a fling with Macs for a few years, then almost exclusive with Linux again for years. In the last several years I discovered the BSDSs, and OpenBSD is now my daily driver. It is so beautifully simple. Configuring a secure server is easy. The config files are consistent. It just works.

I highly recommend installing and playing around with it. Like Lisp, even if you don't go permanent with it, the encounter will change how you think and what you expect in terms of elegance from every other system you use.

Re:An Introduction to OpenBSD [video] by 120photo on Monday August 17, 2020 @10:10AM (#24187366)
FreeBSD was the system where I really really learned to use UNIX like systems. I had a home server and followed book "How to Build a Server with FreeBSD 7" and that was a helpful guide. Michael Lucas' "Absolute FreeBSD" and his other BSD books are amazing resources. The FreeBSD documentation is also so well written there is little room for 3rd party books. The main reason I don't use BSD (well other than mac OS and iOS which you can argue are a fork of BSD) and go with Linux is because of work and if I do use Linux on a personal station there is just so much more software and more support. I would recommend any Linux user to go give the BSDs a try and see what a well thought out OS looks like.
Re:An Introduction to OpenBSD [video] by mikece on Monday August 17, 2020 @11:51AM (#24188363)
"I would recommend any Linux user to go give the BSDs a try and see what a well thought out OS looks like."

While I can see where both kernel and userland being built by a single team can have advantages, why is it necessarily the Linux approach to bolting the userland items as needed necessarily a bad thing? If a fictitious userland app such as `hnget` doesn't have good documentation is that a weakness of the linux distro or the makers of `hnget`? Sure, having one team brings the opportunity to leverage peer pressure to improve documentation or even to impose a "system level of docs quality".... but is it really so bad in Linux-land?

Re:An Introduction to OpenBSD [video] by linguae on Monday August 17, 2020 @02:37PM (#24190318)
I've been using FreeBSD for servers and as an occasional daily driver for the past 16 years. Linux is a great operating system that I use for my work and also in situations where I have Linux hardware support but not for FreeBSD (I prefer Linux for laptops over FreeBSD). It's not a bad thing that Linux's core utilities are not developed alongside the kernel; in fact, part of what makes the GNU toolkit so flexible is the fact that it runs on a variety of Unix-like operating systems instead of just Linux, a great thing for BSD users as well as users of lesser-used Unix-like operating systems like Minix, Solaris, and GNU Hurd.

But with that being said, what I love about FreeBSD is that the core utilities are very well documented. I believe the quality of FreeBSD's documentation is an artifact of the BSDs long-standing culture of providing high-quality documentation; some of the man pages have origins in AT&T Unix and the days of BSD up to 4.4BSD, but it's been updated over all these years to reflect changes. The AT&T Unix versions and the Berkeley-developed BSDs always had wonderful documentation, much of it written by Unix legends like Ken Thompson, Dennis Ritchie, Bill Joy, Marshall Kirk McKusick, and others. Even the post-Berkeley documentation still captures this spirit. Plus, I happen to prefer man pages to the info pages that GNU utilities tend to prefer since I can never remember the keys used for navigating the hyperlinks found in info pages. I also like how FreeBSD ships with some traditional supplementary Unix documents, which have helpful tutorials for classic Unix tools. The FreeBSD handbook is very well written, and it can be easily downloaded. For people who sometimes need to do kernel hacking, there's Marshall Kirk McKusick et al.'s wonderfully written "The Design and Implementation of the FreeBSD Operating System, Second Edition," which I have a copy of. I find the source code of FreeBSD easier to read than the source code of Linux.

FreeBSD reminds me a lot of PostgreSQL, another high-quality open source project with excellent documentation that happens to also derive from UC Berkeley.

Re:An Introduction to OpenBSD [video] by brobdingnagians on Monday August 17, 2020 @12:03PM (#24188490)
One example I like is the FreeBSD security page. It gives a nice overview of different things to think about and configure in relation to security. It brings a lot of information about separate systems into one conceptual place, which helps know if you are missing something obvious.
Re:An Introduction to OpenBSD [video] by massysett on Monday August 17, 2020 @12:22PM (#24188699)
As a user the end result is the same: my system has this thing ‘hnget’ that I need to use, yet it’s not documented. I don’t care whose fault it is.

Linux land can certainly be bad in the sense that many distributors don’t document the system. They just bolt stuff together, sometimes with multiple layers of bolting (Distro X is based on Ubuntu that’s based on Debian, so which method am I “supposed to” use? If I use this new shiny package manager front end, will that interfere with the old command-line tool that works on Debian?)

For this reason I shy away from derivative distributions. But even then, the Linux user land and kernel are not models of superior documentation.

Re:An Introduction to OpenBSD [video] by valarauko on Monday August 17, 2020 @10:18AM (#24187460)
I've been on linux for many years, and have been growing curious about BSDs, but confused over the various BSDs variants. I'm still unclear of how exactly BSDs are superior to linux. Could you shine a light on the different BSDS, and perhaps a recommendation?
Re:An Introduction to OpenBSD [video] by owenmarshall on Monday August 17, 2020 @10:38AM (#24187687)
The biggest thing you'll find over Linux (IMO) is the advantage of having one team build things. Linux the OS is actually the Linux kernel + userspace software, and those pieces are built independently. With the BSDs, the team is building the userspace and kernel together. You end up with a small, well-designed system that fits together nicely.

As an example, OpenBSD gives you a HTTP server, load balancer, and firewall right out of the box – and they all make use of pledge(2) and privsep and other security designs in a very consistent manner. And the documentation for the whole system is top-notch: you can read their manpages and not have to resort to Googling things.

I'd recommend you spin up OpenBSD on a VPC (try Vultr or DigitalOcean) and kick it around.

Re:An Introduction to OpenBSD [video] by danieldk on Monday August 17, 2020 @02:29PM (#24190219)
Linux the OS is actually the Linux kernel + userspace software, and those pieces are built independently. With the BSDs, the team is building the userspace and kernel together. You end up with a small, well-designed system that fits together nicely.

That's a blessing and a curse. While the BSD approach leads to more consistency, the Linux approach allows the ecosystem to move faster. In BSD projects, progress is often hampered, because proposals to drastically change subsystems is met with inertia, and then nothing happens. In Linux the inertia is there, but nobody stops people from implementing an alternative implementation, because the pieces are relatively decoupled, and then convince distributions to adopt the replacement.

This is why Linux ecosystem went from System V init -> Upstart -> systemd. Similarly, X11 -> Mir/Wayland -> Wayland (although Wayland could be adopted as a default on BSDs as well). Or chroot -> LXC -> Docker (or more generally cgroups + user namespaces). Although controversial (every change leads to some controversy), technically systemd and Wayland are substantial improvements to their predecessors.

Of course, the downside is that the integration is left to the distributors and the documentation may be inconsistent or uneven.

---

Another thing to take into accounts when looking at BSDs is that the BSDs have far fewer contributors than the Linux ecosystem. So, you might find that it lacks basic things such as 802.11ac support (though there has recently been movement in FreeBSD again) or support for the newest GPUs.

Re:An Introduction to OpenBSD [video] by sn on Monday August 17, 2020 @11:55AM (#24188401)
One thing we couldn't figure out from the documentation is encrypted root with serial console: https://prgmr.com/blog/openbsd/2020/05/08/openbsd-encrypted-... I have gotten it on someone's TODO list to upstream that work though it hasn't happened yet.
Re:An Introduction to OpenBSD [video] by billsix on Monday August 17, 2020 @11:17AM (#24188072)
Re:An Introduction to OpenBSD [video] by brobdingnagians on Monday August 17, 2020 @11:51AM (#24188361)
OpenBSD is very elegant and secure; upgrading is as simple as 'sysupgrade'. The developers use it for desktop/laptop usage, so setting up X is supported in the installer. They have a lot of their own lean, minimalistic applications that focus on security and code correctness. Things like httpd, relayd, OpenSSH, their own secure X11 (Xenocara), pf firewall, and lots more. I love setting up servers with OpenBSD because for most things those work very well for my needs. They work well together and do what they do well. I use it for my desktop, application servers, load balancers, and so on.

FreeBSD has noticeably higher performance, more packages, and is great for things like databases, virtualization, or application servers that are behind a load balancer or firewall. It has a lot of the OpenBSD applications ported to it though, so you can run pf or relayd on FreeBSD just fine. It's a bit more convenient to run FreeBSD for some things because of extensive packages (FreeBSD has things like C++ actor framework in packages, doesn't currently compile on OpenBSD). The jetbrains IDEs are better supported on FreeBSD than on OpenBSD too. (I've made some personal modifications to get things working on OpenBSD). Integrated ZFS is really nice for databases and storage servers as well.

I don't have much experience with NetBSD, but it is portable to all kinds of things (e.g. toasters), and they have done some neat things with rump kernels.

Dragonfly BSD has some cool experimental stuff with SMT and hammer filesystem, but I haven't played around with it much.

EDIT: A few nice things in comparing BSD to Linux. ZFS on FreeBSD is nicely integrated w/ the kernel. In general, I think solutions in BSD take longer to come around than Linux, but when they do they are well designed and thought through. Things just seem to fit better. From what I've observed, the community thinks things through and often recommend that someone use Linux if it would work better for the use case. That is a fantastic level of maturity; like when the hardware store guy recommends the competitor store down the street, because they will have what I need.

Re:An Introduction to OpenBSD [video] by valarauko on Monday August 17, 2020 @12:18PM (#24188667)
Is it possible to use a BSD as a daily driver on your primary computer? Compared to a usual linux disto (eg, Pop! OS, my current driver), what's the drawbacks?
Re:An Introduction to OpenBSD [video] by owenmarshall on Monday August 17, 2020 @02:16PM (#24190073)
I daily drive OpenBSD on a Thinkpad x220 for side gigs/personal use. The drawbacks:

* Hardware support is great for me because I use a Thinkpad: most OBSD devs use Thinkpads as their laptops. I tried on a work-issued Dell and the driver support wasn't there + some odd kernel panics happened. Target "current generation - 1" and you'll likely have less to worry about.

* Expect performance to take a hit – every so often Chrome exhibits graphical tearing, slows down, etc. The pages I frequent don't tend to cause this issue, but if your browsing is JS to the max you might have some headaches.

* You'll find tons of packages, but should expect support to be lagging behind Linux. Just a function of adoption, really. Additionally, OBSD compiles some packages with security functionality that isn't present in other OSes, so expect a SIGABRT or two that you might otherwise not see.

Really though, it depends on your needs. It fits mine perfectly.

Re:An Introduction to OpenBSD [video] by _-david-_ on Monday August 17, 2020 @03:09PM (#24190676)
Are you able to watch Netflix with Chrome (I assume its actually Chromium?) on OpenBSD? Last time I checked Widevine wasn't supported on OpenBSD.
Re:An Introduction to OpenBSD [video] by anthk on Monday August 17, 2020 @03:47PM (#24191146)
>every so often Chrome exhibits graphical tearing, slows down

Force HW acceleration in Chromium (about:flags) and tweak a bit the /etc/login.conf (cap_mkdb /etc/login.conf as root after editing).

Re:An Introduction to OpenBSD [video] by retro64 on Monday August 17, 2020 @01:12PM (#24189264)
Yes, but maybe not 100%, depending. I have been using FreeBSD as my primary driver since 2006, and have been without a Windows box or partition since Win 10 was hatched. But, while I can accomplish 99% of what I want to do in BSD, I use Linux for the rest.

I’ll resist the fanboi post and just say the usual things you hear about BSD vs. Linux (good and bad) are true. Personally I appreciate the rock solid consistency (configuration, file system, runtime) I’ve gained from FreeBSD, but it’s not a commercially supported OS and there are times I’ve had to fall back to Linux (GOG games are one example).

Re:An Introduction to OpenBSD [video] by valarauko on Monday August 17, 2020 @02:18PM (#24190098)
I'm an academic (bioinformatics), and my use case is largely browsing, reading pdfs, drafting scientific reports in markdown (trying to move to emacs and org-mode) & docx, and writing code in python & R. I do rely on many bioinformatics packages, though most are available through conda. Probably 80% of my computer time is spent in Firefox or the command line. I've been linux only for over 10 years now, mostly on Ubuntu or Pop! OS. I'll be moving to a new postdoc position in a few months, and is a opportunity to do a clean install on my creaky Intel Core i3 laptop. I've been leaning towards Arch/Manjaro/Arcolinux, but BSDs have recently popped up in my periphery.

Would you suggest FreeBSD for my use case? Or another BSD? Or something else altogether?

Re:An Introduction to OpenBSD [video] by retro64 on Monday August 17, 2020 @04:55PM (#24191967)
I have very little experience with the other BSD flavors, but FreeBSD will be different than Linux, for sure. I used to use Slackware and I would say FreeBSD is fairly comparable from a “clean slate” perspective (although now it’s gotten much more full featured). On the surface you will get the usual support for Firefox, your choice of windows manager (I use xfce) and so on, but expect to do some tweaking. Using xfce as an example, the basic install is very different and fundamental than what you might find on something like Linux Mint, but if you see something you like, once you know you can do it, it’s typically not too time consuming to figure out how. More of this will be on your shoulders though. Sometimes you’ll find small things like right clicking on an archive to trigger an unpack won’t work out of the box, you’ll need to add that yourself. But once you get things dialed in, they stay.

After some reflection, I think the number one reason I’ve stayed with FreeBSD all this time is it’s so dang stable and it just works. Historically speaking, I can’t think of anything radical ever happening since I’ve been using it. When it comes time to upgrade it’s been fairly painless which boils down to making a backup and running a couple commands (crossing your fingers is optional, but I think it helps).

TrueOS may be tempting but my experience with it was not very good. In fairness maybe it’s better now. I just use the vanilla release and chug along and won’t deviate again. No point.

But for you – not sure. I write code for my bread and butter and am steeped in technology – I most certainly have blinders regarding the complexity involved, but again, if you’ve been using Linux for 10 years this may not be an issue for you.

*Edited for ramble.

Re:An Introduction to OpenBSD [video] by valarauko on Tuesday August 18, 2020 @01:18AM (#24195533)
>TrueOS may be tempting but my experience with it was not very good. In fairness maybe it’s better now.

TrueOS development has been discontinued as of May (?) 2020.

Xfce is more than sufficient for my needs - I've been experimenting with TWMs, i3 most recently.

As a long term linux user, I'm well accustomed to spending exponentially more time working on the system rather than actually using it. As biologists, our computational skills tend to be middling, so dogfooding linux as my daily driver was a means to learn. If a BSD daily driver takes my learning up a notch, worth it. The top level comments reference to "elegance" and "well designed" is what struck me - these are not things I'd associate with any of the linux distros I've used.

Re:An Introduction to OpenBSD [video] by LargoLasskhyfv on Monday August 17, 2020 @03:34PM (#24190964)
Do you need CUDA? If so, forget it. Because it is not there on any BSD. OTOH creaky i3 suggests you don't.

edit: I think one of the most important and convenient things is to get a NAS or build a small fileserver. That way you can decouple most of your personal stuff from the systems you are using via NFS/SMB/CIFS and give a damn about interoperability of filesystems, thereby gaining the ability to try out what works best for you without much hassle.

Re:An Introduction to OpenBSD [video] by valarauko on Tuesday August 18, 2020 @01:02AM (#24195439)
I do use CUDA, though not on my laptop. My usual workflow has been to fiddle around with the code on a minimal dataset which takes up most of my time. Once I'm happy with the logic and how things work, the heavy crunching (if required) is offloaded to CUDA workstations/servers.

The thing that gives me the most pause is how fractured the academic bioinformatics software scene is, and how poorly they're maintained once published. I've often run across requirements for GCC beyond what's included in the current Ubuntu LTS, for example. In my old lab I kept a CUDA workstation running the latest Manjaro for these eventualities, among others.

Re:An Introduction to OpenBSD [video] by aaron_m04 on Monday August 17, 2020 @01:17PM (#24189315)
For the use cases I care about, the drawbacks (for OpenBSD) are:

* no filesystem support for ext4 or btrfs

* no working adb package (at least not for USB)

* printing is hard to setup

* no rustup (you must use current to not fall behind the Rust community)

* no native Discord app, which means screenshare doesn't work (neither sending nor receiving). I can still do text and voice chat with Firefox.

That said, I have been using it as my daily driver for over a month now. Last time I tried it as a daily driver back in 2016 I had to switch back to Linux.

Re:An Introduction to OpenBSD [video] by LargoLasskhyfv on Monday August 17, 2020 @03:22PM (#24190797)
When does that effing toaster meme finally die? Why do you repeat it? It may have been true in the early days of Linux, but nowadays it's just a fairy tale. Compare the architectures Linux runs on, vs. NetBSD. And then STOP!

edit: I like NetBSD, but that meme is just non-sense.

Re:An Introduction to OpenBSD [video] by anthk on Monday August 17, 2020 @03:46PM (#24191131)
NetBSD still runs on the Amiga and the Atari.
Re:An Introduction to OpenBSD [video] by LargoLasskhyfv on Monday August 17, 2020 @03:54PM (#24191242)
So does Linux, if you absolutely have to. Meanwhile it gained the ability to run on architectures no BSD ever heard of.
Re:An Introduction to OpenBSD [video] by victorgama on Monday August 17, 2020 @10:19AM (#24187470)
Out of curiosity: what do you work with? Asking since I’d like to move to OpenBSD as well, but several tools are not available. For instance, the company I work for relies heavily on Docker. :(
Re:An Introduction to OpenBSD [video] by phone8675309 on Monday August 17, 2020 @02:37PM (#24190316)
Not OP, but daily OpenBSD user.

My desktop machine runs OpenBSD (after getting off of OS X) but I have a few headless Linux machines for things that only run on it.

Re:An Introduction to OpenBSD [video] by brobdingnagians on Monday August 17, 2020 @11:54AM (#24188390)
Yeah, that has been an issue at times. My team uses Docker, luckily it is only a few applications and it was easy to set them up to just be run directly. For heavy Docker usage though, that could be a deal breaker.

I also had to custom compile the pty4j and purejavacomm libraries to get the jetbrains IDEs to work to my satisfaction.