Questions tagged [bsd]
Berkeley Software Distribution is a Unix operating system
261
questions
-1
votes
2
answers
47
views
tar alternative to bsdtar --include
I'm trying to adapt a script that uses bsdtar, which is not available on my Linux distribution.
bsdtar -x -f <file> --include="SOME/FOLDER/"
What is the alternative of --include in ...
0
votes
0
answers
19
views
Multiple (spoken) languages for shell script based locale?
I have the situation where I have some zsh scripts that are used for utilities. I currently have several versions of the scripts, depending on which team is using them. I would like to have single ....
1
vote
0
answers
46
views
Second router can't access addresses when a main router routes over it
I have a main BSD router (A) routing some subnets via a second Linux router (B) and everything works fine.
But when I try to access those subnets from the second router, it doesn't work. It sounds ...
2
votes
1
answer
42
views
Is there a better way to replace the actual shell in a script on a macOS/BSD-like OS?
I am using macOS. I have a shell script that doesn't work with bash but requires zsh. If I accidentally call it with sh (which is a very old bash on macOS) or bash I want it to replace sh or bash with ...
0
votes
0
answers
24
views
net domain Command Prompts for a Password?
I have a truenas server surrounded by numerous windows boxes.
No domain, the workgroup on all windows boxes is "XYZ".
The workgroup in truenas SMB setup is also "XYZ".
In the ...
0
votes
0
answers
53
views
BSD namespace existence
Does BSD (Free/Net/Open etc.) have namespace implementation in their kernel (like in Linux). Because I did not find any clear explanation on internet.
5
votes
1
answer
124
views
Is there a *BSD equivalent of MacOS renameatx_np, atomic swap file renaming?
I am looking to create a *BSD compatible C function like the one below:
int
fs_ext__swap (const char *from, const char *to) {
int res = renameatx_np(AT_FDCWD, from, AT_FDCWD, to, RENAME_SWAP);
...
2
votes
1
answer
110
views
Is it safe to delete GNUSparseFile.0 directory?
While looking through some filesystems to see what consumes disk space I found out a directory called GNUSparseFile.0. I can't easily find out if its contents are used. Can it be some temporary ...
0
votes
2
answers
86
views
Split large plaintext file into smaller ones on the last whitespace before each 2000th character
Requirement: BSD versions of tools not GNU.
I have a ZSH script that scrapes a weekly newsletter from a website, grabs the main section, converts it into plain text, and saves it to a file. It then ...
0
votes
1
answer
58
views
Why am I getting this error when running "find -E -regex" on macos 12.6.x?
As part of a script to clean up folders on our server, I've written a find regex (on Macos 12.6.x) that will find directories that are named as "YYYY_MM_DD" and then change the name of the ...
2
votes
2
answers
297
views
Which BSD operating systems are completely without GPL licensed code?
Are there any BSD operating systems that do not include any code under GPL licence?
I see FreeBSD intends not to generally but might.
Is there a 100% bsd only version of freebsd? Or other *BSD ...
0
votes
2
answers
445
views
Extract archive with BSD tar to directory with same basename
GNU tar allows to extract the contents of an archive to a directory named after the basename of the archive.
$ touch foobar
$ gnutar czf archive.tar.gz foobar
$ gnutar --one-top-level -xf archive.tar....
0
votes
0
answers
50
views
How to write to a given pid's stdin, given the unix domain socket address from losf (BSD, Darwin, MacOS)?
If I have the address of a unix domain socket for a processes' stdin, how can I send it data?
There's a daemonized process running on my system that I didn't launch, but I am root. I need to send it a ...
0
votes
1
answer
158
views
FreeBSD rootfs in 32MB RAM?
How to build a FreeBSD rootfs from scratch that can be mounted in RAM? This rootfs will be mounted right after the kernel is loaded in the system. The desired filesystem is UFS and then the RAM ...
2
votes
1
answer
95
views
How FreeBSD-Based OSes like FuryBSD Are Made?
I want to know how the FreeBSD-based operating systems like FuryBSD, PCBSD, and GhostBSD are made.
Can I create my own project by just doing these steps?
Add some packages to default ones on base OS
...
4
votes
3
answers
847
views
Using "shred" on BSD systems
Linux has shred, from the GNU coreutils package, to securely overwrite data in-place when removing files. What is the equivalent on BSD systems (and specifically on macOS)?
0
votes
0
answers
164
views
How can I get a BSD date command for Linux without compiling source code
I prefer the way the BSD date command allows returning arbitrary dates over the Linux date command. Is there a date program using BSD command line syntax and functionality for Linux?
0
votes
1
answer
41
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 ...
4
votes
1
answer
165
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
212
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
438
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
108
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 ...
24
votes
7
answers
6k
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 ...
15
votes
2
answers
3k
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
51
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
130
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
720
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
31
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
109
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
148
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
284
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
558
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
437
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 ...
9
votes
1
answer
4k
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
326
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.
...
0
votes
1
answer
370
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
220
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
2k
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 ...
2
votes
1
answer
1k
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
465
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
194
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
512
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. ...
1
vote
2
answers
1k
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
110
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
171
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
208
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
278
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
248
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 ...
-3
votes
1
answer
242
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
336
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 ...