-
Reinhilde
no OS is good, but FreeBSD is among the lesat crap
-
wavefunction
The OS is the least important part of what you do daily on a machine. :)
-
entrop
is there a specific channel for pkgbase stuff?
-
entrop
I'm attempting to pkgbasify on 15 b5 on aarch and I'm getting segfaults when installing /some/ packages -
gist.github.com/nreilly/a43b6b7eb94ece81800faf6b39e89eca
-
mason
-
darwin
i installed FreeBSD UNIX 14.3 on a 2020s ThinkPad and tried to boot it with Slackware 15's GRUB2 which worked on previous. This doesn't. Is that because of 'soft journalling' I need to opt-out manually in the installation (older GRUB2 from 2022)?
-
mason
-
mason
Multibooting is easier with UEFI, so might as well embrace it.
-
darwin
i've rarely had problems multi-booting since 1997... not going to use UEFI until it's the only option
-
darwin
the problem appears to be some update to FFS/UFS2 GRUB2 didn't have three years ago
-
entrop
Hmm, I compiled pkg manially from ports, getting me to 2.4.2 (vs 2.3.1_1) and it seems to be working now
-
specialbomb
Reinhilde: you aren't wrong!
-
ketas
yeah
-
andreas303
A question. If I use en EFI partitiom and boot with UEFO, do I also need a partition of type freebsd-boot? Or if the kernel and all necessary stufff inside the EFI image?
-
andreas303
OK, I googled a bit and it seems that I don't need a freebsd-boot partition when using EFI.
-
V_PauAmma_V
You can try that in a VM to be sure, if your hypervisor can emulate (U)EFI.
-
andreas303
But this guide,
c0ffee.net/blog/freebsd-full-disk-encryption-uefi, seems to suggest having a separate freebsd-boot-partition containg kernel and kernel modules and copy /boot/boot1.efi to the efi partition, so I'm a little bit confused.
-
mason
andreas303: freebsd-boot is an extra partition for when you're on GPT to accomodate the fact that GPT doesn't have reserved space after the MBR. It's not a terrible practise to include them AND an ESP so that you can boot either way.
-
mason
andreas303: It's the FreeBSD equivalent of
en.wikipedia.org/wiki/BIOS_boot_partition
-
mason
-
mason
afk a bit, but I'll check back before bed in case there are questions
-
andreas303
mason: Thx! I will check out the wiki.
-
nwe
good morning folks! does brave browser and widevine work together in freebsd or must I run chromium to get widevine to work?
-
kenrap
nwe: works out of the box with just the www/linux-brave port
-
nwe
kenrap: today I have installed chrome with pkg install chromium and foreign-cdm
-
nwe
kenrap: will install it from linux-brave then :) thanks!
-
kenrap
Sure thing. Amazon prime video works fine on it.
-
kenrap
Just make sure it's enabled in the settings.
-
specialbomb
so this might be a little nutty, but theres something I want to solve. I have sshd set up to essentially only serve sftp, this is so I can offer basic file access to a couple of users. I have it set up to chroot the user into their own directory. However, I also want to give each user access to the same read-only filesystem.
-
specialbomb
would it be crazy to use nullfs mounts in each user directory?
-
specialbomb
crazier than that, would it be stupid to write a script that automatically mounts nullfs for each user directory on startup.
-
kenrap
specialbomb: sounds like you'd want to install filesystems/sshfs and use that remotely mount each respective user directory
-
dch
nullfs mounts sounds ideal for this
-
hodapp
nullfs?
-
dch
entrop: pkg 2.4.1 or newer should address your segfault.
-
dch
man.freebsd.org/nullfs
-
dch
use it like `mount_nullfs /usr/ports /some/where/else/ports` or put it in fstab so its always available
-
hjf
ugh, i'm running Home Assistant on FreeBSD and i was able to fix it only today. they started requiring PyNaCl 1.6.0 and it wasn't building on FreeBSD. today they released 1.6.1 and with MAKE=gmake i was able to build it...
-
hjf
i hate that project. they are worse than linux monoculture. they target a specific OS (their own OS) and they have versionitis too. every package is always bleeding edge, latest version only
-
hodapp
hjf: hah, I'm literally doing this right now
-
hodapp
I did it in a venv with pip and didn't run into this PyNaCl issue somehow
-
hodapp
but I know the 'official' way is to just use their Docker container at this point, not the Python package
-
hodapp
I seem to have things running okay in the venv, but it complains about a few things: Python 3.11 is deprecated, webrtc-noise-gain doesn't like FreeBSD, they're overly permissive with josepy versions and it has a breaking change in 2.0.0
-
CrtxReavr
specialbomb, why not just set those users' shell to scponly and add them to the same group for the shared filesystem?
-
CrtxReavr
People make shit too hard.
-
hjf
hodapp: no, the container isn't supported either AFAIK. ONLY the "HA OS" version on a raspberry pi for now.
-
hjf
you can check my blog, i've documented some stuff on how to make it work
-
hodapp
hjf: the container isn't supported? wtf.
-
hodapp
I'm gonna keep trying to use the Python package but we'll see how that goes
-
hjf
-
hodapp
thanks
-
hjf
-
hjf
-
hjf
i can't believe how fast Wordpress runs now
-
hodapp
I wonder why you ran into PyNaCl issues and I didn't
-
hjf
hodapp: are you in the latest version?
-
hjf
i'm running 2025.11.1 now
-
hjf
and you need py 3.12 for that one
-
hodapp
oh, no, pip install homeassistant got me 2024.3.3 it turns out
-
hjf
yes, it's the newest you can use in py 3.11
-
hodapp
that must be why
-
hjf
hodapp: create yourself a new venv with py312 and start using uv, follow my guide here
blog.hjf.com.ar/en/2024/10/19/fixin…g-home-assistant-2024-10-on-freebsd
-
hjf
you can keep your old HA venv
-
hodapp
uv was gonna be my next attempt. it's not a big real to recreate the venv though
-
hodapp
real? deal. whatever.
-
hjf
yeah but you need to do things in a specific way for it to make HA happy
-
hjf
anyways after tuning mysql and installing memcached, my blog now renders in 80ms
-
hjf
i run woocommerce for my shop too. the admin page was doing like 250 queries for every page load.
-
hjf
after installing memcached, it's down to 40-60 queries
-
specialbomb
CrtxReavr: this is what im currently doing. the problem I want to solve really is to transparently give access to a filesystem for everyone, while simultaniously having separate chroots.
-
specialbomb
in the curren set up, lets say this share dir is called share, and each user A B and C has a directory of the same name. A, B, C and share all have to be in the same root dir if I dont use nullfs. I think this is a problem because now each user that logs in can see dir entries for other users, and that is not ideal. I can set up permissions obviously amd I have, but I wouldnt want an individual user aware of anyone else being on the system at all
-
specialbomb
if I nullfs mount media into A/media, B/media C/media, then each user gets their own chroot and has no idea anyone else is present on the system
-
black2
hjf: okay that's a pro for you man
-
Capio|Yaazkal
hello, I know there is an sql lite database por ports... I can't see any log file tough. I wonder if I can query that database to know when pkg was used to upgrade packages, the previous version and the version installed. Is that possible?
-
CrtxReavr
I think the whole point of sqlite is that it's a user application, not a client/server setup with a daemon writing logs.
-
CrtxReavr
If you want the daemon with logs, then you probably want MySQL or PostgreSQL.
-
CrtxReavr
Otherwise, then I guess you need to do the logging in your application.
-
psychonate
I thought he was asking if FreeBSD uses an sqlite database for tracking package/port update dates/times that he can query.
-
psychonate
'pkg info <package>' will show the install date of the current version at least.
-
» CrtxReavr shrugs.
-
CrtxReavr
Maybe.
-
psychonate
With my logging setup, I can just search 'pkg-static' in /var/log/messages to see dates.
-
psychonate
I just noticed that he ping-timed-out anyway
-
» Capio|Yaazkal oof, internet went down. Can't see if anyone answered my question
-
psychonate
Capio|Yaazkal: Are you sure you checked /var/log/messages? Did you grep for 'pkg', for example? In my default syslogd setup, (un)install events are logged there.
-
psychonate
I think 'pkg info <package>' will at least show you the install date of the current version.
-
Capio|Yaazkal
psychonate: oh, didn't check there, was specting something like /var/log/pkg.log for whatever reason
-
psychonate
If those events are getting to your syslog daemon, I imagine you could check your syslog daemon's config to write those events into a different log file if you want.
-
psychonate
s/check/update/
-
Capio|Yaazkal
psychonate: /var/log/messages has the date when the package version changed. It is what I'm looking for, thanks !
-
Macer
Is 15 release released once builds begin or after the announcement?
-
Macer
zfs(8): OpenZFS has been updated to zfs-2.2-release(2.2.7)(2ec8b6948070).
-
Macer
I thought it was updated to 2.4.x
-
Macer
-
kerneldove_
what i do wrong? pkg install firstboot-freebsd-update, add firstboot_freebsd_update_enable="YES" to /etc/rc.conf, finish install and first boot... nothing happens
-
kevans
kerneldove_: firstboot means firstboot ever
-
kerneldove_
ya that's what it was
-
kevans
there's a sentinel involved that, iirc, the rc framework wipes after it executes anything marked for firstboot
-
kerneldove_
it was the first boot
-
kevans
(so if you `pkg install` this on the running system and reboot, it's by definition not the first boot)
-
kerneldove_
it's not on a running system it's during the manual steps part of a new install
-
kevans
installer-installed things also don't go through a firstboot
-
kevans
generally VM or embedded images
-
kerneldove_
huh
-
tuaris
Is there an official freebsd.org guide on how to setup Wireguard (with examples) for FreeBSD 14.2? I understand that 14 has it in base, no ports needed. However I don't see anything in the handbook.
-
rtprio
tuaris: it's all the same as other platforms
-
rtprio
but perhaps wg-quick is the package that may help you
-
kerneldove_
anyone else seeing crashes on freebsd 14.3p>3 ?
-
specialbomb
back when I was running it, no
-
Capio|Yaazkal
kerneldove_ how?
-
kerneldove_
im getting regular OS crashes on 14.3. fatal error mutex xxx own xxx is on list xxx xxx at line 151 in file freebsd-src/lib/libthr/thraed/thr_mutex.c errno 35
-
kerneldove_
it's p5. haven't seen the problem on p3 or earlier 14.3 versions
-
kerneldove_
trying to search bugzilla for any other reports but its' hard to use
-
specialbomb
what platform are you running on? im guessing its some kind of multithreading issue
-
kerneldove_
ryzen 5700
-
kerneldove_
ryzen 7 5700G specifically
-
kerneldove_
and ya prolly multithreading related
-
specialbomb
thats definitely weird, Im gonna go on a limb and say it could be worth booting into a different OS and updating your microcode, but I dont know enough about how freebsd's kernel works :(
-
kerneldove_
-
kerneldove_
that's old but similar part of the code
-
kerneldove_
shrug
-
specialbomb
is this just freebsd without any extras installed?
-
specialbomb
or are you attempting to run specific software
-
kerneldove_
freebsd + a rust server app i made
-
kerneldove_
running on a bunch of boxes with basically identical versions and configs, no others having prob
-
specialbomb
exact same setup huh. weird
-
mjp
bios + microcode update would be a good start, should be able to use the cpu-microcode-amd to test new microcode without having to flash the CPU from another OS?
-
specialbomb
are they also running your app?
-
kerneldove_
ya i use scripted bsdinstall so i can say it's identical
-
kerneldove_
hm
-
kerneldove_
ya
-
mjp
cpu-microcode-amd package*
-
kerneldove_
will that tell me if an update is needed?
-
specialbomb
i would boot into a diff OS personally, if its gonna be unstable
-
mjp
I beleive it just loads the microcode into the CPU on each boot?
-
specialbomb
I dunno, I just wouldnt trust it :D
-
kerneldove_
ok if it happens again i'll try updating the bios/bmc then try again
-
kerneldove_
sucks because it was working reliably until i changed from p3 to p5
-
kerneldove_
any way to see if there were changes to that file post p3?
-
kerneldove_
freebsd-src/lib/libthr/thraed/thr_mutex.c
-
kerneldove_
-
kerneldove_
hmm
-
mjp
difference between -pX and -pY should be very minimal, literally only he source files mentioned in the errata notice
-
kerneldove_
maybe SO_REUSEPORT_LB breaks connect(2) for UDP sockets. [SA-25:09.netinet]? my server app does lots of udp
-
specialbomb
im very curious about this, I hope you sort it :(
-
kerneldove_
ty me too hehe
-
mjp
cpu-microcode-* are necessary evil imo, not all hardware (motherboard) vendors provide BIOS updates for long so the microcode updates cannot be loaded from an updated BIOS on boot, the OS must take over that duty
-
kerneldove_
is it recommended to run cpu-microcode-amd for any server using amd procs?
-
mjp
the cpu vendors recommend it
-
kerneldove_
ok i'll set all of my boxes up to use it ty
-
kerneldove_
hm just got the crash again!
-
kerneldove_
this time it was rust tokio libp2p error "expected some established connection to peer before closing" think
freebsd/freebsd-src 058bcb5 looks related?
-
kerneldove_
i rebooted after setting up cpu-microcode-amd in /boot/loader.conf.d/. any way i can check and see if it was applied?
-
mjp
dmesg | grep micro
-
kerneldove_
i put its config in /boot/loader.conf.d/cpu_microcode_amd.conf
-
kerneldove_
nothing
-
mzar
service microcode_update start
-
mzar
pkg install cpu-microcode
-
mzar
first
-
kerneldove_
i already ran pkg install cpu-microcode-amd, is that not enough?
-
mjp
i get this on my intel systems (with an up-to-date bios!)
-
mjp
dmesg | grep micro
-
mjp
CPU microcode: updated from 0xf0 to 0xfa
-
mjp
you either use /boot/loaders.conf* OR rc.conf, the first being preferred as its loaded before the kernel
-
kerneldove_
ya that's what i did
-
kerneldove_
the first method
-
kerneldove_
i installed cpu-microcode-amd, then to /boot/loader.conf.d/cpu_microcode_amd.conf i added cpu_microcode_load="YES" \n cpu_microcode_name="/boot/firmware/amd-ucode.bin"
-
kerneldove_
need i do more?
-
mjp
that looks correct to me
-
kerneldove_
i wonder why not working then?
-
mzar
there is nothing you can do more