News for hackers. Stuff that matters.
Re:NetBSD 9.3 by UpstandingUser on Saturday August 06, 2022 @03:24PM (#32370831)
I'm a big fan of NetBSD. Great docs, clean design, it's just about ideal for "set it and forget it" projects. I hadn't used a BSD in over a decade but got it up and running in no time for an odd project a few years back that had some unusual display requirements. I imagine it would have taken a lot longer to do with Linux because it's always changing how it does things and I just don't have the time or inclination to keep up with it anymore and the docs are often less than ideal.

Bonus points for their build system. It's about the only time I've ever felt like building from source was a pleasant experience.

Re:NetBSD 9.3 by mekster on Sunday August 07, 2022 @01:28AM (#32374130)
Sounds like at this point NetBSD is for educational purposes and maybe for someone who wants a starting point OS for an embedded device.

It doesn't have the community like FreeBSD nor innovations like OpenBSD.

Re:NetBSD 9.3 by jks on Sunday August 07, 2022 @02:09AM (#32374281)
I'm going to say that the rump kernel is an innovation: https://en.wikipedia.org/wiki/Rump_kernel

But admittedly it doesn't seem to have quite the following of those two other BSDs.

Re:NetBSD 9.3 by galleywest200 on Saturday August 06, 2022 @11:40AM (#32369050)
> support for wsfb-based X11 servers on the Commodore Amiga

I love when projects add fun things such as this.

Re:NetBSD 9.3 by xianwen on Saturday August 06, 2022 @05:22PM (#32371698)
Does someone run NetBSD in production? What do you use NetBSD for?
Re:NetBSD 9.3 by kwk1 on Saturday August 06, 2022 @05:33PM (#32371762)
NetBSD is used for sdf.org, the SDF Public Access UNIX System.
Re:NetBSD 9.3 by efortis on Saturday August 06, 2022 @05:44PM (#32371837)
Re:NetBSD 9.3 by greyface- on Saturday August 06, 2022 @07:12PM (#32372446)
"200GB/day and 55,000 requests/day" sounds like traffic numbers for Fastly's NetBSD mirror, not a claim that they run it internally.
Re:NetBSD 9.3 by efortis on Saturday August 06, 2022 @08:09PM (#32372711)
I see, it's /day
Re:NetBSD 9.3 by kijiki on Saturday August 06, 2022 @07:40PM (#32372585)
0.6 requests per second? That certainly isn't part of their CDN...
Re:NetBSD 9.3 by weitzj on Sunday August 07, 2022 @02:38AM (#32374396)
We used to run it in the geophysics department of the university for workstations.

Also on Jump Hosts with a weird cpu architecture, so that you could not do much with them

Re:NetBSD 9.3 by xianwen on Sunday August 07, 2022 @03:46AM (#32374707)
Interesting. Does the Geophysics Department use a different OS now to run the workstations?
Re:NetBSD 9.3 by weitzj on Sunday August 07, 2022 @10:00AM (#32376525)
I don’t know unfortunately. It was a mix between NetBSD workstations, Solaris servers when I left. And for the students a pool of Scientific Linux machines (RHEL)
Re:NetBSD 9.3 by xianwen on Sunday August 07, 2022 @03:53PM (#32379290)
Thanks.
Re:NetBSD 9.3 by washbear on Sunday August 07, 2022 @06:30AM (#32375371)
It's "big in Japan". Used on many ISP routers there, for example Internet Initiative Japan's "SEIL" family, as well as most workstations in a few Japanese universities.

pkgsrc enjoys mild popularity in the scientific computing community, a lot of NetBSD use is probably in education - Cambridge University uses it for their thin clients too.

Re:NetBSD 9.3 by xianwen on Sunday August 07, 2022 @03:54PM (#32379294)
Thanks!
Re:NetBSD 9.3 by hestefisk on Saturday August 06, 2022 @08:55PM (#32372908)
A few in-space satellites I believe.
Re:NetBSD 9.3 by hestefisk on Sunday August 07, 2022 @09:28AM (#32376309)
Also, Apple’s AirPort wifi devices ran NetBSD.
Re:NetBSD 9.3 by amerine on Sunday August 07, 2022 @01:53AM (#32374217)
I know of a few small ISPs that run NetBSD on SOKRIS(sp?) machines to do routing at edge pops.
Re:NetBSD 9.3 by jks on Sunday August 07, 2022 @02:11AM (#32374288)
Probably Soekris. Those were nice machines but don't seem to be available any more.
Re:NetBSD 9.3 by nix23 on Sunday August 07, 2022 @03:43AM (#32374690)
SDF.org ;)
Re:NetBSD 9.3 by mccornish on Saturday August 06, 2022 @01:43PM (#32370073)
I wanted to run NetBSD as a daily driver but the Intel 3945ABG wifi performance was horrible, it disconnected after a few minutes with a fatal firmware error, there was no clean way to get it working again. I will try these versions. I went through FreeBSD and I liked it. I don't give up.
Re:NetBSD 9.3 by mccornish on Saturday August 06, 2022 @02:54PM (#32370603)
Ouch! Same result with 9.3, I couldn't install Xfce, wifi broken after a few seconds.
Re:NetBSD 9.3 by umanwizard on Saturday August 06, 2022 @05:50PM (#32371887)
Have you reported the bug to NetBSD ?
Re:NetBSD 9.3 by mccornish on Saturday August 06, 2022 @07:26PM (#32372524)
https://man.netbsd.org/wpi.4

>wpi%d: fatal firmware error For some reason, the firmware crashed. The driver will reset the hardware. This should not happen.

They know.

Re:NetBSD 9.3 by marttt on Sunday August 07, 2022 @02:33AM (#32374377)
Are the current releases of NetBSD still fast enough for decade-old x86 machines, e.g. Intel Atoms? Or is this distro also slowly adding complexity with every release? Usercase would be either console-only or console with framebuffer graphics.

I'm a long-time Tiny Core Linux user (loving it!), but I often think about trying out NetBSD more seriously. The documentation seems superb; apparently, it is not hard to reconfigure some bits of the kernel even as more of a "lean systems hobbyist". From what I have read, it is quite convenient to set up as a RAM-booted system, just like Tiny Core.

NetBSD (probably 7.0 or 6.1) was a pleasant experience for me on a Thinkpad T42 some 6-7 years ago.

Re:NetBSD 9.3 by washbear on Sunday August 07, 2022 @06:25AM (#32375350)
This is exactly the type of hardware where NetBSD shines - it's often best to install it on something from a few years ago where driver support has matured to a fine vintage. Very good OS for preventing old hardware from being binned.
Re:NetBSD 9.3 by marttt on Sunday August 07, 2022 @07:07AM (#32375548)
Nice to hear this, thanks. I wonder what the framebuffer experience is like with current NetBSD. I researched this (framebuffer on Linux vs OpenBSD vs NetBSD) a while ago, since I would need a framebuffer PDF reader.

It feels like at this point, Linux has the most choice out of the box, when it comes to software for displaying images/pdfs on the framebuffer? I use fbpdf on Linux, which is not available on NetBSD. Then again, it is based on libmupdf, which is available, so maybe I should get my (shaking) hands dirty. :)

I like it very much how NetBSD encourages user-side modifications of the kernel, e.g. for changing the console font or underclocking the cpu. Every time I read the NetBSD documentation, I feel tempted to install it, because the docs are so well structured and written. Very welcoming, even for (curious) non-CS users like me.

For that reason, using NetBSD may possibly be more educational than using Linux, in the long run? Due to heavy reliance on the official documentation, you'll have a more structured understanding of how stuff works -- as compared to trawling web forums of various Linux distros and sometimes blindly copy-pasting solutions or hacks provided by others. In that sense, a good base documentation encourages more acknowledged use and going to the details from early on. (Obviously, there are Linux distros witch excellent documentation, too, like the Arch wiki.)

That said, I am rather pleased with Tiny Core Linux. Their current release is something like 12.x, and I've been in their boat since version 6.x. It is a really simple, well thought out distro, excellent for older hardware; somewhat similar in that sense to the BSDs. But, yeah, sans that documentation. :)

Re:NetBSD 9.3 by washbear on Sunday August 07, 2022 @12:49PM (#32377818)
I wonder if there's a PDF reader that can render to sixel graphics - mlterm-wscons can display sixels.
Re:NetBSD 9.3 by marttt on Monday August 08, 2022 @05:53AM (#32383807)
Seems like sixel would be an excellent solution, thanks very much for that pointer.

However, I can always convert PDFs to images and go forward from there, I guess. It's not a bad workaround. The fbi image viewer is available for NetBSD's X Window system; not sure about the framebuffer port. https://www.kraxel.org/blog/linux/fbida/

EDIT: Apparently, NetBSD has lsix: https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/ls...

"Like ls, but for images. Shows thumbnails in terminal using sixel graphics. /.../ Because lsix uses ImageMagick pretty much any image format will be supported. However, some may be slow to render (like PDF), so lsix doesn't show them unless you ask specifically."

On Linux, the green pdf reader for Linux apparently supports sixel: https://github.com/schandinat/green

Screenshot of green+sixel on NixOS: https://teddit.net/r/commandline/comments/4oldf5/view_pdfs_i...

Another Linux pdf reader with sixel: https://github.com/dsanson/termpdf

All in all, woah, lots of fascinating reading and links here -- since I was not much aware of sixel before: https://github.com/saitoha/libsixel

The sixel format itself seems to match really well with the NetBSD philosophy (among other things, keeping old hardware running via low-demanding, essentials-only software). Thanks again for that pointer.

Re:NetBSD 9.3 by pyinstallwoes on Saturday August 06, 2022 @03:15PM (#32370766)
I am thinking of using a *BSD for a remote NAS VPS. I'm comfortable with linux. I was having trouble finding guides on how to harden a BSD at the basic level. SSH lockdown? Is there perhaps a better way to connect like over a VPN or something for this type of use case?
Re:NetBSD 9.3 by nix23 on Sunday August 07, 2022 @03:51AM (#32374724)
And for hardening ssh:

https://github.com/bsdlabs/ssh-hardening

Then lock-down with PF (firewall).

Overall hardened FreeBSD:

https://hardenedbsd.org/

Or take parts of this Gist:

https://gist.github.com/jahil/4565d8dfa06254f0c11d

Re:NetBSD 9.3 by throwaway09223 on Saturday August 06, 2022 @07:41PM (#32372595)
Just disable any services you aren't using, and look at the system specific information for any services that remain. The services and protocols are essentially the same - for example if you're using webdav you can use the same httpd you're familiar with on linux.

ssh works exactly the same as on linux as well.

Re:NetBSD 9.3 by jmclnx on Saturday August 06, 2022 @01:40PM (#32370039)
More comments in this post, which was flagged as a dup

https://news.ycombinator.com/item?id=32368771