Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [freebsd]

FreeBSD is a free Unix-based operating system descended from AT&T UNIX via BSD UNIX.

0
votes
1answer
25 views

FreeBSD can't mount home partition

I've been having an issue with my first installation of FreeBSD. As I always do in GNU/Linux I created separate home and root partitions. The issue I've been having is that my home partition doesn't ...
2
votes
3answers
33 views

Embedding binary data into an executable using LLVM tools

In the past I have embedded resource files (images) into programs by first converting them to .o files using the GNU linker. For example: ld -r -b binary -o file.o file.svg Starting with FreeBSD 12, ...
3
votes
1answer
30 views

List Dependencies of Pending `pkg upgrade`

I wanted to update most of the stuff on my FreeBSD system, so I was going to perform a pkg upgrade. I noticed that one of the listed new packages to be installed was Wayland; I'm not interested in ...
0
votes
1answer
27 views

FreeBSD 11.2: how to add the aesni plugin to strongswan?

I installed strongswan using pkg install strongswan But now I've realized I need to have the aesni plugin enabled to optimize my IPsec tunnel. I've already enabled aesni at the OS level. The ...
1
vote
1answer
29 views

Refresh arp entries in FreeBSD

In Linux, an ARP entry's age gets reset/refreshed if a packet comes by. However, it seems that FreeBSD simply sets a timer, and unconditionally evicts the ARP entry even if packets with that MAC-...
1
vote
2answers
42 views

What is the reason FreeBSD jails don't get the entropy pool

I've noticed that the FreeBSD script that generates entropy, bails out if it finds it itself is running from within a jail. # uname -srm ## notice: install of mfsBSD (https://mfsbsd.vx.sk) FreeBSD ...
3
votes
0answers
95 views

How differently from Linux kernel does a typical Unix kernel (System V, Free BSD, …) implement processes and threads?

In my previous post, about the Linux kernel, the structure task_struct represents threads i.e. light weight processes, but not processes. processes are not represented by any structure, but by ...
5
votes
0answers
39 views

Possible to “build world” in FreeBSD without root? [duplicate]

The FreeBSD jail manpage has instructions on building a jail distribution tree: D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D make distribution DESTDIR=$D Is it possible to ...
10
votes
1answer
134 views

Why did FreeBSD lose the w mask but Debian retained it?

I am trying to understand the difference in behaviour between FreeBSD ACLs and Linux ACLs. In particular, the inheritance mechanism for the default ACLs. I used the following on both Debian 9.6 and ...
1
vote
1answer
73 views

Why are my new files not getting the group writeable permission?

I would like to set up a directory such that all new files are group writeable, regardless of the umask setting of the individual user. I've created a stor group and added all users to it. Then, I ...
1
vote
1answer
36 views

What containerization methods are actively being worked on for FreeBSD?

What is the state of containerization on FreeBSD as of FreeBSD 12? I've read about a few paths forward so far: Jails -- mature, but not a container mechanism ... Jetpack -- There is repository ...
0
votes
0answers
16 views

pfSense does not boot on Compaq

I have a Compaq Presario V2000 with an AMD Turion 64 processor. When booting from this USB image: pfSense-CE-memstick-2.4.4-RELEASE-p1-amd64.img It does load the kernel, but then during the boot ...
3
votes
3answers
125 views

How to create a FreeBSD ISO with mkisofs that will boot in VirtualBox under UEFI?

I am trying to write a script that will unpack and repack a FreeBSD ISO such that I can then do an installation with it. The goal is an unattended installation. I've got the following script written ...
3
votes
2answers
51 views

FreeBSD's vi does not do control-D unindent properly?

I'm on a minimalist FreeBSD system and need to use the built-in vi editor to edit files. To be specific, this is not vim, or vim-tiny or other replacement. It's the "4BSD bug-for-bug compatible" nvi ...
3
votes
3answers
806 views

Install Gnome3 on FreeBSD 12

According to the FreeBSD Handbook, Gnome can be installed as follows. pkg install gnome3 This command results in the following error. pkg: No packages available to install matching 'gnome3' have ...
0
votes
1answer
40 views

Running Tor service in the jail environment

I want to torify my FreeBSD old machine purposed to mainly darknet activities. Questions: Should I worry about these errors during creating jail? Warning: Some services already seem to be listening ...
0
votes
2answers
31 views

Filtering processes with top in FreeBSD

➥ When using top utility to view processes and their activity, how does one filter the list to a subset by name? For example when I want to see only the processes with a name containing postgres or ...
0
votes
3answers
67 views

