Questions tagged [freebsd]
FreeBSD is a free Unix-based operating system descended from AT&T UNIX via BSD UNIX.
1,706
questions
0
votes
3
answers
101
views
Figuring out the time until midnight, and output the result in a text file
How could I make lets say remaining time until tomorrow (midnight, also hours and minutes) and save that to a text file, like for example, "x hours and y minutes remaining until midnight"
...
1
vote
0
answers
15
views
Freebsd12: Process killed instead of swapping out
I run FreeBSD 12 through Vagrant on a VM with 350 MB RAM and 2 GB swap.
If I run:
perl -e '$a="x"x200_000_000;sleep 1000' & sleep 10
perl -e '$a="x"x200_000_000;sleep 1000' &...
1
vote
1
answer
40
views
How to mount a Veracrypt volume on FreeBSD?
When I mount a volume (stored on external USB drive) on Linux I get the following error
> sudo veracrypt --text --mount /path-to-volume /mnt --pim 0 --keyfiles "" --slot 1 --protect-...
0
votes
1
answer
22
views
How to empty name cache on FreeBSD?
The name cache on FreeBSD is responsible for caching file names and their vnodes. It also provides a special database for hashing the contents of large directories.
I would like to know how to empty ...
0
votes
0
answers
64
views
How is it possible that NAT doesn't back translate packets?
I have the following topology
and from myhost I can ping router2 but can't ping router1.
With tcpdump I can observe how my pings go and I see that both router1 and router2 reply. But only replies ...
0
votes
1
answer
23
views
sdl gui based app on remote connection via x11vnc
am trying to open sdl gui based program in freebsd system from remote connection via x11vnc.
there is no display connected to the pc therefor i used a dummy driver.
keep getting this error
libGL ...
0
votes
1
answer
31
views
GPU usage monitor for FreeBSD?
I am using FreeBSD on a personal desktop computer, and a nvidia GTX 1650 GPU.
In my gnome system monitor (similar to task manager of MS Windows), I am able to monitor all the resources, including all ...
2
votes
1
answer
39
views
Failing distribution checksum during FreeBSD automated install (bsdinstall)
I'm using the following installerconfig to automate the installation of FreeBSD (13.2-RELEASE):
export PARTITIONS=DEFAULT
export DISTRIBUTIONS="kernel.txz base.txz"
export HOSTNAME=freebsd
...
0
votes
1
answer
36
views
How to access files shared from Windows on FreeBSD?
I have a desktop with windows 10 on it, and I have another desktop with FreeBSD on it. No virtualization.
I have shared some folders on Win desktop, which I can access on LAN with other Win10 laptops.
...
0
votes
0
answers
41
views
What hardware problem does a video signal shift on hard lock imply?
I'm running a pfsense router on a PC architecture desktop system (AMD FX-8120 CPU with 16GB RAM). It's running version pfsense version 2.7.0, which is based on FreeBSD v14.
Every day or two the router ...
0
votes
0
answers
28
views
Mac Cannot unmount Disk Images that are mounted from Samba Shares
I am on a Mac OS 12.6.8.
I have gotten Samba to work great with TimeMachine and general sharing of directories off the server which is running FreeBSD 13.2 with Samba Version 4.16.10.
The one issue I ...
0
votes
1
answer
63
views
How is this exec command supposed to work in this context?
I'm working through a textbook on UNIX system administration. Chapter 3 of "Unix Third Edition" by a Syed Mansoor.
Chapter 13 has the following example of exec usage which is straightforward ...
0
votes
0
answers
19
views
AWS Lightsail: cannot connect to FreeBSD instance created from snapshot
I have an amazon Lightsail instance running FreeBSD. As I initially chose the lowest performance instance, I wanted to upgrade and thought this would be easy: just create a snapshot and create a new ...
0
votes
0
answers
23
views
Can vm-bhyve migrate a cloned vm?
I am trying to migrate (copy) a bhyve vm from one host to another using vm-bhyve's migrate command. If I migrate a zfs origin vm then the migration works. If I try to migrate a clone of that vm then ...
3
votes
1
answer
121
views
NFS mount mixing up ctime and mtime
I have an NFS mount served from a Linux server to a FreeBSD client. If I use touch to set the atime and mtime of a file on the FreeBSD client,
tavianator@muon $ touch -at "199112140000" ./...
-3
votes
1
answer
77
views
How to burn correctly the FreeBSD 7.2 ISO image in a USB stick
I've found that FreeBSD 7.2 should have kqemu,so I want to try how much good it was. I've written the iso image to my USB stick ( /dev/sdj ) with this command :
xzcat 7.2-RELEASE-amd64-dvd1.iso | dd ...
0
votes
0
answers
44
views
Authentication via IPA fails for FreeBSD 13.2 host
ssh authentication to my FreeBSD client oh.oplz.huh is failing. On the FreeBSD client, I see this error in sssd_oplz.yo.log (Tue Jun 13 15:13:24:459513 2023) [sssd [sss_ini_call_validators] (0x0020): [...
1
vote
3
answers
92
views
Remove lines matching pattern, plus any lines following it matching a different pattern
Let me preface I am not sure if this question has been asked before, I have been Googling for answers but came up short.
I want to use standard Linux/Unix commands (running this on FreeBSD) to exclude ...
0
votes
0
answers
6
views
sockstat of php-fpm doesn't match config file
I am trying to get a test system up and running under FreeBSD (actually under a TrueNAS jail) using nginx, php and php-fpm. This is the first time I've tried to build such a system, and FreeBSD isn't ...
0
votes
0
answers
32
views
Prometheus cannot access remote exporters
I'm trying to set up an IoT network using Prometheus as the monitoring layer, and Avahi as the DNS service. I have Prometheus tracking node-exporter on localhost, but am unable to access either node-...
2
votes
1
answer
207
views
python script as rc service on freebsd
I have a python script that I would like to run in a Freenas jail. It works without the service daemon, but I would like to start it as a service.
I have created the following service script /etc/rc.d/...
2
votes
1
answer
109
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 ...
1
vote
1
answer
199
views
ZFS - Why do compressed files show disk usage of nearly double the apparent size?
Using FreeBSD 11.1-STABLE, I have a ZFS dataset configured with gzip-9 compression, as well as a recordsize of 8K. (This volume is for archiving of small files, not speed.)
zfs get all pool02/...
0
votes
3
answers
178
views
Adding 10 whitespace characters using sed
I have written a script that replaces a string, but I need to add the 10 whitespace characters back. I can add it back by pressing space 10 times, and that works, but this looks hideous in my script.
...
10
votes
1
answer
522
views
Issue viewing compressed file with "zless", but not with "zmore" or "gunzip -c"
On my FreeBSD 13.2 system, the zless utility cannot view text files compressed with gzip or compress, warning that they may be binary files and then showing garbage if I say I want to see the contents ...
7
votes
1
answer
1k
views
mv: rename <oldname> to <newname>/<oldname>: Invalid argument
On my TrueNAS (FreeBSD 13.1) server I have a directory named OldHDD which I want to rename, but I get an error:
% mv OldHDD oldhdd
mv: rename OldHDD to oldhdd/OldHDD: Invalid argument
I have tried ...
0
votes
1
answer
128
views
Issue booting headless FreeBSD system, requires monitor to boot
I'm trying to set up a headless FreeBSD 13.1 system. I've done so
successfully before on this particular machine, but for whatever reason,
after a complete reinstall, it doesn't want to boot without ...
0
votes
1
answer
300
views
What are the consequences of blocking incoming UDP port 68 on my computer?
In a FreeBSD 13.1 install, I enabled the IPFW firewall and set firewall_type="workstation" in /etc/rc.conf. This allows outgoing requests, while denying incoming requests. When I checked the ...
1
vote
0
answers
50
views
How to redirect stderr in FreeBSD? [duplicate]
How to redirect stderr in FreeBSD?
Neither of below worked
: ls 2> out.log
ls: 2: No such file or directory
: ls -al 2> error.log
ls: 2: No such file or directory
: (ls -al) 2> error.log
...
0
votes
1
answer
84
views
What exactly happens in the OneFS (FreeBSD) files system if I move files from one directory to another?
If I do an mv command from the command line in OneFS (Isilon, FreeBSD based), what exactly happens in the background and on the disks?
Will the data be physically moved from sectors to other sectors ...
0
votes
0
answers
41
views
copying file in FreeBSD onto NTFS-3G mounted drive results in zero byte file after file copy
Having an issue copying a VM disk.img file onto my ntfs external hard drive. Using ntfs-3g to mount the drive like this: ntfs-3d /dev/da4p2 /mnt -o rw. Afterwards the drive is mounted and I type CP or ...
3
votes
1
answer
51
views
file locking mandated by OS/filesystem rather than opted into by file accessors?
Is there a way to have the OS (specifically, FreeBSD) or filesystem (specifically, ZFS) enforce that all access (or, at least, all non-root access, I guess) to a certain file must be done while the ...
1
vote
1
answer
729
views
Wayland Issue on FreeBSD
The Problem
Hello, I am completely new to FreeBSD and relatively new to UNIX systems in general. I am following the FreeBSD Handbook, and loving it so far. My goal is to install river tiling window ...
0
votes
1
answer
42
views
Change FreeBSD Loader's loaddev variable
I'm searching the way to change loaddev variable of FreeBSD's /boot/loader. There is nothing useful either in FreeBSD's man, or in Google.
It's disk0p2 by default which corresponds GPT, but also can ...
0
votes
1
answer
28
views
What subsystem is responsible if I can connect via s2s VPN connection only in one direction?
I have configured the following s2s VPN (in pfSense) connection which is working in general.
Unfortunately, I can connect (ping, netcat, ssh) only from client to the server, but not back.
If I can ...
1
vote
2
answers
423
views
FreeBSD11: Certificate verification failed
My FreeBSD 11 gives:
[root@freebsd11 ~]# pkg install perl
Updating FreeBSD repository catalogue...
Certificate verification failed for /O=Digital Signature Trust Co./CN=DST Root CA X3
34406394360:...
0
votes
0
answers
160
views
How to make sure dynamic frequency scaling (aka Turbo Boost and Turbo Core) is disabled on FreeBSD
I've got a FreeBSD server with an Intel CPU and I'd like to make sure that the dynamic frequency scaling (also known as Turbo Boost on Intel CPUs) is not active.
I'd like to know a way to do it on AMD ...
0
votes
0
answers
67
views
Which directories should I backup so that I can restore a system's configuration?
Let's say I decide to nuke my FreeBSD system and do a fresh install. I'd then like to get the system configured the way it was, including some of the scripts I've added. (User data and other valuables ...
0
votes
0
answers
207
views
ssh does not use ssh-agent on FreeBSD
I recently set up a new FreeBSD system and am having a lot of trouble getting ssh to use ssh-agent. I have verified with ssh-add -l that my key is added, and the SSH_AGENT_PID and SSH_AUTH_SOCK env ...
0
votes
0
answers
66
views
Why Blender Cycles is not able to detect my GPU(s) and CUDA within the Ubuntu / Linuxulator
I've just installed Ubuntu 22.10 with the Linuxulator on FreeBSD 13.1-RELEASE p6 as well as these components inside it :
1. nvidia driver Version: 525.78.01 + CUDA 12
2. Blender 3.2.2
The nvidia ...
0
votes
0
answers
428
views
FreeNAS (11.2-U7) how to repair degraded boot pool that is on two USB sticks?
I have a Dell R230 which I've setup a few years ago with FreeNAS (installed version is 11.2-U7)
The boot partition was installed on a mirrored pool on two 32GB USB sticks.
/dev/da9p2 - SanDisk Ultra ...
0
votes
0
answers
342
views
Rewriting MediaTek MT7921 Linux driver for FreeBSD
New to BSD, coming from Linux. My laptop (Asus FX706LI) uses the MediaTek MT7921. Although I've never installed linux on this laptop, I know the driver is in Linux 5.12 and subsequent kernels. I am to ...
1
vote
1
answer
136
views
How do I use a shell assignment in a makefile so that it works with both FreeBSD make (bmake) and macOS make (GNU Make 3.81)?
I'd like to use the shell assignment operator (i.e., !=) in a makefile that is going to be executed on FreeBSD, macOS, and Linux. Here's an example:
a!= seq 3
.PHONY: all
all: $a
.PHONY: $a
$a:
...
0
votes
1
answer
114
views
What is $2b$ in /etc/master.passwd [duplicate]
According to Securing section in FreeBSD Manual, the $2a$ corresponds to blowfish. But In my FreeBSD box I have $2b$.
xan:$2b$04$F1SclFRRh8c8N6ICwdAb.ud5lfTKhRyL1PuRxvUDsQINlsK8YG9Em:1001:1001::0:0:...
0
votes
1
answer
42
views
bxe0 and bxe1 to eth0 and eth1 respectively
I have a freebsd which has the network interfaces as follows.
bxe0, bxe1, igd0 and igd1
I want to move them to names like eth0, eth1 and so on. I know that I can do it in the /etc/rc.conf
...
0
votes
0
answers
93
views
FreeBSD - Building a VM image as Non-BSD Host and run in qemu
I would like to dig into the world of FreeBSD, but unfortunately I'm bound to a Macbook M1 device.
So I will have to use virtual machines for using and working on FreeBSD.
First of all I tried if ...
2
votes
2
answers
292
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 ...
0
votes
0
answers
68
views
Is it possible to install a port/package as static library on FreeBSD?
I want to get a static library of graphics/devil, because I want to link it to my project statically. When I do pkg install devil or cd /usr/ports/graphics/devil && make install clean it makes ...
0
votes
0
answers
213
views
Variable name must begin with a letter on .cshrc
I'd like to adjust .cshrc as below:
# $FreeBSD: src/share/skel/dot.cshrc,v 1.14.6.1 2008/11/25 02:59:29 kensmith Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
#...
0
votes
2
answers
75
views
Trouble Translating Regex from BBEdit to sed for Forcing Line Breaks
I'm working on a simple method to force hard line breaks in a file at whitespaces under a margin/character limit, i.e. no line can exceed n characters and line breaks are in between words.
I have this ...