Stack Exchange Network

Stack Exchange network consists of 175 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.

2
votes
0answers
55 views

shebang with /usr/bin/env and sudo

I hope the question is not too dumb, but I'm quite lost here because I don't see the solution (yet). I have lots of scripts, usually they start with a shebang and /usr/bin/env and the required ...
0
votes
0answers
34 views

I have error freebsd to login

I try to login in my freebsd but when i put Login : as "root" and the passwd it says " Login incorrect" i try to change passwd by "single user" but after using /sbin/mount -u / and then "passwd" its ...
1
vote
1answer
62 views

Why is mkntfs taking such a long time?

Under FreeBSD 12.0 the command mkntfs -Q /dev/da3s1 (with the quick-format flag) still takes a very long time (not finished after some hours) for a 1 TB hard disk drive. It gives the following ...
1
vote
1answer
32 views

Multi-jail /var separation

I'm setting up multiple jails in FreeBSD to serve dynamic websites. The host environment has a webserver that dispatches connection based on HTTP Host header, and each jail has a /var/lib/www-db ...
2
votes
1answer
58 views

How do operator/wheel groups work on FreeBSD?

On FreeBSD 12.0-RELEASE-p3 ls -l /dev/ada1 gives me: crw-r----- 1 root operator [skipped] /dev/ada1 If I use the command gpart recover /dev/ada1 from a non-root user account, who is in the group ...
0
votes
0answers
25 views

Install GhostBSD from within FreeBSD

Is it possible to install GhostBSD from within a working installation of FreeBSD?
0
votes
1answer
54 views

Emacs with 24bit terminal support on FreeBSD

