Questions tagged [netbsd]
NetBSD is a freely available open source version of Unix-derivative Berkeley Software Distribution (BSD); due to convenient license and portability, NetBSD is often used in embedded systems.
86 questions
0
votes
1
answer
103
views
Netbsd: where are patches/fixes?
pkg_admin audit said..
Package sqlite3-3.49.2 has a memory-corruption vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-6965
Package libxml2-2.14.4 has a use-after-free vulnerability, see ...
0
votes
1
answer
108
views
How to prevent data loss when using blkdiscard on NetBSD
On Linux, this command
fstrim -av
I will remove all unused blocks (particularly interesting on VM disks and necessary on SSD to preserve/get a longer duration).
NetBSD has a similar command called ...
1
vote
1
answer
159
views
NetBSD "-f" option in find
I can't understand what "-f" option to find command on NetBSD mean.
Manual: https://man.netbsd.org/find.1 says
-f Specifies a file hierarchy for find to traverse. File hierarchies may ...
0
votes
0
answers
170
views
NetBSD 10.0 install on HP EliteBook 8570w fails with breakpoint error during boot
I am trying to install, for the first time, NetBSD-10.0-amd64 on HP EliteBook 8570w. After choosing "Install BSD" option installer goes to the booting mode and gets interrupted with an error:...
0
votes
0
answers
484
views
How to build OpenSSL from source, without depending on /lib/libcrypto.so
After several sessions with intense Google searching and trying several angles with ChatGPT, I seem to be at a dead-end, my problem arises when I try to build OpenSSL from source, it seems that the ...
1
vote
2
answers
396
views
Can't use OpenVPN as client on NetBSD, route add command fails
I am trying to use OpenVPN as a client under NetBSD using this command:
openvpn --client --config /etc/openvpn/config.ovpn
I am getting the following output and errors:
localhost# openvpn --client --...
1
vote
0
answers
99
views
NetBSD - how to display information about kernel memory in GDB?
I'm debugging the NetBSD kernel with gdb, but I would like to be able to display information about the memory region an address is in. I'm mainly interested in finding out the permissions of a page of ...
1
vote
1
answer
227
views
NetBSD: how to mount a disk image?
I have create a disk image on netbsd
newfs -F -s 10G 1.img
How to mount it?
I have tried "nodev" but give error and try to mount
/mnt/p2
mount -v -o nodev /home/user/1.img /mnt/p2
1
vote
0
answers
78
views
Is possible to find a single file of NOT installed package on Netbsd?
Simple question:
On Fedora, i want to search mplayer..
dnf provides *bin/mplayer
on Debian
apt -y install apt-file
apt-file update
apt-file search mplayer|grep bin
on Freebsd
pkg install -y pkg-...
0
votes
1
answer
157
views
Netbsd, what is dk?
Simple question, today making iostat on netbsd machine I see..
iostat 2 3
tty ld0 ld1 dk0 dk1 dk2 dk3 ...
2
votes
0
answers
2k
views
NetBSD: podman mount volume: Error: statfs : no such file or directory
I'm experimenting with podman under NetBSD and want to mount a host directory into the container.
According to this answer I did:
podman machine init -v ~/podman/volumes/:/mnt/podman tpvm
podman ...
0
votes
1
answer
198
views
How do I install the manual pages on NetBSD?
I've done a "Minimal" installation of NetBSD 9.3 from the ISO image, just to examine the behavior of one particular command (mktemp) as it differs from Linux.
I'm not seeing man pages for… ...
0
votes
1
answer
365
views
Issues starting headless installation of NetBSD in VirtualBox
On a headless Ubuntu 22.04 machine, I'd like to start a headless installation of NetBSD 9.2 in VirtualBox.
I have a prepared virtual machine with a set of blank disk images attached, as well as with ...
4
votes
1
answer
391
views
What is the most native way to generate desktop notification in BSD unixes
macOS has its "osascript" with "display notification", Linux has its "notify-send". Both are the most native way to generate DE notifications. What is the most native way ...
1
vote
1
answer
635
views
How to "talk" to a "parent" IP in a subnet?
I have access to just *nix systems. Either NetBSD and/or bare Linux-based OS.
So my question comes from the fact that ADB is not widely available on all platforms, if so is very hard to install or ...
2
votes
1
answer
126
views
Why does NetBSD grep slow down nearly 15x on subsequent calls
I'm working through examples in APUE. On a NetBSD 9.0 system, under no major load, I time a call to grep and get an unremarkable result:
apue$ cd /usr/include
apue$ time -p grep __POSIX_SOURCE */*.h &...
0
votes
1
answer
266
views
Why Does the NetBSD System Call Manual Mention the Standard C Library?
I'm reviewing man(2) pages on NetBSD 9, and have seen that all of the documents (write(2), open(2), pipe(2)) mention the Standard C Library at the top.
My understanding was that system calls were ...
1
vote
1
answer
184
views
NetBSD sh -c "echo OK" doesn't give any output? [closed]
I'm testing the portability of some stuff I'm writing to BSD. It's working on Linux, FreeBSD, OpenBSD. It isn't working on NetBSD.
The following is on a fresh VM installation I've made just for the ...
0
votes
1
answer
248
views
How to install a torrent client on a NetBSD server with only SSH access [closed]
I have a remote server running NetBSD 6, to which I have access only via SSH. I have very limited Unix/Linux experience but I guess there are some command line torrent cliens available for Unixes like ...
0
votes
1
answer
268
views
Modifying firewall rules with pfctl on NetBSD 4
I'm wanting to modify some firewall/NAT rules on a device (Apple Airport) running NetBSD 4.0. I'm not that familiar with BSD and pf, so want to check the right approach. I can change the pf.conf file (...
4
votes
3
answers
3k
views
Does *BSD have the ability to encrypt a system partition with full disk encryption?
Does FreeBSD, NetBSD, or OpenBSD have an encryption feature like Linux's dm-crypt?
And will it work for a system partition?
1
vote
1
answer
1k
views
Difference between `pkgin` and `pkg_*`, and which to use?
Coming from Linux land, I assumed that pkgin is some sort of higher-level frontend for pkg_add et al, something like what apt is to dpkg or yum/dnf to rpm. But pkg_add appears to handle installation ...
1
vote
1
answer
4k
views
Is there anything similar to CrystalDiskMark for UNIX?
If you're shopping for an SSD, you've surely seen one of those screenshots from CrystalDiskMark with a few green squares, and the 2x4 matrix with results of doing read/write tests for the given ...
1
vote
0
answers
575
views
How to use resize_ffs in netbsd
I'm trying to use resize_ffs with NetBSD to increase the size of my partition. I have NetBSD running in a virtual machine, and have expanded the size of the disk, and now wish to grow the partition to ...
1
vote
3
answers
175
views
How to compile fIcy for BSD?
I'm trying to compile fIcy (https://gitlab.com/wavexx/fIcy) for NetBSD/FreeBSD.
When I'm executing the make command nothing happens. Even no error message.
The same source package compiles without ...
2
votes
1
answer
225
views
Is NetBSD 'primes' utility or equivalent available in any package on MacOS?
Is the NetBSD primes utility (or equivalent) available on MacOS in any package, other than via manual download-and-compile (e.g. curl)? I searched quite a lot and couldn't find any package (other than ...
1
vote
2
answers
3k
views
How to change the font size in NetBSD (TTY no GUI)
NetBSD 7.1 (GENERIC.201703111743Z) amd64
In TTY without gui , the better screen resolution is set at boot time but the font is really to small.
So how to change that
On debian dpkg-reconfigure ...
0
votes
1
answer
1k
views
Making 'sudo pkg_add' work on NetBSD
Is there any way to make the simple command
sudo pkg_add some-package
work on an ordinary installation of NetBSD without recompiling anything from source code? All other Unix systems that I have ...
0
votes
2
answers
2k
views
Setting wallpaper in NetBSD JWM
I have installed "NetBSD JWM" in the virtual environment of VMware Workstation 14 Pro.
I'd like to set wallpaper but I do not know how to do it.
1
vote
1
answer
4k
views
How to install directly from a package *.tgz file in NetBSD, OpenBSD, or FreeBSD
Is there any way to install software from the *.tgz file that is its package, in NetBSD? Or indeed in operating systems with similar package managers such as OpenBSD or FreeBSD?
For example, I can ...
5
votes
1
answer
6k
views
pkgin installation problem (NetBSD)
I just installed NetBSD 7.1.1 (i386) on my old laptop.
During the installation, I could not install pgkin (I don't know why), so I skipped it and now I have a NetBSD 7.1.1 installed on my laptop ...
0
votes
1
answer
1k
views
How to install Chromium on NetBSD?
I installed NetBSD and Firefox browser successfully but cannot install Chromium:
tak# pkgin install chromium
calculating dependencies... done.
nothing to do.
tak#
How to do this?
2
votes
1
answer
3k
views
How to run tnftpd without root on OS X?
I'm trying to run tnftpd on OS X, which is NetBSD's FTP server and used to be OS X's FTP server. I built and installed it from Apple's sources. Unfortunately, it seems that I cannot run the server ...
0
votes
1
answer
1k
views
php70-fpm doesn't include www.conf on NetBSD
I'm having issues with php70-fpm not including any config files.
I installed php70-fpm using pkgin in php70-fpm. It installs from here: ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/7.1/...
0
votes
1
answer
1k
views
NetBSD - Unable to install pkgin
I'm running NetBSD on the Raspberry Pi 1 Model B.
uname -a
NetBSD rpi 7.99.64 NetBSD 7.99.64 (RPI.201703032010Z) evbarm
I'm trying to install pkgin but I'm receiving an error about version mismatch .....
0
votes
1
answer
196
views
NetBSD: unable to start KDE because of missing shared objects
I'm relatively new to UNIX-like OS's, though I know some basic concepts. I managed to build X server and KDE workspace from pkgsrc for my NetBSD 7.0.2. X starts normally, but KDE won't, because it ...
5
votes
3
answers
2k
views
using pkgsrc in home directory in NetBSD
I'm new to NetBSD, although often using pkgsrc on ubuntu. I can build and install packages from source without any effect ubuntu's package dependencies.
For example, even if ruby 2.2 is installed by ...
0
votes
1
answer
2k
views
Loading NetBSD kernel modules
I want to start using npf on my NetBSD server, rather than relying solely on the external firewall for protection. However, I get:
$ npfctl show
npfctl: /dev/npf: No such file or directory
Alright, ...
3
votes
2
answers
1k
views
NetBSD 7.0.2 not honoring hostname setting when using DHCP
I've recently installed NetBSD 7.0.2, and I'm having trouble setting my hostname right.
I'm using DHCP, so I got dhclient=YES in my /etc/rc.conf.
Now, the documentation says, that there are several ...
3
votes
1
answer
2k
views
How to use 'pkg_add -uu' to upgrade all packages?
According to NetBSD's wiki I can use pkg_add -uu to upgrade packages. However, when I attempt to use pkg_add -uu it results in an error.
pkg_add -uu
pkg_add: missing package name(s)
...
pkg_add -uu *
...
8
votes
2
answers
10k
views
Let ifconfig wait for IPv6-address to not be tentative
I claim an IPv6 address using ifconfig in a script. This address is then immediately used to listen on a TCP port.
When I write the script like this, it fails because the service is unable to listen:
...
0
votes
1
answer
248
views
Are NetBSD provide digital signatures for official ISO images and binary packages?
I just install NetBSD in from ISO image inside VirtualBox.
Official source ISO media contains only MD5/SHA512 sums.
Similarly pkg_add binary packag repository contains only SHA512 sums.
Both FTP ...
1
vote
2
answers
919
views
Creating a user without a password on NetBSD
On my NetBSD installation, I have it set so that root has no password. I can login as root without typing a password. But, when I create a user with just useradd -m <username>, log out, then ...
-2
votes
2
answers
723
views
How do I use pkgsrc?
I'm running NetBSD in a virtual machine. Documentation and explanations on how to use pkgsrc are scarce. Let's say I want to install vim for NetBSD. What would I type? Do I need a URL? Do I need a ...
3
votes
4
answers
1k
views
How long might it take to build NetBSD userland and kernel?
I am interested to use NetBSD as the operating system on my server. I have not used a system where security updates are performed by source, but have read enough in the guide to feel comfortable ...
2
votes
1
answer
333
views
ERROR: make sure the Makefile and checksum file (/usr/pkgsrc/x11/gtk3/distinfo) are up to date
To install Gnome on NetBSD, I did so:
#cd /usr/pkgsrc/meta-pkgs/gnome
#make fetch-list|sh
And waited until all dependencies downloaded, then typed:
#make install clean
Build started, and after a ...
1
vote
2
answers
2k
views
NetBSD install, configure network, stuck at the command /sbin/ifconfig fwip0 media error: ifconfig SIOCGIFMEDIA: inappropriate ioctl for device
I'm in NetBSD installation process, when configuring network, I'm stuck in this command and there is no way out of it:
Status: Command failed
Command: /sbin/ifconfig fwip0 media
Hi enter to continue
...
3
votes
1
answer
333
views
Can a bootable NetBSD be built on OSX?
I've got OSX 10.9.5 . I want to build NetBSD (or at least it's kernel) on my OSX box. I've tried building the 'config' program but I can't find 'build.sh'. Is this possible and what would be the steps ...
3
votes
2
answers
678
views
Automatic install NetBSD ISO
Is there some form of automated NetBSD installation?
I would like to automate this manual process:
https://www.netbsd.org/docs/guide/en/chap-exinst.html
But I found no examples.
2
votes
0
answers
431
views
How to effectively get an US AltGr-Intl layout on NetBSD?
After switching to the us layout with wsconsctl -w encoding=us I was looking for a way to modify the keymap to my liking.
I did:
wsconsctl -w map+="keycode 1 = Cmd_Debugger Caps_Lock"
wsconsctl -w ...