/r/NetBSD

Photograph via snooOG

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Links:

Similar reddits:

/r/NetBSD

3,945 Subscribers

3

NetBSD on the Pico Plus 2

Would it be possible to create a minimal embedded build of NetBSD that would fit on the Pimoroni Pico Plus 2?

https://shop.pimoroni.com/products/pimoroni-pico-plus-2-w

I would love to have a tiny Unix web server running on a pico.

7 Comments
2024/11/27
11:06 UTC

4

acpibat0 issue

I've got NetBSD-10.0 on an old Toshiba Satellite laptop (64bit) that mostly works great except for the following issue: the ACPI system fails to properly setup things for the battery (acpibat0) at boot-up[1]. Doesn't matter if the AC adapter is ON or OFF, the "last full cap" value is 0 and "state" is "invalid". If I then toggle the AC adapter state (ON or OFF) the battery gets properly setup and I can then display current charge percent, etc. I played around with envsys.conf but most acpibat stuff is read-only so that doesn't seem like a possible work-around. Also tried unloading / reloading the acpibat driver via modunload / modload but still no-go. Is there something else I could try outside of trying to load a patched DSDT via a custom kernel?

[1] booting with '-v' (verbose) option:

$ dmesg | grep bat

[ 1.029262] acpibat0 at acpi0 (BAT0, PNP0C0A-1): ACPI Battery

[ 1.950617] acpibat0: autoconfiguration error: failed to evaluate _STA: AE_NO_MEMORY

0 Comments
2024/11/26
19:28 UTC

21

any NetBSD/macPPC users here?

i love restoring old computers. i have an old imac g4 (800mhz model/1gb ram) that im setting up to triple boot os9/panther (for pro tools) and NetBSD. i tried OpenBSD and it ran pretty well, but I could not get Xorg to work for the life of me.

im aware its not a very popular platform anymore, but i just cant bring myself to get rid of it yet. its still a great file server and old games are always fun.

i was curious if anyone is using this port in particular, and what your experience has been like, especially in the last few years? any tips would be HIGHLY appreciated.

15 Comments
2024/11/22
18:38 UTC

3

NetBSD crashes on USB boot

I've been trying to install NetBSD on my HP ZBook, however on the installation boot menu, selecting '1. Install NetBSD' causes the whole laptop to crash.

I've tried this on several other systems too, including an Elitebook, another ZBook of a different model, and an HP mini-pc to be met with the same fate: the entire system shuts off. I've tried several USB utilities to create the bootable, including Rufus, Unetbootin, and I even tried a Linux terminal as a last resort using dd. I've tried several USB drives as well as NetBSD images but nothing seems to work. The drives boot fine on Dell machines, IBM ThinkPads, and my custom tower but just not on any HP machine I have (in fact iirc I even got it to boot on a MacBook as a sanity check). I've tried both UEFI and legacy boot.

Is there something I'm just missing on HP's side? Maybe missing support or either does the system have to be directly recognized by HP's bios to allow me to boot?

Here's all the machines I've tested on HP-wise:

