Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How to list all assessment rules from spctl/ assessment rule database?

I am trying to use spctl, and can see it helps manipulate the assessment rule database (e.g. adding or removing). But it doesn't show how to list the existing rules. Can someone help me out? Here is a ...
0
votes
1answer
47 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
1answer
84 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 ...
2
votes
1answer
92 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 ...
0
votes
0answers
7 views

Booting BSD vix pxelinux

I have a pxe server set up so that I can install multiple OSes and diagnostic tools from my lab. One thing I'd like to get set up is booting BSD, but I'm unable to find any reliable documentation on ...
0
votes
0answers
21 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
0answers
36 views

After OpenBSD finished installing, it does not recognize my mouse

I recently installed OpenBSD, and after it got installed. I got a message saying: wsmouse0 detached. Yet the keyboard still works fine. How can I solve this issue? I have a USB mouse by the way for ...
0
votes
1answer
76 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
0answers
101 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
2answers
61 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 ~]...
1
vote
1answer
769 views

Differences between forwarding and redirect in net.inet.ip

What are the differences between sysctl variables net.inet.ip.forwarding and net.inet.ip.redirect?
8
votes
2answers
3k views

UNIX-, BSD-, GNU-options in Linux's ps command. Where are they from?

In the manual for the ps command on Ubuntu there is this text: This version of ps accepts several kinds of options: 1 UNIX options, which may be grouped and must be preceded by a dash. ...
0
votes
1answer
43 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
1answer
82 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:...
2
votes
1answer
54 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
0answers
31 views

FreeBSD: how to unionfs so upper layer is writable while files present in lower is read-only?

Is it possible to create a unionfs so that writing to files that present in the lower layer is prohibited, while anything else in the upper layer (the mount point) is still writable? In a sense, I ...
1
vote
1answer
331 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 ...
2
votes
1answer
777 views

With bsdtar “--exclude”, how to only exclude subdirectories?

In GNU tar (i.e. gtar), the --exclude option with a glob only matches the subdirectories, but not the directory itself. For example, --exclude test-tar/a/b/* would exclude anything inside of b, but ...
0
votes
1answer
36 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 ...
0
votes
0answers
32 views

Keyboard layout is totally off with one of my keyboards

I have an Obins - Anne Pro mechanical keyboard I used in the last 2 years on a Windows 7 PC. Since Windows 7 is no longer supported I decided to replace it with an Unix OS. I use a different computer ...
2
votes
0answers
35 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
1answer
125 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 ...
3
votes
1answer
3k views

How to install portmaster on FreeBSD?

I'm trying to install portmaster on FreeBSD but I get an error about the port format: root@freebsd:/usr/ports/ports-mgmt/portmaster # make install clean ===> portmaster-3.17.8_1 pkg(8) must be ...
1
vote
1answer
119 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 ...
53
votes
5answers
49k views

What are the differences between bsdtar and GNU tar?

I've always used GNU tar. However, all GNU/Linux distributions that I've seen ship bsdtar in their repositories. I've even seen it installed by default in some, IIRC. I know for sure that Arch GNU/...
4
votes
1answer
759 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?
2
votes
1answer
231 views

Are there any PaxTest for OpenBSD?

Pax: PaX is a process memory protection patch For FreeBSD, there exists a testsuite called PaxTest, is there a PaxTest available for OpenBSD?
1
vote
2answers
828 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 ...
3
votes
1answer
2k 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 ...
1
vote
1answer
28 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://...
4
votes
2answers
217 views

Why was shar written if tar already existed?

According to the BSD man pages, tar first appeared in Version 7 UNIX in 1979, but shar first appeared in 4.4BSD, which was released in 1994. What were the perceived advantages to shar at the time? ...
0
votes
0answers
69 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
0answers
23 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 ...
1
vote
2answers
2k views

How to copy files from android device to OpenBSD

Here is what dmesg | tail shows after I connect my android phone to the USB port (the last three lines show up when I turn on USB tethering on the android device): # dmesg | tail vscsi0 at root ...
6
votes
1answer
2k views

How to use keyfiles,for ZFS whole disk encryption?

Does anyone have a working implementation using keyfiles, preferably on SD Card, instead of a prompt for ZFS? I know how to do this with linux LVM/LUKS. In my opinion the FreeBSD full disk ...
1
vote
1answer
211 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 ...
13
votes
5answers
15k views

How to know which ports are listened by certain PID?

I have a PID of certain process listening some port(s) on my OS X and I need to know which port(s) is listened by this process. How can I do it? I know I can use lsof to know which process is ...
1
vote
0answers
100 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 ...
12
votes
1answer
442 views

Is this documented behavior for BSD Awk, or a bug?

Apparently, a bracket expression in BSD Awk which contains a character class will ignore any further characters after the character class: MacOS $ cat file.txt _ - . a B 8 : ; @ ~ , MacOS $ awk '/[@~....
2
votes
2answers
102 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
0answers
38 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. ...
12
votes
1answer
3k views

Reliably determine free memory in BSD

Linux distributions tend (but are not required) to include free from procps, which allows a nice concise display of memory consumption: # free -m total used free ...
5
votes
1answer
1k 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 ...
18
votes
2answers
45k views

chmod: What does the `+a` parameter mean?

I was following a tutorial and it told me to run sudo chmod +a "SOME_PARAMS" some/dir I was surprised to see that fail telling me chmod: invalid mode: `+a' So I wonder: What does the +a mode mean? ...
4
votes
5answers
4k views

EPUB reader for *BSD/Linux

What are the best native EPUB readers for *BSD/Linux. Browser add-ons are not an option. I prefer non-Qt applications but you can share Qt applications if you want. If possible, I want a program that ...
21
votes
7answers
11k views

How can I generate SHA3 if there is no sha3sum command in coreutils?

I have sha1sum or sha512sum on an average Linux distro. But where is the sha3sum command that can generateSHA-3 commands?
1
vote
1answer
318 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 ...
43
votes
3answers
29k views

Where does Mac OS X come from?

Discussing with Mac owners, I got several versions of where Mac OS X comes from. It is known to have some root in BSD, but how much, and where? Some say that Mac OS X has a FreeBSD kernel, with all ...
2
votes
0answers
2k 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 ...
0
votes
1answer
314 views

How does route-to work in the BSD pf firewall?

I've recently learned about the route-to functionality in the pf firewall, and I wonder how it works. Is it similar to the "policy-based routing" system in linux? How does route-to allow the ...

1
2 3 4 5