/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,564 Subscribers

2

Linux login via serial connection

I have a computer running alpine linux and another running netbsd 10

I am trying to login to the netbsd box via a rs-232 serial connection on the linux box.

I am new to serial stuff so i am experimenting but i cannot seem to login to the netbsd box via linux

On the netbsd box i can log into the linux box by using cu

"cu -s 9600 -f -l /dev/tty00"

This works fine and i can use the linux box from netbsd.

But on the linux box i have tried using screen and cu and neither work

"screen /dev/ttyS0"

"cu -s 9600 -l /dev/ttyS0"

Neither work, i have tried setting the speed to 115200 and still nothing, there are no errors reported and cu says it has connected but there is no output, on netbsd i get a login prompt for alpine linux.

Heres the output of "dmesg | grep com0" on netbsd

com0 at acpi0 (UAR1, PNP0501-1): io 0x3f8-0x3ff irq4 com0: ns16550a, 16-byte FIFO

Heres the output of "dmesg | grep ttyS0" on linux

ttyS0 at I/0 0x3f8 (irq = 4, base_baud = 115200) is a 16550A

Let me know if you need any more information from me, any help would be appreciated, thank you.

Edit: I also have this in my boot.cfg

consdev=com0,9600

I dont remeber what website i found this on but yeah thats there.

5 Comments
2024/05/12
19:09 UTC

6

USB sound card needed that plays well with NetBSD 10 amd64.

Can anyone provide some information about a USB sound card (class 1.0) that is confirmed to work on NetBSD 10 amd64? I am not getting much traction on this issue so far. I purchased an AudioQuest DragonFly Black that was stated in specs and reviews to be class 1.0 compliant, but it doesn’t play well with NetBSD. I have other sound cards that don’t work either... I don’t need something fancy like dolby surround sound and such. For NetBSD, I just need something that will take a speaker mini jack from my computer speakers, and can be played fairly loud without distortion, as I use Tomplay for practicing saxophone.

Otherwise, I am quite satisfied with my NetBSD desktop system, that I now have up and running thanks to the NetBSD community.

3 Comments
2024/05/11
13:28 UTC

6

Setting up HP printer on NetBSD.

I have an HP Color LaserJet Pro M454dw printer that I am trying to get setup with NetBSD 10, using the default ctwm window manager. My printer is connected to my home network. The printer is known as a “driverless” printer and is using the HP Color LaserJet Pro M453-4 Postscript driver. Cups, hplip and foomatic (dependency) are installed.

When I print from the ctwm window manager, in Firefox, nothing ever appears in the job queue. Likewise, if I try to print from Leafpad, I only have the options of printing to file or to lpr, despite system printing settings and Cups appearing to be setup correctly… Obviously something is not configured as it should, but as I have not set up my printer in NetBSD before and I haven’t found much of use either in the NetBSD documentation, or in the Unix and Linux System Administration Handbook, despite both sources also covering Cups, I am a bit clueless at this point.

Does anyone understand what is going on? I am trying to completely migrate to NetBSD, so I don’t have a computer with a working printing setup at this time…

12 Comments
2024/05/09
08:19 UTC

3

AMD64 bios usb install disk gives error Stopped in pid 196.196 (init)

when trying to install on a eMachines ET1831-07 using the usb amd64 bios image, during the boot proccess it stops with the error

Stopped in pid 196.196 (init) at netbsd:breakpoint+0x5: leave breakpoint() at netbsd:breakpoint+0x5 vpanic() at netbsd:vpanic+0x183 panic() at netbsd:panic+0x3c cnopen() at netbsd:cnopen+0x104 cdev_open() at netbsd:cdev_open+0x12a spec_open() at netbsd:spec_open+0x1e0 VOP_OPEN() at netbsd:VOP_OPEN+0x3e vn_open() at netbsd:vn_open+0x2ec do_open() at netbsd:do_open+0xc3 do_sys_openat() at netbsd:do_sys_openat+0x74 sys_open() at netbsd:sys_open+0x24 syscall() at netbsd:syscall+0x1fc

--- syscall (number 5) ---
netbsd:syscall+0x1fc:
ds    8
es    0
fs    180
gs    4a80
rdi    0
rsi    ffffffff81d88000
rbp    ffff9e0128dd4ad0
rbx    0
rdx    1
rcx    fffffffffffffff
rax    8000000000000000
r8    0
r9    0
r10    ffffffff818450e0    x86_mem
r11    ffffffffe
r12    ffffffff8139af6f    ostype+0x13aa
r13    ffff9e0128dd4b18
r14    104
r15    ffff855a80d4c080
rip    ffffffff80235385    breakpoint+0x5
cs    8
rflags    202
rsp    ffff9e0128dd4ad0
ss    10
netbsd:breakpoint+0x5: leave
db{0}>

