Skip to main content

Questions tagged [freebsd]

The tag has no usage guidance, but it has a tag wiki.

0 votes
1 answer
19 views

How to format the creation timestamp of a ZFS snapshot with TrueNAS?

I would like to know the precise creation time of a ZFS snapshot. Note that I am not referring to the timestamp in the snapshot name itself but the result of querying the creation property when using ...
soliz's user avatar
  • 871
-1 votes
3 answers
55 views

How to use grep in specific case? [closed]

How to extract part of the search with grep. Example: I would like to extract lines with "bc" in them but not lines containing "abc". My not-so-elegant solution is: cat file.txt | ...
Gabriele Gatti's user avatar
0 votes
0 answers
178 views

...from 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin ERROR trying to run KDE 6 plasma and Wayland on FreeBSD 14.1

I wanted to try to run Wayland + KDE 6 plasma on FreeBSD 14.1. I've created the following tutorial that unfortunately has some errors inside,since the project does not work. The steps that I have ...
Marietto's user avatar
  • 151
0 votes
1 answer
63 views

Does FreeBSD have copyfile()/fcopyfile()? If so, where can the documentation be found?

This StackOverflow answer How can I copy a file on Unix using C? claims that FreeBSD has copyfile()/fcopyfile() and has recieved 27 upvotes. But FreeBSD Manual Pages found nothing for either copyfile()...
Harith's user avatar
  • 7,235
0 votes
1 answer
40 views

Check FreeBSD version at compile-time with the preprocessor

I am aware that I can use __FreeBSD__ to detect the operating system, but how do I detect the version of the operating system? My requirement is to detect whether copy_file_range() function is ...
Harith's user avatar
  • 7,235
-1 votes
0 answers
40 views

unable to get wsgi running on apache with flask on a freeBSD host

I have installed and configured apache and get no errors or warnings when I run: sudo apachectl configtest and when I access the page in a browser, I get this: Internal Server Error The server ...
jordanthompson's user avatar
0 votes
0 answers
26 views

Freebsd: devd.conf, how can I find the proper matches?

Anyone know where or how to find the needed matches for an automation inside devd.conf? I am trying to run a script when the pppoe goes down. This is what I have till now: Code: # Notify WAN 1 Down ...
PickOne's user avatar
  • 33
0 votes
0 answers
104 views

Why does my simple HTTP server need two instances running in order to work?

Noob here. I have been following Beej's Guide to Network Programming and tried constructing an HTTP server following the style of code used in the book. I am running FreeBSD 14.0. My issue is that all ...
JoshHellauer's user avatar
0 votes
1 answer
82 views

Invalid regular expression 'Trailing backslash' error on FreeBSD

I'm trying to use sed on a file. My command is as follows: sed -e 's/\-.*\ \ET/ ET/g' This works fine on Debian but on FreeBSD I am getting the following error: sed: 1: "s/\-.*\ \ET/ ET/g ":...
WhoAmI's user avatar
  • 45
0 votes
2 answers
36 views

How to kill a subprocess and all of its descendants on timeout in Python?

I have a Python program which launches subprocesses like this: subprocess.run(cmdline, shell=True) A subprocess can be anything that can be executed from a shell: Python programs, binaries or scripts ...
user149408's user avatar
  • 5,751
0 votes
1 answer
172 views

set: Illegal option -o pipefail while running make

I'm running FreeBSD 10.4-RELEASE and can't upgrade it at the moment. Previously, 'make' was working fine, but recently I've been getting this error- $ sudo make install set: Illegal option -o pipefail ...
Shradha's user avatar
  • 2,402
2 votes
1 answer
104 views

Bug only manifests on FreeBSD, but works perfectly fine on Windows, Linux, and MacOS

Here's the relevant part of the code from an arena allocator: #ifdef DEBUG #include <string.h> #define D(x) x #else #define D(x) (void) 0 #endif /* Allocates a pointer from `arena`. ...
Harith's user avatar
  • 7,235
0 votes
0 answers
20 views

How to escape backticks in FreeBSD

This is on csh (FreeBSD): echo "complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' 'n/*/(start stop reload restart status rcvar onestart onestop)/'" >> /root/.cshrc I want to use ...
ratatata's user avatar
0 votes
0 answers
32 views

Issues while using a loop on a bash script [duplicate]

I am using mkvdts2ac3.sh script (see https://github.com/JakeWharton/mkvdts2ac3), and I have troubles to use it in a loop. This script is able to extract a dts track from a mkv file, convert it in AC3 ...
xaviercunego's user avatar
0 votes
0 answers
56 views

blacklistd on freebsd not consistently blocking on ssh timeout

Roughly every minute, I'm getting the following in my log: sshd[####]: fatal: Timeout before authentication for 118.26.194.190 There are many hundreds, this has been happening for hours. # grep 118.26....
Mike Lempriere's user avatar

15 30 50 per page
1
2 3 4 5
135