NetBSD 11 desktop on a Raspberry Pi 4

(neongd.com)

88 points | by jaypatelani 2 days ago

11 comments

  • rustyhancock 3 hours ago
    As the saying goes. Of course it runs NetBSD.

    They have a nice wiki page around running on Arm which might be helpful (and subpages for the main boards).

    https://wiki.netbsd.org/ports/evbarm/

    I set it up on an Arm SBC last year and I have to say it did not seem as involved a process as that blog post. I hope it hasn't become more complicated.

  • lilbigdoot 50 minutes ago
    I've been dealing with NetBSD on VMs and my desktop lately and it's really lovely. By far the fastest install and boot of any OS I've tried on my system

    I really love the amd64 "live" .img they provide too. It's a disk image you just write to a disk and on its first boot it expands the image to the full size of the disk, reboots, and your system is ready to go

    For anyone curious to try, do note that EFI boots significantly faster than BIOS. I forget exactly why but BIOS boots requires an unpacking step every boot that EFI boots do not

    The one thing keeping it from my daily driver on my desktop was my GPU is not yet supported. I do love the OS though. PkgSrc is nifty

  • forinti 2 hours ago
    I've been trying NetBSD 11.1 on an RPi1 these last few days.

    It takes a long time to install anything and I don't expect to surf the web on it, but it's nice to have this OS as an option.

    I wanted to try out openconnect-saml on it, but the install failed because of lack of RAM/swap. I have managed to run xfreerdp over openconnect on it though (FreeBSD had better performance).

    • justin66 2 hours ago
      What's the boot time like with that setup?
      • forinti 1 hour ago
        2 to 3 minutes.

        I'm using a Class 10 card. Maybe a better card would speed things up.

  • MobiusHorizons 2 hours ago
    > pkg_add pkgin

    NetBSD noob question: what’s going on with this command? Is pkg_add not a package manager? If you already have pkg_add why do you need pkgin? I am familiar with `pkg` on FreeBSD, and `pkg_add` on OpenBSD, but they are both perfectly good enough on their own, I never wanted to install another package manager.

    • JdeBP 11 minutes ago
      If you are familiar with FreeBSD, then the parallel answer to the others in this thread is that on FreeBSD there's the bootstrap pkg that you get in base and the pkg that's in the ports tree itself. It's not quite the same, but the general idea holds that there's a less featureful package installer in base and a more featureful one in the package system itself.

      * https://man.freebsd.org/cgi/man.cgi?query=pkg&manpath=FreeBS...

      * https://freshports.org/ports-mgmt/pkg/

    • rustyhancock 1 hour ago
      If you're familiar with Debian tools pkg_add is like dpkg in this case it's used to install the package containing pkgin which is like apt.

      Pkg_add simply installs binaries you ask it to and dependencies but can't do searches or broader package management like pkgin.

      • cyberpunk 36 minutes ago
        how does it find pkgin then? it’s not pkg_add ./pkgin but presumably downloads it?

        or is it just some special case?

        • rustyhancock 26 minutes ago
          PKG_PATH is set and pkg_add automatically adds details to make it point to a package.

          With PKG_PATH set (he does it in the .profile in the blog post)

          pkg_add pkgin becomes pkg_add https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r | cut -d_ -f1)/All/pkgin

          So you can also just use the second command and not set PKG_PATH, or atleast not for every session.

          I prefer to do it that way since pkgin has its own repository config, and if I use pkg_add after installing pkgin it'll be to install packages from the pkgsrc and that might clash if PKG_PATH is set.

          I know it seems contrived.

          https://www.netbsd.org/docs/pkgsrc/using.html

  • krautburglar 1 hour ago
    I think the biggest problem with many of the non-Linux open source kernels these days is high idle CPU consumption — on both real hardware, and under virtualization.

    Did latest OpenBSD & Haiku recently under KVM. Idle OBSD was using around 20% CPU to do nothing. Haiku, 30%. And it’s not just a virtualization thing. Thinkpad battery test yielded similar results.

    • HeckFeck 1 hour ago
      That's the blocker for me too. I'd love to roll NetBSD, OpenBSD or Haiku.. but how well does it work with hardware, energy consumption and resource management? It's really just the mainstream OSes or nothing, sadly.
  • Nik0laich 3 hours ago
    [flagged]
  • hoppp 2 hours ago
    The pixel art font is so bad I can only read the code snippets
    • MobiusHorizons 1 hour ago
      It looks like a pretty standard bitmap font to me. Very legible to my eye. What’s wrong with bitmap fonts?
      • MisterTea 1 hour ago
        > Very legible to my eye.

        Your retort is ableism. Some people have vision problems such as myself and I find reading the cute yet blocky font to be very uncomfortable. Thankfully, reader mode fixes this.

    • conradfr 2 hours ago
      Reader view in Firefox does the job.
    • throw432196 2 hours ago
      Yeah, exactly. I gave up very quickly.
    • 1313ed01 2 hours ago
      Read the original gemini version then. I have not looked at it, but gemtext has no support for setting fonts at all, so it can not use a font you dislike unless you set that up in your gemini client.
    • ClikeX 2 hours ago
      I read this before opening the page, and I figured it couldn't be that bad. I instantly felt my eyes straining to read the introduction.
    • boxed 2 hours ago
      But it's not AI slop! /s
  • skrellm 3 hours ago
    "Get Balena's Etcher (if you don't have it)"

    You lost me there. Why are ppl still using this electron monstrosity when there are so many better alternatives? (Like dd, WIN32Imager, USBImager, DiskImager, etc.)?

    I mean, Etcher is bigger than the entire NetBSD image, what the hell?

    • drdexebtjl 27 minutes ago
      I like it. It’s cross platform, so you can recommend it to anyone. It prevents you from writing to system disks accidentally. It verifies the image after writing.

      Who cares if it’s an electron monstrosity? It’s a portable executable, you run it once and then never again.

      • skrellm 7 minutes ago
        > It’s cross platform, so you can recommend it to anyone. It prevents you from writing to system disks accidentally. It verifies the image after writing.

        USBImager likewise, cross-platform, stupid-proof, verifies write, decompresses on-the-fly, but it's multilingual too and does not collect your data like Etcher. All of that in just 300 kilobytes in a single portable executable.

        https://bztsrc.gitlab.io/usbimager/

        I prefer to recommend that instead to anyone.

    • load-bearing 1 hour ago
      You usually don't even need dd, plain cat <iso >device is fine, or pv if you want to be fancy and want progress bars.

      Less of a chance of swapping if/of and destroying something unexpected.

      • skrellm 6 minutes ago
        > You usually don't even need dd, plain cat <iso >device is fine

        Definitely not. In fact, even dd is insufficient unless you use os specific flags to flush the disk cache, otherwise your stick might be corrupted. Read about the fdatasync syscall.

      • jandrese 1 hour ago
        This is one of those things that SystemD can make more complicated. When you DD a disk image on something it rewrites the disk header, which can cause SystemD to reparse the header and do some weird stuff with the device that causes the write to fail or get corrupted. Etcher works around that problem.

        That said, the more lightweight "Disk Image Creator" also gets around this problem without dragging in an entire self contained browser.

        • dmitrygr 24 minutes ago
          What is this "systemd" you speak of? Getting in between a man-as-root and his dev nodes? Sounds most un-unixlike.
    • justin66 2 hours ago
      dd and Etcher do not exactly have the same target audience.
      • skrellm 5 minutes ago
        > dd and Etcher do not exactly have the same target audience.

        But the others do. They are all minimal GUI apps.

      • cf100clunk 1 hour ago
        Given the topic, I'd say the target audience preference would likely be thus:

        Admin/root superuser of rpi4: dd

        Admin/root superuser of NetBSD, other BSDs, or linux: dd

  • mrkn1 2 hours ago
    funny, most people, when they free up a Raspberry Pi, install Home Assistant or Pi-hole.vThis guy installs NetBSD 11.

    He spends half the tutorial getting Wi-Fi working, then installs a modern desktop environment styled after a desktop environment from 1993.

    next level nostalgia

    • cf100clunk 1 hour ago
      I see in the list of NetBSD packages that the parts for a fairly good Pi-Hole replica seem to be there. This writer seemed to need WiFi and a desktop, but of course neither is necessary for a Pi-Hole type of host.

      https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/index-all.h...

    • coredog64 2 hours ago
      He's got me thinking I could recreate something that looks like 4dwm and put my NetBSD Pi into a defunct O2 case. A "good" O2 from 96-97 would have been 200MHz w/ 256MB of RAM and a 1600SW display (1600x1024).
    • anthk 46 minutes ago
      EMWM would have been far better and lighter than NsCDE, even if compiled from mainline releases with everything: emwm, xfiles, ximaging...
  • aframemodular 2 hours ago
    Can one point me to the lines of code in the Linux kernel that contain AI slop?
    • miah_ 14 minutes ago
      Linus himself recently worked on a cache contention issue and used AI to assist.

      https://www.tomshardware.com/software/linux/linus-torvalds-p...

    • MrDOS 1 hour ago
      Sure:

        (git ls-files; git log --grep='^Assisted-by: ' --pretty='format:' --stat --name-only | sort | uniq) | sort | uniq --repeated
      
      ...will show you the names of all 6,251 tainted files. You can `git blame` them at your leisure.
      • efficax 57 minutes ago
        "tainted". Can you point to something in any of those 6251 files that is "slop"?
    • LordLotherak 2 hours ago
      They're probably commenting on Linus Torvald's decision to accept commits that may or may not have been assisted with agentic coding in part or whole, getting accepted/rejected on a merit basis instead.

      (Apparently that's too much gray area for some zealots)

    • not_a_bot_4sho 2 hours ago
      Are they in the room with us right now?
  • qubex 1 hour ago
    I find it hilarious that the author deliberately chooses to talk the novice user through the use of Vim (including how to quit it) rather than suggest something simpler such as pico or nano.
    • JdeBP 0 minutes ago
      It's not vim. It's Bostic's nvi. And in fact one of the things that vim users need to be reminded about is that the habitual :wqa and :qa are vim-isms and do not work in other clones such as nvi.
    • miah_ 1 hour ago
      Or the newly released atto(1)

      https://man.netbsd.org/atto.1

    • lilbigdoot 57 minutes ago
      Afaik pico and nano aren't installed by default on NetBSD but vi is