Identify current default time zone set in FreeBSD

I know sudo tzsetup will prompt me to change time zone settings on FreeBSD. ➥ How can I see the current time zone settings, without making changes? I know date shows me current time. For example: ...
0
votes
1answer
46 views

How to check if wpa_supplicant.conf has any syntax errors?

I would like to know if there is a tool that allows me to check if I made any syntax errors in wpa_supplicant.conf(5). I am looking for a utility for wpa_supplicant(8) that would server the same ...
0
votes
4answers
65 views

Freebsd: backing up dotfiles with a shell script

A simple shell script is needed to copy dotfiles, adding a .backup extension, i.e., .dotfile1.backup. The script below will not work because it adds extensions to pre-existing backups forever and ever,...
1
vote
2answers
89 views

FreeBSD 11.2 - 256 color support in console window

I installed FreeBSD 11.2 on my DELL Latitude E7470 with UEFI (might be important). By default it does not install a GUI and that is fine by me (for now). Using the <Alt>+<Fn> keys I can ...
1
vote
1answer
103 views

FreeBSD 11.2 - Default resolution on console window

I installed FreeBSD 11.2 on my DELL Latitude E7470 with UEFI (might be important). By default it does not install a GUI and that is fine by me (for now). Using the <Alt>+<Fn> keys I can ...
3
votes
0answers
50 views

FreeBSD 11.2: how to resize the boot options menu on a UEFI/GPT/ZFS machine?

Is there a way to resize the boot options menu in Freebsd 11.2 on a UEFI/GPT/ZFS machine (zfs-on-root)? On multiple machines, the installation resulted in the boot options menu being rendered in a ...
4
votes
3answers
101 views

How to merge pre-sorted files into a single BIG file, without excessive memory or temporary disk use

I'm trying to sort (and ideally remove duplicate lines) from a 1.4TB file. Splitting and sorting the individual chunks is not an issue, but reassembling them is turning out to be a challenge. I ...
0
votes
1answer
74 views

UFS2 file system in FreeBSD - reliability in case of recovering from power outages?

I am planning a bare metal installation of FreeBSD 12-rc3 in my desktop with 6GB DDR3 non-ECC RAM and core i3-2120 based system. My concern is in a rare case of power failure, how well UFS2 will work? ...
0
votes
1answer
27 views

How to backport FreeBSD 13-CURRENT C.UTF-8 locale to 11.2-Release?

I've been administering a FreeBSD system through SSH, and she doesn't seem to like the non-ASCII characters I've entered. One noted in the bug report that the problem got fixed with the C.UTF-8 ...
3
votes
1answer
113 views

SSH to FreeBSD in UTF-8

I'm trying to ssh to FreeBSD-11.2-Release from my Windows machine using Mintty, but when I set LC_ALL to en_US.UTF-8 and try to enter/paste a non-ASCII character, connection got closed. I'm using ...
1
vote
0answers
43 views

FreeBSD PKG Backup

As I'm finally getting around to reading through the FreeBSD Handbook, I discovered that PKG is taking daily backups of the package database (defined in periodic.conf). My questions are as follows: ...
1
vote
1answer
40 views

On FreeBSD, or other BSDs, what directory is commonly used for data folder storing the content of a database such as Postgres

I am wondering if there is a convention on where to store the data folder containing all the files for the tables and rows of a relational database system such as Postgres.
0
votes
0answers
31 views

NUT on FreeBSD unable to detect UPS

I've been trying to get my APC SNMP v3 UPS to work with NUT (network UPS tools) on FreeBSD 11.2. It's not detecting it. What I've done so far Clean install FreeBSD 11.2 AMD64 and check UPS pingable ...
0
votes
1answer
62 views

Change between `quarterly` and `latest` package set used by `pkg` tool in FreeBSD

The pkg tool in FreeBSD is usually set to draw upon either the quarterly or latest package set. The latest set may churn more often with updates, while the quarterly is meant to be more stable but not ...
1
vote
2answers
51 views

Download just one port from the Ports Collection of FreeBSD

On a fresh FreeBSD 11.2 machine, my /usr/ports folder is empty. Running: portsnap fetch extract …as discussed in the Handbook results in filling my /usr/ports with a gig of content. If I only ...
0
votes
1answer
18 views

Is the list of packages available to install with `pkg` stored locally on FreeBSD? If so, how to update that cache?

When looking for a package to install on FreeBSD 11.2, such as the zsh shell: pkg search zsh …is the searching done against a local cache of packages information, or run over the internet against ...
0
votes
0answers
69 views

