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
0answers
35 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
49 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 ...
18
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
23 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 ...
4
votes
1answer
38 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
1answer
272 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
28 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 ...
0
votes
0answers
33 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
18 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
35 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
-2
votes
0answers
7 views

FreeBSD: no audio on Xfce on Youtube, VLC etc..Dell Optiplex455, Intel Pentium 64bit,2gig Ram

Audio works fine in Mint19. In FreeBSD v11.2 on Xfce4, I installed Pulseaudio but audio isn't there on Firefox or Chromium or VLC. I did #cat dev/random>dev/dsp0 and got a loud white static in my ...
1
vote
1answer
38 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
201 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
36 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
23 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
22 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
36 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
51 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 ...
0
votes
0answers
35 views

Do other Unix-like kernels have stable syscall ABIs?

Linux has a stable syscall ABI, but NT doesn't, Windows just ensure Win32 ABI is stable, which will not trap into kernel space immediately. Lower level functions of Windows like nt.dll might change ...
3
votes
1answer
62 views

Replacing disk when using FreeBSD ZFS zroot (ZFS on partition)?

How to replace broken disk with new when using ZFS on root? I have 4 disk RAIDZ2 pool using zroot. This means that ZFS is running on separate partition instead of using whole disk. I didn't find any ...
1
vote
1answer
82 views

Exit X back to command line

I have a problem exiting X to get back to the command line. After starting X, ⎇ alt-⎈ ctrl-FN and ⎇ alt-FN seem to stop functioning. I tried to use ⎇ ...
1
vote
1answer
74 views

FreeBSD: Is the default user shell `tcsh`?

I was recently reading a tutorial for tcsh and it said that the default user shell for FreeBSD was tcsh and I was surprised. For FreeBSD, is the default user shell tcsh?
3
votes
2answers
162 views

What cloned_interfaces does to interfaces in rc.conf?

I'm trying to understand what cloned_interfaces does in FreeBSD's rc.conf. Manual page says: cloned_interfaces: (str) Set to the list of clonable network interfaces to create on this host. Further ...
3
votes
1answer
147 views

Permission problems for postfix to connect to clamav-milter socket

I am running postfix postfix-3.3.1_1,1 and clamav-milter clamav-milter-0.100.1_1 on FreeBSD 11.2. Postfix and the milter are set to communicate via a socket. I am not able to get the milter and ...
0
votes
1answer
57 views

Is there any possibility to use the same Makefile in CentOS and FreeBSD?

Unfortunately, in some old FreeBSD environments I can't use "gmake", so I need to write a Makefile which will work with FreeBSD make also. And the last problem I can't solve - use shell commands, for ...
2
votes
3answers
103 views

How do I format an internal hard drive so that FreeBSD, Linux and Windows can all access it?

I'd like to know how to format a 2 TB hard drive so that FreeBSD, Linux and Windows can all access it and write to it. I've tried using my own brain on this one and making a singular partition on it ...
3
votes
0answers
76 views

FreeBSD/OVS equivalent of ESXi vSwitch VLAN config

I'm trying out FreeBSD with bhyve hypervisor and trying to replicate VMware ESXi vSwitch config in FreeBSD so that pfSense VM gets network traffic properly. VLANs: 111 = LAN, 192.168.101.0/24 333 = ...
0
votes
0answers
41 views

xterm: how to copy text with Ctrl+C under FreeBSD?

I've got this XTerm file: XTerm*Background: black XTerm*Foreground: white XTerm*SaveLines: 2000 XTerm*faceName: "Font Awesome 5 Brands-Regular-400" XTerm*faceSize: 8 XTerm*rightScrollBar: true XTerm*...
3
votes
2answers
303 views

How to run simple command on startup on FreeBSD?

I need to run a very simple command at startup on my machine using FreeBSD: cd /home/portal mv portal.sqlite corrupt_portal.sqlite This is clearly not a daemon or a service, just a one time command ...
1
vote
0answers
43 views

Build C executable with env variables via Makefile [closed]

I have huge application written in C and Python. I have a Makefile which helps to build final executable on several platforms. Here's a main part (I can't expose too much because of confidential info):...
1
vote
2answers
55 views

Wifi in FreeBSD Live USB

After using Linux for quite some time now I want to try out FreeBSD. I created a bootable USB stick and want to play around a bit in the live CD mode. The first problem I encounter is that I don't ...
1
vote
1answer
35 views

Check FreeBSD version in Makefile

I have these lines in my Makefile: PLATFORM = $(shell uname -r) OLD_FREEBSD = 7.3-RELEASE-p2 ...
2
votes
1answer
521 views

How to start KDE Plasma 5 on start up on FreeBSD 11.2?

On FreeBSD 11.2 I have plasma5-plasma-workspace installed, along with x11/kde5 and sddm and I'd like to boot KDE Plasma 5 on boot. I've DuckDuckGo searched this topic but I haven't found any clear ...
4
votes
1answer
138 views

