-
ixmpp
'pkgconf' damn that's an annoying name, in every other os i've used it's either pkg-config or pkgconfig
-
feurig
tobias: did somebody point you at /boot/loader.conf?
-
feurig
add 'boot_serial': '"YES"', 'comconsole_speed': '"115200"', and 'console': '"comconsole,
-
feurig
I do think its odd that its not a default. Especially given that most remote management gives you access to one.
-
feurig
but then you know if your here you're sysadmining like its 1999
-
feurig
:)
-
meena
feurig: I'm pretty, and sure you can use packer / ansible / puppet / etc… to write such a loader.conf these days
-
feurig
I actually had to look up my bootstrap freebsd ansible script for that.
-
feurig
wait was that a damned ai?
-
feurig
That seems like the kind of junk gpt would say.
-
feurig
welcome to the ai spam appocolypse.
-
feurig
but meena: you are correct the appropriate syntax would be boot_serial=yes
-
meena
feurig: i have it with ="YES"
-
meena
i think loader is pretty lax about the actual spelling
-
RoyalYork
How do I report an error in a specific MAN page and a separate error in the FreeBSD Handbook?
-
ox1eef_
-
VimDiesel
Title: FreeBSD Bugzilla Main Page
-
RoyalYork
Thanks
-
ox1eef_
You can also submit the fix there if you have one.
-
Reinhilde
HardenedBSD's version of the ports tree cannot build librsvg2-rust for HardenedBSD's version of 13-S. Is the mainline ports tree and mainline FreeBSD 13-S currently suffering the same plight, or is its librsvg2-rust building fine?
-
Reinhilde
("Idk mate, fire up mainline on your own PC and figure it out" is a valid answer, though one that will be met with grumbling.)
-
ox1eef_
pkg-status.freebsd.org/builds?type=package - you can check there. There seems to be a few failures across the board.
-
trev
how do you usually automatically add ssh keys to the agent? i am starting the agent in xinitrc. should i just do `ssh-add...` after that?
-
ox1eef_
trev: In .ssh/config, where you map keys to hosts, you can add 'AddKeysToAgent yes' and when after first use they're remembered.
-
trev
ox1eef_: nice, thank you
-
ox1eef_
No worries.
-
parv
There are also Control{Master,Path,Persist} options
-
trev
under Host ?
-
parv
Yes
-
Lovis_IX
hello folks, upgrade to 13.2-RELEASE done. Is it me or not? It seem faster.
-
Lovis_IX
trev: you can also put it before any host to make it available for all the hosts.
-
parv
A small portion of ~/.ssh/config :
termbin.com/1fqp
-
» parv has long forgotten the derivation of sum-of-n-numbers formula
-
parv
Sorry, wrong channe;
-
yourfate
I'm trying to have a freebsd server of mine compile a new rpi64 image for my rpi4 which uses ZFS for the rootfs. I've found this article:
wiki.freebsd.org/arm/Build_image_us…ing_release_building_infrastructure
-
VimDiesel
Title: arm/Build_image_using_release_building_infrastructure - FreeBSD Wiki
-
yourfate
now i'm looking at /usr/src/release/arm64/RPI.conf, but i have so far not found where the file system setup magic for the SD card happens
-
eoli3n
Hi
-
eoli3n
syncthing package on latest freebsd has known bug, which produces a lot of sync conflicts
-
eoli3n
i sent a mail to the maintainer but he seems not available
-
eoli3n
does anybody have the ability to upgrade the package ?
-
eoli3n
13.1 latest
-
eoli3n
the problematic syncthing version is 1.22.0
-
RypPn
The way to sanity is to file a bug...
freebsd.org/support/bugreports
-
VimDiesel
Title: Bug Reports | The FreeBSD Project
-
eoli3n
ok, thanks
-
meena
if you send an email to an unresponsive maintainer, you have sent an email to an unresponsive maintainer. if you create a bug report at least there's something you and other people can refer to
-
debdrup
specifically, the maintiner timeout only starts from when the bug is filed, because the bug being filed is how the project keeps track of maintainer timeouts.
-
rubin55
Hey all, running 12.4, uptodate, I'm seeing regular all-core cpu spikes on a process called zfskern. I don't use zfs; what can I do to make this go away?
-
debdrup
zfskern is the light weight process/thread in the kernel, but it shouldn't be present unless you've loaded the zfs kernel module, so check if you've done that with `kldstat -vv`, unload with kldunload(8), and remove it from wherever it's being loaded.
-
rubin55
I'm definitely not loading it explicitly (i.e., in /boot/loader.conf)
-
rubin55
I can blacklist zfs.ko? but I wonder why I'd need to go to such measures
-
nimaje
you don't have zfs_enable="YES" in your /etc/rc.conf for some reason?
-
rubin55
No, I just discovered something mad.. MAD
-
rubin55
I am using 'btop'
-
rubin55
When I start btop it actually (indirectly? why? no zfs used! only ufs!) loads the zfs module
-
rubin55
That sounds highly strange to me, why and how could btop decide to just load a kernel module?!
-
debdrup
just use top in the freebsd base system
-
debdrup
it's much better
-
rubin55
I like btop. Should I file a bug for this?
-
debdrup
not with freebsd.
-
rubin55
obviously.
-
rubin55
I'll have a look upstream
-
dkeav
a utility like a top modifying kernel modules o.0 thats not great
-
debdrup
it's actively hostile.
-
debdrup
it either means it requires suid or to be run as root, both of which shouldn't be necessary
-
debdrup
the only thing that should require root for something like top is renicing it to -20 in situations where a system is so bogged down, even rendering top is gonna be a huge task
-
debdrup
(which is what top -q does)
-
dkeav
yea something like that just willingly jamming kernel modules in could easily be used for malicious purposes
-
dkeav
do not want
-
rubin55
-
VimDiesel
Title: [BUG] btop loading zfs kernel module on FreeBSD, even when no filesystems with ZFS exist · Issue #515 · aristocratos/btop · GitHub
-
VimDiesel
-
rubin55
I suspect he's doing some hackery to be able to show details about zfs filesystems. Agreed, should not just load kernel modules, that's madness
-
nimaje
-
VimDiesel
Title: btop/btop_collect.cpp at main · aristocratos/btop · GitHub
-
debdrup
rubin55: you mean the details included in freebsds top, without the need to load kernel modules if they're not present?
-
debdrup
it also doesn't look like btop understands freebsds vm classes, so you're losing out on a bunch of fairly relevant information
-
rubin55
What are "vm classes"?
-
debdrup
-
VimDiesel
Title: Memory - FreeBSD Wiki
-
nimaje
maybe
bugs.freebsd.org/bugzilla/show_bug.cgi?id=256147 but there it seems to be zpool itself using one cpu core fully
-
VimDiesel
Title: 256147 – zpool list -P causes high cpu load while using ufs
-
nimaje
but one would hope that zpool list exits when zfs.ko is not loaded and not load it itself
-
debdrup
I don't have a system without ZFS to test on, but I can't think how zpool list can load the module if it's not run as a privileged user.
-
msiism
I'm trying to script unmounting all of the file systems I have mounted to /media/$LOGNAME. But somehow, umount(8) isn't able to work with that:
paste.debian.net/plainh/18cbdef6
-
rubin55
nimaje: no, it (zpool list) causes zfs.ko to be loaded, also on a system without zfs mountpoints and/or modules_blacklist=zfs in loader.conf
-
rubin55
I noticed mainly because at load, zfskern seems to spike for about 10? seconds on all cores (i.e., 100% cpu usage)
-
nimaje
ok, then that is a freebsd bug (I think only zpool import has a valid reason to load zfs.ko, but maybe more in any case not list and get), but how can it even do that? it needs a privileged user for that as debdrup already pointed out
-
titou
hey, is there an alternative to synth or poudriere in order to compile multiple packags?
-
titou
(good alternative)
-
rubin55
nimaje: well, in my case, I'm running btop as root, which in turn seems to unconditionally execute a zpool list (for which I filed a bug upstream at the btop repository). In such a case, zpool list would run with enough privileges to do the kldload. I would just not expect it to do so I guess (I would expect it to error out because zfs interface is not available in the kernel)
-
nimaje
I consider it a bug that it does and that it has enough privileges doesn't really matter
-
msiism
Okay, I've found the problem: `umount /dev/da0p1 /dev/da1s1 ` breaks because of a trailing space.
-
msiism
That's not supposed to happen, is it?
-
msiism
With only one argument supplied, umount does ignore trailing whitespace.
-
rubin55
nimaje: shall I file a bug (bugs.freebsd.org)?
-
nimaje
yes
-
msiism
Oh, wait, it just didn't work again, and no trailing space involved…
-
CrtxReavr
umount probably doesn't care, but the shell may be doing something wierd with it.
-
msiism
Okay, let me use /bin/sh.
-
CrtxReavr
'Course. . . I'm not sure why you're running umount against a device. . . normally you'd run it against a mount point.
-
msiism
I'm doing that because the names are predictable.
-
CrtxReavr
And your mount point isn't?
-
msiism
In the sense that they are not freely choosable, not user input that could contain spaces, newlines, etc.
-
CrtxReavr
Why not script something that grabs the mountpoint?
-
msiism
Because the moinpoint is not a constant.
-
CrtxReavr
Exactly my point.
-
msiism
My script works like this: qmnt <device> <label>. And things will be mounted to /media/$LOGNAME/<label>.
-
msiism
That label could be anything.
-
CrtxReavr
mount_point = $(mount -p | grep <device> | awk '{print $2}')
-
msiism
I don't want the script to break because of a weird directory name.
-
neirac
is there a way to search using pkg which package contains a file, not just the currently installed packages, the use case is that I don't know which package to install to fix a dependency
-
msiism
CrtxReavr: Well, yeah, the script does grab all the lines from `mount` that have `/media/$LOGNAME/` dir as their mountpoint prefix.
-
msiism
But it does not rely on those names for unmounting because I see no way to safeguard that against weird directory names.
-
CrtxReavr
neirac, yes. . . though I don't remember the syntax offhand.
-
nimaje
neirac: pkg provides (you have to install pkg-provides first, no idea if it needs any more setup)
-
neirac
nimaje awesome thanks!
-
msiism
Okay, /bin/sh has the same problem.
-
nimaje
msiism: and if your mountpoints (or even the label) contains a newline?
-
nimaje
what shell did you try?
-
msiism
Yeah, the way I do it, this won't be a problem.
-
msiism
FreeBSD's /bin/sh and Bash.
-
nimaje
newlines will likely break your grep and cut
-
msiism
Well, the mountpoint prefix that I grep for is constant.
-
msiism
And then I cut the first field from the line, which is always the device name followed by a space.
-
nimaje
(mount doesn't seem to have libxo support :()
-
msiism
And there are no funny characters in device names.
-
CrtxReavr
neirac,
-
CrtxReavr
$ pkg which /usr/local/bin/screen
-
CrtxReavr
/usr/local/bin/screen was installed by package screen-4.9.0_6
-
nimaje
CrtxReavr: not installed packages
-
debdrup
pkg which `which binary` is always a fun command to run
-
rubin55
-
VimDiesel
Title: 270789 – zpool list loads zfs.ko, even on systems that don't use zfs
-
CrtxReavr
Wroks for non-executables too:
-
CrtxReavr
$ pkg which /usr/local/share/cows/jkh.cow
-
CrtxReavr
/usr/local/share/cows/jkh.cow was installed by package cowsay-3.04_2
-
msiism
Though, the actual question now is: Why is `umount` not able to handle more than one device name now and then?
-
CrtxReavr
msiism, then iterate over a list of devices. . . this isn't that hard.
-
nimaje
rubin55: neither irc nor bugzilla are twitter
-
rubin55
you mean because of the @?
-
msiism
CrtxReavr: You mean like `for t in $target; do…`?
-
nimaje
yes, put it at the end if anywhere
-
rubin55
lol sure
-
CrtxReavr
for t in thing ; do umount $t ; done
-
msiism
Right.
-
CrtxReavr
You just gotta figure out where you're getting "thing"
-
msiism
I already got that sorted.
-
msiism
Still, I wonder what causes this behavior in umount.
-
CrtxReavr
I'm pretty sure if you read the manpage, you'll see it was never designed to umount more than one thing at once.
-
CrtxReavr
Sometimes unix gives you lots of rope to hang yourself with.
-
CrtxReavr
Sometimes, it tires to keep a little sanity.
-
msiism
Well, the synopsis says otherwise. But reading the whole thing might offer a different picture.
-
CrtxReavr
Maybe look at the `umount -F` option.
-
CrtxReavr
Build yourself a /tmp/usr.fstab file, then run `umount -F /tmp/usr.fstab`
-
msiism
Okay, I will.
-
CrtxReavr
mount -p | grep whatevs > /tmp/usr.fstab
-
CrtxReavr
(mount -p produces syntax in /etc/fstab format.)
-
msiism
oh
-
msiism
Well, I see what you mean now.
-
msiism
I guess, I'll just go with the for loop, though.
-
nimaje
CrtxReavr: for me pkg which says "… was not found in the database" for stuff that is not installed (did you maybe have cowsay-3.04_2 installed at some point in time?)
-
CrtxReavr
You might even get away with some fancy shit like: mount -p | grep whatevs | umount -F -
-
CrtxReavr
nimaje, yes. . . it's only going to show you info on what pkg installed. . . you can't expect it to tell you things about random shit you installed by hand.
-
CrtxReavr
And yes, I do have cowsay installed. . .
-
CrtxReavr
Don't make me start piping cowsay into the channel!
-
CrtxReavr
/ex figlet debdrup? | cowsay -n -f jkh
-
nimaje
ah, you wrote non-executables there, the question was still about stuff that isn't installed
-
debdrup
I put on my wizards hat and robe.
-
debdrup
I really don't see why you had to hilight me there.
-
mason
heh
-
CrtxReavr
debdrup, a classic!
-
mason
(order's reversed, but whatver)
-
CrtxReavr
-
debdrup
How is SysV banner different from BSD banner, though?
-
debdrup
Nope, not clicking that link.
-
CrtxReavr
Just the text of that thing you quoted.
-
mason
CrtxReavr: Canonical link, will put people off less:
bash.org/?104383
-
VimDiesel
Title: QDB: Quote #104383
-
CrtxReavr
mason, that's just a small portion of it though.
-
mason
Oh? Interesting. It's all I've ever seen.
-
CrtxReavr
I used to hang in an EFnet channel with the bash.org guys. . . in its heyday, they auto-rejected about 80% of submissions at random, 'cause there was no way they could field them all.
-
mason
Wow, there's a bunch more. Thanks for sharing it. Heh.
-
CrtxReavr
When that first came out, it was funny AF.
-
mason
Gah, bits of it are horrid. I think I see why I've only ever seen the subset. :P
-
CrtxReavr
You take that bake!
-
CrtxReavr
back
-
moonshine
bake
-
debdrup
a mojibake?
-
Beladona
Thunar cannor remember list/icon/detail layout display settings. Got message: Cannot spawn a message bus without a machine-id: Unable to load /var/local/lib/dbus/machine-id or /etc/machine-id: Failed to open file “/var/local/lib/dbus/machine-id”: No such file or directory
-
CrtxReavr
nimaje, I just grocked what you meant by not installed. ..
-
CrtxReavr
If you have a ports tree installed/downloaded, you an do like: for i in /usr/ports/*/*/pkg-plist ; do grep -H screen $i ; done
-
CrtxReavr
'Course, if you have a ports tree installed, you can also do: cd /usr/ports && make search key=foo
-
CrtxReavr
or make search name=bar
-
nimaje
CrtxReavr: some stuff isn't listed in a pkg-plist file in the ports tree and sometimes that stuff gets even generated automatically (e.g. (most?) py- ports)
-
rani
hi, i am having some issues with xorg
-
CrtxReavr
nimaje, like which, for instance?
-
rani
it's refusing to start with nv/modesetting drivers (the other drivers work but they don't have the correct screen resolution and i don't have the ablity to change that)
-
CrtxReavr
rani, been a while since I ran a FreeBSD workstation/laptop.
-
CrtxReavr
I'd use the nvidia binary blob drivers, kldload those. . . then run something like: sudo xorg -configure > /tmp/xorg.conf
-
nimaje
stuff listed in PLIST_FILES, e.g. math/glucose has PLIST_FILES= bin/glucose bin/glucose-syrup
-
CrtxReavr
Usually had to hand edit that file a little but, then move it into /etc/X11/xorg.conf
-
CrtxReavr
Then test with startx
-
CrtxReavr
Once satisfied, I'd finish setting up login manager, window manager/environment, etc.
-
rani
the proprietary nvidia driver requires me to install an old version of xorg since my gPU is ancient
-
rani
the main issue i'm having I think is that nv states that a kernel module is already claiming my GPU, although I don't see anything that would be doing this
-
CrtxReavr
pastebin your /var/run/dmesg.boot and the output of pciconf -lv
-
CrtxReavr
Oh - no gui.
-
CrtxReavr
alias tb='ncat termbin.com 9999'
-
CrtxReavr
Then: cat /var/run/dmesg.boot | tb
-
CrtxReavr
pciconf -lv | tb
-
yo9fah
Hi all
-
CrtxReavr
(Yah, you'll need to have ncat installed.
-
CrtxReavr
)
-
last1
is it possible to just download/fetch a package without installing it ?
-
CrtxReavr
nimaje, I dable in python myself. . . and very much not a fan of how we handle py-* ports/packages. ..
-
CrtxReavr
We should better leverage pip
-
CrtxReavr
I have ideas on how to handle that. . . I need to bring them up up with some ports developers I know.
-
CrtxReavr
last1, sure.
-
rani
this is dmesg:
0x0.st/HXnF.txt
-
rani
this is pciconf:
0x0.st/HXnC.txt
-
ElectricJozin
I am trying to code a simple utility that will get the CWD of a process, (I dont want to use any high level lib like procstat or sysctl) so my plan is: get struct kinfo_proc *processes from kvm_getprocs
-
ElectricJozin
get struct kinfo_file by using kinfo_getfile(PID, kfiles) which returns all open file descriptors
-
ElectricJozin
check if kinfo_file.kd_fd == KF_FD_TYPE_CWD
-
ElectricJozin
if yes then read kinfo_file -> kf_un -> kf_file -> kf_file_fileid, to get INODE number
-
ElectricJozin
Convert INODE number into file (somehow)
-
ElectricJozin
. Is this the "optimal" way to do it?
-
CrtxReavr
rani, kldstat
-
rani
-
CrtxReavr
ElectricJozin, you might want to ask that kinda question in #bsdcode on EFnet.
-
ElectricJozin
CrtxReavr, Ok thanks
-
ElectricJozin
Problem is I cant connec t to EFnet for some reason
-
CrtxReavr
ElectricJozin, actually - you could try #freebsd-dev on here too I suppose.
-
CrtxReavr
Seems more of the oldskool devs are on EFnet th ough.
-
ElectricJozin
EfNET has a invalid ssl certificate, thats why it wasnt working
-
CrtxReavr
last1, I think what you're looking for is: pkg fetch <package name>
-
CrtxReavr
Um. ..
-
CrtxReavr
irc.efnet.org:6667 shoudl work in clear text.
-
rani
this xorg thing is very annoying
-
rani
modesetting doesn't work either but that's because no drm support
-
rani
i have no idea why nv is mad though
-
CrtxReavr
"mode setting" isnt' a driver.
-
CrtxReavr
What driver have you tried?
-
rani
xcfb & vesa work, modesetting & nv do not
-
rani
scfb*
-
CrtxReavr
Try one of these: nvidia-driver-304/ nvidia-driver-340/ nvidia-driver-390/ nvidia-driver-470/
-
rani
the proprietary driver (304) requires an old version of xorg
-
rani
i tried compiling from ports but it failed at the patching phase and i didn't really feel like manually patching xorg
-
CrtxReavr
Try a newer one then.
-
rani
the newer ones aren't compatible with my GPU
-
CrtxReavr
Stickwith VESA then.
-
» CrtxReavr shrugs.
-
rani
ugh vesa resolution caps out too low
-
rani
xorg sucks
-
CrtxReavr
heheh
-
CrtxReavr
That's not xorg. . . that's VESA.
-
CrtxReavr
Try your scfb (whatever the fuck that is) then. .
-
CrtxReavr
then try xorg -configure
-
ElectricJozin
CrtxReavr, Do you know of any other populous BSD IRC's?
-
CrtxReavr
I think you've found 'em.
-
CrtxReavr
You're aware that lsof has been ported?
-
ElectricJozin
CrtxReavr, yes and I used their source code
-
ElectricJozin
But this is a first for me
-
ElectricJozin
I couldnt really find where some of the definitions were coming from and it all just got kind of confusing
-
ElectricJozin
and if you meant: Why dont I use lsof, is because where is the fun in that
-
skered
There's also checkrestart which I think does a better job.
-
CrtxReavr
ElectricJozin, the upstream lsof code, or the post-patch port code?
-
CrtxReavr
Hmm - maybe we dont' patch it that much.
-
ElectricJozin
yep the upstream contains a lib->dialect->freebsd directory
-
ElectricJozin
where most of the important stuff happens once the function the function process_file_descriptors is called
-
meena
-
VimDiesel
Title: 270789 – zpool list loads zfs.ko, even on systems that don't use zfs
-
parv
-
VimDiesel
Title: Re: CURRENT: Panic VERIFY(!zil_replaying(zilog, tx)) failed (and crashing)
-
nimaje
ah, yeah, for zpool create loading zfs.ko is fine too
-
ElectricJozin
Where should I push ports patches?
-
ElectricJozin
Or should I email the maintainer with the diff patch
-
meena
nimaje: I see no issue
github.com/openzfs/zfs/issues here yet
-
VimDiesel
Title: Issues · openzfs/zfs · GitHub
-
meena
ElectricJozin: open a bugzilla bug with origin/port:
-
meka
ElectricJozin, bugs.freebsd.org
-
ElectricJozin
its not a bug its a simple change
-
» CrtxReavr much preferred the workflow of filing a bug with an attached patch, vs. the whole github/PR routine.
-
ElectricJozin
Ok, then
-
debdrup
You can still use bugzilla.
-
meka
ElectricJozin, it's not only for bugs, but the name does suggest otherwise. It's for tracking changes and some of them are bugs :o)
-
meena
if a maintainer goes missing, we won't know you've been mailing them diffs. but bugzilla will
-
debdrup
docs.freebsd.org/en/articles/problem-reports has a good description of how things work when they work best.
-
VimDiesel
Title: Writing FreeBSD Problem Reports | FreeBSD Documentation Portal
-
ElectricJozin
ok and for example if I were to patch a base system dependency like sysctl
-
ElectricJozin
Under the system there is no way to highlight the command at question
-
ElectricJozin
soo.... git?
-
debdrup
-
VimDiesel
Title: Components for Base System
-
debdrup
patches to sysctl would go in the bin component
-
ElectricJozin
Right ok
-
ElectricJozin
Thanks
-
debdrup
as a follow-up to the thing parv posted,
openzfs/zfs #14739
-
VimDiesel
Title: Fix data corruption when cloning embedded blocks. by pjd · Pull Request #14739 · openzfs/zfs · GitHub
-
meena
-
VimDiesel
Title: 270796 – [exp-run] Enable -Warray-parameter for clang
-
meena
debdrup: nice! i was wondering how long that's gonna take…
-
dvl
Brand new url parsing code now in FreshPorts. Please report any oddities.
bsd.network/web/@dvl/110187747070886865
-
VimDiesel
Title: Dan Langille: "New URL parsing code into FreshPorts soon. Major …" - BSD Network