/r/NetBSD
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
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.
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.
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…
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
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.
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…
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
I am hoping that someone from unitedbsd.com notices this post, or is told via the grapevine…
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.
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"
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
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.
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!
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?
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?
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
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…
Can someone point me the right address of PKG_PATH,for 10.0_RC6
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
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!
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