Starting to get into Linux/unix systems. Is there a discipline, where bsd is clearly the better option than linux? reddit / BSD ---------------------------------------------------------------------- Wemorg · 2021-05-11 19:47 So I am a trainee in IT and starting to learn the unix/linux world. One of my coworkers is a big fan of bsd systems and recommended me to try bsd, but for now I haven't really seen a purpose where bsd is clearly the better option. Since BSD systems aren't too common I'd like to know if bsd would be a better option for certain tasks rather than linux. As far as I know you can do most things you can do with bsd with linux too and vice versa, but some things are probably better on one of the systems. Thanks in advance :D ---------------------------------------------------------------------- [deleted] · 2021-05-11 19:59 [deleted] ---------------------------------------------------------------------- Wemorg · 2021-05-11 20:02 I am talking mainly about that the machine is efficient rather than easy to use. Speed, security and stability in everyday use. ---------------------------------------------------------------------- LousyMeatStew · 2021-05-11 20:11 > Speed, security and stability in everyday use. I think the issue here is that you're assuming "everyday use" is a consistent thing. "Everyday use" for whom? A web developer? A statistical researcher? A DBA? Honestly, I would say that since the context is about getting into IT, you need to start with the application and requirements and then work your way down to the OS level. For example, if you're tasked with working on a PeopleSoft deployment, BSDs are probably not even an option. ---------------------------------------------------------------------- nodate54 · 2021-05-11 20:12 FreeBSD is a fantastic OS for servers but not so much desktop due to lack of software and WiFi support. Does have a Linux comparability layer you can use to run software. Personally I would start with Linux and go from there. Ubuntu, Mint or PopOS would be good choices. Once you have got to grips with Linux then give FreeBSD a go. There are some similarities but also some big differences ---------------------------------------------------------------------- [deleted] · 2021-05-11 20:14 [deleted] ---------------------------------------------------------------------- Wemorg · 2021-05-11 20:14 Ok sorry, I misunderstood your question. I would probably use it as desktop workstation privately (office stuff/web browsing) or as home server os (virtualization/file server/webserver/firewall for dmz). ---------------------------------------------------------------------- Wemorg · 2021-05-11 20:18 I do like to program a little in my free time in c and c++, but not full scale software development (atleast for now). Is there a prefered choice, because my coworker uses FreeBSD, which I would most likely go with then. ---------------------------------------------------------------------- LousyMeatStew · 2021-05-11 20:23 Maybe I'm getting too hung up on your comment about getting into IT. If you just want to install an OS and play around with it and get to know it deeply, then you can probably just pick one at random. If you're looking to leverage your experience into something you can apply towards your job, then you should focus your attention based on what tends to get used in business environments. As far as an OS goes, that mostly means Windows Server, RHEL and Ubuntu LTS (or derivative distributions). FreeBSD, if you do run into it, will probably be in a NAS or network appliance scenario. For virutalization, VMWare is still king so maybe getting some experience with Photon building virtual appliances might be worth your while. But both containers (e.g. Docker) and cloud services (AWS, Azure) are getting more and more popular these days. On the other hand, if you're looking to just have a swiss army knife of skills in your back pocket, then among the BSDs, I would suggest either FreeBSD or OpenBSD would be good choices - this would be for scenarios where you need some sort of functionality for smaller scale deployments or testing where you want to be able to stand up something quickly. ---------------------------------------------------------------------- [deleted] · 2021-05-11 20:29 [deleted] ---------------------------------------------------------------------- Wemorg · 2021-05-11 20:32 This isn't about what I am learning at work, but rather I want to learn linux/unix/bsd on my own due to me being fed up with windows and the possibilities of what you can do with it. The way my training goes is that I go to school 1 week, where I learn basics of networking, programming and system administration and 2 weeks at my company, where I learn what they mandate. This means actual learning happens at school and at work I am cheap labour mostly. So I have to learn everything outside the school curriculum mostly for myself. I have so far set up privately a debian kvm home server, where I run 2 vm as web server and nas. Currently thinking about a dual boot for my actual desktop pc to learn Linux and/or BSD as a desktop rather than server. I've been thinking about setting up my debian server with another distro or bsd so I can get some experience with that, but currently still thinking, because I have little knowledge about BSD ---------------------------------------------------------------------- Wemorg · 2021-05-11 20:34 So BSD is mostly better for compatibility of software and software licensing due to the openess of the bsd license? ---------------------------------------------------------------------- LousyMeatStew · 2021-05-11 20:46 Ah, got it. Ok, that makes sense. If that's the case, then given that you say in the other reply that your coworker uses FreeBSD, then go with FreeBSD if only so you can have your coworker as a resource to learn more. Honestly, the real takeaway here is that the choice of an OS is not made in a vacuum. Regardless of the intended purpose, the practical considerations will generally outweigh any technical difference at the OS level, e.g. having a coworker who is also using FreeBSD. ---------------------------------------------------------------------- vermaden · 2021-05-11 20:49 Here: [https://vermaden.wordpress.com/2020/09/07/quare- freebsd/](https://vermaden.wordpress.com/2020/09/07/quare-freebsd/) ---------------------------------------------------------------------- Wemorg · 2021-05-11 20:52 This looks very promising. I will take a look at it. Thanks man :) ---------------------------------------------------------------------- vermaden · 2021-05-11 20:54 No problem. Feel free to ask me anything about FreeBSD. ---------------------------------------------------------------------- [deleted] · 2021-05-11 20:57 I would say yes, but that's really my just my opinion. The BSDs are organized differently from Linux. I read something once that "BSD is engineered, Linux is grown," and that seems to say it pretty succinctly. For me, I like the organization and structure of the BSDs (FreeBSD specifically, but I don't have experience with the others) better than the organic evolution of Linux. But that's really just a personal preference, I think you can learn to use Linux well and do a great deal with it. BSD appeals to the part of me that appreciates the beauty in good design. But if you're mostly interested in more down-to-earth, will it get the job done reasons for preferring one over the other, Linux is still a very capable system that can do just as much as the BSDs can. ---------------------------------------------------------------------- Yaazkal · 2021-05-11 21:00 I hope you enjoy this article as I do when share it every time I see this kind of questions. Personally I'm migrating everything to FreeBSD, also using it on my pc and laptop since last year. Technical reasons to choose FreeBSD over GNU/Linux https://unixsheikh.com/articles/technical-reasons-to-choose-freebsd- over-linux.html ---------------------------------------------------------------------- dressupgeekout · 2021-05-11 21:03 Like others have mentioned, it really \*really\* depends on what you're trying to achieve. Sometimes Linux is your only option, for whatever reason. Maybe it would help you to see some examples, some success stories in IT. For example, I recall that Netflix depends heavily on FreeBSD, not Linux, to get their job done. Netflix somehow determined that FreeBSD has a certain edge in networking performance that Linux simply does not. Furthermore, your "discipline" question heavily depends on which flavor(s) of BSD you're comparing against. FreeBSD is known for its performance. OpenBSD is known for its rock-solid security features. NetBSD is known for working well in embedded systems. DragonFly's got the HAMMER file system which in my opinion is super interesting and useful. They're all super different from one another, therefore it's difficult to compare "all of Linux" against "all of BSD." With all that being said.... personally, I find the BSDs to be more hackable/tweakable/inspectable than most Linux distributions. (I'm aware that some Linux distros are more customizeable than others, but I fell in love with NetBSD's simplicity a long time ago, hehe) You might also see the BSD's direct lineage to the "original" Unix as a positive, too. Maybe. Remember that GNU is Not Unix ;) ---------------------------------------------------------------------- segfaulting · 2021-05-11 21:08 > FreeBSD is a fantastic OS for servers but not so much desktop If you keep saying that it might just become true. ---------------------------------------------------------------------- [deleted] · 2021-05-11 21:13 Haha, my thought exactly :D \*looks over at my FreeBSD desktop I'm writing this on right now\* ---------------------------------------------------------------------- nodate54 · 2021-05-11 21:28 I love FreeBSD but just saying it how I see it. I would use it on desktop over Linux if WiFi and software support was there but it isn't. It's a shame as it's brilliant but the 2 reasons I mentioned really hold it back as a desktop OS ---------------------------------------------------------------------- [deleted] · 2021-05-11 21:42 Eh well systemd may be different but it does a lot of things right, it's got service management down in a way that basically no other init systems have and it's incredibly fast. I really want to like FreeBSD and switch to it, but its antiquated slow init system built on custom written shell script just puts me off. ---------------------------------------------------------------------- freakinunoriginal · 2021-05-11 21:49 >the dirty hippy kool-aid around their ideals While I prefer the BSD/MIT-style license when possible, that's more out of a naive hope that people (or companies) will voluntarily **choose** to "pay it forward" if they do any meaningful development. Which seems like the truly hippy attitude to have, and I don't think that should be a bad thing. And to a certain degree it works out for us, so I'm not worried about the future of permissively-licensed software. The GPL is the cynical use of the system against itself - which I don't mean in a negative way, it's a smart/realistic approach. Software falls under copyright? Well, if it's **my** copyright, I'll license that out under the condition that others do the same. Don't like it? Invent your own wheel, find a more-free (BSD-licensed) wheel, or pay for a proprietary wheel. Closed/proprietary is the default under the law of most countries. Anything else started with someone choosing to participate in something different. I might not be thrilled by the prevalence of GPL'd projects, but the license doesn't need to be characterized as a "virus" or its users denigrated as "dirty hippies" when trying to describe the functional and philosophical differences between licenses. ---------------------------------------------------------------------- [deleted] · 2021-05-11 22:03 [deleted] ---------------------------------------------------------------------- northrupthebandgeek · 2021-05-11 22:53 > Edit: Today we see r/BSD support the GPLv3 over the BSD license. More like today we see /r/BSD prioritize comments which are relevant to the topic rather than comments which parrot Microsoft-esque FUD from 1999 apropos nothing. ---------------------------------------------------------------------- wfaulk · 2021-05-11 22:57 systemd is everything that Unix shouldn't be. It may do certain things well and have the occasional nice feature, but its architecture is just *wrong*. ---------------------------------------------------------------------- [deleted] · 2021-05-11 23:09 Heh you're definitely right about speed not being that much of an issue, abd were I using FreeBSD I'd probably need to reboot less in the first place because the base system is more stable. Maybe I'm just really unlucky or something but I keep running into weird kernel issues in Linux, leading to stuff like unkillable processes and having to reisub to get the system rebooted somewhat safely, and I'm getting pretty sick of that... macOS is my daily driver now but maybe I really should give FreeBSD an honest try as second OS on this machine. ---------------------------------------------------------------------- [deleted] · 2021-05-12 00:52 [deleted] ---------------------------------------------------------------------- victisomega · 2021-05-12 01:04 There are a few things that one could argue that BSDs do better than Linux base OSes, and the same argument could easily be made to counter it. Having run FreeBSD for a workstation for years it seems to always boil down to the following features people praise in the BSD realm. (Please note I am not an expert in all things BSD, so please feel free to correct/add to these brief descriptions if you read this comment and see something amiss) 1. ZFS ZFS is a formerly Sun developed file system for Solaris that has been immortalized and praised for its resiliency, its configurability, and did I mention its enterprise grade resiliency? Joking aside it’s a fantastic file system, with a LOT of zealots that champion its abilities. In real word brass tacks, it’s great, but it’s not bulletproof, and that can lead many to learn that the hard way. Linux based systems don’t see a whole lot of mainstream support for it, but they need it less and less with technologies like Btrfs and LVM. 2. Network performance. FreeBSD has had a track record in the past of outperforming Linux based cousins in the network traffic department, and while in 2021 I’d love to read more articles that pit the two against each other in pure performance tests. FreeBSD did receive a number of commits from Netflix, as it runs their networking backbone. Now I say this is a benefit to FreeBSD, but I’ll be the first to admit I don’t know what all they committed, how specialized it is to their use case. In every day computing you’ll probably boil down to deciding if netfilter/firewalld/ufw/iptables is your thing, or if you like ipfw/pf/ipfilter. 3. Jails Again this is more of a seen/heard rather than used myself so take with a grain of salt from me. Jails was described to me as Docker for BSD before Docker was a thing. Again, Linux based cousins have this too in the form of containerd, Docker as specified above, podman, and LXC. 5 years ago I’d have argued that jails is more mature and stable, but docker has been in my professional toolbox for years because it helps me solve problems on production systems faster without me having to worry too much about it changing radically on me. Now all three of these examples taken to their extremes, you’ll find a clear winner in Linux based systems or FreeBSD systems based on your use case, but in general use? It’s what you prefer, not necessarily what’s “better”. Note that I also only used FreeBSD as that’s the OS I’m most familiar with, but I’m a novice compared to some of the good folks here. Give it a try, and see if it’s a good fit for you. ---------------------------------------------------------------------- northrupthebandgeek · 2021-05-12 01:40 > OP wanted to know of a reason to pick linux or BSD. And how is GPLv3 or any version of the AGPL relevant to that? Linux is very explicitly GPLv2 only. And further, you could very easily describe such licenses without referring to them as "viruses" and other nonsense. Like, 90% of your comment is excessive; just because some of us might agree with it doesn't mean it's relevant. > So fuck off with your "ewww, microsoft fud" horseshit. You first with your "ewww, GPL" horseshit. ---------------------------------------------------------------------- [deleted] · 2021-05-12 02:14 [deleted] ---------------------------------------------------------------------- northrupthebandgeek · 2021-05-12 02:23 > Since you didn't actually read what I wrote, let me try to point you to the first thing I said: Software Development. That doesn't answer the question. What do licenses that neither Linux nor any BSD use have to do with software development involving either? Again: Linux uses neither the GPLv3 nor the AGPL, and barring someone resurrecting dead maintainers never will use said licenses. So why even mention them? Who cares? ---------------------------------------------------------------------- [deleted] · 2021-05-12 02:34 [deleted] ---------------------------------------------------------------------- Horyv · 2021-05-12 03:11 I rarely get to see folks who can appreciate the fact that sometimes simpler is not less, or worse, and that a lot of work goes into making complex things into simple things. I appreciate the product of that work in BSD, it’s elegant and deliberate. ---------------------------------------------------------------------- FOSSilized_D43mon · 2021-05-12 03:55 When it comes to speed Linux always wins out, in terms of stability it depends on the OS (i.e. Ubuntu vs. NetBSD, and so on). In terms of security OpenBSD wins out every time and by a **massive** margin. ---------------------------------------------------------------------- singlthreded · 2021-05-12 04:40 Linux has better hardware support and better third party softwares. FreeBSD 13 is good progress in desktop space. But you cant fully go BSD without compromises as a desktop user. Learn BSD for future and Linux for bills like somebody else mentioned here . ---------------------------------------------------------------------- northrupthebandgeek · 2021-05-12 07:03 > You honestly think none of the BSD distributions contain code licensed under the BSD license?? Where did I say that? > Or that no GNU/Linux distribution contains code licensed under the GPLv3? That doesn't mean that all or even most distros contain such code (hell, there are plenty of Linux distros like Alpine that don't even ship with GNU). And certainly not in Linux itself. The AGPL is even more rare for code shipped in distros. > Nice troll. Have you considered a career at IMAX? Or maybe Cinemark? You seem to enjoy projecting. ---------------------------------------------------------------------- reddit_original · 2021-05-12 08:52 What can't you get to work that the rest of us are using? Wifi does work though you might have to get a dongle for now. ---------------------------------------------------------------------- reddit_original · 2021-05-12 08:53 This is the copy/paste answer to 90% of all questions asked on reddit nowadays. ---------------------------------------------------------------------- reddit_original · 2021-05-12 08:58 As someone else said, I will immediately remove FreeBSD from all my workstations and laptops based on your comment cause you said we can't do what we've been doing all these years. Thank you. ---------------------------------------------------------------------- [deleted] · 2021-05-12 10:37 [deleted] ---------------------------------------------------------------------- nodate54 · 2021-05-12 11:35 Exactly you have to get a compatible dongle whereas Linux works out the box with most WiFi. Also ac support not great so speed limited. Brave browser, GNS3, Securecrt to name a few. Yes I know Linux compatibility is there but no guarantee it would work. Forgot to say that installing a DE isn't perhaps the easiest thing to install for a newbie ---------------------------------------------------------------------- reddit_original · 2021-05-12 15:35 Well, most people don't use Brave or Securecrt. Most people can get all the same software to work on FreeBSD just fine. And what's so difficult about `pkg install ` for a newbie? ---------------------------------------------------------------------- nodate54 · 2021-05-12 18:49 Plenty of people use Brave.. You can get it on lots of Linux distros. Debian and Ubuntu based, RedHat based, Suse, Arch etc You have to install a DE, display manager, edit rc.conf then the drivers whereas Linux you just download, install and you are all set. I am not saying Linux is better. In fact I prefer FreeBSD. I just think Linux is easier to get started with if interested in learning 'nix' type operating systems ---------------------------------------------------------------------- VoidDuck · 2021-05-26 12:53 I find the audio stack usually better. FreeBSD allows lower latencies than Linux would on the same hardware. That's great for synthesizers for example. But that's specific to FreeBSD, and DragonFly as well. NetBSD and OpenBSD are definitely less performant in that matter. ---------------------------------------------------------------------- -kilix- · 2021-05-27 11:07 OpenBSD is the paragon against which other OSes can compare their security (but they'll fare poorly). ---------------------------------------------------------------------- singlthreded · 2021-05-30 23:22 You didn't read properly my friend. I didn't say I can't do "anything". I said you can't migrate without compromises. ---------------------------------------------------------------------- reddit_original · 2021-05-31 00:10 Years ago, at FreeBSD 5.0, I moved over and continued to do everything I needed to do and that continues still today--17 years later. ---------------------------------------------------------------------- singlthreded · 2021-06-07 05:33 Haha. It worked out for you doesn't meant it will for others. For example design work depends a lot on MacOS (which is changing) and geospatial industry needs Windows. Does that mean they are bad? When I moved from Windows to Linux completely 10 years ago, I sacrificed gaming. Me expecting an avid gamer to move to Linux/FreeBSD like I did is pure BS. Don't be a fan boy. Being elitish doesn't help the plaform. We need to be able accomodate broad use cases and users if BSD is to be mainstream. ---------------------------------------------------------------------- reddit_original · 2021-06-07 08:26 I don't care about gamers and kiddies. I"m looking for technical excellence not popularity among the little people. ---------------------------------------------------------------------- mcsuper5 · 2021-07-15 09:16 I'm not the most current on Linux or BSDs , but I've enough experience that even in Windows or OS X, I want a C compiler and CLI build environment which includes Bash. (My shell account/web host is on NetBSD and run a Linux file/web server on my LAN.) If your primary interest is educational, you can probably try out multiple BSDs and Linux Distros on Virtual machines. If you want to install on raw iron, with Ethernet, you can probably install either. If you want to dual boot, I'd probably opt for Linux. You can find various compatibility lists online for Linux. With the exception of OS X, BSD man pages are usually much better than Linux man pages IMO. If you are looking to understand the system pick a BSD. BSD man pages seem to contain more examples. While utilities may take different switches on BSD and Linux, they usually share the ones you'll use on a regular basis. Vi(m) basics are a must on either system just in case. Either vi or vim should be available to edit text, even if a system did not boot into a GUI. You can install a multitude of editors, so you don't need to become proficient with vi/vim, but should at least be able to delete/add/edit a line, and save a file. Once installed, OpenOffice/LibreOffice can usually handle things nicely for an office suite on either. Firefox and Thunderbird are available if you prefer a GUI browser and email. You'll probably find better quality support for BSDs, but get quicker responses (with more noise) for various Linux distros. You should include your OS and kernel version when posting questions in forums for either. If you go with a Linux distro, you are better off with a distro that is more basic and stable. I'd go with Debian, possibly Slackware (It has been quite some time since I used it) or Arch (Limited experience with Manjaro based on Arch). I'd avoid Mint/Ubuntu and Fedora if your interest is educational. If your interest becomes functional opt for LTS versions. All the major distros are decent with releasing patches. If you want to understand how the system starts up, various services, etc, then you want a system with SysVinit. I believe most of the major distros have migrated to Systemd which is more complicated. I believe Devuan forked from Debian and still supports SysVinit. Either Linux or BSD will allow you to install binary packages or build from source; however, BSD Ports allow you to install from source easily. If you are after commercial software and games you'll make out better with Linux than BSD. (Linux programs may work under the BSD's Linux Compatibility Layer.) If you opt for a BSD, then FreeBSD is probably the way to start out. The init system is still easy to follow and/or tweak. Avoid OS X for educational purposes unless that is your target.