Linux to bsd reddit / BSD ---------------------------------------------------------------------- BobsYourUnc · 2017-10-16 22:11 I currently use linux. If I were to give bsd a spin what are some issues or differences that I need to be on the lookout for? ---------------------------------------------------------------------- Nanosleep · 2017-10-16 22:47 I'm going to assume you're talking about using BSD for desktop use. Living with bsd as a server platform is pretty trivial, so I'm just going to hit desktop hurdles here. TrueOS (a FreeBSD respin) is probably the safest bet for someone coming over from linux. It ships with a pre-configured desktop environment and will have the biggest ports library and best hardware compatibility for x86/amd64, at least. There's a proprietary nvidia driver that I've heard works pretty well, and their linux binary compatability is second to none, so if you wanted to run some proprietary linux app (e.g. Steam), you could. Back in the day, even though there wasn't a direct port of flash for freebsd, you could still use nspluginwrapper with the linux flash binaries, and everything would work as expected. It seems like a strange feature to ship linux emulation as part of your kernel, but it will save your ass for niche little desktop things. If you wanted to try out openbsd or netbsd, your luck might change a little bit. Don't expect any support for 3d acceleration in the form of binary blobs -- however if your card is supported by mesa, you'll probably live quite happily. Also, you won't have the same kind of availability of ports that you'd find in Arch's AUR. There's still a wealth of software, and a lot of stuff that hasn't been ported will still compile just fine. It's just that there's a smaller ports team, so they hit the big targets. Also, OpenBSD has no linux compatibility layer, so running linux blobs is out of the question. I *believe* NetBSD has pretty usable linux binary compatability. Your biggest day-to-day hurdles will probably be similar to learning any new linux distro, getting a feel for their particular filesystem layout, learning the package manager. Then there's also a completely different userland; it's still unix, so it'll be very familiar, but don't expect everything to behave like the tools you're accustomed to using in GNU coreutils. In OpenBSD for example, `ls` does not have color. wget and curl don't ship with the system, but `ftp` will actually grab links over http. You'll have `ifconfig` in lieu of `ip`. An rc init system, that you control with `rcctl` instead of `service` or `systemctl`. Under the hood, you've stuff like MAKEDEV instead of udev... or sndio in lieu of oss/alsa, and sndiod in lieu of pulseaudio. `pf` instead of `iptables`. In short, whatever you chose, it'll be usable, but slightly different. The parts that you expect to be there **will be there**, but they could be different from their linux counterparts. ---------------------------------------------------------------------- BobsYourUnc · 2017-10-17 02:00 Thanks for the in depth response. ---------------------------------------------------------------------- asuraemulator · 2017-10-17 13:52 I switched to OpenBSD last week for desktop use after almost 20 years of Linux. Here are some differences I've noticed: * The standard OpenBSD shell is [pdksh](http://www.kornshell.org/) instead of bash. * OpenBSD uses disklabels instead of partitions, and all partitions reside in one primary MBR/GPT partition. * 3D acceleration is possible with Intel graphics, but requires fiddling with device permissions. * X11 is included as an optional part of the base system, along with three window managers: twm, fvwm2, and cwm. * cwm is fucking awesome if you're into minimalistic window manglers. * OpenBSD will limit how many processes a user can run, as well as how much memory they can use. Users classified as "staff" have more leeway. * No systemd. No wayland. No catering to newbies. * The man pages are actually useful. * OpenBSD doesn't come with nano by default. It comes with vi and mg, which is a tiny Emacs clone. Both are perfectly adequate for most situations unless you insist on having syntax highlighting and color schemes. * The most current DE appears to be XFCE at v4.12. GNOME 3.24 is available in ports, and it appears that an earlier version of KDE Plasma is available as well. * There are no graphical wifi network tools. You'll edit text files and run ```doas sh /etc/netstart```, and you'll like it. * Oh, and there's no ```sudo```. OpenBSD uses ```doas``` instead, but ```sudo``` is still available in ports. * The C compiler and related tools are an optional part of the base system. * The GENERIC kernel is all you need. Compile your own at your own risk. * OpenBSD users don't worry about coming across as elitist. They just don't give a fuck. Personally, I find that I actually *like* OpenBSD as a desktop OS. I've got almost everything rigged up just the way I like it. I'm just having trouble setting up a local [dict](http://dict.org) server so I can do offline dictionary lookups, but that's mainly because dict is old, hardly anybody seems to use it, and it's therefore hard to find the dictionary files. ---------------------------------------------------------------------- gumnos · 2017-10-17 14:55 If you don't like `vi` or `mg` for editing text, OpenBSD also comes with `ed` in a base install. ;-) ---------------------------------------------------------------------- asuraemulator · 2017-10-17 14:58 I reserve the use of ```ed``` for when I've got severe writers block and need to take a forward-only approach to drafting a story so I can break through. :) ---------------------------------------------------------------------- andermetalsh · 2017-10-18 17:56 > 3D acceleration is possible with Intel graphics, but requires fiddling with device permissions. I didn't need that. ---------------------------------------------------------------------- andermetalsh · 2017-10-18 18:00 Quick OpenBSD setup once installed: echo 'set showmode' >> ~/.exrc echo 'export PS1="\u@\h[\w]' >> ~/.profile ---------------------------------------------------------------------- asuraemulator · 2017-10-18 18:19 > echo 'export PS1="\u@\h[\w]' >> ~/.profile Thanks for the prompt. ---------------------------------------------------------------------- Nanosleep · 2017-10-19 02:05 I can't bring myself to use ksh on a desktop. The things I expect my shell to do, vs what pdksh provides is really not quite enough. I'm not ashamed to admit that my first step after setting up doas/installurl is `doas pkg_add zsh`, followed by installing oh-my- zsh. ---------------------------------------------------------------------- andermetalsh · 2017-10-19 09:06 How so? You have a good prompt with the prevous PS1 envvar. Also, if you want a history file (you can use C-s/C-r like bash): echo 'export HISTFILE=~/.sh_history' >> ~/.profile Done. ---------------------------------------------------------------------- Nanosleep · 2017-10-19 09:20 A ps1 is actually the least of my worries, but just to get on your level; if I'm in a git repo, my ps1 shows my current git branch, staging area, and treeish.. it also shows my rbenv ruby version, but if I'm in a directory with a Gemfile, it should show the 'ruby' version that's contained within it. If a shell application exits non- zero, it prints the exit stats in a special area aligned on the right. Also, my histfile is automatically shared between shells.. so if I type something in one shell, that command is already in the history of a different prompt, so I can use magic tab completion or C-r to re-run that command.. however I can't use an up-arrow, because zsh is able to distinguish that the command came from a different session. [But, stuff like this is the real reason I use zsh.](http://reasoniamhere.com/2014/01/11/outrageously-useful-tips-to- master-your-z-shell/) ---------------------------------------------------------------------- andermetalsh · 2017-10-19 09:28 https://docstore.mik.ua/orelly/unix3/korn/index.htm Ksh can do that and a lot more. ---------------------------------------------------------------------- mint1401 · 2017-10-22 17:49 I'm a primary linux user, whipped up a vm of ghost bsd (preconfigured with xfce). It is based on FreeBSD, and I felt at home. You can choose your filesystem type and shell type during installation, and besides learning a new package manager (pkg install), I loved the feel. Very lightweight, and very in depth system, even upon shutdown you recieve some noteable information about your session which gives you a better feel of stability imo. ---------------------------------------------------------------------- BobsYourUnc · 2017-10-22 18:38 Good Feedback. Just curious ... what is your primary distro that you are comparing BSD with? ---------------------------------------------------------------------- mint1401 · 2017-10-22 19:20 Thank you. Ubuntu 16.04 on my laptop and centOS 7 on desktop/server ---------------------------------------------------------------------- bleepingnode · 2017-10-28 18:21 TrueOS and GhostBSD are both user-friendly options for desktop use. // Just in-case you want to give them a try. :) ---------------------------------------------------------------------- BobsYourUnc · 2017-10-28 20:41 Thanks for the reccomendations. ---------------------------------------------------------------------- bleepingnode · 2017-10-28 21:20 No problem!