News for hackers. Stuff that matters.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Monday August 02, 2010 @11:39PM (#1570032)
I've been using OpenBSD for several years (since 3.4...wow, that's almost seven years), as my primary OS. I had been running Debian for 2~3 years, and Red Hat (briefly, ick) before that. A lot has been covered already, but:

1. The BSDs feel significantly more cohesive to me. Other people have mentioned this, but it deserves greater emphasis. The config files, man pages, etc. are quite a bit more consistent, and my first guess about where something is located is nearly always right. Red Hat, in particular, seemed to cavalierly scatter things in /usr/bin, /usr/local/bin, /usr/local/sbin, etc. (Around 7.0, IIRC.) The man pages & other docs are consistently excellent, for everything from malloc to spamd, it's a cleanly and consistently designed system for learning Unix / system administration.

2. OpenBSD has a focus on security. While this isn't my top priority, personally, I really like its secondary effects - it tends towards minimalism, so there are less dusty corners to harbor exploitable bugs, and they pass security patches upstream. OpenBSD's malloc (http://www.openbsd.org/cgi-bin/man.cgi?query=malloc) can also be configured for very aggressive scrutiny. Not quite the same as running everything under valgrind, but it has also much less overhead since it's better integrated. If you're working in C, it's a great platform.

3. I can install and configure an OpenBSD system in under ten minutes, easy. Its installer is spartan and based on text prompts. Once you know what to expect, it's a snap. Also, they put all recognized drivers in the kernel (ostensibly since debugging weird custom-kernel issues would be tough with a smaller community) - if the dmesg doesn't say "... - not recognized" at boot, you're usually set. No rebuilding kernels or modules just to get things working. I haven't dealt with much really weird hardware, but any random crappy old x86/amd stuff has worked fine. (Cheap old Thinkpads run BSD brilliantly, by the way. I'm typing this on a T41.)

4. The BSDs have less GNU stuff in the userland. This is probably a matter of taste, but a lot of the GNU stuff seems really bloated by comparison - gmake vs. BSD make, gawk vs. awk, etc. (That said, I'm also an Emacs user. :) ) The BSDs also seem less political. It isn't Linux or GNU/Linux, it's just BSD.

5. I really like source / ports-tree-based packaging. You can still use binary packages (especially if you're installing KDE, doing that from source is just silly), but ports+flavors works quite well. Some Linux distros (Arch and Gentoo) have similar packaging systems, now. Of course, some programs are hard to bootstrap - GHC, in particular, has lagged behind.

I've only used FreeBSD a bit here and there, but it also seems like an extremely solid OS, and most of the same advantages apply. It doesn't have as much focus on security, but its community is much larger, and it's probably more newbie-friendly.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by sigil on Tuesday August 03, 2010 @12:18AM (#1570116)
> 5. I really like source / ports-tree-based packaging ... Some Linux distros (Arch and Gentoo) have similar packaging systems, now.

FreeBSD user here. I've always been curious about the ports-tree-based packaging systems found in these Linux distros. Is anyone familiar enough with both to offer a comparison?

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Tuesday August 03, 2010 @12:45AM (#1570157)
While I've done very little with Gentoo, Arch's packaging seemed to me like running OpenBSD's ports tree from cvs, but without the option of an updated-every-six-months super-stable milestone release. It's inherently a "bleeding-edge" distro, which is not necessarily true for OpenBSD. (I run OpenBSD from snapshots/source and update a few times a month, but I also maintain some ports.)

I've only experimented with Arch, though, and I'd also like to hear from others who know both well.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by ivenkys on Tuesday August 03, 2010 @01:56AM (#1570276)
I use both - Arch as a primary desktop and OBSD for my servers.

For all practical purposes you are correct.

I personally think of Arch as a collection of components loosely put together, you pick and choose what you want and they generally work together, there are no releases per-se, stable or otherwise. OBSD is a more coherently designed and engineered system, if you want a particular feature that is available in a new release , the logical way to get it is to update to a new release. If you don't want it , you can simply stay on your release and just apply the rare security patches that come through.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by nalbyuites on Tuesday August 03, 2010 @01:49AM (#1570262)
I have been an Arch user for about 6 months now. jumped the ship from Gentoo. Since I like to stay bleeding-edge, on Gentoo that meant often-broken packages that took a lot of time to fix. Arch has been very smooth till now, despite my using a lot of AUR packages.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by Daniel42 on Tuesday August 03, 2010 @02:44AM (#1570357)
Arch user here. The great thing with a rolling release is that when something breaks there is usually a lot of people trying to solve the exact same problem at the same time. I think I learn a lot in problem solving because of that since I switch to Arch! And now every bug is a fun thing that almost never last long, you must be quick if you want to be the first to write the patch who will solve it!
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by grammaton on Tuesday August 03, 2010 @12:07PM (#1571646)
I've used FreeBSD since the mid nineties (it's what I cut my teeth on, Unix wise). I've also been using Gentoo images over at Rackspace for a while now. From a basic standpoint, the two are the same - one command and off it goes, with a well thought out set of "pre-cooked" installations ready to go. However, I have to give Gentoo credit for being a bit smarter about dependencies. On the other hand, the structure for the actual portage tree is....less preferable than FreeBSD's layout for the ports collection. Also Gentoo's portage can "mask" certain builds, basically deprecating them in a way that's really hard to turn off, and that can get annoying at times.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by sethg on Tuesday August 03, 2010 @09:00AM (#1570953)
I used to use OpenBSD as a personal mail/web server on a freecycled 486, and decided to go with Linux when I upgraded to newer and faster machines. My rationale was that even though I respect OpenBSD’s security philosophy, if anyone pwns my server, they’re not going to go through a hole in the base system; they’re going to go through a hole in the PHP scripts that run my blog. (Where, oh where, is a featureful blog-server framework that doesn’t depend on PHP?)

For dynamic Web-based applications, what advantages do OpenBSD have over Linux?

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by protomyth on Tuesday August 03, 2010 @11:53AM (#1571591)
Well, the point of OpenBSD's security is that you can isolate Apache so they can pown Apache but won't get the rest of the server.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Tuesday August 03, 2010 @10:08AM (#1571156)
I'm not really a web developer, but FreeBSD might be a better fit there. OpenBSD is a great dev platform, though, and an excellent firewall.

You could run your blog stuff chrooted / in a process jail, either way.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by sethg on Tuesday August 03, 2010 @10:28AM (#1571241)
The last time I looked at the procedure for running Perl/PHP within a jail, it looked like a sysadmin’s nightmare. Of course, that was a while ago, in the pre-kernel-virtualization era. (There must be a way to run one virtual machine inside another, right?)
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Tuesday August 03, 2010 @10:31AM (#1571254)
I haven't ever tried with PHP, but didn't have much trouble chrooting Perl for a wiki (usemod) I was running a while ago.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by nailer on Tuesday August 03, 2010 @03:07AM (#1570397)
That's not correct re File system. Red hat linux usr local has always installed empty. Slash is used for essential binaries, usr for un essential binaries per the fhs.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Tuesday August 03, 2010 @08:18AM (#1570862)
It may just have been once packages were installed. I started using Unix ten-ish years ago with RedHat, and even as a beginner I saw that using RPMs quickly became a mess of inconsistent paths and circular dependencies. It was sloppy. Not even "bleeding-edge testing release" sloppy, just sloppy.

The situation has probably improved, but I moved on to Debian, then OpenBSD. I'm still happy with OpenBSD, but my next choice would probably be FreeBSD, Debian, or Arch (in that order).

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by nailer on Tuesday August 03, 2010 @08:27AM (#1570881)
> It may just have been once packages were installed.

The whole OS is packages. The first thing that goes on a new system during the OS installer (anaconda, again more than 10 years old) is the glibc package. 10 years ago I assure you no package of the thousands included in Red Hat Linux put something in /usr/local.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Tuesday August 03, 2010 @08:43AM (#1570915)
Well, ok, it may have just put them in /etc, /usr/opt, /etc/local, and /moustache. It wasn't that it did or didn't put things in /usr/local, but that there wasn't a consistently followed layout like OpenBSD's (http://www.openbsd.org/cgi-bin/man.cgi?query=hier). Also, like I said - it's probably gotten better since ten years ago. It was really annoying, though, and I'm not misremembering things: I specifically switched from RedHat to Debian because I was sick of it. It wasn't consistent with itself, let alone any standard.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by ciupicri on Tuesday August 03, 2010 @10:00AM (#1571120)
Linux had and still has the Linux Filesystem Hierarchy (http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/index.ht...). It's true that it hasn't been 100% stable, but things do evolve and it's quite logical.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by nailer on Tuesday August 03, 2010 @10:05AM (#1571148)
Linux has had the FHS since the late 90s.

* Config files go in /etc.

* Spools, caches an so on go in /var

* Binaries for all users go in /bin if they're important, /usr/bin if they're less so

* Binaries for root go in /sbin if they're important, /usr/sbin if they're less so

The standard was mature a decade ago and long before then. I suspect you just may have not been used to the standard.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by silentbicycle on Tuesday August 03, 2010 @10:20AM (#1571211)
I get that Linux uses a different standard layout than BSD. I really do. The thing is that when I was using RedHat, years and years ago, its paths were not internally consistently.

I'm talking about that specific distro, at that specific time. Debian was much better in that regard, and I didn't look back.

Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by nailer on Tuesday August 03, 2010 @10:52AM (#1571343)
OK. I (and it seems the other poster) knows from our own experience that Red Hat's stuck closely to the FHS for years. There's only one folder - /etc/rc.d/init.d - consistent in Red Hat but symlinked to the correct /etc/init.d location used by other distros - that's been a significant difference in the last decade.
Re:Ask HN: I'm a Linux guy. Tell me about all those BSDs by RexRollman on Tuesday August 03, 2010 @06:21AM (#1570697)
I really like OpenBSD, but if there is one thing I have to point to as annoying, it would be the lack of binary system patches. Call me crazy but I don't feel that I should have to have a compiler and tool chain installed to have an up to date system.