i am a complete bsd noob so i dont know if i am just doing something wrong or if something is wrong with my hardware

0 Comments
2024/05/08
21:06 UTC

7

Need some help with CS631: Advanced programming in the Unix Environment

I have troubles with configuring NetBSD system on VM from the following course: https://stevens.netmeister.org/631/

Specifically, after the reboot you can't log in anymore and there is this message: "login incorrect or refused on this terminal".
I can login as root or choose to boot as a single-user.
Any help is greatly appreciated.

14 Comments
2024/05/05
15:54 UTC

2

NetBSD 10 amd64 install on Fujitsu thin client. Media server?

I had the intention of installing a media server (Jellyfin) on a NetBSD install, largely as an experiment, to gain some experience with NetBSD as a media server / NAS. Unfortunately, Jellyfin doesn’t appear to be available for NetBSD. The question is whether NetBSD has some native program that can be used as a media server…

0 Comments
2024/05/03
17:23 UTC

5

Encountered a problem with the pkgsrc branch

Hello everyone, I am not good at English, this is translated by translation software. I have some problems. 1. Why does pkgsrc have so many branches? 2. The machine is Thinkpad X60, i386 processor, I want to install fcitx5, 10.0 branch does not have fcitx5-configtool, 10.0_2023Q4 does not have fcitx5-chinese-addone, I installed these two software in two branches respectively, but they cannot be used, what should I do? Thank you

6 Comments
2024/04/27
14:43 UTC

5

United BSD site giving off http 500 errors.

I am hoping that someone from unitedbsd.com notices this post, or is told via the grapevine…

2 Comments
2024/04/27
08:44 UTC

8

NetBSD for product OS question

Hi guys. We tried to find an answer to my question and took a deep dive down the internet rabbit hole, but had no luck. So, we're hoping by coming here maybe you guys can help.

My question is regarding using NetBSD as an OS in an audiovisual consumer product, specifically on an ARM processor. Is it complete enough, and feature rich enough to be able to handle video and audio codecs, WiFi, Bluetooth, audiovisual ports, handle processing of high resolution photos and video (6k) at high frame rates, and can it work with the AI, machine learning, part of the ARM processor?

We are at the concept stage of a product and we have to decide between Linux (deciding which distro is best for ARM processors), or BSD. Based on what we've learned, out of the BSDs NetBSD seems to be the lightest and most flexible, with the most amiable community. Also, can existing Linux code or apps be adapted to NetBSD to have a BSD version?

Thanks in advance.

4 Comments
2024/04/24
20:00 UTC

5

Disk Encryption + GPT + Wedges -- has anyone done this on NetBSD 10??

Having a rough go at setting up a NetBSD box with disk encryption (Passphrase needed to complete boot). These are my steps but I don't get too far since disklabel wd0 shows two redundant partitions (a: and d: --- one of them shows "unused" and the other "4.2BSD"). Is this a bug? Any tips would be much appreciated.

I'm starting with the NetBSD 10 USB Installer (sd0) and running /bin/sh from the Utilities. There is one target disk on the machine (wd0)

gpt destroy -f /dev/rwd0 # Clears existing GPT partition table

gpt create /dev/rwd0

gpt add -a 4k -s 260M -t efi /dev/rwd0 # EFI system partition

gpt add -a 4k -s 800G -t ffs /dev/rwd0 # Root partition for encryption

newfs_msdos /dev/rdk2

mount /dev/dk3 /mnt --> THIS RESULTS IN "incorrect super block"

mkdir -p /mnt/etc/cgd

cgdconfig -g -o /mnt/etc/cgd/paramsfile -k argon2id -V aes-xts -s 256

cgdconfig -V aes-xts -k argon2id -s 256 cgd0 /dev/dk3

newfs /dev/rcgd0

mount /dev/cgd0 /mnt

mkdir /mnt/boot

mkdir /mnt/boot/efi

mount -t msdos /dev/dk2 /mnt/boot/efi

Edit /mnt/etc/fstab

/dev/cgd0 / ffs rw 1 1

/dev/dk2 /boot/efi msdos rw 1 2

Edit /mnt/etc/cgd/cgd.conf

cgd0 /dev/dk3 /etc/cgd/paramsfile

