This is probably the single coolest feature of OpenBSD: “Also, Chromium on OpenBSD recently got unveil support. If you run it with --enable-unveil, Chromium will be prevented (at the OS level) from accessing anything other than your ~/Downloads folder.”
Does anyone know how this works with profiles / cache? Does this force something like incognito mode? Also does this mean you can't upload / select files outside of the Downloads folder?
That's pretty cool. I wish Chromium supported this on Linux too. It seems more like a Chromium feature than an openbsd feature to me though? Linux programs installed via say flatpak have this on by default.
> many features that require toil to achieve on FreeBSD, such as suspend on lid close, working volume buttons, and decent battery life, work out of the box on OpenBSD
Suspend on lid close worked out of the box for me on FreeBSD, on a ThinkPad X240. (Well, almost out of the box — had to disable the TPM in the firmware setup, otherwise the TPM would prevent it from waking up.)
There's NO WAY battery life could be better on OpenBSD though. OpenBSD is not even tickless!!
I measured the power consumption of the SoC with Intel's pcm tools, it's ~1W when idling in GUI on FreeBSD. Does OpenBSD even have pcm.x? ;)
> There's NO WAY battery life could be better on OpenBSD though. OpenBSD is not even tickless!!
FWIW FreeBSD idled hot on my thinkpad x201 and x201s, where openbsd did not. I got more battery from a slim Linux than openBSD, but FreeBSD was by far the worst for battery life if you're comparing them.
I like how most of the configuration in this setup is very similar to how I configured systems as far back as mid-nineties. Most applications have a simple single config file, and a single responsibility, true to Unix' philosophy. My window manager needs haven't really changed during all this time. Add a nice launcher that indexes your system and you have most of everything you will need.
It's worth noting that SoftRAID for encryption is mutually exclusive with SoftRAID for redundancy: "Note that "stacking" softraid modes (mirrored drives and encryption, for example) is not supported at this time."[1]
On my desktop, I tried installing TrueOS and FreeBSD but kept having trouble with the install, then the applications and KDE, then the drivers, things were wonkie. Installed OpenBSD a couple of times and it all (mainly) just worked. Eventually just stayed with OpenBSD and have been very happy, especially with the excellent documentation, ease of installation and ease of use. I heard the FreeBSD devs don't use it on their personal comps as much as OpenBSD devs do, and what kind of sealed the deal for me. Thinking back, it was even easier than most Linux installs I've done.
Thanks for the feedback! I've added a tidbit about syspatch, and also warned users about the (somewhat unusual) state of updates for third-party packages on OpenBSD:
Ive tried a BSD laptop before, and my concerns always boil down to the same nonsense...can anyone offer some advice?:
- how do i read ext4/fat/etc usb sticks from coworkers.
- is 3d or video support good with AMD?
- soundcard and full disk encryption? what about EFI boot?
- reading ext4 is possible but hard (OpenBSD doesn’t support journaling filesystems); you’re better off with ext2 or FAT
- video support with AMD GPUs is good, much better than NVIDIA
- OpenBSD has a good sound stack that supports most audio systems
- full disk encryption is easy to set up and mentioned in the article
- UEFI and GPT work wonderfully on recent versions
Question. I find it exceedingly useful that Mac OS has readline keybindings enabled in most (all? I can't think of any counterexamples, including the Spotlight overlay) of its text fields: control-A is head of line, control-E is end of line, etc. I've been using control-N and control-P to move between lines while editing this comment; it's simply a text field in Firefox.
Is it possible to turn on this functionality in OpenBSD?
While this is a nice setup in case of a ThinkPad, this doesn't really work out on practically anything else. I get that a lot of the FOSS, or somewhat more specifically, the hardcore users use a ThinkPad, but the rest of the world pretty much doesn't (at least no longer since Lenovo bought IBM's spun-off computer bits). None of this stuff works on the generic MS Surface or Apple Mac stuff you see in 99% of the use cases where people are capable of installing an OS at all.
As nice as mobile support in OpenBSD is, and as nice as this guide is, it's still super niche :(
However, my muscle memory have made it difficult to use ctrl + key versus command + key.
Is there an easy way (for example in Ubuntu?) to remap shortcuts so the copy and paste is command + C and command + V? Also, the ctrl + C should still stop processes in the terminal, so it's not as simple as swapping ctrl and command for all processes... This problem has been bugging me a lot with linux and I finding a solid solution would help a lot of OSX people switch to linux more easily.
> If you're even a little paranoid, you should start by overwriting the disk with random data. We'll assume your hard disk is sd0—you can use dmesg to check. The c suffix is OpenBSD's way of specifying the entire disk.
dd if=/dev/urandom of=/dev/rsd0c bs=1m
Can I check: why would you do this rather than using ATA SECURE ERASE command?
Having a blob of random data on my drive would mean crossing international borders is potentially unpleasant.
MacBook G4 sure... newer ones may have problems.
To new users/new hardware I would recommend an usb stick with the network installer and then try to install to the usb stick and check what is working.
Just installed it on a late 2009 MacBook A1342 and everything works except the Broadcom Wi-Fi. Using an external Belkin stick supported by rum(4). Even the NVIDIA GeForce 9400m is functional both on the command line and in Xorg. The touchpad works out of the box with gestures and right-click and scrolling and the whole nine yards.
Newer Macs might be more challenging, with fancy proprietary chips and whatnot.
Be sure to enable apm(4) to not melt through your motherboard.
You don't need a third party blog, it's in the documentation[1]: "All versions of the AMD Athlon 64 processors and their clones are supported."
The other drivers are the ones you need to worry about -- check the man pages, which list the supported hardware. For example: https://man.openbsd.org/radeon.4
The attitude isn't "You shouldn't need documentation". The attitude is "OpenBSD should ship with documentation good enough that nobody feels the need to write up the results of sleuthing around".
Ryzen works great, and will likely improve over time. The Vega GPU that accompanies some models is unsupported, however, if you can get a slightly older AMD card things will be better on the graphics side, but this is only important if you care about some light gaming or desktop frills.
[+] [-] gigatexal|7 years ago|reply
[+] [-] yjftsjthsd-h|7 years ago|reply
But it's sweet to have natively:)
[+] [-] humblebee|7 years ago|reply
[+] [-] sydney6|7 years ago|reply
[+] [-] saagarjha|7 years ago|reply
[+] [-] ATsch|7 years ago|reply
[+] [-] floatboth|7 years ago|reply
Suspend on lid close worked out of the box for me on FreeBSD, on a ThinkPad X240. (Well, almost out of the box — had to disable the TPM in the firmware setup, otherwise the TPM would prevent it from waking up.)
There's NO WAY battery life could be better on OpenBSD though. OpenBSD is not even tickless!!
I measured the power consumption of the SoC with Intel's pcm tools, it's ~1W when idling in GUI on FreeBSD. Does OpenBSD even have pcm.x? ;)
[+] [-] dijit|7 years ago|reply
FWIW FreeBSD idled hot on my thinkpad x201 and x201s, where openbsd did not. I got more battery from a slim Linux than openBSD, but FreeBSD was by far the worst for battery life if you're comparing them.
[+] [-] throwaway2048|7 years ago|reply
[+] [-] stragulus|7 years ago|reply
[+] [-] beefhash|7 years ago|reply
It's worth noting that SoftRAID for encryption is mutually exclusive with SoftRAID for redundancy: "Note that "stacking" softraid modes (mirrored drives and encryption, for example) is not supported at this time."[1]
[1] https://www.openbsd.org/faq/faq14.html#softraid
[+] [-] accrual|7 years ago|reply
[+] [-] brobdingnagians|7 years ago|reply
[+] [-] geggam|7 years ago|reply
[+] [-] gbrown_|7 years ago|reply
http://man.openbsd.org/syspatch
[+] [-] perlgod|7 years ago|reply
https://www.c0ffee.net/blog/openbsd-on-a-laptop/#updates
[+] [-] fiddlerwoaroof|7 years ago|reply
[+] [-] nimbius|7 years ago|reply
- how do i read ext4/fat/etc usb sticks from coworkers. - is 3d or video support good with AMD? - soundcard and full disk encryption? what about EFI boot?
[+] [-] snazz|7 years ago|reply
[+] [-] bitwize|7 years ago|reply
Puffs is the NetBSD version of FUSE, and there is even a FUSE-to-puffs adapter so you can mount FUSE filesystems under NetBSD.
[+] [-] waterhouse|7 years ago|reply
Is it possible to turn on this functionality in OpenBSD?
[+] [-] floren|7 years ago|reply
Still, cool to see people running a BSD on a laptop, IIRC I ran NetBSD on my old Thinkpad in college.
[+] [-] robotmay|7 years ago|reply
[+] [-] gigatexal|7 years ago|reply
“Grab a USB stick and download the the the amd64 disk image:”
[+] [-] perlgod|7 years ago|reply
[+] [-] Philipp__|7 years ago|reply
[+] [-] perlgod|7 years ago|reply
[+] [-] oneplane|7 years ago|reply
As nice as mobile support in OpenBSD is, and as nice as this guide is, it's still super niche :(
[+] [-] reason-mr|7 years ago|reply
[+] [-] TurboHaskal|7 years ago|reply
[+] [-] keithpeter|7 years ago|reply
OA has an example of the new wifi autofind feature which I need to bottom out.
[+] [-] j7ake|7 years ago|reply
However, my muscle memory have made it difficult to use ctrl + key versus command + key.
Is there an easy way (for example in Ubuntu?) to remap shortcuts so the copy and paste is command + C and command + V? Also, the ctrl + C should still stop processes in the terminal, so it's not as simple as swapping ctrl and command for all processes... This problem has been bugging me a lot with linux and I finding a solid solution would help a lot of OSX people switch to linux more easily.
[+] [-] gjs278|7 years ago|reply
[+] [-] dredmorbius|7 years ago|reply
Most desktop environments allow remapping hotkey bindings and combos, though I strongly recomment sticking to defaults.
Well, except for ctrl-capslock swapping, of course.
[+] [-] DanBC|7 years ago|reply
> If you're even a little paranoid, you should start by overwriting the disk with random data. We'll assume your hard disk is sd0—you can use dmesg to check. The c suffix is OpenBSD's way of specifying the entire disk.
Can I check: why would you do this rather than using ATA SECURE ERASE command?Having a blob of random data on my drive would mean crossing international borders is potentially unpleasant.
[+] [-] simonebrunozzi|7 years ago|reply
[+] [-] ben_bai|7 years ago|reply
Also check if you PC is listed here. https://dmesgd.nycbug.org/index.cgi?do=index&fts=apple
[+] [-] snazz|7 years ago|reply
Newer Macs might be more challenging, with fancy proprietary chips and whatnot.
Be sure to enable apm(4) to not melt through your motherboard.
[+] [-] watersb|7 years ago|reply
[+] [-] anthk|7 years ago|reply
[+] [-] vtail|7 years ago|reply
[+] [-] quickben|7 years ago|reply
That was the the last thing I wanted to read when wondering if openbsd will fit on my Ryzen machine.
[+] [-] ori_b|7 years ago|reply
The other drivers are the ones you need to worry about -- check the man pages, which list the supported hardware. For example: https://man.openbsd.org/radeon.4
The attitude isn't "You shouldn't need documentation". The attitude is "OpenBSD should ship with documentation good enough that nobody feels the need to write up the results of sleuthing around".
[1]https://www.openbsd.org/amd64.html
[+] [-] brynet|7 years ago|reply
My OpenBSD Ryzen build:
https://brynet.biz.tm/article-ryzenbuild.html