Questions tagged [bsd]
Berkeley Software Distribution is a Unix operating system
246
questions
0
votes
1
answer
22
views
Using excess video memory for disk caching?
On newer Ryzen 5000-based laptops, the integrated graphics controller always gets at least 1GB of shared video memory. In the BIOS settings, 1GB is the minimum. For people who don't need 1GB for video ...
3
votes
1
answer
32
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
0
answers
32
views
building a custom freebsd kernel
I am trying to build an arm64 version of the freebsd kernel that has realtek wireless drivers enabled.
I absolutely have to customize the kernel options as some of the drivers do not allow boot time ...
2
votes
2
answers
156
views
How to get unix time of 11PM, and 11PM CST tonight using BSD's date command?
BSD's date -j -f seems to mix seconds and minutes from the current time of the day while still accepting '%H%p' in the time format. All I want to do is convert input format to correct unix time. Also, ...
3
votes
0
answers
57
views
why does bsd grep behave this way
$ grep --version
grep (BSD grep) 2.5.1-FreeBSD
When using bsd grep with the -o option and a multiline search pattern I get results seemingly printed twice. This behavior cannot be reproduced with ...
23
votes
7
answers
5k
views
Modern OS on Ancient Hardware (i486SX, 8 MB of RAM)
I recently acquired an old Packard Bell machine with 8 MB of RAM and an Intel 486SX. I need to put an OS on that hardware. I know that FreeDOS might run on this system, but naturally, I am not nearly ...
0
votes
0
answers
37
views
Incorrect super block error while I'm trying to mount a FreeBSD GPT / UFS2 disk partition on DragonFlyBSD
I'm running DragonFly 6.1 with the Hammer2 fs. I would like to mount the FreeBSD GPT/UFS2 partitions that are located on my USB disks,for example on the disk /dev/da2 :
root@marietto:/home/marietto # ...
15
votes
2
answers
2k
views
What is the bsdutils package on Debian? What is a "BSD-style Unix system"?
I stumbled upon the bsdutils package in Debian. The description says:
This package contains the bare minimum of BSD utilities needed for a Debian system: logger, renice, script, scriptlive, ...
0
votes
1
answer
29
views
Make `less` exit after last page or `more` interpret colors
In a script, I’m doing a git diff that I want to quickly page through. When I’m finished, the pager will exit and the script will continue.
more is great for the task, because I can space through it ...
0
votes
1
answer
48
views
macOS / BSD - add dir to locate database?
How do I add a directory to be indexed by locate.updatedb on macOS / BSD so that I can find files in that directory with the locate command?
I read the man page of locate(1) on Mac, but didn't find ...
0
votes
0
answers
204
views
Can't mount USB during OpenBSD installation
I'm trying to install OpenBSD and I need to mount USB with wifi firmware, but can't find it inside /dev. sysctl shows that it is inserted and no errors in dmesg about it.
$ sysctl hw.disknames
sd0:...
0
votes
0
answers
25
views
Cannot get custom fortune file to randomise entries
I have installed the traditional BSD fortune program on Debian using pkgsrc:
https://pkgsrc.se/games/fortune
The application comes with a set of builtin fortunes that work fine. The fortune files ...
0
votes
2
answers
78
views
Use linux version of a command instead of the BSD version
I have a utility bash script from an old laptop that I'm trying to use on my current laptop. It fails because it's passing unknown options to the column command. Running man column, I see that this ...
0
votes
0
answers
64
views
Recommended CLI-only programming environment?
I wish to learn and program within a Unix-like OS without a GUI. I'm aware every distribution has a text-only version, but which one is more supportive of this use?
Ideally this would involve ...
0
votes
1
answer
123
views
Getting FreeBSD to recognize a 8th SATA drive?
I have a TrueNAS Mini E (running FreeBSD 11.3-RELEASE-p14), which comes pre-configured with seven drives: 4 3.5" for main storage, two SSD caches, and a boot disk. The hardware has two more SATA ...
0
votes
1
answer
284
views
Pfsense - Installing Latest 'speedtest-cli' ( v2.1.3) to overcome error 'ValueError: invalid literal for int() with base 10'
Anyone able to install the latest 'speedtest-cli' ( v2.1.3) in their pfsense box to overcome error;
ValueError: invalid literal for int() with base 10: ''
Apparently something changed upstream and ...
0
votes
2
answers
242
views
Change ports mirror in FreeBSD
The initial portsnap fetch command is talking forever. I'm getting speeds of 3427 Bps. Bps. So 3.4 KBps. Where's the config to change the mirror.
Please note I'm not talking about the actual building ...
6
votes
1
answer
2k
views
How to quit the `mg` editor?
I tried to use one of my Git aliases and accidentally opened the mg editor. I tried a lof of different keys and nothing seemed to close it. I eventually just used ctrlz to to send it to the background ...
2
votes
1
answer
128
views
API/syscall to read or list BSD/macOS file flags
I've learned that besides the standard *nix file permissions, macOS also has file flags, and that they originated with BSD Unix. macOS's set of such flags is:
UF_NODUMP Do not dump the file.
...
1
vote
1
answer
163
views
Why wont wifi work on openbsd
I'm on latest OpenBSD, fully installed, installed drivers for iwx0 which is the wireless card I have. My /etc/hostname.iwx0 has the following in it
nwid "mywifiname" wpakey "...
3
votes
1
answer
191
views
"locate" returns relative instead of absolute paths
One advised me to post here since this would be more appropriate (I am going to remove the previous one).
On my MacBook, I have the following entry in root's crontab:
0 */4 * * * cd /private/var/root &...
0
votes
1
answer
967
views
Does the 'cp' command continue to copy all files if it has a permissions problem with one file or folder?
In OS X Mojave / bash, I am in my home directory copying all files using the cp command from the directory ~/Pictures/ to ~/Dropbox/Pictures/ and as often happens when copying without sudo on *nix, I ...
1
vote
1
answer
729
views
How to convert LS_COLORS for Linux into LSCOLORS for BSD?
I've attemped using a LSCOLORS (BSD) generator to convert the below LS_COLORS (Linux) to a format accepted by BSD.
Having read man ls on BSD, I don't think it has any support for specific file ...
0
votes
1
answer
200
views
I get taken back to the xeondm login screen after trying to login on OpenBSD
I am trying to start MWM by default. I edited the $HOME/.xsession script to make OpenBSD boot with MWM by default instead of FVWM, After I rebooted OpenBSD. I tried to login with xenodm, and all it ...
0
votes
1
answer
135
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 ...
1
vote
0
answers
379
views
With HDMI audio, sound volume control does not work in Gnome-3.38 on FreeBSD-12.1
I have a 2nd Gen Intel Sandy bridge Core i3 system with integrated graphics. I am using HDMI output which is connected to my monitor from where the jack is connected to my 2.1 Logitech speaker system. ...
0
votes
2
answers
433
views
I'm not in "wheel" group, but I can "su -"
I don't understand. In BSD if I want to run su -, I have to add myself to wheel group.
Is this not true in Linux?
[test@centos ~]$ uname -a
Linux centos 4.18.0-193.19.1.el8_2.x86_64 ...
[test@centos ~]...
2
votes
1
answer
96
views
Proprietary files during the Unix wars
While reading some papers on the history and evolution of Unix, I keep falling on this text in some way or another even here about some files that were proprietary of AT&T and present in BSD ...
0
votes
1
answer
107
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 (...
1
vote
1
answer
157
views
OpenBSD 6.7 Wireguard instructions fail
Wireguard setup instructions don't work for me on my OpenBSD 6.7 machine:
$ uname -a
OpenBSD foobar 6.7 GENERIC.MP#3 amd64
$ sysctl kern.version
kern.version=OpenBSD 6.7 (GENERIC.MP) #3: Thu Jul 9 07:...
0
votes
1
answer
127
views
BSD (& Linux) tput - basic interoperable color setup
Can anyone on *BSD with GUI please confirm, that the below works on a BSD system correctly or not?
I was trying to create a virtual *BSD test box, but ended up unsuccessful. So, I drained some ...
2
votes
0
answers
154
views
Help: error 7 (RPC: Authentication error) when trying to mount FreeBSD 12.1-RELEASE NFS export on OpenIndiana Hipster GUI client
I have a FreeBSD 12.1-RELEASE machine, hostname DellOptiPlex390. I would like to export the folders /usr/home/jdrch/KeePass & /usr/home/jdrch/Sync and mount them via NFS on an OpenIndiana Hipster ...
-4
votes
1
answer
160
views
Why don't BSD kernels use likely() unlike Linux does?
As pointed out in an answer, there's some use of similar hints to compiler in say, FreeBSD and OpenBSD, but those hints coverage of Linux kernel code is a few magnitudes higher. It might make sense to ...
1
vote
1
answer
274
views
Can't compile deno on FreeBSD
I'm trying to build deno (a javascript runtime built in rust) from source on FreeBSD 12.1.
The compilation failed at rusty_v8.
I then try to compile directly from the rusty_v8 repo.
I've followed ...
4
votes
1
answer
843
views
If Linux runs well on a laptop, will BSD run too? [closed]
Is it a safe bet to assume that if Linux runs well (boot parameters not needed, everything (wifi, bluetooth, etc) works) in a laptop, BSD will run well too?
1
vote
1
answer
33
views
finding a package and what version is in various distributions (stable release) [duplicate]
I am looking to know about a package and what version is it across various distributions. I thought distrowatch might be the answer, but I found it tracks only 224 packages at the most. See https://...
1
vote
0
answers
230
views
Using tr to convert newline to null stops stream output
I'm using the saw and jq plus some filtering to get pretty-printed JSON log streams, but what I have below has no output. It just hangs.
saw watch /aws/ecs/container-log \
| sed -e 's/^\[.*\] \(.*\)(....
1
vote
0
answers
25
views
Tuntap interface odd behavior
I have a program that uses tapcfg to set up a tuntap interface and the interface seems to get setup correctly on the endpoint address I specify which is 169.253.2.100. I also set up the src address to ...
2
votes
1
answer
963
views
What are BSDs' equivalents to /proc and /sys?
The amount of information that can be gathered in linux using the procfs and sysfs which are normally mounted at /proc and /sys is quite substantial.
Being not on a FreeBSD install I am amazed to ...
1
vote
0
answers
260
views
polkit on OpenBSD
I use xfce which came with a polkit action org.xfce.thunar.policy in /usr/local/share/polkit-1/actions/.
This action allow to run thunar as root if you can give the root password.
On debian with ...
2
votes
1
answer
396
views
Omitting one particular nested folder while copying a folder
I know how to use the cp command to recursively (-r) copy nested folders while preserving (-p) file meta-data such as modification times:
cp -pr "/path/from" "path/to"
Is there a ...
2
votes
2
answers
244
views
What is "BSD-style memory management"?
I'm running Arch Linux. In /usr/include/sys/mman.h, it says:
/* Definitions for BSD-style memory management.
Copyright (C) 1994-2019 Free Software Foundation, Inc.
.
.
.
What does this mean? What ...
1
vote
0
answers
142
views
BSD netcat how to terminate after sending command?
echo "test" | nc -N -U example.soc
How can I have this terminate once it has successfully sent the message over?
According to the man page:
There should now be a connection between the ports. ...
6
votes
1
answer
2k
views
What happens on pressing Ctrl-T in a terminal when a program is running?
When I press Ctrl+T while some program is running in a terminal, I get some extra output, e.g.:
$ ping -q -c 100 google.com
PING google.com (172.217.16.46): 56 data bytes
load: 2.39 cmd: ping 5374 ...
2
votes
1
answer
785
views
What does "ln -t" do [duplicate]
What does ln -T do? I know the flag does not exist in the BSD version of ln, and it only exists in the GNU version, and I have read the documentation that it will make ln "treat LINK_NAME as a normal ...
1
vote
1
answer
734
views
cross-compiling for 32-bit architecture on 64-bit (FreeBSD)
I'm having problems cross-compiling a library for 32bit FreeBSD architecture on a 64bit FreeBSD-system. I'm happy about any hint/advice. Compiling for same architecture (64bit) works fine.
I built ...
5
votes
0
answers
4k
views
What's the equivalent to objcopy on macOS?
I would expect llvm-objcopy to be installed on macOS, since its counterpart llvm-objdump is installed toghether with other LLVM tools like clang.
What is the llvm-objcopy-equivalent tool to use on ...
1
vote
3
answers
85
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 ...
3
votes
2
answers
388
views
Test suites for utilities (cat, cp etc) Linux or BSD?
Are there any test suites available for the small programs usually shipped with the operating system? Specifically, programs like cp, cat, dd etc (anything in /bin/) on Linux or BSD; OpenBSD being the ...
0
votes
1
answer
159
views
Install Postgres database on FreeBSD
How does one go about discovering and installing the Postgres database system onto a FreeBSD machine?
Must one install the entire gig of data for the entire Ports tree, and then compile from source? ...