Edit /mnt/etc/rc.conf

cgd=YES

cgd_config="/etc/cgd/cgd.conf"

2 Comments
2024/04/23
15:05 UTC

5

Hard times with 10

Having some issues with 10th version Trying to install Firefox on 4th years old laptop,doing pkgin install Firefox it hangs at least 6hours,doing ping to the https://FTP.netbsd.org/pub/plgsrc/packages/NetBSD/amd64/10.0/All/ it works fine As soon as I try to install something seems not working, it's going on from several days right now Tried to reinstall a couple of times,but no way.tried to use sysinstall and checked the network no way either. Thank you

4 Comments
2024/04/23
05:21 UTC

2

How To Increase Open Files For A User

So I have attempted to alter the default group in /etc/login.conf. I cannot figure out how to increase the open files for a user on NetBSD.

ulimit -a
number of threads                   (-T) 4013
socket buffer size           (bytes, -b) unlimited
core file size              (blocks, -c) unlimited
data seg size               (kbytes, -d) 524288
file size                   (blocks, -f) unlimited
max locked memory           (kbytes, -l) 2640369
max memory size             (kbytes, -m) 7921108
open files                          (-n) 1024
pipe size                (512 bytes, -p) 1
stack size                  (kbytes, -s) 4096
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 160
virtual memory              (kbytes, -v) unlimited

I am attempting to run Syncthing on NetBSD and everything I try just seems not to work. I added group users to /etc/login.conf also and tried cap_mkdb /etc/login.conf and rebooted. I cannot find any really good documentation on this. With ulimit -n I can decrease the value, but not increase it. I am happy to read some good documentation on this if anyone has any pointers. Thanks in advance.

2 Comments
2024/04/22
13:52 UTC

14

Bikeshedding a name for pkgsrc's unbranded Firefox

heya folks,

Recently a few reviews have noted being very confused by our version of Firefox being called Nightly for trademark reasons (even the extended upport versions!)

Changing this is really quite trivial, I have a few proposals you can vote on here. NON-BINDING:

https://www.rcv123.org/ballot/kqm4LGKH5yKXsqZg857ChY

Please rank your choices in order of preference.