How to update FreeBSD without freebsd-update when the source cannot be compiled?

I run FreeBSD on a Raspberry Pi 3. This computer is permanently installed in a server room I do not have easy access to. Once FreeBSD 12 comes out, I want to update the computer to the new system ...
2
votes
1answer
233 views

How to create a GRUB entry for a FreeBSD on ZFS installation?

To be clear what I want is a FreeBSD GRUB2 entry that boots FreeBSD on a ZFS (name: zroot) with BIOS firmware (not UEFI). The operating system GRUB is installed on is Arch Linux if it helps, Arch is ...
19
votes
4answers
2k views

Is there a POSIX (or at least a popular) utility to set the current working directory when invoking a program?

We have env(1) to modify the environment of the command we want to run (for example env MANPAGER=more man dtrace). Is there something similar but for modifying the directory that the command is going ...
3
votes
1answer
37 views

FreeBSD - how to exclude some pattern with grep?

FreeBSD 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 grep (GNU grep) 2.5.1-FreeBSD Hi. I want to check availability of Asterisk ...
5
votes
1answer
118 views

FreeBSD, bootstrapping pkg, “pkg-static: sqlite error while executing INSERT OR ROLLBACK INTO pkg_search”

I was trying to install bash on a FreeBSD 10.2 system, see How to Install bash on FreeBSD But the install failed because pkg was trying to fetch from a too-new repository. I then tried following the ...
1
vote
3answers
512 views

libssl.so.9 missing on a new FreeBSD system when using pkg

I just installed a fresh FreeBSD but when I try to install emacs with pkg install emacs, I've the following error. ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg". The only ...
2
votes
0answers
31 views

User specific hostname

I have a linux and bsd system with multiple (virtual) network interfaces. On those systems there are multiple users. Each user should use its own interface and therefore address. Is it possible to ...
-1
votes
0answers
92 views

Can we install FreeBSD 11.2 with ZFS in a partition of a single hard drive, dual booting with Linux

I have a Core i3 2nd gen desktop with a hard drive which has got Devuan Linux and Windows 10 in UEFI-GPT mode installed. There is the EFI partition already created by Windows 10. I'm planning to ...
2
votes
0answers
21 views

What could cause the i3wm title bar to turn black? [closed]

It goes absent, when I enter then exit fullscreen mode it reappears. Is this due to some poor settings in my configs?
1
vote
0answers
43 views

Nano and ee not showing content of file just bottom line stacked up

I'm having a problem with text editors in FreeBSD when opening a file I can't edit anything it only shows like on the picture below. I'm using FreeNAS on FREEBSD 11.2
1
vote
1answer
46 views

Running and managing two daemons with same executable by rc together

I use FreeBSD UNIX and its rc system of startup scripts to make my Node.js servers start at reboot as a daemon and start, as a daemon again, and stop them with some commands the system gives me after ...
5
votes
1answer
275 views

How to check a hash sum file on FreeBSD?

Situation I'm on FreeBSD 11.2 without GUI. I'm brand new to BSD systems. Suppose we have a SHA512SUM file generated on FreeBSD with: sha512 encrypt-file-aes256 decrypt-file-aes256 > SHA512SUM ...
1
vote
2answers
39 views

Swapping a mounted drive between machines - is it possible?

Let's say I have a storage device called A. I install A into my machine M1 (which contains a drive called B which is a unix boot drive containing the operating system). I then boot up M1 and mount ...
1
vote
1answer
43 views

ntpq does not print the list of the peers immediately

I'm on FreeBSD. I used from a cisco router as the server and my system as the client. I used ntp to sync the clock between server and client. It worked and the clock has synced but when I run ntpq -p, ...
1
vote
1answer
60 views

Freebsd11-2: zpool import not surviving reboot

I have a FreeBSD 11.2-RELEASE install on a SSD and a zpool mirror named tank consisting of 2 hard drives. There is no problem importing it manually: zpool import -R /mnt tank then zfs get all tank ...
1
vote
1answer
59 views

Can't connect to router when setting static IP address in FreeBSD

I have a FreeBSD machine that I'm trying to configure with a static IP address, so I added the following lines to the /etc/rc.conf file ifconfig_wlan0="inet 192.168.0.20 netmask 255.255.255.0" ...
-1
votes
1answer
109 views

How to resize TTY console width?

I'm on FreeBSD. I want to set console width (just console, not ssh or telnet). I used this command: stty cols 132 Is this work for just console or worked for all of the connections (console, ssh ...