How do I install FreeBSD alongside Linux, with the ZFS file system for the root?

The installer of FreeBSD 11.2 makes it fairly easy to install FreeBSD with a UFS root partition alongside Linux, using the Auto (UFS) option in the following dialogue: Next it gives me the option to ...
1
vote
0answers
48 views

Any way to advertise preferred IPv6 address with rtadvd

I have both native and HE-tunnel IPv6 addresses on my router (FreeBSD 10.3-RELEASE-p20). Hurricane electric prefix is static, native prefix is not guaranteed to be static, it is obtained by prefix ...
0
votes
1answer
48 views

How to access agetty terminals (e.g. TTY2, 3, 4, etc.) from QEMU VM

In my QEMU virtual machine (started with qemu-kvm -boot d arch-freebsd.img -m 4096) I'd like to access an agetty terminal, which I'd normally access with Ctrl+Alt+F2 (or F3 if I need tty3, F4 if tty4, ...
1
vote
1answer
116 views

Cannot create poolname : no such pool or dataset

I destroyed an existing zpool by running zpool destroy -f poolname Now I try to create a new pool sudo zpool create -f poolname xbd0 xbd1 xbd2 xbd3 cannot create 'poolname': no such pool or ...
2
votes
2answers
149 views

run Linux applications on FreeBSD

is it possible at to run Linux applications on a FreeBSD machine? How can I do it? Thank in advance !
0
votes
1answer
83 views

How to install FreeBSD 11.2 on my LinuxMint 18.3 machine? [closed]

I got Toshiba C640 i3 Machine, 2GB Ram with LinuxMint18.3 installed on whole drive 500GB. I recently downloaded FreeBSD 11.2 ISO DVD and wanted to install it as dual boot. So that I can slowly learn ...
2
votes
0answers
35 views

how to re-spin usb .img file to use a different bootloader?

I have a bit of a strange use-case, and after searching for 3 days, I am no closer than I started. So my goal is to install pfSense (freebsd based), onto a Beelink Z83-II. The only problem is that ...
0
votes
0answers
30 views

How to disable SANE support on Ports in FreeBSD?

I am building LibreOffice from Ports. Now the building process is asking me some options about SANE because it is a dependency. I don't want SANE because I haven't any scanner. How can I disable it ...
6
votes
1answer
273 views

NAT outbound IPSEC packets using pf on FreeBSD 11 and StrongSwan x FortiGATE

I've been working for more than a week trying to get outbound packets nat'ed to fit a Security Association. This is my (example) scenario: LAN: 1.1.1.0/24 FreeBSD interface: xn0 (Amazon EC2 ...
2
votes
1answer
70 views

Getting Wi-Fi on FreeBSD on a PPC Mac

How do I get Wi-Fi on FreeBSD running on a PowerPC eMac? ifconfig lists fwe0, gem0 and lo0 only. The adapter is Broadcom BCM43xx. Following this guide didn't give any Wi-Fi. Also: If a wireless ...
1
vote
1answer
44 views

tput command doesn't work in if statement

I'm trying to use the tput command in a bash script if statement but for some reason it's behaving unexpectedly. When running the command and then checking the exit code only in the if statement ...
1
vote
2answers
244 views

FreeBSD mount_nullfs / nullfs results in Operation not permitted

I'm using FreeBSD as a local web server and I want to use SFTP to access the project files. I created a user, but I don't want the user to be able to navigate above their home directory. User shell: ...
2
votes
3answers
74 views

How to run this kind of command from within “find”?

I'm using FreeBSD and having difficulty with commands that include {} as part of a string. For example, if renaming the found files. Note that this is an example of the situation. The question itself ...
4
votes
0answers
65 views

FreeBSD sh: is it possible to import a list of commands into fc without executing them?

I cannot find any indication that sh supports persistent history. So I am trying to create this functionality manually. At the end of my .shrc history I have added this: trap -- 'fc -ln -- 1 >> ...
0
votes
1answer
43 views

Incomplete documentation for FreeBSD ipfw

When I see the official documentation of ipfw or the man pages it seems that it is sometimes incomplete. Specifically, there are a lot of options like, firewall_myservices firewall_allowservices ...
2
votes
1answer
87 views

How to improve rsync execution time on OmniOS (illumos-based)?

I am testing illumos in some of its variants, currently OmniOS. As I was benchmarking io-bound processes, I saw that rsync was significantly slower in respect to my reference, FreeBSD 12-CURRENT. ...
0
votes
3answers
152 views

OpenVPN start script does not execute a command

Background: I'm configuring Transmission (v2.93) and OpenVPN (v2.4.6) in a jail (a FreeNAS 11.1 plugin jail) and want to add an --up script to OpenVPN which will request Transmission to change its ...