I'm trying to enable 24bit support on the terminal (via SSH) on my FreeBSD 12 installation without success. I tried to create a terminfo file with the contents: xterm-24bit|xterm with 24-bit direct ...
0
votes
1answer
51 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 (...
1
vote
0answers
105 views

How to dual boot FreeBSD and Linux on the same Hard disk?

I tried installing FreeBSD 12 release version on my system which already had 3 Linux OS installed. It was the minimal install iso image. My internal HDD with GPT partition table. I tried using the ...
3
votes
1answer
123 views

Configure NIC on boot of FreeBSD 12

We need to configure NIC for better performance of our application on FreeBSD 12. System is FreeBSD 12.0-RELEASE-p3 GENERIC amd64 To start, I would like to show our solution for Linux system. For ...
1
vote
1answer
31 views

OPNsense 19.1 removes root's authorized_keys when reboot / shutdown+turn on

I have an OPNsense 19.1 virtual firewall, which is based on FreeBSD 11.2 HBSD (HardenedBSD). I added it to Ansible Server inventory (with the right configurations), and once copied the PK to that BSD ...
0
votes
0answers
53 views

No supported authentication methods available - connecting to FreeBSD using PuTTY

I have created an EC2 instance that runs FreeBSD, and I can log into it using my SSH key and the default user ec2-user. I logged into it, and switched to root using su. I then created a personal ...
1
vote
1answer
53 views

Using tab for autocompletion doesn't work for certain kinds of filenames

Normally, one can hit the tab key after entering the first few characters of a filename and get the complete filename (or suggestions in case there are many with the same beginning characters). ...
1
vote
1answer
48 views

No space left error during FreeBSD install with mfsbsd over PXE

I'm trying to install https://mfslinux.vx.sk/files/images/10/i386/mfsbsd-10.0-RELEASE-i386.img with PXE so I can install FreeBSD. Here's my PXE boot menu on server: LABEL mfsbsd MENU LABEL ...
0
votes
1answer
76 views

Print the output of an interactive command in a shell script

I am writing a CGI script to monitor the system state, so the information must be outputted to the terminal with echo or cat. The problem is, systat is an interactive command, so it doesn't print ...
1
vote
1answer
38 views

Verification of packages in a local mirror

Packages for several BSD and Linux operating systems / distributions are downloaded over a potentially insecure connecting or are later on replaced with a malicious version on the local disk. The ...
0
votes
1answer
82 views

Problem with pkg installation on freebsd

If I do pkg update I get: Updating FreeBSD repository catalogue... pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/meta.txz: Not Found repository FreeBSD has no meta file, using default settings ...
2
votes
0answers
50 views

Do I have a swap space leak in FreeBSD?

I have a system with 16G RAM and 23G Swap (6 x 3TB disks in ZFS), currently the swap sits at 98% but I can only see 5G of ram used. I have checked all possible resources to find who is using the swap ...
0
votes
0answers
20 views

Automated incremental and synthetic full system backup and bare metal + file level restoration solution for FreeBSD?

I'm looking for something that enables automated incremental, synthetic full system backup and bare metal + file level restoration on FreeBSD. Basically I'm looking for a Veeam equivalent. The only ...
0
votes
1answer
54 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
257 views

-bash: ./catalina.sh: No such file or directory

Using SSH, I want to execute catalina.sh to start a Tomcat server (from my client Mac terminal). I log in without any issue. Then, I do: [site /home/public]$ cd $CATALINA_HOME/bin and on Enter I ...
1
vote
1answer
25 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
3answers
168 views

FreeBSD: How to set Bash as the default shell

I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?
1
vote
2answers
67 views

Get the SuperPage size

It appears that some BSD systems have a superpage size of 2MB while others have 4MB. I've not seen any others. Is there any way to tell what the available superpage size is? Ideally from the command ...
0
votes
1answer
68 views

Find all files with group write only permissions

In the following example directory $ ls -l total 0 -rw-r--r-- 1 user testgroup 0 12 feb 12:00 file1 -rw-rw-r-- 1 user testgroup 0 12 feb 12:00 file2 -rw--w-r-- 1 user testgroup 0 12 feb 12:...
0
votes
1answer
50 views

rsync output (ongoing) not recorded in new log file after rotation with newsyslog

I discovered this morning that on-going rsync output does not appear in the rsync log after rotation by newsyslog. It is lost In other words, a running rsync is logging to /var/log/rsync ...
0
votes
1answer
53 views

FreeBSD: What is the counterpart to apt called?

I'm about to install FreeBSD 12.1. I'm a longtime Ubuntu user, and I prefer to install apps via the command line. Just wondering.
0
votes
1answer
30 views

Finding dns-sd package for FreeBSD and Linux?

IETF RFC 6763 section 7.1 (p.21) refers to a CLI program called "dns-sd", which can be used to probe and report zero-config services, records and environments. A number of other web pages also refer ...
0
votes
0answers
100 views

#!/bin/sh not found (FreeBSD) [duplicate]

I have xyz.sh file at my FreeBSD: #!/bin/sh clear But when I run it from the command line (sh xyz.sh) I get the following error-message: : not found : not foundclear I guess some link or something ...
1
vote
0answers
55 views

How to solve gptboot: No /boot/loader on 0:ad(0p2) issue while installing Freebsd?

I have installed FreeBSD 12.0 in vmware virtual machine. After installaion, I am getting below error while booting. gptboot: No /boot/loader on 0:ad(0p2) gptboot: No /boot/kernel/kernel on 0:ad(0p2) ...
0
votes
0answers
33 views

Securing an open FTP on FreeBSD for visitor wifi speed testing?

I'd like to add a really simple local FTP server to my FreeBSD system, to allow guests to do wifi speed testing. Because of the use, I don't need more than very basic functionality - anon R/W to a ...
3
votes
1answer
62 views

IPV6 aliases in rc.conf

I am currently running FreeBSD 12.0-RELEASE-p2, and I can't figure out how to create both IPV4 and IPV6 aliases for a loopback (lo1) interface using rc.conf on boot. Here is a snippet of my rc.conf: ...
0
votes
1answer
76 views

Whould someone explain procstat output memory information?

I use the command procstat -r $(pidof myprocess) and I get the following output... PID COMM RESOURCE VALUE 84867 myprocess user time 00:...
3
votes
1answer
85 views

FreeBSD: How to update without network?

My home FreeBSD system seems to have some hardware issues with one of its network cards. Fortunately the box has a second network card which however is not supported in the FreeBSD release running ...
0
votes
1answer
46 views

FreeBSD starts in install menu after successful installation

I tried installing FreeBSD 12.0 from a USB, which went fine except that I had to do it in safe mode. After that there were no issues with the installation process save for networking. Now that ...
0
votes
0answers
31 views

mellanox cx3 40gb card not recognized on freebsd based os

i am based on freeNAS that is based on freebsd the system is stable and working, but the network drive have some error that i cant understand 28660:mlx4_core0: <mlx4_core> mem 0xdfa00000-...
0
votes
1answer
136 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 ...
3
votes
3answers
118 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
50 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
101 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
160 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
86 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
103 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
45 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
166 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
86 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
45 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
31 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
370 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
57 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 ...