2022 Developer Survey is open! Take survey.

Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

Filter by
Sorted by
Tagged with
2 votes
2 answers
33 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, ...
user avatar
3 votes
0 answers
52 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 ...
user avatar
  • 32.6k
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 ...
user avatar
0 votes
0 answers
27 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 # ...
user avatar
  • 371
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, ...
user avatar
  • 1,221
0 votes
1 answer
27 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 ...
user avatar
0 votes
1 answer
42 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 ...
user avatar
  • 401
0 votes
0 answers
158 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:...
user avatar
0 votes
0 answers
23 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 ...
user avatar
0 votes
2 answers
76 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 ...
user avatar
0 votes
0 answers
51 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 ...
user avatar
0 votes
1 answer
112 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 ...
user avatar
  • 135
0 votes
1 answer
261 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 ...
user avatar
  • 171
0 votes
2 answers
227 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 ...
user avatar
5 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 ...
user avatar
  • 173
2 votes
1 answer
111 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. ...
user avatar
1 vote
1 answer
140 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 "...
user avatar
  • 11
3 votes
1 answer
187 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 &...
user avatar
0 votes
1 answer
903 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 ...
user avatar
  • 101
1 vote
1 answer
641 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 ...
user avatar
  • 3,317
0 votes
1 answer
187 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 ...
user avatar
0 votes
1 answer
131 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 ...
user avatar
  • 63
1 vote
0 answers
369 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. ...
user avatar
0 votes
2 answers
342 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 ~]...
user avatar
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 ...
user avatar
0 votes
1 answer
104 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 (...
user avatar
  • 101
1 vote
1 answer
155 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:...
user avatar
  • 75
0 votes
1 answer
112 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 ...
user avatar
2 votes
0 answers
141 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 ...
user avatar
  • 53
-4 votes
1 answer
157 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 ...
user avatar
  • 5,844
1 vote
1 answer
265 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 ...
user avatar
  • 315
4 votes
1 answer
839 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?
user avatar
  • 3,616
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://...
user avatar
  • 10.8k
1 vote
0 answers
204 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/^\[.*\] \(.*\)(....
user avatar
  • 119
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 ...
user avatar
2 votes
1 answer
896 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 ...
user avatar
  • 517
1 vote
0 answers
254 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 ...
user avatar
  • 1,832
2 votes
1 answer
356 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 ...
user avatar
2 votes
2 answers
232 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 ...
user avatar
  • 1,073
1 vote
0 answers
111 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. ...
user avatar
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 ...
user avatar
2 votes
1 answer
736 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 ...
user avatar
  • 211
1 vote
1 answer
696 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 ...
user avatar
4 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 ...
user avatar
  • 3,317
1 vote
3 answers
83 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 ...
user avatar
3 votes
2 answers
380 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 ...
user avatar
0 votes
1 answer
155 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? ...
user avatar
2 votes
1 answer
147 views

Install only a portion of the Ports tree in FreeBSD

I know how to install and update the entire Ports tree in FreeBSD. portsnap fetch extract portsnap update This brings down all the meta-data (and source code?) for some 30,000 apps. This bloats my ...
user avatar
6 votes
2 answers
330 views

Report how much space is used and available in storage in ZFS on FreeBSD

When using ZFS on FreeBSD, how can we see how much space is used and how much is available in storage drives (hard disk, SSD, etc.)? For example, spinning up a virtual machine instance of FreeBSD on ...
user avatar
2 votes
1 answer
1k views

Get current date and time in standard ISO 8601 format on console in FreeBSD

I would like to get the current date-time conveniently on the console in standard ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ For example: 2019-07-13T01:09:35Z I know the date command displays the current ...
user avatar

1
2 3 4 5