Any love for the BSDs?

Soldato
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
We all know this is a relatively slow sub-forum, but even then I rarely see anything mentioned of the various BSDs. Are there any fellow lovers of the OS here? I run GhostBSD (XFCE) and FreeBSD (Mate) mostly, but I do mess around with DragonFly BSD when I get chance. The latter is astonishingly quick, even compared to other BSDs or Linux.

That said we do still have mostly Linux boxes, though we are a Windows-free household. Our devices (from my firewall/router whitebox and back) are a mix of macOS, FreeBSD/GhostBSD, DragonFlyBSD, various flavours of Linux, and iOS. I'd be happy to mostly lose Linux, too, as I much prefer the centralised solid nature of BSD (i.e. a consolidated in-house core OS, rather than a kernel plus tons of random userland stuff that varies distro-to-distro).

Unfortunately the lack of Widevine for the BSDs (DRM video playback for Netflix, Amazon et al.) is a bit of a killer, and not yet having kernel level support for WireGuard VPN is also a shame - though it doesn't really seem to affect performance.

GwhfJLK.png

That's a WireGuard connection (userland tools) to AzireVPN's London server on a FreeBSD desktop. Anyway... Are there any other BSD beards here, or just me? :D
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
If you're seriously interested, read this blog/wiki/ramble about the major differences. It's very well written, and was one of the main reasons I dipped my toes properly into BSD in the first place. After a day of 'culture shock' moving from a couple of decades of Linux, I was seriously impressed. BSD is much more centralised and concurrently developed than Linux, and (imho) has a 'better' licence. It also traces its ancestry directly back to Unix software from the 60s, so it has real 'pedigree'. Linux is a (now rather large) kernel. Each distro takes a 'snapshot' of the kernel and then grabs lots of different userland apps from lots of different sources - everything from openSSH to Firefox - and 'tacks' it on to the kernel. Each distro is, essentially, one big jumble of software from thousands of different places to make it usable (even from the CLI/server).

BSD on the other hand, is developed as-is and in house as a complete 'core' OS. You can still add tens of thousands of things on top (pretty much almost everything available for Linux, and more), and it's even more flexible than Linux in that regard. However, you can download the latest FreeBSD (for example), install it, and you have a whole OS ready to deploy and use. It will be able to handle everything from file storage through to 100Gbps+ file serving or running an ISP (and many companies - including Netflix) use it for just that.

If you downloaded the Linux kernel you've got... well... a kernel. Good luck with that. :D

The 'consolidated' nature of BSD makes it inherently more stable, secure and reliable. For example in the history of OpenBSD there has been a grand total of two remote exploits in its entire multi-decade history. Two! Most 'modern' and commercial OS (heck, even just single programs) have many more than that a week! BSD also has a very nice easy flow to it and the code is very easy to read and understand. You can learn most of what you need to know in less than a few hours if you already have Linux experience. The online documentation (and man pages) are far superior, and the community is a heady mix of sysadmins, engineers, academics and others who use the system professionally and also happen to develop for it. It's a great community to learn and engage with on the whole.

No systemd, no convoluted outcomes, but still all the choice. Want to add to the core OS and add a desktop environment to it? Go for it - just install xorg and the DE of your choice and you're done. Talking of installing, you can install binaries (eg pkg install mate-desktop), you can build from source... or you can use Ports. Think Arch AUR on steriords and done right. The Ports Tree is a map of the software you 'could' install, saved to your machine in /usr/ports. You can search through it in a few seconds using the terminal and then simply cd to the appropriate directory and install the latest version. For example:

cd /usr/ports
portsnap fetch (grab the latest copy)
find openvpn (output : /usr/ports/security/openvpn-2.4.6)
cd /usr/ports/security/openvpn-2.4.6
make
make install
make clean

Done. Yes it's a bit more typing than 'apt install xyz', but it opens up a simply astonishing range of extra software ready to be built and customised to your exact machine and environment. You can always just stick with binaries, but ports are very useful at times. At first you can find it a little overwhelming - installing xorg (though in the end it's as simple as 'pkg install xorg' and it will configure itself), adding a DE and setting things up how you like. With the excellent free Handbook available on each BSD OS website on hand, you quickly find answers (usually just a different way to doing things than Linux), and rapidly realise how 'common sense' and easy things actually are. For example, most of your config/options will go into a single file (/etc/rc.local) and are as simple as - for example - 'gnome_enable="YES"' and so on. Once you're over the initial hurdle of 'twigging' how it works it's a very easy OS to work with and everything is logically laid out and very well (exceptionally well, in the case of OpenBSD) documented.

It still astonishes me how flexible and powerful BSD is, even compared to Linux. DragonFly BSD with Hammer2 (file system) is almost comically fast even doing something as simple as opening a file manager. You thought Windows/Debian/whatever was fast already? LOL... No. It's even more amazing when you consider DragonFly BSD was basically mostly hand written by one single guy, who still runs the project. He also single-handedly wrote the Hammer and Hammer2 file systems, which are essentially multi-threaded modernised ZFS type systems.

