Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

Filter by
Sorted by
Tagged with
1
vote
0answers
29 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
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
14 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
22 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
63 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
51 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
53 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
1answer
51 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
1answer
34 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
75 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
0answers
27 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 ...
0
votes
1answer
32 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
30 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
25 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
123 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
1answer
92 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
1answer
744 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
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://...
0
votes
0answers
59 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
22 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
1answer
149 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 ...
0
votes
0answers
66 views

Hardware requirements for BSD 4.4 Lite?

I am trying to track down the hardware requirements for BSD 4.4 Lite. I have a custom CPU, and I am currently looking at porting an OS to one as an afterthought. I picked BSD 4.4 because the ...
0
votes
0answers
88 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 ...
0
votes
1answer
71 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 way to omit one ...
2
votes
2answers
95 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
37 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. ...
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 ...
1
vote
1answer
275 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
1answer
271 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 ...
1
vote
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 ...
1
vote
3answers
73 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
2answers
269 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
1answer
106 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? ...
2
votes
1answer
73 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 ...
6
votes
2answers
203 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 ...
1
vote
1answer
330 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 ...
2
votes
3answers
600 views

wc -l to count lines all txt files in folders and subfolders

I have a few hundred txt files in several subfolders and I would like the count the lines in each txt file. I can do this for all txt files in the current directory by using: for f in *.txt; do wc -l ...
0
votes
2answers
40 views

Forgot correct syntax to mv millions of files around on the same partition

I had a command line instruction to move a 100k’s of jpgs to the correct directory on the same disk/volume/partition and without using xargs. The quirk is that the jpgs have spaces and multiple ...
0
votes
1answer
292 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 ...
0
votes
1answer
325 views

how to make my sed command work in GNU works in BSD

I have a block content in my ~/.ssh/config. begin with a line '# BEGIN AUTO GENERATED CONTENT' and end with a line '# END AUTO GENERATED CONTENT' I have a command replacing content between this two ...
1
vote
1answer
239 views

Translating Linux stat(1) command into BSD stat(1) command

Background CLion's remote project feature currently doesn't support FreeBSD as a remote host OS, but I want to do some hacking and see if it works. By reading the log file, I think I have spotted (...
7
votes
1answer
675 views

Newlines in BSD sed vs gsed

The sed, which comes with FreeBSD 11.2 p7, gives: $ seq 10 | sed 'N; l; D; p' 1$ 2$ 2$ 3$ 3$ 4$ 4$ 5$ 5$ 6$ 6$ 7$ 7$ 8$ 8$ 9$ 9$ 10$ While gsed (GNU sed 4.7) gives for the same script: $ seq 10 | ...
0
votes
2answers
150 views

Are there multiple flavors of the GNU tools?

I think that the BSD tools have different flavors, for example the BSD ls tool is not the same tool on FreeBSD and OpenBSD and NetBSD (and even on macOS). Note that by "different flavors" I mean that ...
1
vote
1answer
343 views

Does Apple modify the GNU and BSD tools that comes with macOS? [duplicate]

macOS comes with bash (which is a GNU tool), macOS also comes with tools like ls and chmod (which are BSD tools, even though I don't know from which BSD flavor they come from). Now does the GNU and ...
26
votes
5answers
4k views

Do the common programs (for example: “ls”, “cat”) in Linux and BSD come from the same source code? [duplicate]

Both Linux and BSD have common programs like ls and cat and echo and kill. Do they come from the same source code, or do both and Linux and BSD own their own unique source code for these programs?
0
votes
1answer
327 views

blacklistd not blocking addresses

I've enabled the PF(4) firewall and blacklistd(8). Although IP addresses are being added to to blacklist, I can still see multiple failed attempts from a single IP address. Yet when I test it myself, ...
0
votes
1answer
1k views

how to use logger to write info to log

I want to use the logger command in order to write logs to /var/log/server.log NOTE: These examples use the FreeBSD version of logger. Your system may have different options, so read your local ...
0
votes
1answer
256 views

Does BSD have priveleges or capabilities?

In Solaris, I believe that you can assign privileges to users, and in Linux you can assign capabilities to executable files. Does some or all BSD flavors have privileges or capabilities, or something ...
1
vote
1answer
128 views

rc scripts for multiple Zope instances in FreeBSD

I'm trying to configure multiple Zope-Instances as daemons in FreeBSD. Each instance gets a start script in /usr/local/etc/rc.d. Starting works fine, but invoking status or stop is problematic because ...
0
votes
1answer
490 views

How to install man pages for certain libc functions?

In the past, from time to time, while developing Linux software, I have noticed that some man pages which deal with developer documentation are missing on my systems. This happens mainly on Debian ...

1
2 3 4 5