ZBook Firefly 14 G8 (the one I'm actually trying to install on)

Elitebook 850 G8

ZBook Firefly 15 (tried on two separate ones of the same model)

Z2 Mini G8

They all shut off immediately after selecting boot.

12 Comments
2024/11/20
21:44 UTC

6

Can't install

Hello I'm new to NetBSD and have been trying to install it on my Thinkpad T430. However, despite using `userconf` to disable i915drmkms and even the other drivers (radeon and nouveau) out of desperation I am still stuck at a black screen with a cursor. Would greatly appreciate any help.

Thank you

3 Comments
2024/11/12
03:24 UTC

7

A curses question

Hey, people!

I have recently set up a new machine, and decided to get sl on it out of all things (yes, it's annoying but fun), and i noticed that the program was a little broken. Specifically, the whole graphic just stops and does nothing until i give it some input. Is there a list of differences between NBSD curses and ncurses so i can read some things and maybe like patch it myself or something

3 Comments
2024/11/06
10:15 UTC

3

ipfilter crash - ipunit, ipf_resolvedest, ipf_state_putent

Anyone have a hint on what might cause this or how to debug it?

[    26.594186] uvm_fault(0xffffaee6a0a826f8, 0xffffaee710f17000, 1) -> e
[    26.594186] fatal page fault in supervisor mode
[    26.594186] trap type 6 code 0 rip 0xffffffff80dab10a cs 0x8 rflags 0x10246 cr2 0xffffaee710f17978 ilevel 0 rsp 0xffffc5013874d680
[    26.605602] curlwp 0xffffaee69fb900c0 pid 1020.1020 lowest kstack 0xffffc501387492c0
[    26.605602] panic: trap
[    26.605602] cpu0: Begin traceback...
[    26.605602] vpanic() at netbsd:vpanic+0x183
[    26.605602] panic() at netbsd:panic+0x3c
[    26.605602] trap() at netbsd:trap+0xbaf
[    26.605602] --- trap (number 6) ---
[    26.614173] ifunit() at netbsd:ifunit+0x19
[    26.614173] ipf_resolvedest() at ipl:ipf_resolvedest+0x24
[    26.614173] ipf_state_putent() at ipl:ipf_state_putent+0x2e5
[    26.614173] ipfioctl() at ipl:ipfioctl+0x9a
[    26.614173] cdev_ioctl() at netbsd:cdev_ioctl+0x99
[    26.614173] spec_ioctl() at netbsd:spec_ioctl+0x54
[    26.614173] VOP_IOCTL() at netbsd:VOP_IOCTL+0x47
[    26.624174] vn_ioctl() at netbsd:vn_ioctl+0xb1
[    26.624174] sys_ioctl() at netbsd:sys_ioctl+0x56e
[    26.624174] syscall() at netbsd:syscall+0x1fc
[    26.624174] --- syscall (number 54) ---
[    26.624174] netbsd:syscall+0x1fc:
[    26.624174] cpu0: End traceback...
1 Comment
2024/10/29
16:03 UTC

2 Comments
2024/10/25
23:34 UTC

30

NetBSD system with desktop environment on real hardware

Greetings NetBSD world,

I wanted to share the NetBSD system with desktop environment freshly installed on real hardware testing, it looks to be a lightweight and very end-user friendly system, consumes low machine resources.

https://preview.redd.it/d2vo55c7o5vd1.png?width=1583&format=png&auto=webp&s=0078832ec14b20f2a1925f6fc7df2262926440cf

12 Comments
2024/10/16
17:45 UTC

4

How to dump PCI ROMS in netBSD ?

Hi,

Anyone knows how to dump Option ROMS from PCI cards (video, raid, etc.) using netBSD 10?

On linux is quite easy, as it maps the roms to a file (/sys/bus/pci/devices/xxxx/rom). I can not use linux on sparc64 as the kernel crashes before I can reach the point of dumping the bios, while netBSD 10 is rock solid!

1 Comment
2024/10/15
05:35 UTC

9

NetBSD souvenirs

I think I like NetBSD. Are there any official souvenirs selling channels? That is to say, if I buy a sticker or a coffee mug from them, the NetBSD team can directly benefit from what I have paid.

3 Comments
2024/10/13
04:16 UTC

0 Comments
2024/09/30
16:32 UTC

8

Include into NPF's npf.conf like PF's pf.conf

I'm new to BSD, but used Linux before. I'm setting up the network using NetBSD using NetBSD Packet Filetr (NPF). I already know that Packet Filter (PF) has pf.conf and other configs could be included using include instruction. But how could I do the same in NPF? Using sed or awk seems too complicated to me.

0 Comments
2024/09/24
17:56 UTC

4

System Requirements question

The website says 4m of ram and any i486 or better CPU is the minimum, but when I try to boot from cd with NetBSD 10.0 on a system with a Cyrix 6x86 and 16mb of ram, it just hangs before it even gets to the bootloader. Are the requirements wrong? Or am I stupid?

9 Comments
2024/09/22
18:19 UTC

35

my experience with NetBSD/sparc64 on a red Sun Blade 2500

I've spent the weekend trying to put an OS onto a red Sun Blade 2500 that I had lying around. It is a conspicuous little machine with 4G of RAM and one Ultra Sparc 1.28Ghz processor. I used an internal 146GiB scsi disk and an ATAPI cdrom for the installation. A few observations: a) installation of NetBSD 10.x fails if you make the / partition bigger than a certain amount. I haven't played much with the sizing but in the end I was happy with an approximately 4G root partition. b) Running X can be a pain in the ass if you don't have a very specific model of a very specific card. I tried using an XVR100 which , according to the documentation on NetBSD website seemed to be one of the best choices , with no results. If you use an XVR100 PCI card on your SUN box, Xorg will refuse to run no matter what configuration you try passing. I had better luck with an XVR600 as that indeed is capable of running X at a decent speed with the sole limitation of having to run at an 8bpp color depth. This is a problem for a number of apps, such as 'netsurf'. As a matter of fact you won't be able to surf the net using this desktop. I remember , back in the day, some apps were capable of running in 'Pseudocolor' squeezing whatever amount of colors they used into a 256 color window mode but that seems now it's gone from X, isn't it? All in all it was a great experience, and I am happy to be able to use it as a desktop and browsing the net (through a 24 bit VNC display) and utilizing software that is much more recent than the Solaris 9 that came with the box.

https://preview.redd.it/vpby5b1s5eqd1.png?width=1025&format=png&auto=webp&s=a088c735ab36d1158112084b2380d89d8599d04e

8 Comments
2024/09/22
16:54 UTC

3

Trying to run NetBSD on VirtFusion VM

I got a VM (powered by VirtFusion) where I want to run NetBSD, but whatever I try, the netbsd kernel immediately reboots without any output on the console. I have tried several versions of NetBSD, and am seeing the same result with any kernel from 5.0 onwards (a 4.0.1 kernel is fine though).

Any ideas what the reason could be? Or any ideas how I could debug it? I tried compiling a current kernel where I have added a "DELAY" into the panic function - I can see the delay before rebooting, but still no other console output.

7 Comments
2024/09/20
16:58 UTC

20

NetBSD build hardware recommendations

I am loosely following the process by Taylor Campbell to hack the NetBSD. Do you have any recommendations for the hardware that I can complete the build release say, under 1 hour? Laptop or workstation is ok for me.

Currently I can do it in around 3 hours with my 2022 m2 Mac book air.

3 Comments
2024/09/15
09:02 UTC

6

NetBSD on the Motorola 68000?

I've seen that the m68k architecture is still supported by NetBSD. I have a few questions:

  • How usable is the port with the limited amount of RAM available to most m68k machines?
  • Does anything useful work?
  • What's the cheapest retro machine that meets the requirements (mainly including an MMU?)
  • Would running modern UNIX on such an ancient machine be a total waste of time and money?

Thanks in advance for any answers.

12 Comments
2024/09/08
23:00 UTC

13

Using NetBSD as a personal OS

Is there a problem to use NetBSD in my personal PC?

14 Comments
2024/09/08
03:44 UTC

20

May I ask how did you end up using NetBSD? Is it something work related, didn't like X about previous OS, a certain feature?

I have recently started to learn about BSD systems, reading some documentation, looking at packages etc.

50 Comments
2024/08/31
16:57 UTC

6

NetBSD 10, uisng NPF to log connections, not packets

I'm using NetBSD 10 and NPF.

I see how to log packets going through NPF, but is there a way to log udp/tcp connections like ipf/ipmon does?

Thanks!

2 Comments
2024/08/27
18:49 UTC

6

In-place install for NetBSD, w/out external disks?

Hi all, I was wondering if NetBSD had a bootable ramdisk install method, that I could dd to the MBR and then install from that. I saw a ramdisk in the nycdn domain, but it appeared it didn't have any MBR data so when I dd'd it, it didn't boot. I know OpenBSD has this ability, with their "miniroot75.img" which you can simply copy to your MBR, and then it loads the installer entirely in RAM and then you can install the sets via FTP or whatnot. I particularly need this because I'm a cheapskate and won't purchase ISO storage from Contabo. :P Is there a guide on doing this? I also have iPXE boot in the BIOS if that's needed, though I can't control the DHCP server, so i'd need to manually enter the commands into the command-line. Thanks.

8 Comments
2024/08/26
18:57 UTC

Back To Top