Finally there's licensing. The BSD licence is much more permissive and far less ideological than the GPL. It basically says 'Do what you want with this code. Use it commercially if you like. Just don't sue us and make sure you leave the copyright notice in for the University of Berkeley'. Simple. Hence it's very popular with companies like Netflix, who run their entire CDN on FreeBSD and have contributed a monumental amount of code and tweaks to the networking, IO, and other stacks in the kernel. FreeBSD can now serve video at around 100Gbps without flinching and has a very optimised network stack. Not to mention most ISPs use it for similar reasons.

TL,DR: BSD is pretty awesome once you start to play with it and learn just how powerful and flexible it is. You can do anything with it, even easier than Linux, and it's hella secure and fast to boot. Win. You start with a couple of hundred MB ISO, and before you realise it you've learnt a ton about how to actually administrate your system and are able to install various DEs, configure hardware and drivers using config files, and know exactly what's going on under the hood. You also have a custom made system that's perfect for you and your needs. I like it a lot... but Linux is still cool. ;)
 
Last edited:
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
Sorry mate, I actually wrote this reply about an hour after you posted. Today I picked up my phone and switched tabs in Safari and found my post written but not sent. Here it is, and sorry again for the delay.

Try GhostBSD mate as they have a live USB. They’re merging with TrueOS soon as they’re similar projects. I find GhostBSD much more polished than TrueOS. Either is easy to use though. FreeBSD itself is actually very easy to install and add a GUI if you ever fancy learning a bit. It’s only a case of next next next then pkg install mate xorg, etc.
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
I ran into something called Project Trident, that is prob. the combined efforts of both teams... They are the TrueOS people...

Yes that's right. Trident will be a continuation from TrueOS and GhostBSD are jumping on board.

I like Mac OS X... ;)

Me too, though it's 'macOS' these days. :p They'll pull my MBP, iPhone X, iPad etc from my cold, dead hands. It's hardly BSD these days though (but still my favourite OS).
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
Mostly pkg but I have used ports for a few things (including WireGuard). I like how with ports you get full search capability and can then compile and build the software in one easy step (make install clean), with the resulting install being totally optimised for your particular machine.
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
@Rainmaker, that was a pretty persuasive post! I'm going to give it a try as a result.

Cool. You'll enjoy it I'm sure. I'd strongly suggest you give something like GhostBSD a try first, as it has a pre-built GUI on top (it's just pure FreeBSD 11.2 underneath). Once you're more comfortable and have read the FreeBSD Handbook, it's not difficult to install from scratch and add your own DE, WM etc. Think of it as Arch Linux vs Ubuntu.
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
The third edition of Absolute FreeBSD came out last month which I have ordered.

I'm looking forward to using FreeBSD for a project I am working on. Originally I was going to use Linux but I think FreeBSD with jails and bhyve will be a better option.

I finally received my pre-order of the book from Amazon last week. It's *huge*. :o I'm looking forward to reading it.

Initial Benchmarks Of OpenBSD 6.4, DragonFlyBSD 5.3, FreeBSD vs. Linux

DragonFlyBSD 5.2.1 -
DragonFlyBSD 5.3 20181029
FreeBSD 11.2
FreeBSD 12.0 Beta 2
OpenBSD 6.4
Clear Linux 26020
Fedora Server 29
Ubuntu 18.04.1 LTS

www.phoronix.com/scan.php?page=article&item=8-linux-bsd&num=1

Phoronix is a decent website and Michael knows his stuff. BSD is quite focused and excellent at what it does. There were no benchmarks for pf under 10Gbps traffic or DDoS while still happily serving content, or routing 100Gbps of video on demand from a server the size of a pad of paper - both things FreeBSD excels at. BSD is solid, reliable and consistent, but it's not Linux. I just saw your earlier question btw, sorry. I don't use Lumina (I hate it) so I can't help you there sorry. I prefer XFCE on BSD.
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
The amount of hate that Lumina gets online i think i'll try it out in Gnome Boxes rather than a real install. :)

Have fun playing, but when you install it on bare metal just install the FreeBSD base and then add xorg and XFCE/Gnome/whatever. Freedom of choice means I'm free to think Lumina sucks. :p
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
I've been reading Absolute FreeBSD today and have to say it is a pretty good book. Some of the humour is a bit silly, but the information is useful for someone reasonably new to FreeBSD. It is undoubtedly a decent companion volume to go along with the FreeBSD handbook.

Agreed. I'm looking forward to being able to read mine properly. If you're in any way network inclined, the Book of PF is absolutely brilliant also. It's due a re-write I reckon, but some naughty people have put PDFs online if you wanted a taster before deciding whether to pay out for a proper paper copy.
 
Soldato
OP
Joined
18 Aug 2007
Posts
9,710
Location
Liverpool
I've gone the other way this week. I'm currently reading 'Mastering Linux Security and Hardening: Secure your Linux server and protect it from intruders, malware attacks, and other external threats'. Let me know how you find the book, I've eyed it on Amazon more than once.
 
Back
Top Bottom