Mostly, they are inspired by this image of a prairie dog which some of us have taken up as an "unofficial NetBSD mascot" (also used in this subreddit's sidebar, if you use old reddit):

http://netbsd.org/~nia/prairiedog.jpg

NIH of course means Not Invented Here, a long-stanading meme in the BSD community and wider hacker culture.

However, they're meant to be neutral. This is for the version of Firefox from pkgsrc (not just NetBSD), and some cultures may have negative associations with the word dog.

thanks for your time!

14 Comments
2024/04/21
09:25 UTC

2

Problem with building luna68k

Fairly new to this field, when I am trying to build the lastest luna68k kernel I got

*** Failed target: dependall

*** Failed command: cd "/Users/snow/Code/netBSD/tools/gcc"; /Users/snow/Code/netBSD/build/obj/tooldir.Darwin-23.4.0-arm64/bin/nbmake realall

Could someone here provide me with some insights on this please?

0 Comments
2024/04/21
05:04 UTC

2

Hard disk clone and set dual boot. What's the best way to do this?

So I have a first gen intel macbook pro (32-bit) incoming and I want to install NetBSD on it. It has a hdd so that I will switch to a ssd.

I want to keep the OS X Snow Leopard on the system and set up a dual boot, since Macports and Fink have some support for it and the open source radeon drivers for the GPU don't support H. 264 video decoding, so I might want switch to that here and there.

Problem is that I don't have the original installation disc for os x, so I kind of need to keep that installation intact. And I'm unsure what's the best way to handle this...

My thought is to partition the OS X installation to a smaller size using disk utility on the Mac. Swap in the Ssd. Install netbsd and partition the drive so that I leave enough space for the OS x on the hdd. Then use my sata to usb cable with hdd and dd that OS x partition on to the new partition.

But I have never done this and I'm unsure if netbsd and/or Mac OS x will 'play nice' with my plan.

So I'm kind of looking for thoughts, experiences and suggestions for this?

6 Comments
2024/04/19
20:25 UTC

3

Firefox XPCOM

After an sysupgrade to 10.0 from 10.0_RC6 I CAN'T run Firefox it sticks at objects says Is there a solution? I tried with pkgin install and plgsrc to buil it But I haven't found solutions; I've read somewhere I do not remember where to reinstall but no way either. Thankyou

8 Comments
2024/04/15
11:28 UTC

2

Nvidia driver at NetBSD install media boot?

I have a desktop computer with an Nvidia TU116 [GeForce GTX 1660 SUPER] graphics card, which is supported by the Nvidia driver. Unfortunately, the only way for me to go through the install process, is to have the driver loaded. Is this possible to do at the boot menu, choosing “shell” instead of starting to boot the installer? The shell command “> pkgboot nvidia” appears to be accepted, but the computer just reboots and I get the same very distorted screen again…

20 Comments
2024/04/15
09:47 UTC

2

Pkg base address

Can someone point me the right address of PKG_PATH,for 10.0_RC6

2 Comments
2024/04/14
15:34 UTC

6

Is mixing pkgsrc with pkgin bad?

I have got a laptop which runs NetBSD and (hopefully) does not overheat when compiling software.

I have compiled a few packages with pkgsrc but It's an old ThinkPad and somethings take awhile, I am wanting to install firefox at some point but I know that using pkgsrc it will take a long time, which is fine, but if it is safe to mix pkgsrc with pkgin then I might just install it from pkgin.

But is it bad mixing the two?

Thanks

4 Comments
2024/04/13
21:21 UTC

4

Question about NPF groups

Reading through the docs, NPF seems pretty approachable to me (it seems a little PF-esque even!), but I'm not sure what purpose groups serve. Are they simply a required logical abstraction or do they serve some deeper technical purpose (such as something that could impact performance)?

For example, is there a reason I shouldn't put all my rules into the default group (other than for perhaps better understandability)?

I have no intention or interest in doing such a thing. The point of this question is to help my understanding of NPF.

Thanks!

0 Comments
2024/04/13
03:34 UTC

5

Help needed for booting a Mips cpu

I everyone.

I got an unnamed board with a Netlogic XLP416 CPU on it.

With a little bit of research, I found that it is a 4 core MIPS64el CPU with a 32bit Elf.

Here the docs : http://www.silicon-russia.com/public_materials/2016_09_01_kazakhstan/day_4_microarchitecture/02_articles/243001_netlogic.pdf

Sadly, when i got to the evbmips port of NetBSD i have no idea what version of the OS I should take for that type of CPU.

I've tried it all, but I get this CPU error.

Executing bootcmd1 [run]
cpu_online_map=ffff, userapp_cpu_map ffff
psb_os_active_mask=0, psb_os_mask=0
boot1_info: userapp_cpu_map=ffff, psb_os_cpu_map=0
            cpu_online_map = 0xffff
Jumping to the application... 0x80100000
------------------------------------------------------------
Preparing ffff bitmask of cpus to run
No network device to cleanup
count = 16, total = 16
All slave cpus (16) ack'ed userapp init
count = 4, total = 4
All slave cpus (4) ack'ed message ring init
============ cpu_0 ==============
func = 0x80100000, args = 0x0
sp = 0xffffffff8f24dfe0, gp = 0xffffffff8f24c000
master_cpu = 0, master_mask = 00000001, buddy_mask = 0000ffff
psb_os_cpu_map = 00000000, mode = 1, kseg_master = 0
app_shared_mem: addr = 0000000000000000, size = 0000000000000000, orig = 0000000000000000

Core: 0   Thread: 0
$0 :0x0000000000000000 0xffffffff805a0000 0x0000000000000000 0x000000000000000a
$4 :0x0000000000000000 0xffffffff800ffc70 0x0000000000000001 0xffffffff800ffcf0
$8 :0xfffffffffffffff8 0x0000000000000000 0x0000000000000064 0x0000000000000000
$12 :0xcccccccccccccccd 0xffffffff800ffce0 0xffffffff8fb62632 0x00000000000033ce
$16 :0x0000000000000004 0x0000000000000001 0x0000000000000000 0x0000000000000000
$20 :0x0000000000000000 0x000000000000005b 0x0000000000000001 0xffffffff80650000
$24 :0xffffffff805a8080 0xffffffff80108e10 0xffffffff80108e34 0x0000000000000000
$28 :0xffffffff80658470 0xffffffff800ffc70 0x0000000000000001 0xffffffff8000008c
Hi : 0x0000000000000000
Lo : 0x0000000000000000
badvaddr : 0x0000000000000000
epc  : 0x0000000000000000
Status: 0x00000000000000a2
Cause : 0x0000000000000008
Error EPC: 0x0000000000000000
MIPS exception 2 - should not happen.

Doe anyone could help me figure it out ?

Thanks

6 Comments
2024/04/11
23:21 UTC

Back To Top