Skip to main content

Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

How to find file names with non-printable characters using BSD `find -regex`?

Some folders on macOS have custom icons that are stored in a file named Icon?, where the ? is actually a CR character, and only prints as "?" in most cases (in Terminal and Finder). But when ...
Thomas Tempelmann's user avatar
2 votes
1 answer
40 views

How to disable logical processors in OpenBSD?

It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative. Moreover, ...
nalzok's user avatar
  • 391
2 votes
1 answer
59 views

Old 43BSD and netstat output

On old 43BSD... netstat -f unix Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr 801ca38c dgram 0 0 8008b5c0 0 0 0 /dev/...
elbarna's user avatar
  • 12.8k
1 vote
1 answer
614 views

Is there a way to install docker on freeBSD?

Is there any way to install docker on FreeBSD? I tried following the official freeBSD handbook but from what i have found the version of docker on FreeBSD is broken (i read that on docker page). i ...
Crazegi Contact's user avatar
0 votes
0 answers
34 views

What should be done when a terminal application does not recognise some keyboard inputs? [duplicate]

I'm trying to play a very old Star Trek BSD game. It recognises characters that I type, but I occasionally make an error and want to use the arrow keys to correct it. This always fails. The pressing ...
J. Mini's user avatar
  • 157
2 votes
0 answers
195 views

Installing BSD tools on linux

I wrote a bash script to simplify some boring task in my codebase. As most of my coworkers are using MacOS, I aimed at POSIX complience and tried to stay away from bashisms. When it was time to ...
RaK's user avatar
  • 21
0 votes
0 answers
23 views

Error code list for vfs_mount for OpenStep 4.2 (BSD 4.3/Mach)

(Background, This is not the question) I'm having trouble installing OpenStep 4.2 (Intel) on my old laptop, It's because it can't find a OpenStep root image (which I understand) here is the error. hc0:...
Puha Technologies's user avatar
-1 votes
2 answers
175 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 ...
mkrasowski's user avatar
0 votes
0 answers
38 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 ....
b degnan's user avatar
  • 111
1 vote
0 answers
53 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 ...
sergeymakinen's user avatar
2 votes
1 answer
56 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 ...
gctwnl's user avatar
  • 133
0 votes
0 answers
28 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 ...
eewiz's user avatar
  • 1
0 votes
0 answers
121 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.
22EF's user avatar
  • 11
5 votes
1 answer
207 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); ...
Lee's user avatar
  • 519
2 votes
1 answer
205 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 ...
filo's user avatar
  • 193
0 votes
2 answers
109 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 ...
user52470's user avatar
  • 260
0 votes
1 answer
110 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 ...
bunk3m's user avatar
  • 3
2 votes
2 answers
451 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 ...
Lee's user avatar
  • 519
1 vote
2 answers
920 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....
Stefan Schmidt's user avatar
0 votes
1 answer
223 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 ...
ordinary_guy's user avatar
2 votes
1 answer
115 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 ...
Asura's user avatar
  • 29
4 votes
3 answers
1k 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)?
CarriMegrabyan's user avatar
0 votes
0 answers
236 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?
Senior Geek's user avatar
0 votes
1 answer
50 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 ...
rubunu's user avatar
  • 1
4 votes
1 answer
235 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 ...
codepoet's user avatar
  • 596
1 vote
0 answers
277 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 ...
user528840's user avatar
2 votes
2 answers
541 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, ...
codepoet's user avatar
  • 596
3 votes
0 answers
123 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 ...
jesse_b's user avatar
  • 37.4k
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 ...
Slancaster's user avatar
16 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, ...
A.L - say no to AI's user avatar
0 votes
1 answer
65 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 ...
user137369's user avatar
0 votes
1 answer
232 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 ...
Teddy C's user avatar
  • 457
0 votes
0 answers
903 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:...
Euler-Maskerony's user avatar
0 votes
0 answers
36 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 ...
Ottavio's user avatar
0 votes
2 answers
123 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 ...
ShapeOfMatter's user avatar
0 votes
0 answers
218 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 ...
Gentile Giant's user avatar
1 vote
1 answer
348 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 ...
Rick's user avatar
  • 205
0 votes
1 answer
681 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 ...
MarcoZen's user avatar
  • 191
0 votes
2 answers
503 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 ...
Andy Chow's user avatar
  • 103
11 votes
1 answer
6k 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 ...
ruohola's user avatar
  • 282
3 votes
1 answer
407 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. ...
hippietrail's user avatar
0 votes
1 answer
449 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 "...
Sarah's user avatar
  • 1
3 votes
1 answer
242 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 &...
youpilat13's user avatar
0 votes
1 answer
3k 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 ...
rjurney's user avatar
  • 101
3 votes
1 answer
2k 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 ...
Shuzheng's user avatar
  • 4,541
0 votes
1 answer
618 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 ...
megajubatus580's user avatar
0 votes
1 answer
212 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 ...
yssup's user avatar
  • 53
1 vote
0 answers
578 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. ...
Confguy2016's user avatar
1 vote
2 answers
2k 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 ~]...
payagit373's user avatar
2 votes
1 answer
113 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 ...
user10191234's user avatar

1
2 3 4 5 6