freebsd

cp, trailing slash, and copying to the same vs. to another directory

cp, trailing slash, and copying to the same vs. to another directory To copy a directory to another directory, the first directory should be written without the trailing slash: # example 1 # this command will copy dir1 to dir2 # (dir2 is preexisting) cp -Rip dir1 dir2/ Otherwise, the command will copy directory contents …

Total answers: 1

Is FreeBSD's UNIX Filesystem (UFS) best suited having a microSD storage?

Is FreeBSD's UNIX Filesystem (UFS) best suited having a microSD storage? Is FreeBSD’s UNIX Filesystem (UFS) best suited having a microSD storage? I have a Raspberry Pi SOC and microSD is where my FreeBSD is installed and at the same time, storage of my database data and other files. Asked By: ordinary_guy || Source UFS …

Total answers: 1

Figuring out the time until midnight, and output the result in a text file

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" Sry for being a noob. 🙁 Asked By: …

Total answers: 3

Adding 10 whitespace characters using sed

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. My script: sed -i ‘s/server.os[ t]*$freebsd/server.os $linux/g’ ~/var/log.txt I would …

Total answers: 3

mv: rename <oldname> to <newname>/<oldname>: Invalid argument

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 different variations of the command, but none worked: % mv ./OldHDD oldhdd …

Total answers: 1

Issue booting headless FreeBSD system, requires monitor to boot

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 a monitor attached via HDMI. Since it never shows up on the network, …

Total answers: 2

FreeBSD11: Certificate verification failed

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:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269: Certificate verification failed for /O=Digital Signature Trust Co./CN=DST Root CA X3 34406394360:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269: Certificate verification failed for /O=Digital Signature Trust Co./CN=DST …

Total answers: 2

What is $2b$ in /etc/master.passwd

What is $2b$ in /etc/master.passwd 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:Xavier J. B. L.:/home/xan:/usr/local/bin/bash What is that? Why not $2a$? Note that I’m sure I have blowfish encryption, because I have :passwd_format=blf: in /etc/login.conf and I run # cap_mkdb /etc/login.conf. …

Total answers: 1

bxe0 and bxe1 to eth0 and eth1 respectively

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 ifconfig_igb0_name=eth0 but during the boot time the network …

Total answers: 1

Backspace issue with the FreeBSD terminal

Backspace issue with the FreeBSD terminal I’ve tried using my Linux .bashrc setup with the FreeBSD terminal. In Linux I use bash with set -o vi and a keybinding for Ctr+H (which invokes an editor on my history file). On FreeBSD in virtual box (not when connected to via ssh), this keybinding gets invoked whenever …

Total answers: 1

Datasheets as references in making device drivers

Datasheets as references in making device drivers Aside from FreeBSD or Linux operating systems’ design structure and C programming knowledge, are datasheets enough as additional references in making device drivers? Asked By: ordinary_guy || Source No, they’re not. A datasheet contains data about what the device can do. For example, an airplane’s datasheet would contain …

Total answers: 1

Why does timestamp increase after a call to chill() but vtimestamp and walltimestamp do not?

Why does timestamp increase after a call to chill() but vtimestamp and walltimestamp do not? I’d like to understand why calling chill() in a DTrace action block increases the timestamp variable, but not vtimestamp and walltimestamp. Here’s an example showing timestamp increasing after a call to chill(): # dtrace -w -c true -n ‘pid$target:::entry {self->t …

Total answers: 1

Where to place loader.conf on an EFI system partition with the GRUB bootloader?

Where to place loader.conf on an EFI system partition with the GRUB bootloader? I’m attempting to alias /dev/nvmeX as /dev/nvdX on bootup through the following guide: https://www.freebsd.org/cgi/man.cgi?query=nvd I would like to know where the loader.conf file with the following contents are supposed to be placed to alias /dev/nvme0 as /dev/nvd0 on bootup: nvme_load="YES" nvd_load="YES" loader.conf …

Total answers: 1

Determine the library or libraries used by the /sbin/init and /bin/sh in FreeBSD

Determine the library or libraries used by the /sbin/init and /bin/sh in FreeBSD How to determine the library or libraries being used by the /sbin/init and the /bin/sh in FreeBSD? Is it dynamically linked or static? Asked By: ordinary_guy || Source Using file and ldd: $ file /bin/sh /bin/sh: ELF 64-bit LSB pie executable, x86-64, …

Total answers: 1

What is the name of fortuna's kernel process in FreeBSD?

What is the name of fortuna's kernel process in FreeBSD? Historically yarrow algorithm had a kernel process with the name of yarrow. But after replacing it with Fortuna, the kernel process disappears. What is the name of the new kernel process of Fortuna’s algorithm in the permanent kernel processes? Asked By: spmzt || Source The …

Total answers: 1

Should changing firewall settings to block all interrupt ongoing ssh session

Should changing firewall settings to block all interrupt ongoing ssh session Suppose I am logged into a server via ssh. While in the session, I change the firewall config to block all traffic. When I tried this previously with FreeBSD and pf, the current connection was broken. When I try it now, the current connection …

Total answers: 1