-
V_PauAmma_V
I haven't used Vultr, but I'd start by looking at /boot/loader.conf and /boot/device.hints.
-
V_PauAmma_V
For both the off-the-shelf install and their customized ISO.
-
fancycade
Has anyone experienced issues logging into certain sites with firefox? I keep getting browser not supported, I don't have this problem on Debian though
-
Ronis_BR
V_PauAmma_V: Ok! Thanks :)
-
Ronis_BR
I already copied loader.conf, but did not check device.hints
-
Ronis_BR
V_PauAmma_V: device.hints are identical
-
RhodiumToad
are they both using the generic kernel?
-
Ronis_BR
yes, same kernel
-
Ronis_BR
there is one difference. The "fast" is saying Hypervisor: Origin = "KVMKVMKVM" whereas the slow is saying Hypervisor: Origin = "Microsoft Hv"
-
Ronis_BR
The problem is the Hypervisor
-
RhodiumToad
so the provider is using one hypervisor for its version of the config, but a different one if you do a manual install?
-
Ronis_BR
RhodiumToad: exactly
-
Ronis_BR
RhodiumToad: when I create the server using custom ISO, it starts in Hyper-V. However, if I ask to use FreeBSD, it uses KVM.
-
Ronis_BR
RhodiumToad: solution: I will start a FreeBSD server, and format everything :D
-
Ronis_BR
worked perfectly :)
-
yuripv
fancycade: it's probably related to user-agent string not having Windows/Linux/macOS? try one of the addons that fakes the reply
-
RhodiumToad
some sites I've seen return a 403 error if they see the string "amd64" in the user-agent.
-
yuripv
(and yes, I noticed that, ms teams (IIRC) didn't want to work with default string on FreeBSD)
-
mech_pilot
what's your opinion on FreeBSD hosting operators support these days? I've tried vultr and linode, both required manual intervention when it comes to VM creation, which interrupts with automatic deployments, unfortunately
-
mech_pilot
I've written pretty extensive ansible roles for my own #selfhosted stuff on FreeBSD, needed to switch to Linux because of that
-
_xor
RhodiumToad: Hmm, interesting. So I commented out the WITHOUT_DEBUG_FILES=yes and WITHOUT_KERNEL_SYMBOLS=yes lines and re-ran make clean buildworld
-
_xor
RhodiumToad: It hasn't bombed yet. Not sure if it has gotten to lib32 yet or not, but I don't remember it getting this far last time when it did bomb.
-
rtprio
Ronis_BR: boot verbose perhaps to see where it hangs
-
rtprio
Ronis_BR: it could be something stupid like choosing a timecounter
-
_xor
Is there an easy place to check where boot-time related configuration should go? (e.g. /boot/loader.conf tunables + *_load modules vs /etc/rc.conf:kld_list + /etc/sysctl.conf, things like that)
-
_xor
Last I looked it a bit all over the place, where some things were required in /boot/loader.conf (read-only tunables that needed to be set early?) vs preference for /etc/rc.conf or /etc/sysctl.conf, etc.
-
RhodiumToad
sysctl -T and -W can be used to detect what needs to be set in loader.conf
-
_xor
Oh nice, didn't know about those flags.
-
» _xor just looked at sysctl(8)
-
RhodiumToad
(if a sysctl shows up in -T but not in -W, it can only be set in loader.conf)
-
_xor
Yup, that's I figured reading the descriptions.
-
RhodiumToad
in a shell with process substitution, comm -23 <(sysctl -T -a -N | sort) <(sysctl -W -a -N | sort) gets the list
-
_xor
Oh that's a nice little shortcut. Jotting that one down.
-
RhodiumToad
for modules, kld_list is preferred especially for modules of any size
-
_xor
Is there anything that specifically has to go in loader.conf and cazn't go in kld_list?
-
RhodiumToad
(on EFI in particular, it's possible to run out of memory in the loader by loading large modules)
-
RhodiumToad
anything you need to find the root filesystem needs to be in loader.conf
-
_xor
ah
-
RhodiumToad
but then there's a problem: kld_list is processed at a fairly arbitrary time during boot
-
_xor
What about zfs? I know gptzfsloader & loader.efi can both find zpools, but do they also implement enough reading capability for use during boot? (just visualizing & guessing here)
-
RhodiumToad
for most rc.d services, they know how to load their own modules, but there are cases like the file system firewall (ugidfw) where kld_list is just too random
-
_xor
...or does zfs_load still need to be in loader.conf?
-
RhodiumToad
zfs_load needs to be in loader.conf in order for the kernel to be able to mount zfs roots
-
RhodiumToad
loader contains its own copy of zfs to be able to read /boot, but that doesn't help the kernel
-
_xor
Oh right
-
_xor
Makes sense.
-
» _xor takes a look at his desktop /boot/loader.conf
-
_xor
Hmm, from the looks of it, a vast majority of these lines should be movable to /etc/rc.conf and /etc/sysctl.conf.
-
RhodiumToad
what do you have there?
-
_xor
-
RhodiumToad
oof
-
_xor
I should clean that up, don't need some of those lines. Though I'm going to keep the ones with the default values set explicitly (they're for future reference in case I forget).
-
_xor
I remember tmpfs_load causing a couple of boot-time errors about how it's already loaded.
-
RhodiumToad
tmpfs is usually compiled into the kernel
-
_xor
I guess because something else loaded it or it's already com...
-
_xor
Yeah
-
RhodiumToad
the linux_load ones can be removed because the ABI service script knows how to load the modules
-
RhodiumToad
vmm_load probably should go in kld_list because vmm is pretty huge
-
_xor
Does it automatically load linux64 as well? I remember that one was being skipped for some reason.
-
RhodiumToad
on amd64 it loads both
-
_xor
On another machine I had to trouble with tmpfs that was really strange. It was giving me that already loaded error at boot, but whenever I started my poudriere jail, it would complain that tmpfs wasn't present. So starting it again after kldload tmpfs worked. It was weird.
-
_xor
...and yes, it was enabled in the jail config too.
-
RhodiumToad
the only way you'd need to load tmpfs is if you removed "options TMPFS" from the kernel conf
-
RhodiumToad
nvidia driver is another one to put in kld_conf for size reasons
-
RhodiumToad
snd_uaudio doesn't need loading since it'll be auto-loaded when a device is detected
-
_xor
That's what I would have thought, but I never touched it. The only custom kernel configs I used were when I needed to either enable ALTQ_* or add `nodevice ukbd` for my keyboard to work properly.
-
RhodiumToad
snd_hda can go in kld_list
-
RhodiumToad
actually it might not need to, devmatch probably can find it
-
_xor
Ah that's good to know. Slimming this down would help make it easier for sure.
-
RhodiumToad
if_*_load shouldn't be needed since the netif scripts know to load things like bridge and tap modules
-
_xor
getfacl /etc/rc.conf /etc/sysctl.conf /boot/loader.conf
-
_xor
if_re is the module from ports, needed it to fix a netif issue I was having with re0.
-
_xor
-
VimDiesel
Title: FreshPorts -- net/realtek-re-kmod: Kernel driver for Realtek PCIe Ethernet Controllers
-
RhodiumToad
right, but if_tap, if_bridge etc. don't need explicit loads
-
_xor
Is there a way to specify the ports module from kld_list (if_re_load="YES" + if_re_name="/boot/modules/if_re.ko")?
-
RhodiumToad
kld_list can have the full path to the module
-
_xor
I think I explicitly loaded the other netif-related modules because I was using ng_*, bridge*, & tap* interfaces with jails. It's been a while, but if I'm remembering correctly, doing stuff like ifconfig ... vnet or ngctl ... from exec.prestart or whatnot was failing due to kernel modules not being loaded.
-
_xor
oh nice
-
_xor
You would think, based on what you said, that they would auto-loaded. Maybe I was doing something wrong, not sure.
-
RhodiumToad
I don't know about the netgraph modules.
-
_xor
I'm going to try it without loading those, see if it fails, and if so, what error it throws.
-
_xor
Is there an easy way to tell what is currently using a kernel module? (causing kldunload to fail)
-
_xor
Hmm, if kld_list is indeterminate as to when it's actually going to be processed during boot, then could putting if_re in there potentially cause netif to fail to initialize the NIC(s) if the kmods haven't yet been loaded by that point? (or would they definitely be loaded early? before FILESYSTEMS?)
-
_xor
s/initialize/configure/
-
RhodiumToad
yeah, if_re probably needs to stay in loader.conf
-
_xor
meena; Oh btw, not sure if this should be added to the pkgbase readme, but kldxref should be run after installing kernel package(s).
-
RhodiumToad
kld_list is loaded after kldxref and therefore after FILESYSTEMS, but it can be arbitrarily late after that
-
RhodiumToad
the whole business of ordering of rc.d scripts is a mess
-
_xor
Yeah, that part is somewhat annoying. Whenever I'm whipping up a port and doing an rc script for it, I have to grep through /etc/rc.d & /etc/defaults to get an idea of the appropriate header comments.
-
RhodiumToad
it's understandable to keep them weakly specified to allow for possible parallelism, but there are a lot of possible hidden dependencies that get violated
-
_xor
Lets just throw the whole thing in the trash and port systemd over to solve all of these issues from the 90s.
-
» _xor runs and hides
-
» RhodiumToad calls in an orbital kinetic strike
-
_xor
heh
-
_xor
I'd still rather deal with rc than systemd. Anytime I've had to do that in the past, it was a major pain in the neck trying to figure out the specifics for a given use-case. Also, the documentation felt a bit...under-emphasized lets call it...compared to BSD-land.
-
RhodiumToad
I'd settle for some way to add extra dependencies in rc.conf
-
RhodiumToad
man rc.conf
-
RhodiumToad
oops
-
_xor
Extra dependencies? Like service dependencies?
-
RhodiumToad
to be able to say "start X before Y" for arbitrary services
-
_xor
Ah yes, that would be really nice. Heck, that would even save me some hassle right now.
-
_xor
Something like nginx_service_depends="name0 name1 ..." would be nice, though I guess it should probably be limited to only being able to say "Services A, B, and C are required to be running before service Z" and not really support "Service Z should run after A, B, and C." (so then it can start with the root services and launch dependencies instead
-
_xor
of generating a list of services to explicitly start first and then starting whatever is left without explicit dependencies specified).
-
_xor
There's also the issue of running vs. healthy service :/ As in at what point are any of services A, B, & C considered to actually satisfy the Z dependency. Once it's launched and the PID is present for more than X seconds or leave it up to the requiring service to determine that itself.
-
_xor
-
VimDiesel
Title: Start all of your commands with a comma
-
_xor
That's actually...a cute hack.
-
fancycade
yuripv: thanks for the tip. I've tried a few extensions but twitch keeps complaining about recommended browser. I'll try to keep messing with it though
-
rwp
fancycade, My bank chase.com will not let me log in with a User-Agent defaulting to FreeBSD. I must override it and say that I am Linux and then it works.
-
RhodiumToad
yeesh
-
rwp
I use and recommend the Firefox extension "User-Agent Switcher". It works excellently. It can be told to automatically set the User-Agent on certain URLs like chase.com.
-
_xor
What does chase.com actually do when it's FreeBSD?
-
ox1eef_
Freak out.
-
_xor
I wish sites would let user-agent sniffing die and just stick to feature-flags/capability-testing.
-
fancycade
rwp: Could post a link for the extension. There are multiple "User-Agent Switcher" extensions
-
ox1eef_
It will probably die in the near future. Chrome has scrapped the API that made it possible.
-
_xor
Which API?
-
_xor
Unless you mean User-Agent isn't going to be sent as a HTTP request header, which I can see causing a heck of a lot of issues.
-
ox1eef_
Manifest V3 has removed the chrome.webRequest API. It would let an extension intercept requests, and insert the User-Agent header.
-
_xor
Oh, you meant via extensions like User-Agent switcher.
-
ox1eef_
Yep.
-
_xor
Yeah, v3 is...*sigh* Lots of stuff not going to work anymore.
-
_xor
Wait, does v3 break any part of native host messaging? I made and use a couple of ports on FreeBSD that utilize it.
-
_xor
Mainly for org-mode capture and KDE Connect extension, both of which use native host messaging.
-
rwp
-
VimDiesel
Title: User-Agent Switcher – Get this Extension for 🦊 Firefox (en-US)
-
ox1eef_
_xor: I don't think so.
-
rwp
ox1eef_, Google is forcing the move to Manifest v3 but this is Firefox.
-
_xor
Firefox capitulated on v3, didn't they? I use Firefox 98% of the time.
-
ox1eef_
Firefox is a clone of Chrome's API.
-
rwp
AFAIK Firefox is not moving to Manifest v3. But I am not an authoritative information source on this.
-
rwp
I will predict that when Google forces the move to v3 that it will create a lot of refugees to Firegox though. I bet they get a lot of users back again.
-
ox1eef_
-
VimDiesel
Title: Manifest V3 migration guide | Firefox Extension Workshop
-
_xor
-
ox1eef_
Snap xD
-
_xor
heh
-
ox1eef_
rwp: Right, it would have been wise to not drop support. It could attract more users.
-
_xor
I think I remember Mozilla originally stating that they weren't going to introduce most of the breaking changes that come with v3, but then I think I remember them reversing that later.
-
fancycade
rwp: Thanks. That is the one I have installed. I can confirm on other sites that it changes my user-agent string, but twitch is still blocking it
-
rwp
That page is more than I can grok at this late time of night. If Firefox does go with Manifest v3 then it is going to suck for most of the users.
-
ox1eef_
It made me trust Google even less. Why invest in developing for a platform where its APIs can suddenly disappear, and leave your business without any options.
-
rwp
I don't know about twitch but that leads me to think they are looking at something different from User-Agent then.
-
fancycade
godaddy is the same...
-
_xor
I'm pretty sure they are. I got some announcements from some extensions that I used about it not working after so-and-so date due to v3 being enforced after that.
-
_xor
I bet the actual user market for extensions is pretty miniscule compared to the total user market. They're probably willing to make the trade-off.
-
rwp
It makes sense for Google being an advertisement business to block extensions from being able to block advertisements on security vulnerability basis. But Firefox has no such motivation.
-
_xor
I despised not being able to self-host browser push notifications either, but looks like VAPID allows that now.
-
rtprio
_xor: can you not? i thought with ssl and a manifest that was possible
-
_xor
Last I looked at it a while back, you could control the messages themselves, but the actual delivery had to be done through service providers (e.g. FCM, APN, Firefox, etc).
-
_xor
Though now I think you can with VAPID keys.
-
ox1eef_
_xor: I had a few ideas that I think could be monetized via browser extensions. And the native extension API opens a lot of doors. But who knows if it will live on or not.
-
_xor
I wanted to be able to fully self-host push notifications from server to browser, ios, & android. The issue was that browser push, at the time at least, required using a provider that was whitelisted in the browser by default. iOS & Android push was an issue because they required delivery through their services as well with the stated reason being
-
_xor
"power management" (so it wasn't reliable to just connect a WebSocket in your app and expect to always be able to receive, it would get put to sleep; only native Google background services would wake up and poll for you)
-
_xor
I wish the DOM-to-WASM bridge would hurry up and come to fruition. That would probably help solve a bunch of these issues.
-
rtprio
oh, for ios and android. i know nothing about that, as i thought it needed a real app
-
ox1eef_
Yeah. Browser restrictions can bite sometimes.
-
_xor
What do you mean by real app?
-
_xor
Oh a native app? That's what I meant, but you can still technically push via webapp on mobile using a PWA with Manifest + ServiceWorker.
-
» _xor only builds and uses native apps on mobile, none of this Flutter or React Native crap
-
_xor
Being able to cross-compile on FreeBSD to target iOS/arm64 and Android/JVM would be nice, but alas, my attempts at iOS failed hard and early (and bhyve doesn't support Clover or OpenCore to be able to boot macOS last I checked). I did get Android Studio working natively, but that was a major PITA.
-
_xor
RhodiumToad: I just checked the buildworld compile and it looks like it's actually compiling lib32 now.
-
_xor
I guess there's some dependency on DEBUG_FILES and/or KERNEL_SYMBOLS, because after including those in the build it looks like it's working (so far).
-
rwp
fancycade, You mentioned godaddy.com was the same problem. I just logged into a godaddy.com account using my FreeBSD Firefox with the default User-Agent and had no problems. Worked for me. Maybe something is simply broken with your Firefox?
-
p14nd4
Hi folks! I have a new Alder Lake-N system on the way
-
p14nd4
-
VimDiesel
Title: Alder Lake - Wikipedia
-
p14nd4
there's been a variety of patches to linux over the past ~year for this CPU family, since intel seems fairly proactive there--first being here, i believe:
git.kernel.org/pub/scm/linux/kernel…9340326df40ba4462d4d2a1692b6387a68e
-
VimDiesel
Title: kernel/git/torvalds/linux.git - Linux kernel source tree
-
p14nd4
but, afaict, this CPU family (0xBE) doesn't even exist in main yet for FreeBSD:
cgit.freebsd.org/src/tree/sys/dev/hwpmc/hwpmc_intel.c
-
VimDiesel
Title: hwpmc_intel.c « hwpmc « dev « sys - src - FreeBSD source tree
-
fancycade
rwp: Perhaps. I installed firefox via pkg
-
p14nd4
(see 0x97, 0x9A at line 215)
-
fancycade
I've tried all the work arounds. User agent, turned off tracking protection, private window, etc. Nothing works
-
rwp
fancycade, I also installed firefox via pkg. Currently at firefox-112.0_1,2 running on 13.1-RELEASE at the moment.
-
p14nd4
question 1: any idea what happens if i try to run freebsd on this, when the CPU type isn't explicitly defined in ther kernel? world of pain / poor performance/power, or mostly work? 2. what's the process for getting this added? (i started emailing the guy who authored the alder lake lines in that file, but that's probably not ideal)
-
fancycade
rwp: firefox -v "Mozilla Firefox 112.0". 13.2 release, but I remember having similar issue on 13.1
-
rwp
I would suggest creating a new profile, to get something pristine, and then trying it. firefox -P
-
fancycade
Hmm, didnt seem to help
-
fancycade
I have all extensions removed at this point as well
-
rwp
It's a tough one. :-(
-
fancycade
yeah, i've experienced something similar with alpine linux on this computer specifically too
-
fancycade
thanks for the help though!
-
_xor
RhodiumToad: Oops, nevermind. Spoke too soon, lib32 failed at exactly the same spot again. Will tackle it later.
-
rtprio
p14nd4: i would expect it to mostly work
-
Beladona
Any clue why virtualbox stopped working after 13.1 to 12.2 upgrade?
pastebin.mozilla.org/8RNamVv8
-
VimDiesel
Title: Mozilla Community Pastebin/8RNamVv8 (Plain Text)
-
msiism
Gpart's error messages could be improved:
paste.debian.net/plainh/6870812d
-
tercaL
Got MariaDB 10.6.12 installed under FreeBSD, I see the following Warning line in log file; 2023-04-20 2:35:00 0 [Warning] You need to use --log-bin to make --binlog-format work.
-
tercaL
any clue?
-
Beladona
-
VimDiesel
Title: Mozilla Community Pastebin/4BsTybXP (Plain Text)
-
msiism
`file` reports file system labels with appended whitespace:
paste.debian.net/plainh/b5e9267d
-
msiism
OEM-IDs are also affected.
-
msiism
Looks like undesired behavior to me.
-
paulf
is that a bug or a feature?
-
msiism
That's the question.
-
msiism
I can't see how this would be a feature, but maybe other people can.
-
doug713705[m]
Hello, my laptop (Lenovo TP p14s Gen1 with FreeBSD 13.2) rebooted by itself without a warning and now 2 of my datasets are just gone. I mean, dataset are still present but there are empty, no data in it !
-
doug713705[m]
How it is possible ? Is it recoverable ? How can I investigate ? I read the zfs man pages and various thread on forum but found nothing relevant to my case
-
doug713705[m]
more over, how prevent this to happen again (I may have badly created these datasets)
-
yuripv
datasets are empty or mountpoints are empty?
-
doug713705[m]
those datasets where created by "zfs create zroot/mount/point/ddataset", no extra options
-
yuripv
(are they mounted?)
-
doug713705[m]
yuripv: I can't tell as I'm new to FreeBSD. I suppose mount points are empty but I'm unable to retrieve any trace of the datasets
-
futune
do they show up in zfs list?
-
doug713705[m]
yes the show in zfs list and in "mount"
-
futune
what does the used column say?
-
doug713705[m]
so I suppose data are gone but I can't tell how data can just disappear
-
futune
is the mountpoint where you expect it to be?
-
doug713705[m]
futune: the used column says 96k for each of them :(
-
doug713705[m]
yes the mount point is where I expect to be
-
futune
doug713705[m], oh... if there is no data used then yeah
-
futune
my guess would be that they were not mounted when you placed the data in them
-
doug713705[m]
I have copies of the data so it's not a big deal by itself but I'd like to understand how the data have vanished and how to prevent this behaviour !
-
futune
unmount the datasets and check what is in the mountpoint under it?
-
doug713705[m]
ok, so umount should make the data reappear
-
doug713705[m]
ok, lets try this, sounds like a good idea
-
doug713705[m]
umounted the datasets and no data :(
-
futune
ok, I don't have any further ideas right now and I have never seen this behaviour before...
-
doug713705[m]
Ok, so I may have hallucinated and never put the data in the datasets
-
futune
did the machine reboot within 5 seconds of writing the data?
-
futune
zfs usually writes to disks in 5 sec intervals
-
doug713705[m]
no, the reboot occurred several days after data copy
-
doug713705[m]
so, again, I may have hallucinated... I will check my logs and verify that I have really rsynced the data in the first place
-
futune
hope you figure it out!
-
futune
there is also #zfs if it really appears to be a zfs problem
-
futune
maybe someone there knows more
-
luna
-
VimDiesel
Title: BSD Now 503: Fast Unix Commands
-
doug713705[m]
futune: II have no trace of rsyncing the data /o\ A good old pebcak
-
futune
doug713705[m], that is reassuring to me... maybe not so much to you :(
-
doug713705[m]
yes it reassuring, at least for my system health, not so much for my brain /o\ :D
-
yuripv
:D
-
Beladona
-
VimDiesel
Title: Solved - freebsd 13.2 and virtualbox-ose | The FreeBSD Forums
-
Beladona
Is 13.2 broken ?
-
yuripv
Beladona: in what context?
-
Beladona
virtualbox, kernal issue
-
Beladona
for one example
-
Beladona
-
VimDiesel
Title: Mozilla Community Pastebin/4BsTybXP (Plain Text)
-
yuripv
so instead of asking why you can't build the kmod (even if the error message tells you why) you are asking if 13.2 is broken
-
meena
i got a great idea: We announce the availability of 13.2 3 months after it's released, and thus, 13.1 has been deprecated.
-
vkarlsen
Asking questions is hard. I've been doing it for 40 years and I still often get it wrong.
-
Beladona
yuripv what can I do?
-
drobban
What does the message say? what is the problem with virtualbox?
-
drobban
If you ask me, virtualbox works just fine...
-
drobban
but what are you trying todo specificly?
-
Beladona
Kernel driver not installed (rc=-1908) Make sure the kernel module has been loaded successfully..where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT
-
Beladona
KLD vboxdrv.ko: depends on kernel - not available or version mismatch
-
Beladona
linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type
-
Beladona
drobban this
-
Beladona
-
VimDiesel
Title: Mozilla Community Pastebin/4BsTybXP (Plain Text)
-
drobban
Beladona: "/usr/share/mk/bsd.sysdir.mk" line 15: Unable to locate the kernel source tree. Set SYSDIR to override.
-
Beladona
ya, how exactly?
-
drobban
something sound like you missed something in your upgrade
-
Beladona
am.. not sure
-
Beladona
I even did `pkg upgrade -f`
-
drobban
Havent upgraded to 13.2, My world started with 13.2, and virtualbox works just fine on my machine(tm)
-
meena
Beladona: do you have /usr/src with the 13.2 source code?
-
Beladona
checking
-
drobban
so perhaps the driver is compiled with older kernel in mind...
-
drobban
and you need to update kernel source on your machine...
-
Beladona
# ls /usr/src/ shows nothing
-
drobban
so the message made sense then
-
Beladona
ok, how can I do that?
-
drobban
perhaps downloading correct version will solve your problem?
-
drobban
Beladona: how did you upgrade?
-
drobban
-
VimDiesel
Title: Chapter 25. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
drobban
is this relevant for your situation?
-
Beladona
I just did freebsd-update upgrade -r 13.2-RELEASE
-
Beladona
-
VimDiesel
Title: Chapter 25. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
drobban
that is probably what I would have done... But hey, I have never updated system in freebsd before -- Im a freebsd n000bie
-
Beladona
no problem. Doing. will let you know
-
drobban
super
-
meena
yuripv: do you want lspci -v or -vv ?
-
CmdLnKid
heads up ... src/bin/pkill/tests/pgrep-F_test.sh conflicts with src/bin/pkill/tests/pgrep-f_test.sh on case insensitive systems causing the repo to having problems with updating... can anyone get some eyes on this? ... its a real pita while working on case insensitive filesystems...
-
meena
CmdLnKid: ugh, which system you on?
-
meena
this is weird, cuz surely we have people working on macOS; like, the whole of buildworld and buildkernel compiles there
-
CmdLnKid
i work with the repository on macos "apfs" which is default case insensitive
-
CmdLnKid
easy enough for me to work around but really honestly shouldn't have to be that way
-
drobban
is there any fun benchmark software out there where I could compare results with other peoples computer setups?
-
meena
CmdLnKid: can you open a bug, and add a patch to rename those files
-
CmdLnKid
dunno about a patch as the generated patch wouldn't reccomend anything other than file1 -> file2 renames.
-
CmdLnKid
i can file a bug report though
-
meena
pgrep-F… → pgrep-Pidfile_test.sh ; and pgrep-f… → pgrep-full_test.sh
-
CmdLnKid
-
VimDiesel
Title: 270948 – Conflict with bin/pkill/tests/pgrep-F_test.sh / bin/pkill/tests/pgrep-f_test.sh
-
paulf
what kind of benchmark?
-
drobban
paulf: whatever... hardware in general
-
drobban
im just trying to waste time here.
-
CmdLnKid
may be better to state your goal
-
drobban
get some random comparable results?
-
CmdLnKid
but your end result is ...
-
neirac
is it possible to incrementally compile the kernel?, I just modified a driver that's builtin into the kernel but need to rebuild the whole thing again, and my systems takes like 1 hour to compile
-
meena
neirac: can't just cd into the driver and do make?
-
vkarlsen
neirac: Meta mode, maybe?
-
meena
is this a module? or a builtin one?
-
neirac
meena builtin one
-
neirac
vkarlsen what's Meta mode ?
-
vkarlsen
neirac:
wiki.freebsd.org/MetaMode -- "[...] an incremental build system for FreeBSD, which uses bmake's meta mode and filemon(4) to create metadata files, substantially decreasing build times by only building what has changed since the last build"
-
VimDiesel
Title: MetaMode - FreeBSD Wiki
-
neirac
vkarlsen thanks!
-
vkarlsen
neirac: I hope it helps, it's been a while since I used it myself
-
neirac
vkarlsen it only works with buildworld or also with buildkernel? according to the doc only refers to buildworld
-
vkarlsen
neirac: I don't know
-
CmdLnKid
by the doc it seems pretty clear its buildworld but by the author that may have been just a quote as being everything
-
CmdLnKid
just an assumption
-
CmdLnKid
pretty cool none-theless
-
CmdLnKid
ill give it a shot on a RO nullfs mounted from a zfs
-
angry_vincent
*.meta files are also present in /usr/obj for kernel, so i would assume -- yes, it should work for kernel too. meta mode that is
-
CmdLnKid
keeps my source tree clean as i learned in the past for some reason object files were left behind while compiling on a RW filesystem even tho a obj filesystem was supposed to be used.
-
CmdLnKid
now i don't have to second guess my source tree
-
CmdLnKid
fstab: /export/usr/src /usr/src nullfs ro,noatime,nfsv4acls 0 0
-
angry_vincent
they are files automatically created with meta mode. i do not know how unlcean it is as it upposed to be that way
-
CmdLnKid
ill find out in a moment
-
CmdLnKid
;-)
-
CmdLnKid
appears fine so far ... find /usr/obj/ -type f -iname \*.meta
-
CmdLnKid
find /usr/obj/ -type f -iname \*.meta |wc -l
-
CmdLnKid
175
-
CmdLnKid
next build after this im assuming it will be twice as fast
-
CmdLnKid
or at least faster
-
CmdLnKid
completely unaware there was src-env.conf. been a while since i revisited that
-
CmdLnKid
last i know it was src.conf only
-
CmdLnKid
s/know/known/
-
mage
what would be the best approach to export several disks as a single LUN (iSCSI) other than a zvol?
-
CrtxReavr
Hardware RAID an option?
-
CrtxReavr
iSCSI is block-level storage, so it'd have to be seen by the OS and one contiguous device, prior to export via iSCSI.
-
mage
nop, I'd like to use ZFS on the client-side
-
mage
and I can't find the information wheter $> zpool create mirror zvol1 zvol2 is supported
-
CmdLnKid
test it out on some local file backed zfs storage
-
CmdLnKid
dd if=/dev/random of=some/path/file[1-N] count=1000 bs=1024
-
CmdLnKid
zpool create ... after you attach those to a md device
-
CmdLnKid
reverse the process to delete them
-
yuripv
meena: lspci -nn please
-
CrtxReavr
I think you're confusing OSes. . .
-
CrtxReavr
pciconf -lv
-
CmdLnKid
common man -k conf answer
-
CmdLnKid
;-)
-
meena
CrtxReavr: were comparing outputs from fbsd and Linux
-
CrtxReavr
Not allowed.
-
yuripv
mage: "nested" zfs didn't really work for me ever
-
meena
CrtxReavr: I'm not looking at GPL code, just at its output ;)
-
meena
yuripv: updated
-
yuripv
thank you
-
yuripv
meena: so yes, it's the same in linux (meaning not a FreeBSD bug), only there it says "unclassified" instead of "old"
-
meena
hrm…
-
debdrup
mage: layering zfs on top of zvols isn't going to do anything good for you, even if you know exactly what you're doing (and if you did, you wouldn't be doing it :P)
-
debdrup
ctld(8) using a zvol as a device extent is the optimal solution
-
msiism
Apparently, `umount` is unable to collapse consecutive slashes in device names:
paste.debian.net/plainh/594a6076
-
yuripv
fix it!
-
msiism
no c skills!
-
msiism
I've worked around it for now by making use of the venerable tr(1).
-
RhodiumToad
umount expects to be told the mount point, not the device name
-
RhodiumToad
if you just give it a device, it has to try and find it in the list of mounted filesystems, which is a text match rather than a matter of resolving inodes
-
msiism
Well, but the man page says, gving the device name is just fine.
-
msiism
Also, how would a text match prevent it from collapsing slashes?
-
kiwichap
how do I get the sound to work
-
RhodiumToad
on what hardware?
-
kiwichap
vmware works with root
-
RhodiumToad
what do you mean?
-
kiwichap
sound doesn't work with kiwichap
-
RhodiumToad
but does for root?
-
kiwichap
yes
-
RhodiumToad
check the permissions on the /dev/dsp* devices
-
kiwichap
how?
-
RhodiumToad
first, what happens if you run the command 'beep' ?
-
kiwichap
nothing
-
RhodiumToad
it completes successfully? or you don't have that command?
-
neirac
on snd_hda how do I get sound through headphones?
-
kiwichap
brb phone
-
RhodiumToad
that depends on how the hardware is wired.
-
RhodiumToad
in some cases, plugging the headphones in is enough. In others, the headphone output is on a different pcm device
-
RhodiumToad
sometimes you can tweak the hdaa config to handle it.
-
neirac
RhodiumToad thanks, I'll go read snd_hda then seems needs some tweaking
-
RhodiumToad
usually you can find the headphone output either from /dev/sndstat (for some easy cases) or from looking at the hdaa geometry
-
RhodiumToad
for example, sysctl dev.hdaa.0 will show you the pins and connections for hdaa device 0
-
yourfate
if I try to kldload SGX and gat this error: `module_register_init: MOD_LOAD (sgx, 0xffffffff82c25000, 0) error 6`, does that mean the CPU doesn't support SGX?
-
RhodiumToad
typically, yes
-
RhodiumToad
if SGX isn't supported that's all you'll get. there are some other cases where you'd see another message as well
-
RhodiumToad
you should see SGX in /var/run/dmesg.boot if it is supported:
-
RhodiumToad
Structured Extended Features=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
-
kiwichap
hi sorry back for 15 minutes
-
kiwichap
sorry it was the welfare office
-
kiwichap
how do I get the sound to work?
-
kiwichap
on my user account
-
kiwichap
beep never ever works on anything
-
kiwichap
I did mixer it's connected it's on vmware , it works with root
-
kiwichap
sorry call again with welfare
-
yourfate
thanks RhodiumToad, ye, its not in the list
-
kiwichap
hi thanks RhodiumToad
-
kiwichap
sorry about that I am trying to get the sound to work
-
kiwichap
how do I do that?
-
RhodiumToad
does 'beep' work as root?
-
kiwichap
never works on any device
-
RhodiumToad
and what exactly _does_ work?
-
kiwichap
root : youtube, or like any sound works generally but not beep
-
kiwichap
user: kiwichap : no sound whatsoever , other installations such as laptop bare metal installation, sound works with no issues
-
RhodiumToad
so in a browser it works?
-
kiwichap
yes as root
-
RhodiumToad
in which browser?
-
RhodiumToad
and if it's firefox, what does about:support say about the sound config?
-
kiwichap
ungoogled chromium browser but I believe it's the same as otter
-
kiwichap
there's no beeping on the terminal etc..
-
RhodiumToad
does chromium have an about:support or anything similar?
-
kiwichap
it's the user account that doesn't work I tried on otter browser it's the same issue
-
RhodiumToad
I can't help you if you can't answer questions
-
kiwichap
yes chromium has settings
-
RhodiumToad
what I need to know is: in the configuration that works, i.e. running a browser as root, which audio backend is the browser using
-
RhodiumToad
support, not settings
-
kiwichap
and there's also a group nntp on chromium , they have forums, there's youtube, mailing list
-
RhodiumToad
I don't use chromium. in firefox, if you go to about:settings and scroll down to "Media", it shows what audio configuration is actually in use.
-
RhodiumToad
what I want is either that info, IF IT WORKS, or the equivalent for chromium
-
kiwichap
interesting, it doesn't have this
-
kiwichap
if you want I can log out and login as root then test sond
-
kiwichap
sound
-
RhodiumToad
I don't want anything. If _you_ want help, you must answer the question.
-
kiwichap
what question there is no info
-
kiwichap
no there is nothing like that
-
RhodiumToad
in which browser?
-
kiwichap
in otter browser and ungoogle chromium
-
RhodiumToad
I. Don't. Care.
-
kiwichap
ok
-
kiwichap
so should I install firefox I'll do that
-
RhodiumToad
you need to find out how to tell which audio backend is in use in a configuration where audio works. Don't bother me again until you have that info
-
kiwichap
I have done that with cat /dev/sndstat
-
kiwichap
it says no devices installed from userspace
-
RhodiumToad
nothing else?
-
RhodiumToad
then you have no sound hardware available (real or emulated), so the only way you could have been playing sound is via network, e.g. with pulseaudio
-
RhodiumToad
which is why I was asking about audio backends
-
kiwichap
-
RhodiumToad
so you have a pcm0 device.
-
RhodiumToad
what exactly happens if you do beep -d /dev/dsp0
-
nimaje
would have started to test cat /dev/random >/dev/dsp
-
kiwichap
no sound
-
nimaje
with your user and with root?
-
kiwichap
I have to logout but with root I get sound
-
RhodiumToad
you get sound when using one of those commands?
-
kiwichap
not sure I didn't use them but if I go to youtube with a browser I get sound for example
-
kiwichap
or if I click backspace on terminal
-
nimaje
so it seems like permission problems if that cat work from root but not from your user
-
RhodiumToad
backspace on terminal is a different kind of sound, ignore that completely
-
RhodiumToad
can you make sounds using /dev/dsp when logged in as root, is the question
-
kiwichap
I will logo out and login
-
kiwichap
be right back
-
sixpiece
hello I am back
-
» meena mumbles something about sudo
-
tct
doas!
-
epony
substitute user
-
tct
just login as root
-
epony
on your serial console
-
yourfate
right, I wanted to look into that new fangled doas stuff at some point
-
epony
it's already old and maintenance free
-
tct
I use doas exclusively for quite a while. I only have sudo setup for system administration utilities that need advanced capabilities not offered by doas (such as sysutils/cbsd)
-
epony
the benefit of sudo is better support in third party libraries and application extensions (modules) due to its age and adoption
-
tct
exactly. for anything else -> doas :D
-
yourfate
what is the advantage of using doas?
-
epony
and a stronger developer skill behind sudo
-
tct
doas is much simpler, lower complexity, easier to configure.
-
debdrup
Let's not have that discussion again.
-
epony
todd miller vs ted unangst
-
yourfate
its eems I need to have sudo set up still, so "less complex / easier to configure" doesn't really apply
-
yourfate
but ok
-
debdrup
Stop. Just stop.
-
» yourfate stops
-
debdrup
Let the Linux zealots fight the conversion wars.
-
yourfate
shall we talk about the one true editor now? :p
-
debdrup
Take a guess.
-
epony
there is no built-in editor for doas.conf ;-)
-
debdrup
Well, visudo isn't an editor, it's a configuration sanity editor - which isn't a bad idea, when a misconfiguration can lock you out of your system.
-
debdrup
err, configuration sanity checker*
-
debdrup
It even respects the various environment variables related to editors.
-
yourfate
ye, I used it with mg
-
epony
if only mg was 8bit clean
-
yourfate
there is probably a way to just use emacs tramp mode with visudo
-
epony
tramp supports doas just fine
-
yourfate
no comment
-
yourfate
is there a good reason the rpi images don't ship with zfs root?
-
yourfate
for the newer arm64 pis
-
epony
yes
-
yourfate
care to elaborate? I don't think performance would be any problem
-
yourfate
it handles btrfs with compression on luks no problem :D
-
epony
that's not important, the important part is, emacs is not unixy
-
epony
and neither is python, so there is your "pi" correlation
-
rwp
Right. It's not unixy. Nothing other than ed is unixy. Since ed is the STANDARD editor. Says so right in the man page!
-
epony
that was about sed
-
rwp
In any case visudo may edit files with emacs okay. No problem! :-)
-
RhodiumToad
I looked at doas and saw some reason not to use it, but I forget what it was
-
_xor
sudo alternative from OpenBSD
-
epony
sudo also lives in OpenBSD
-
_xor
I started using doas recently just to check it out. It's less powerful than sudo, but also simpler.
-
_xor
The syntax of /usr/local/etc/doas.conf is easier to remember than /usr/local/etc/sudoers.d/${USERNAME}
-
rwp
I can understand people advocating for doas because they like it better. I do not understand the opposition to sudo.
-
RhodiumToad
conf.d/* style is becoming more popular for good reason
-
epony
there are use cases for both, based on functionality, not artefacts
-
rwp
_xor, What is /usr/local/etc/sudoers.d/${USERNAME} supposed to signify? That would just be another file included. Nothing special about ${USERNAME} there.
-
_xor
I generally don't expect to get actual answers (though I'm willing to listen) from zealotry.
-
_xor
rwp: What? I was just referencing the syntax of the files in sudoers.d/.
-
rwp
On systems where etc/sudoers is not maintained by a package manager then I use it and configure it directly. On those systems I use etc/sudoers.d/local-sudoers for my local configuration instead.
-
debdrup
epony: yes, but everything that isn't OpenBSD gets the portable version of doas.
-
epony
hurray for PAM-less systems
-
_xor
RhodiumToad: I found it somewhat odd that the rc framework supports *_env and *_envfile but not much beyond that. I have a template rc script I wrote a while back that uses ${PREFIX}${ETCDIR}/profiles.d/ to load environment variables if running multiple instances of a service (e.g. haproxy).
-
_xor
Well, maybe not odd, but I guess there wasn't enough of a need for it. Instead of needing to do something bespoke like how net/haproxy does ${name}_profiles="site1 site2 ..." and the rc script implements handling multiple profiles that way, it makes more sense to me to have multiple profiles specified as environment variables.
-
rwp
When I see things like profile.d/foo then I think, the user must be asked to log out and log back in again for the profile to be loaded into their environment. Would prefer to avoid that. I know I can manually source the profile and on down the environment manually.
-
_xor
Though I'd be surprised if multiple instances of an rc service is an uncommon requirement.
-
rwp
Instead I very much prefer the style where a script loads the current environment configuration if one is needed on the fly. That way it can be changed and upon the next invocation the script gets the updated environment immediately. It's simpler to invoke that way.
-
rwp
_xor, And example for your point is OpenVPN might be used for multiple independent connections.
-
epony
in that regard doas lets you control your environment
-
rwp
As just one example I have been in the middle of recently. On a, ahem, blech, a systemd system.
-
_xor
Where would I submit a patch for review, and possible merging, if I copied my rc script over to /etc/rc.subr and possibly /etc/rc.d/* to use the optional approach I describe above? Phabricator?
-
_xor
Wouldn't be too difficult and might be useful to others, though it's a bit of a mess so would probably need to be cleaned up. I can see it being done by adding 1-2 more functions to /etc/rc.subr and then possibly updating /etc/rc.d/* scripts to utilize them (along with relevant rc knobs) where multiple instances of the given service are run.
-
RhodiumToad
there's a few services where multiple instances make sense, and they currently tend to do their own profile hacking in the rc script
-
» _xor is trying to think, without looking, which base services do that
-
_xor
dhclient?
-
RhodiumToad
ppp is the one that comes to mind
-
_xor
Does dhclient just check for ifconfig_* knobs and then filter out the ones with DHCP in the value and process the ones that do?
-
RhodiumToad
dhclient is per-interface, iirc
-
RhodiumToad
so it's being specifically invoked with an interface name, not just generically started
-
_xor
Right, but is there a single instance of dhclient that gets invoked to handle all DHCP-enabled interfaces or is it one-instance-per-netif? I want to say I've seen multiple dhclient processes via ps, and so I'm guessing the latter.
-
_xor
I imagine the rc script for dhclient filters a list of ifconfig_* knobs, and then loops over them to look for DHCP somewhere in the value and launches dhclient for each one it finds.
-
RhodiumToad
no
-
RhodiumToad
the rc script for dhclient literally has an interface name as a parameter
-
_xor
oh, well then <_< >_>
-
» _xor checks out /etc/rc.d/ to see how inaccurate his guess was
-
_xor
Heh, I tried to grep for DHCP and didn't back much. Then I ran it on /etc and saw that network.subr has a functions to check for DHCP and WPA.
-
_xor
Was mainly curious to see what/where/how it is that handles ifconfig_${NETIF}="... DHCP ..."
-
RhodiumToad
well that's not at all obvious
-
RhodiumToad
network.subr runs /etc/rc.d/dhclient start $1 for interfaces configured with SYNCDHCP
-
_xor
Agreed, not obvious at all.
-
» _xor is trying to find the generic template he wrote a while back to handle multiple rc script instances via /usr/local/etc/${NAME}/profiles.d/*.env
-
RhodiumToad
the dhclient script has keyword nostart, so it's not executed itself
-
_xor
That seems a bit...disjointed.
-
RhodiumToad
I mean, it's not executed directly as part of rcorder
-
_xor
Probably missing a legit reason as to why, but it makes more sense to me to have something like ifconfig_${NETIF}_dhcp="..."
-
iio7
When building a port, is it possible to have pkg install any binary dependencies for that specific port so that the ports system doesn't also build all the dependencies?
-
_xor
My router has an interface that needs to use DHCP and also set a static IP. It wasn't obvious to me at first for some reason, but I figured out ifconfig_em0="SYNCDHCP" + ifconfig_em0_alias0="inet ..." did the trick.
-
_xor
Though I think it would be nice to be able to do something like ifconfig_em0_dhcp="..." to set explicit flags and/or config file on a per-interface basis. Or heck, could even do it by convention where it looks for the presence of /usr/local/etc/dhclient.d/em0.conf or something and uses that as the config file for dhclient.
-
iio7
Never mind.
-
_xor
iio7: Synth does that, don't think poudriere supports that IIRC.
-
RhodiumToad
latest poudriere does, I believe
-
RhodiumToad
haven't used it yet
-
_xor
Really? :O
-
RhodiumToad
if you're just building the port with make, there's some support for using pkg add (not pkg install) for dependencies
-
_xor
I assume you're talking about poudriere-devel?
-
RhodiumToad
yeah
-
_xor
Looking now. If so, that should save me a good amount of time.
-
» _xor is looking at poudriere-bulk(8)
-
_xor
Oooh, lookie at that pretty -b <branch> argument.
-
iio7
Does anyone know what has happened to the signal-desktop package? It is suddenly no longer present when searching via pkg, but it is in net-im in ports.
-
_xor
Hmm, interesting to note about custom knobs.
-
skered
-
VimDiesel
Title: 221122 – Attaching interface to a bridge stops all traffic on uplink NIC for few seconds
-
iio7
After an upgrade, the package was suddenly gone (I didn't notice during the upgrade, until I needed to use the package).
-
_xor
iio7: You sure it wasn't removed during pkg upgrade? Are you using both packages and ports together?
-
iio7
_xor, no, only packages.
-
iio7
_xor, I believe it was removed, without my noticing. I used it just the day before I did the upgrade.
-
iio7
Is there a pkg log where one can see what has been added/removed?
-
_xor
You can look on both
freshports.org as well as
portsfallout.com
-
VimDiesel
Title: FreshPorts -- The Place For Ports - Most recent commits
-
RhodiumToad
pkg logs these things to /var/log/messages
-
_xor
...and that
-
iio7
Nice. And yes, it was removed, for some reason. "pkg[60565]: signal-desktop-6.12.0 deinstalled"
-
iio7
But also, doing a search with pkg doesn't show the package any longer.
-
_xor
iio7: I'm looking right now, one sec. Port appears to fail in configure.
-
_xor
Oh wait, no, it fails in build not configure.
-
_xor
iio7: I can't finish looking at this right now due to time constraints (the port has to fetch a bunch of files and it also uses electron, which is its own can of worms), but it looks like the port was updated within the past week and may address the issue you're seeing (specifically, it's not copying a patched file required for a dependency due to
-
_xor
an invalid destination directory).
-
_xor
iio7: If you want to wait, it may build in the next run, or you can try building it yourself after updating your ports tree.
-
iio7
_xor, I believe there maybe is a problem with electron22 which maybe the reason why it was removed.
-
iio7
_xor, thanks.
-
_xor
Could be, wouldn't be surprised. Electron is annoying.
-
iio7
_xor, yes!